/* =====================================================================
   PIXEL FORGE — Fase 4: subscrições de manutenção + pedidos
   ===================================================================== */

/* campos extra (textarea/select) herdam o estilo dos inputs */
.field textarea, .field select, .reply-form textarea {
  width: 100%; padding: .72rem .9rem;
  border: 1px solid var(--paper-2); border-radius: 10px;
  font-family: var(--font-body); font-size: .95rem; background: #fdfcfa;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea:focus, .field select:focus, .reply-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(75,59,255,.12);
}

/* ---- Alternador mensal/anual ----------------------------------------- */
.billing-toggle {
  display: inline-flex; gap: .25rem; padding: .25rem;
  background: #fff; border: 1px solid var(--paper-2); border-radius: 999px;
  margin: 0 auto 1.5rem; justify-content: center;
}
.billing-toggle { display: flex; width: max-content; margin-inline: auto; }
.bt-opt {
  border: none; background: transparent; cursor: pointer;
  padding: .55rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  color: var(--text-soft); display: inline-flex; align-items: center; gap: .5rem;
}
.bt-opt.active { background: var(--ink); color: #fff; }
.bt-save { font-family: var(--font-mono); font-size: .62rem; background: var(--mint); color: #06321f; padding: .12rem .4rem; border-radius: 5px; }

/* ---- Cartões de plano ------------------------------------------------- */
.plan-card {
  position: relative; background: #fff; border: 1px solid var(--paper-2);
  border-radius: 16px; padding: 1.8rem; height: 100%;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan-card.is-featured { border-color: var(--accent); box-shadow: 0 20px 50px -28px rgba(75,59,255,.55); }
.plan-tag {
  position: absolute; top: -11px; left: 1.6rem;
  background: var(--accent); color: #fff; font-family: var(--font-mono);
  font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 6px;
}
.plan-name { font-size: 1.4rem; margin-bottom: .3rem; }
.plan-desc { color: var(--text-soft); font-size: .9rem; min-height: 2.6em; }
.plan-price { margin: 1rem 0 .4rem; }
.pp-value { font-family: var(--font-disp); font-weight: 700; font-size: 2.4rem; }
.pp-int { color: var(--text-soft); font-family: var(--font-mono); font-size: .85rem; }
.plan-quota { font-size: .85rem; color: var(--text); background: var(--paper); border-radius: 8px; padding: .55rem .7rem; margin-bottom: 1rem; }
.plan-features { list-style: none; padding: 0; margin: 0 0 1.4rem; flex: 1; }
.plan-features li { padding: .4rem 0 .4rem 1.5rem; position: relative; font-size: .92rem; border-bottom: 1px solid var(--paper-2); }
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---- Quota ------------------------------------------------------------ */
.quota-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.quota-bar { height: 8px; background: var(--paper-2); border-radius: 999px; margin-top: 1rem; overflow: hidden; }
.quota-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; }

/* ---- Estado da subscrição -------------------------------------------- */
.sub-badge { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 6px; }
.sb-active { background: #e7f8f0; color: #0c6b46; }
.sb-pending { background: #ecebfb; color: #2f259c; }
.sb-suspended { background: #fff4e5; color: #8a4b00; }
.sb-cancelled, .sb-expired { background: #fdecea; color: #a32414; }

/* ---- Lista de pedidos ------------------------------------------------- */
.request-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 0; border-bottom: 1px solid var(--paper-2); color: var(--text);
}
.request-row:last-child { border-bottom: none; }
.request-row:hover .request-title { color: var(--accent); }
.request-title { font-weight: 600; }
.request-meta { font-family: var(--font-mono); font-size: .72rem; color: var(--text-soft); margin-top: .15rem; }
.req-status { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em; padding: .2rem .55rem; border-radius: 6px; white-space: nowrap; }
.st-recebido { background: #ecebfb; color: #2f259c; }
.st-curso { background: #fff4e5; color: #8a4b00; }
.st-concluido { background: #e7f8f0; color: #0c6b46; }
.st-cancelado { background: #f1efe9; color: #6a6a72; }

/* ---- Conversa --------------------------------------------------------- */
.thread { display: flex; flex-direction: column; gap: 1rem; }
.msg { padding: .9rem 1.1rem; border-radius: 12px; max-width: 86%; }
.msg-client { background: var(--paper); border: 1px solid var(--paper-2); align-self: flex-start; }
.msg-staff { background: #ecebfb; border: 1px solid #d2cef6; align-self: flex-end; }
.msg-head { display: flex; gap: .6rem; align-items: baseline; margin-bottom: .35rem; }
.msg-head strong { font-size: .85rem; }
.msg-head span { font-family: var(--font-mono); font-size: .68rem; color: var(--text-soft); }
.msg-body { font-size: .94rem; }
.reply-form textarea { resize: vertical; }

/* ---- Admin ------------------------------------------------------------ */
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { text-align: left; padding: .6rem .4rem; border-bottom: 1px solid var(--paper-2); }
.admin-table th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.admin-table .mono { font-family: var(--font-mono); font-size: .78rem; }
.account-nav a.admin-link { color: var(--accent); }
