/* Monitor Jurídico — tema visual v3: "quiet luxury". Preto quente + dourado + marfim, tipografia grande,
   poucos elementos por tela. Menos animação, mais espaço. */

:root {
  --bg: #0e0c0a;
  --bg-2: #131110;
  --panel: #17140f;
  --panel-2: #1c1812;
  --panel-3: #211c15;
  --line: #332c1f;
  --line-soft: #241f17;
  --ink: #f4eee2;
  --muted: #b9ad95;
  --muted-2: #7d7461;
  --gold: #c6a15b;
  --gold-2: #ddbc7c;
  --gold-deep: #8a6a34;
  --ok: #8fb596;
  --ok-line: #3c5c41;
  --err: #c98671;
  --err-line: #6e3f30;
  --radius: 4px;
  --radius-lg: 6px;
  --shadow: 0 24px 48px -24px rgba(0, 0, 0, .7);
  --shadow-sm: 0 10px 24px -14px rgba(0, 0, 0, .6);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1100px 620px at 50% -8%, rgba(198, 161, 91, .10), transparent 60%), var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-2); text-decoration: none; }
a.underline, .prose a { text-decoration: underline; text-decoration-color: rgba(221, 188, 124, .4); }
a:hover { color: var(--gold); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.6rem); line-height: 1.08; letter-spacing: -.01em; }
h2 { font-size: 1.6rem; line-height: 1.25; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold-deep); display: inline-block; }

/* ---------- top ribbon + header ---------- */
body::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2), var(--gold-deep)); }
header.top { border-bottom: 1px solid var(--line-soft); background: rgba(14, 12, 10, .88); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 5; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-size: 1.28rem; color: var(--ink); text-decoration: none; display: inline-flex;
  align-items: center; gap: 12px; letter-spacing: .01em; }
.brand .mark { width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--gold-deep);
  display: inline-flex; align-items: center; justify-content: center; color: var(--gold-2); flex: none; }
.brand .mark svg { width: 15px; height: 15px; }
.brand b { color: var(--gold); font-weight: 600; }
nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
nav a, nav button.link { color: var(--muted); text-decoration: none; padding: 9px 16px; border-radius: 999px; background: none;
  border: 0; font: inherit; font-size: .92rem; cursor: pointer; transition: background .15s, color .15s; }
nav a:hover, nav button.link:hover { color: var(--ink); background: var(--panel); }

main { padding: 8px 0 88px; }

/* ---------- cards & forms ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  margin-bottom: 18px; }
.card.narrow { max-width: 460px; margin: 40px auto; }
.card.elevated { box-shadow: var(--shadow-sm); border-top: 2px solid var(--gold-deep); }
.grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .grid.two { grid-template-columns: 380px 1fr; align-items: start; } }

label { display: block; font-size: .82rem; color: var(--muted); margin: 16px 0 6px; letter-spacing: .02em; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-3);
  color: var(--ink); font: inherit; transition: border-color .15s;
}
input::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold);
}
input[type=checkbox] { width: auto; margin-right: 8px; accent-color: var(--gold); }
.check { display: flex; align-items: flex-start; color: var(--ink); font-size: .92rem; gap: 2px; }
.row { display: grid; grid-template-columns: 1fr 90px; gap: 8px; }

.search-field { display: flex; gap: 10px; margin-top: 6px; }
.search-field input { font-size: 1.05rem; padding: 14px 16px; letter-spacing: .2px; }
.search-field .btn { flex: none; padding: 0 26px; }
@media (max-width: 560px) { .search-field { flex-direction: column; } .search-field .btn { padding: 13px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: var(--radius);
  border: 1px solid var(--gold); background: var(--gold); color: #1a1405; font: inherit;
  font-weight: 600; letter-spacing: .01em; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); color: #1a1405; }
.btn.ghost { background: transparent; color: var(--gold-2); border-color: var(--line); }
.btn.ghost:hover { background: var(--panel-2); border-color: var(--gold-deep); color: var(--gold); }
.btn.danger { background: transparent; color: var(--err); border-color: var(--err-line); }
.btn.danger:hover { background: rgba(201, 134, 113, .08); }
.btn.small { padding: 8px 16px; font-size: .86rem; }
.btn.block { width: 100%; }

.flash { padding: 13px 18px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid var(--line); background: var(--panel); border-left: 3px solid var(--line); }
.flash.ok { border-left-color: var(--ok-line); color: var(--ok); }
.flash.erro { border-left-color: var(--err-line); color: var(--err); }
.muted { color: var(--muted); } .muted-2 { color: var(--muted-2); } .small { font-size: .88rem; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 48px; max-width: 700px; }
.hero p.lead { color: var(--muted); font-size: 1.18rem; max-width: 580px; line-height: 1.6; }
.hero .cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero .cta-row .btn.ghost { border-color: var(--line); }
.trust-line { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--muted-2);
  font-size: .86rem; letter-spacing: .01em; }

/* ---------- sections ---------- */
section.block { padding: 56px 0; border-top: 1px solid var(--line-soft); }
section.block:first-of-type { border-top: 0; }
.section-head { max-width: 600px; margin-bottom: 36px; }
.section-head h2 { margin-bottom: .3em; }

.steps { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 30px 26px; background: var(--panel); }
.step .num { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); display: block; margin-bottom: 12px; }
.step h3 { margin-bottom: .4em; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

.features { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 28px 26px; background: var(--panel); }
.feature .icon { color: var(--gold); display: inline-flex; margin-bottom: 16px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: .4em; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

.disclaimer { border-left: 2px solid var(--gold-deep); padding: 4px 20px; color: var(--muted); font-size: .92rem; line-height: 1.65; }

.final-cta { text-align: center; padding: 68px 0; border-top: 1px solid var(--line-soft); }
.final-cta h2 { margin-bottom: .3em; }
.final-cta p { color: var(--muted); margin-bottom: 28px; }

/* ---------- badges & watch list ---------- */
.badge { display: inline-block; font-size: .74rem; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge.on { color: var(--ok); border-color: var(--ok-line); }
.badge.off { color: var(--muted); } .badge.bad { color: var(--err); border-color: var(--err-line); }
.watch { border-top: 1px solid var(--line-soft); padding: 18px 0; }
.watch:first-child { border-top: 0; }
.watch .head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.watch .head strong { font-family: var(--font-display); font-size: 1.08rem; letter-spacing: .1px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.actions form { margin: 0; }
.inline { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 8px; }
@media (max-width: 560px) { .inline { grid-template-columns: 1fr; } }
details > summary { cursor: pointer; color: var(--gold-2); font-size: .9rem; }

/* ---------- quadros: última movimentação e horário das consultas ---------- */
.stats-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.stat { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 10px 16px; }
.stat-label { display: block; font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px; }
.stat-value { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-2); }
.checks-details { margin-top: 10px; }
.check-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.check-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .86rem;
  color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 6px; }
.check-list li:first-child { border-top: 0; padding-top: 0; }

.pub { border-top: 1px solid var(--line-soft); padding: 16px 0; }
.pub:first-child { border-top: 0; }
.pub .meta { color: var(--muted); font-size: .88rem; }
.pub pre { white-space: pre-wrap; word-break: break-word; font: inherit; background: var(--panel-3); padding: 14px; border-radius: var(--radius); margin: 10px 0 0; }
.pub .explicacao { border-left: 2px solid var(--gold-deep); padding: 2px 14px; margin: 10px 0 0; color: var(--muted);
  font-size: .88rem; font-style: italic; }
.pub .doc-link { display: inline-flex; margin-top: 12px; }

.timeline-date { color: var(--gold); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase;
  font-weight: 600; margin: 22px 0 2px; }
.timeline-date:first-of-type { margin-top: 4px; }

.banner { border: 1px solid var(--line); border-left: 2px solid var(--gold); background: var(--panel); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; }

.empty { padding: 32px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- account / register split ---------- */
.split { display: grid; gap: 32px; align-items: start; margin: 40px 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 420px; } }
.split .pitch { padding-top: 10px; }
.split .pitch ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.split .pitch li { display: flex; gap: 14px; color: var(--muted); font-size: .96rem; align-items: flex-start; }
.split .pitch li svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 4px; }
.split .pitch li b { color: var(--ink); }

footer { border-top: 1px solid var(--line-soft); color: var(--muted-2); font-size: .85rem; padding: 28px 0 56px; }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.legal h2 { margin-top: 1.4em; } .legal li { margin: .3em 0; }
.notice { border-left: 2px solid var(--err); padding: 4px 16px; color: var(--muted); font-size: .92rem; }
/* Dedicated process flows */
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.page-head { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; padding:42px 0 26px; }
.page-head h1 { margin-bottom:.2em; }
.page-head .eyebrow { display:flex; }
.back-link { display:block; margin-bottom:14px; }
.form-layout { display:grid; grid-template-columns:minmax(0, 1.35fr) minmax(260px, .65fr); gap:18px; align-items:start; }
.form-layout .card { margin-bottom:0; }
.form-layout form { max-width:700px; }
.field-help { color:var(--muted); font-size:.88rem; margin:7px 0 14px; }
.form-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.guidance ol { padding-left:22px; color:var(--muted); }
.guidance li { padding:0 0 12px 4px; }
.detail-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.detail-summary > div { display:flex; flex-direction:column; align-items:flex-start; gap:7px; min-width:0; }
.detail-summary strong { overflow-wrap:anywhere; }
.section-title-row,.movement-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.section-title-row { justify-content:space-between; }
.section-title-row h2 { margin:0; }
.filter-form { display:grid; grid-template-columns:minmax(0,1fr) 150px auto; gap:8px 12px; align-items:end; }
.filter-form label { grid-row:1; margin-bottom:0; }
.filter-form button { align-self:end; }
.add-process-card .btn { margin-top:6px; }
@media(max-width:760px) {
 .page-head { align-items:flex-start; flex-direction:column; padding:28px 0 20px; }
 .form-layout { grid-template-columns:1fr; }
 .detail-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .filter-form { grid-template-columns:1fr; }
 .filter-form label { grid-row:auto; margin-top:8px; }
 .filter-form button { width:100%; }
}
@media(max-width:420px) { .detail-summary { grid-template-columns:1fr; } .form-actions .btn { width:100%; } }
.error-text { color:var(--err); }
.spaced-details { margin-top:8px; }
.logout-form { margin:0; }
.banner form { margin-top:8px; }
.register-heading { font-size:clamp(1.6rem,3vw,2.1rem); }
.register-consent { margin-top:16px; }
.register-submit { margin-top:18px; }
.filter-form { display:grid; grid-template-columns:minmax(0,1fr) 130px; gap:10px 12px; align-items:end; }
.filter-field { min-width:0; }
.filter-field label { margin-top:0; margin-bottom:6px; }
.filter-form button { grid-column:1 / -1; justify-self:start; }
@media(max-width:760px) {
 .filter-form { grid-template-columns:1fr; }
 .filter-field label { margin-top:0; }
 .filter-form button { width:100%; justify-self:stretch; grid-column:auto; }
}

.confirmation-card h1{font-size:clamp(1.6rem,5vw,2.2rem)}
.confirmation-card strong{overflow-wrap:anywhere}
.confirmation-code{font-size:1.4rem;letter-spacing:.25em}
.confirmation-resend{margin-top:1.5rem}
.confirmation-card .btn{max-width:100%}
button:disabled{opacity:.55;cursor:not-allowed}

/* Acesso e recuperação: ritmo comum entre campos, ação principal e links. */
.auth-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.auth-page::before { flex: none; }
.auth-page main { flex: 1; padding: 64px 0; }
.auth-page main > .wrap { max-width: 480px; }
.auth-card.card { max-width: 480px; padding: 40px; margin: 0 auto;
  border-top: 2px solid var(--gold-deep); border-radius: 10px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel) 50%);
  box-shadow: var(--shadow); }
.auth-header { margin-bottom: 32px; }
.auth-header .eyebrow { margin-bottom: 16px; }
.auth-header h1 { font-size: clamp(1.8rem, 5vw, 2.2rem); line-height: 1.2; margin-bottom: 12px; }
.auth-header p { font-size: .94rem; line-height: 1.7; margin: 0; }
.auth-form { display: grid; gap: 24px; }
.auth-field { min-width: 0; }
.auth-field label { margin: 0 0 8px; }
.auth-field input { min-height: 54px; border-radius: 6px; }
.auth-field-help { margin: 8px 0 0; }
.auth-submit { width: 100%; min-height: 54px; border-radius: 6px; white-space: normal; }
.auth-footer { display: grid; gap: 12px; margin-top: 28px; padding-top: 16px;
  border-top: 1px solid var(--line-soft); }
.auth-footer p { margin: 0; }
.auth-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.auth-footer > a { justify-self: start; }
.auth-note { margin: 24px 0 0; padding: 16px; line-height: 1.7;
  border: 1px solid var(--line-soft); border-radius: 6px; background: var(--bg-2); }
.auth-field input:autofill { box-shadow: 0 0 0 1000px var(--panel-3) inset;
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink); }
.auth-field input:autofill:focus { box-shadow: 0 0 0 1000px var(--panel-3) inset, 0 0 0 1px var(--gold); }
@media (max-width: 560px) {
  .auth-page main { padding: 32px 0 40px; }
  .auth-card.card { padding: 28px 22px; }
  .auth-header { margin-bottom: 26px; }
  .auth-note { padding: 14px; }
}

/* Painel: cartões de processos com navegação por link nativo, sem scripts. */
.dashboard-head p { margin-bottom: 0; max-width: 620px; }
.dashboard-head > .btn { flex: none; }
.dashboard-toolbar .section-title-row { margin-bottom: 22px; }
.dashboard-toolbar h2 { display: flex; align-items: center; gap: 12px; }
.dashboard-toolbar .filter-form { grid-template-columns: minmax(0, 1fr) 170px auto; }
.dashboard-toolbar .filter-form button { grid-column: auto; }
.clear-filters { grid-column: 1 / -1; justify-self: start; }
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.process-card.card { position: relative; isolation: isolate; min-width: 0; margin: 0; padding: 22px;
  border: 1px solid var(--line); border-top: 2px solid var(--gold-deep); box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere; }
.process-card:hover { border-color: var(--gold-deep); }
.process-card .head { flex-wrap: nowrap; align-items: flex-start; gap: 12px; }
.process-card h3 { min-width: 0; margin: 0; font-size: 1.3rem; line-height: 1.3; }
.process-card .head > .badge { flex: none; }
.process-card-link { color: var(--ink); }
.process-card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); z-index: 0; }
.process-card-link:focus-visible { box-shadow: none; }
.process-card-link:focus-visible::after { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.process-card .actions, .process-card details { position: relative; z-index: 1; }
.process-cnj { margin: 10px 0 20px; }
.process-metadata { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
.process-metadata dt { color: var(--muted); font-size: .75rem; margin-bottom: 4px; }
.process-metadata dd { margin: 0; font-size: .88rem; }
.process-card .stats-row { margin: 0 0 18px; }
.process-card .stat { width: 100%; }
.process-card .stat-label { color: var(--muted); }
.process-card .actions { margin: 0 0 18px; }
.process-card details { border-top: 1px solid var(--line-soft); padding-top: 12px; margin-top: 12px; }
.process-card details > summary { padding: 2px 0; }
.process-card details[open] > summary { margin-bottom: 12px; }
.process-card .inline { grid-template-columns: minmax(0, 1fr); }
.process-card details form + form, .process-card details input + form { margin-top: 12px; }
.process-card .btn { max-width: 100%; white-space: normal; }
.dashboard-empty { grid-column: 1 / -1; padding: 48px 22px; }
.dashboard-empty h3 { font-size: 1.5rem; }
@media (min-width: 760px) { .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .dashboard-toolbar .filter-form { grid-template-columns: minmax(0, 1fr); }
  .dashboard-toolbar, .process-card.card { padding: 20px; }
  .dashboard-head > .btn { width: 100%; }
}
@media (max-width: 360px) {
  .process-card .head { flex-wrap: wrap; }
  .process-metadata { grid-template-columns: minmax(0, 1fr); }
}

/* Planos e mensalidades: estilos isolados para preservar painel e autenticação. */
.billing-intro { max-width: 720px; margin: 64px auto 44px; text-align: center; }
.billing-intro p { color: var(--muted); margin: 20px 0 0; }
.billing-intro-small { margin-top: 48px; }
.billing-intro-small h1 { font-size: clamp(2rem, 5vw, 3rem); }
.billing-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; max-width: 960px; margin: auto; align-items: start; }
.billing-plan { background: linear-gradient(145deg, #241e14, var(--panel) 65%); border: 1px solid var(--gold-deep); border-radius: 12px; padding: 38px; box-shadow: var(--shadow); min-width: 0; }
.billing-label { display: inline-block; color: var(--gold-2); font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 24px; }
.billing-plan h2 { font-size: 1.8rem; }
.billing-price { font-family: var(--font-display); font-size: 3.35rem; line-height: 1.2; margin: 20px 0 24px; white-space: nowrap; }
.billing-price span { font: 1rem var(--font-body); color: var(--muted); margin-left: 4px; }
.billing-benefits { list-style: none; padding: 16px 0; border-top: 1px solid var(--line); }
.billing-benefits li { padding: 7px 0 7px 24px; position: relative; font-size: .94rem; }
.billing-benefits li::before { content: '✓'; color: var(--gold-2); position: absolute; left: 0; }
.billing-primary { display: flex; justify-content: space-between; width: 100%; margin: 14px 0 22px; }
.billing-fine { font-size: .82rem; line-height: 1.65; color: var(--muted); margin-top: 20px; }
.billing-plan > p:last-child { margin-bottom: 0; }
.billing-details { padding: 28px 0; }
.billing-details > div { margin-top: 30px; }
.billing-details h2 { font-size: 2rem; }
.billing-details p { color: var(--muted); }
.billing-checkout { gap: 32px; grid-template-columns: .9fr 1.1fr; }
.billing-summary { padding: 30px; }
.billing-summary dl { margin: 24px 0; border-top: 1px solid var(--line); padding-top: 20px; }
.billing-summary dt { color: var(--muted); font-size: .82rem; }
.billing-summary dd { margin: 3px 0 16px; }
.billing-payment { padding: 28px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; min-width: 0; }
.billing-state { display: inline-block; padding: 5px 12px; border: 1px solid var(--gold-deep); color: var(--gold-2); border-radius: 40px; font-size: .8rem; margin-bottom: 24px; }
.billing-success { color: var(--ok); border-color: var(--ok-line); }
.billing-qr { display: block; margin: 24px auto; max-width: 100%; background: white; }
.billing-payment textarea { width: 100%; resize: vertical; font-size: .8rem; overflow-wrap: anywhere; }
.billing-payment form { margin: 20px 0; }
.billing-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.billing-links a { padding: 4px 0; color: var(--gold-2); font-size: .85rem; text-decoration: underline; }
.billing-history { max-width: 800px; margin: auto; }
nav a[aria-current=page] { color: var(--gold-2); background: var(--panel); }
@media (max-width: 700px) {
 .billing-intro { margin: 38px auto 28px; }
 .billing-layout { grid-template-columns: 1fr; gap: 24px; }
 .billing-plan, .billing-payment { padding: 26px 22px; }
 .billing-price { font-size: 2.8rem; }
 .billing-details { padding: 12px 6px; }
 .billing-payment .btn { width: 100%; }
}
