/* Longevidade Funcional — tema preto e dourado */
:root {
  --bg: #0a0908;
  --bg-2: #121009;
  --surface: #1a1712;
  --surface-2: #211d16;
  --surface-3: #2a251c;
  --border: rgba(214, 175, 84, .18);
  --border-soft: rgba(214, 175, 84, .09);
  --gold-1: #f6e7b0;
  --gold-2: #d9a93b;
  --gold-3: #9c7415;
  --gold-grad: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  --text: #f3eee1;
  --text-dim: #b8ad97;
  --text-faint: #7d735e;
  --rose: #c8646a;
  --amber: #d08a45;
  --teal: #4fa88f;
  --blue: #6c9bd2;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 700px at 50% -10%, rgba(217, 169, 59, .10), transparent 60%),
    radial-gradient(800px 500px at 90% 100%, rgba(79, 168, 143, .05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .serif { font-family: 'Fraunces', Georgia, serif; font-weight: 500; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold-1); }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--border-soft); margin: 1.5rem 0; }
.gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); font-size: .88em; }
.small { font-size: .85rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .75rem; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .75rem; } .mb-2 { margin-bottom: 1.5rem; }
.eyebrow { display: inline-block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); margin-bottom: .8rem; font-weight: 600; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.3rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; font-size: .92rem;
  cursor: pointer; transition: transform .15s, border-color .2s, background .2s, color .2s; text-decoration: none; line-height: 1.2;
}
.btn:hover { border-color: var(--gold-2); color: var(--gold-1); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-gold { background: var(--gold-grad); color: #1a1408; border-color: transparent; box-shadow: 0 8px 30px rgba(217, 169, 59, .25); }
.btn-gold:hover { color: #000; filter: brightness(1.06); }
.btn-ghost { background: transparent; }
.btn-danger { border-color: rgba(200, 100, 106, .5); color: #f0b4b7; background: rgba(200, 100, 106, .08); }
.btn-danger:hover { border-color: var(--rose); color: #fff; }
.btn-sm { padding: .42rem .85rem; font-size: .82rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--gold-2); font: inherit; cursor: pointer; }
.linkbtn:hover { color: var(--gold-1); }

/* Cartões */
.card {
  background: linear-gradient(180deg, var(--surface), rgba(26, 23, 18, .88));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; position: relative;
}
.card + .card { margin-top: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.kpi { padding: 20px; }
.kpi .label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.kpi .value { font-family: 'Fraunces', serif; font-size: 2rem; margin-top: .3rem; }
.kpi .sub { font-size: .82rem; color: var(--text-faint); }

/* Badges */
.badge { display: inline-block; padding: .18rem .62rem; border-radius: 999px; font-size: .74rem; font-weight: 600; border: 1px solid var(--border); color: var(--text-dim); background: var(--surface-2); white-space: nowrap; }
.badge-paid, .badge-gold { color: #1a1408; background: var(--gold-grad); border-color: transparent; }
.badge-free { color: var(--text-dim); }
.badge-ok, .badge-good, .badge-sent, .badge-active { color: #bfe9dc; border-color: rgba(79, 168, 143, .45); background: rgba(79, 168, 143, .12); }
.badge-warn, .badge-pending, .badge-paused { color: #f3d1ac; border-color: rgba(208, 138, 69, .45); background: rgba(208, 138, 69, .12); }
.badge-bad, .badge-failed, .badge-overdue, .badge-inactive { color: #f4c1c4; border-color: rgba(200, 100, 106, .5); background: rgba(200, 100, 106, .12); }
.badge-elite { color: #1a1408; background: var(--gold-grad); border-color: transparent; }
.badge-done, .badge-cancelled { color: var(--text-faint); }

/* Alertas */
.flash { padding: .9rem 1.1rem; border-radius: var(--radius-md); border: 1px solid var(--border); margin-bottom: 1rem; background: var(--surface-2); }
.flash-success { border-color: rgba(79, 168, 143, .5); background: rgba(79, 168, 143, .1); }
.flash-error { border-color: rgba(200, 100, 106, .55); background: rgba(200, 100, 106, .1); }
.flash-info { border-color: rgba(217, 169, 59, .4); background: rgba(217, 169, 59, .07); }
.notice { padding: 1rem 1.2rem; border-left: 3px solid var(--gold-2); background: rgba(217, 169, 59, .06); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Formulários */
form { margin: 0; }
.field { margin-bottom: 1rem; }
.field label, .label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-dim); margin-bottom: .35rem; letter-spacing: .02em; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=url], input[type=search], input[type=file], select, textarea {
  width: 100%; padding: .72rem .9rem; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(217, 169, 59, .15); }
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-2) 50%), linear-gradient(135deg, var(--gold-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--text-dim); margin-bottom: .6rem; cursor: pointer; }
.check input { margin-top: .3rem; accent-color: var(--gold-2); width: 16px; height: 16px; flex: none; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 640px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.help { font-size: .8rem; color: var(--text-faint); margin-top: .3rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.inline-form { display: inline; }
fieldset { border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 1rem 1.2rem; margin: 0 0 1rem; }
legend { padding: 0 .4rem; color: var(--gold-2); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }

/* Tabelas */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border-soft); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .75rem .9rem; text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
th { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; background: rgba(217, 169, 59, .04); white-space: nowrap; }
tbody tr:hover { background: rgba(217, 169, 59, .03); }
tbody tr:last-child td { border-bottom: 0; }
td .btn-row { flex-wrap: nowrap; }
.empty { padding: 2rem; text-align: center; color: var(--text-faint); }

/* ---------- Site público ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(10, 9, 8, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-soft); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 70px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); }
.brand img { height: 38px; width: auto; }
.brand b { font-family: 'Fraunces', serif; font-weight: 500; display: block; line-height: 1.1; }
.brand span { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--text-dim); font-size: .9rem; }
.nav a:hover, .nav a.active { color: var(--gold-1); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: .4rem .7rem; font-size: 1.1rem; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg-2); flex-direction: column; padding: 1.2rem; border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
}

.hero { padding: 90px 0 70px; position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 560px; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: 28px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.hero-figure::after { content: ''; position: absolute; inset: -20px; border-radius: 40px; background: radial-gradient(circle at 30% 20%, rgba(217, 169, 59, .25), transparent 60%); z-index: -1; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } .hero { padding-top: 50px; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.stats div { border-left: 2px solid var(--gold-3); padding-left: 1rem; }
.stats b { font-family: 'Fraunces', serif; font-size: 1.9rem; display: block; color: var(--gold-1); font-weight: 500; }
.stats span { font-size: .82rem; color: var(--text-dim); }

.section { padding: 80px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(26, 23, 18, .55), transparent); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; }
.icon-card .icon { font-size: 1.8rem; margin-bottom: .6rem; }
blockquote { margin: 2rem 0; padding: 1.5rem 2rem; border-left: 3px solid var(--gold-2); font-family: 'Fraunces', serif; font-size: 1.35rem; font-style: italic; background: rgba(217, 169, 59, .04); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
blockquote cite { display: block; margin-top: .6rem; font-size: .85rem; color: var(--text-dim); font-style: normal; font-family: 'Inter', sans-serif; }

/* BOLT */
.bolt-box { text-align: center; padding: 34px 24px; }
.bolt-timer { font-family: 'Fraunces', serif; font-size: clamp(3.5rem, 10vw, 5.5rem); line-height: 1; margin: 1rem 0 1.4rem; font-variant-numeric: tabular-nums; }
.bolt-ring { width: 210px; height: 210px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border); position: relative; background: radial-gradient(circle, rgba(217, 169, 59, .08), transparent 70%); }
.bolt-ring.running { animation: pulse 2s ease-in-out infinite; border-color: var(--gold-2); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 169, 59, .35); } 50% { box-shadow: 0 0 0 18px rgba(217, 169, 59, 0); } }
.bolt-result { margin-top: 1.5rem; padding: 1.4rem; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface-2); text-align: left; }
.bolt-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.bolt-steps li { counter-increment: s; position: relative; padding: .5rem 0 .5rem 2.6rem; color: var(--text-dim); }
.bolt-steps li::before { content: counter(s); position: absolute; left: 0; top: .45rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #1a1408; font-weight: 700; font-size: .85rem; }
tr.lvl-bad td:first-child { border-left: 3px solid var(--rose); }
tr.lvl-warn td:first-child { border-left: 3px solid var(--amber); }
tr.lvl-ok td:first-child { border-left: 3px solid var(--teal); }
tr.lvl-good td:first-child { border-left: 3px solid #7cc6b0; }
tr.lvl-elite td:first-child { border-left: 3px solid var(--gold-2); }

/* Benefícios */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filter-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); padding: .45rem 1rem; border-radius: 999px; font: inherit; font-size: .85rem; cursor: pointer; }
.filter-btn.active, .filter-btn:hover { background: var(--gold-grad); color: #1a1408; border-color: transparent; }
.benefit .num { font-size: .7rem; letter-spacing: .18em; color: var(--gold-2); font-weight: 600; }
.benefit h4 { font-size: 1.05rem; margin: .4rem 0; }
.benefit p { font-size: .9rem; color: var(--text-dim); }
.benefit .cite { font-size: .78rem; color: var(--text-faint); border-top: 1px solid var(--border-soft); padding-top: .6rem; }

.exercise .level { font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; color: var(--gold-2); }
.exercise ol { padding-left: 1.2rem; color: var(--text-dim); font-size: .92rem; }
.exercise .meta { display: flex; gap: 1rem; font-size: .82rem; color: var(--text-faint); }

/* Coerência cardíaca */
.breath { display: grid; place-items: center; padding: 2rem 0; }
.breath-circle { width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(246, 231, 176, .35), rgba(217, 169, 59, .15) 60%, transparent 70%); border: 1px solid var(--gold-2); display: grid; place-items: center; font-family: 'Fraunces', serif; font-size: 1.3rem; transform: scale(.7); transition: transform 4s ease-in-out; }
.breath-circle.inhale { transform: scale(1.05); }
.breath-circle.exhale { transform: scale(.7); transition-duration: 6s; }

/* Protocolo */
.day { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); margin-bottom: .8rem; overflow: hidden; }
.day summary { list-style: none; cursor: pointer; padding: 1rem 1.2rem; display: flex; align-items: center; gap: 1rem; }
.day summary::-webkit-details-marker { display: none; }
.day .daynum { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--gold-1); font-family: 'Fraunces', serif; border: 1px solid var(--border); }
.day.done .daynum { background: var(--gold-grad); color: #1a1408; }
.day .day-body { padding: 0 1.2rem 1.2rem 4.2rem; color: var(--text-dim); font-size: .93rem; }
.day dl { margin: 0; display: grid; grid-template-columns: 160px 1fr; gap: .4rem 1rem; }
.day dt { color: var(--gold-2); font-weight: 600; }
.day dd { margin: 0; }
@media (max-width: 640px) { .day .day-body { padding-left: 1.2rem; } .day dl { grid-template-columns: 1fr; } }

.author { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: center; }
.author img { border-radius: 24px; border: 1px solid var(--border); }
@media (max-width: 760px) { .author { grid-template-columns: 1fr; } .author img { max-width: 260px; } }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: .35rem 0 .35rem 1.6rem; position: relative; color: var(--text-dim); }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--gold-2); font-weight: 700; }

.cta { text-align: center; padding: 60px 30px; border-radius: 30px; background: radial-gradient(circle at 50% 0%, rgba(217, 169, 59, .18), transparent 60%), var(--surface); border: 1px solid var(--border); }
.site-footer { border-top: 1px solid var(--border-soft); padding: 36px 0; color: var(--text-faint); font-size: .85rem; margin-top: 40px; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* Auth */
.auth-wrap { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 480px; }
.auth-card h1 { font-size: 2rem; }

/* ---------- App (cliente e admin) ---------- */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, #100e0a, #0c0b08); border-right: 1px solid var(--border-soft); padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 0 8px 20px; border-bottom: 1px solid var(--border-soft); margin-bottom: 14px; }
.sidebar nav a, .sidebar nav .linkbtn { display: flex; align-items: center; gap: .7rem; padding: .62rem .8rem; border-radius: 10px; color: var(--text-dim); font-size: .9rem; margin-bottom: 2px; width: 100%; text-align: left; }
.sidebar nav a:hover, .sidebar nav .linkbtn:hover { background: rgba(217, 169, 59, .06); color: var(--text); }
.sidebar nav a.active { background: rgba(217, 169, 59, .12); color: var(--gold-1); box-shadow: inset 2px 0 0 var(--gold-2); }
.sidebar nav .ico { width: 20px; text-align: center; opacity: .9; }
.sidebar .group-label { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); padding: 1rem .8rem .4rem; }
.main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 26px; flex-wrap: wrap; }
.topbar h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.userchip { display: flex; align-items: center; gap: .7rem; font-size: .88rem; color: var(--text-dim); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #1a1408; font-weight: 700; font-size: .85rem; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .menu-toggle { display: inline-flex; }
}

.tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--border-soft); margin-bottom: 1.4rem; flex-wrap: wrap; }
.tabs a { padding: .6rem 1rem; color: var(--text-dim); border-bottom: 2px solid transparent; font-size: .9rem; }
.tabs a.active, .tabs a:hover { color: var(--gold-1); border-bottom-color: var(--gold-2); }

.toolbar { display: flex; gap: .7rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.toolbar .field { margin: 0; min-width: 160px; }
.toolbar .grow { flex: 1; min-width: 220px; }

dl.info { display: grid; grid-template-columns: 150px 1fr; gap: .45rem 1rem; margin: 0; font-size: .92rem; }
dl.info dt { color: var(--text-faint); }
dl.info dd { margin: 0; }

.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--gold-grad); border-radius: 99px; width: 0; transition: width .6s; }

/* Gráficos SVG */
.chart { width: 100%; min-height: 190px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis { stroke: rgba(214, 175, 84, .15); stroke-width: 1; }
.chart .grid-line { stroke: rgba(214, 175, 84, .07); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--gold-2); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#goldFade); }
.chart .dot { fill: var(--bg); stroke: var(--gold-1); stroke-width: 2; }
.chart text { fill: var(--text-faint); font-size: 11px; font-family: 'Inter', sans-serif; }
.chart .val { fill: var(--gold-1); font-size: 11px; font-weight: 600; }
.chart .bar { fill: var(--gold-2); opacity: .85; }
.chart-empty { color: var(--text-faint); text-align: center; padding: 3rem 1rem; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.video-card { padding: 0; overflow: hidden; }
.video-card .frame { aspect-ratio: 16 / 9; background: #000; }
.video-card iframe, .video-card video { width: 100%; height: 100%; border: 0; display: block; }
.video-card .body { padding: 16px 18px; }

.diff-up { color: #9fdcc9; }
.diff-down { color: #f0a9ad; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: .6rem 0; border-bottom: 1px solid var(--border-soft); }
.list-plain li:last-child { border-bottom: 0; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--border-soft); }
.switch-row:last-child { border-bottom: 0; }
.sms-counter { font-size: .8rem; color: var(--text-faint); text-align: right; }
.pw-box { font-family: ui-monospace, Menlo, monospace; font-size: 1.15rem; letter-spacing: .05em; padding: .8rem 1rem; background: var(--bg-2); border: 1px dashed var(--gold-2); border-radius: 10px; display: inline-block; }
.upsell { text-align: center; padding: 40px 24px; }
.upsell .icon { font-size: 2.4rem; }
@media print { .sidebar, .topbar .btn, .site-header, .site-footer { display: none; } body { background: #fff; color: #000; } }
.center-row { justify-content: center; }
.bolt-score { font-family: 'Fraunces', serif; font-size: 2.6rem; line-height: 1.1; color: var(--gold-1); }
.btn-row .grow { flex: 1; min-width: 200px; }
.nav a.btn-gold, .nav a.btn-gold:hover { color: #1a1408; }
.grid > .card + .card, .grid > * + .card { margin-top: 0; }
.brand img { height: 40px; width: 40px; filter: drop-shadow(0 2px 10px rgba(217, 169, 59, .3)); }
.sidebar .brand span { letter-spacing: .12em; font-size: .6rem; white-space: nowrap; }
.sms-preview { min-width: 260px; max-width: 420px; white-space: normal; }

/* ---------- Ajustes para telemóvel ---------- */
.grid > *, .main, fieldset, .field, .toolbar > * { min-width: 0; }
fieldset { max-width: 100%; }
.table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  .card { padding: 18px 16px; border-radius: 18px; }
  .section { padding: 52px 0; }
  .hero { padding: 36px 0 40px; }
  .stats { gap: .6rem; }
  .stats b { font-size: 1.4rem; }
  .stats div { padding-left: .6rem; }
  .main { padding: 16px 14px 48px; }
  .topbar { margin-bottom: 18px; }
  .topbar .userchip span:not(.avatar):not(.badge) { display: none; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .field, .toolbar .grow { min-width: 0; width: 100%; }
  .toolbar .btn { width: 100%; }
  .card-head { align-items: flex-start; }
  .btn-row > .btn, .btn-row > form { flex: 0 1 auto; }
  th, td { padding: .6rem .65rem; }
  dl.info { grid-template-columns: 1fr; gap: .1rem; }
  dl.info dd { margin-bottom: .5rem; }
  .kpi .value { font-size: 1.6rem; }
  .bolt-ring { width: 170px; height: 170px; }
  .author img { max-width: 200px; }
  blockquote { padding: 1rem 1.2rem; font-size: 1.1rem; }
  .video-grid { grid-template-columns: 1fr; }
  .sms-preview { min-width: 200px; }
  .site-header .container { height: 62px; }
  .nav { top: 62px; }
}
/* Tabelas de edição (exercícios / campos) roláveis no telemóvel */
#items input, #items select, #fields input, #fields select { min-width: 110px; }
@media (max-width: 640px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: .7rem .2rem; border-bottom: 1px solid var(--border); }
  table.stack tbody tr:last-child { border-bottom: 0; }
  table.stack td { border: 0; padding: .3rem .7rem; display: flex; gap: .8rem; justify-content: space-between; align-items: center; text-align: right; }
  table.stack td[data-label]::before { content: attr(data-label); flex: none; max-width: 45%; text-align: left; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
  table.stack td:not([data-label]), table.stack td[data-label=""] { justify-content: flex-start; text-align: left; }
  table.stack td[data-label=""]::before { display: none; }
  table.stack td input, table.stack td select { max-width: 60%; min-width: 0; }
  table.stack td.sms-preview { display: block; text-align: left; max-width: none; }
  table.stack td.sms-preview::before { display: block; margin-bottom: .3rem; max-width: none; }
  table.stack tr[class^="lvl-"] td:first-child { border-left: 0; }
  table.stack td .btn-row { justify-content: flex-end; flex-wrap: wrap; }
  .table-wrap { border: 0; }
}
