/* Dandhara Mota Fitness — identidade roxo neon derivada do logo. */
:root {
  --bg: #09060F;
  --bg-2: #0E0918;
  --surface: #150F24;
  --surface-2: #1C1533;
  --surface-3: #241B3F;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(168, 85, 247, .35);
  --violet: #8B5CF6;
  --violet-2: #A855F7;
  --violet-3: #C084FC;
  --glow: rgba(168, 85, 247, .38);
  --text: #F2EEFB;
  --muted: #9C93B4;
  --ok: #34D399;
  --warn: #FBBF24;
  --bad: #F87171;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .4rem; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
small { line-height: 1.4; }

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--violet-3);
  margin: 0 0 .5rem;
  font-weight: 700;
}
.muted { color: var(--muted); }
.hidden { display: none !important; }
.mt { margin-top: 1.4rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary, .btn.pink {
  background: linear-gradient(120deg, var(--violet), var(--violet-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px var(--glow);
}
.btn.primary:hover { box-shadow: 0 14px 38px var(--glow); }
.btn.ghost, .btn.outline { background: rgba(255, 255, 255, .04); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--line-strong); }
.btn.danger { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .45); color: #fca5a5; }
.btn.danger:hover { background: rgba(239, 68, 68, .2); border-color: rgba(239, 68, 68, .7); }
.btn.sm { padding: .5rem .95rem; font-size: .85rem; }
.text-link { color: var(--violet-3); font-weight: 600; }
.text-link:hover { color: var(--violet-2); }
.link-danger { background: none; border: 0; color: var(--bad); font: inherit; cursor: pointer; padding: 0; font-size: .85rem; }
.link-danger:hover { text-decoration: underline; }

/* ==========================================================
   SITE PÚBLICO
   ========================================================== */
.public { background: radial-gradient(1200px 600px at 80% -10%, rgba(139, 92, 246, .22), transparent 60%), var(--bg); }
.public-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem clamp(1rem, 5vw, 4rem);
  background: rgba(9, 6, 15, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.public-nav .brand { display: flex; align-items: center; gap: .7rem; font-weight: 800; letter-spacing: .04em; }
.public-nav .brand img { width: 42px; height: 42px; border-radius: 12px; filter: drop-shadow(0 0 12px var(--glow)); }
.public-nav .brand .mark { display: grid; line-height: 1.1; }
.public-nav .brand .mark small { font-weight: 500; font-size: .68rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.nav-cta { font-size: .9rem; padding: .6rem 1.2rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--violet-3); font-weight: 600; }
.nav-cta:hover { background: rgba(139, 92, 246, .14); }

.hero { position: relative; min-height: 88vh; display: grid; align-items: end; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 6, 15, .35) 0%, rgba(9, 6, 15, .82) 62%, var(--bg) 100%); }
.hero-copy { position: relative; padding: clamp(2rem, 8vw, 6rem) clamp(1rem, 5vw, 4rem) 4rem; max-width: 820px; }
.hero-copy h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 800; }
.hero-copy h1 span { background: linear-gradient(120deg, var(--violet-3), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p { color: #D9D2E9; font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-sign { position: relative; display: flex; flex-wrap: wrap; gap: 2rem; padding: 1.4rem clamp(1rem, 5vw, 4rem) 3rem; color: var(--muted); font-size: .9rem; }
.hero-sign b { color: var(--text); display: block; font-size: 1.4rem; }

.light { padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 4rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-head h2, .statement h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.statement p { color: var(--muted); max-width: 720px; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 2rem; }
.pillars > div {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem;
}
.pillars b { display: block; margin-bottom: .35rem; color: var(--violet-3); }
.photo-break { height: clamp(240px, 40vh, 460px); overflow: hidden; }
.photo-break img { width: 100%; height: 100%; object-fit: cover; }

.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.service-list article {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  transition: border-color .2s ease, transform .2s ease;
}
.service-list article:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.service-list b { display: block; font-size: 1.1rem; margin-bottom: .3rem; }
.service-list span { color: var(--violet-3); font-weight: 700; }

.plans { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.plan {
  background: linear-gradient(170deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: 22px; padding: 1.8rem; display: flex; flex-direction: column; gap: .6rem;
}
.plan.featured { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), 0 20px 60px var(--glow); }
.plan h3 { font-size: 1.3rem; }
.plan .price { font-size: 2.2rem; font-weight: 800; color: var(--violet-3); }
.plan .btn { margin-top: auto; }

.contact { display: grid; gap: 2rem; grid-template-columns: minmax(280px, 1fr) minmax(300px, 1fr); align-items: start; }
.contact form { display: grid; gap: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.contact input, .contact textarea, .contact select {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit;
}
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.success { background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .4); color: #9DF3D2; padding: .9rem 1.1rem; border-radius: 12px; }

footer.public-foot { padding: 2rem clamp(1rem, 5vw, 4rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }

/* Detalhes do site público */
.public-nav nav { display: flex; gap: 1.6rem; font-size: .92rem; color: var(--muted); }
.public-nav nav a:hover { color: var(--text); }
.public-nav .menu { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: .35rem .6rem; font-size: 1.1rem; cursor: pointer; }
.public-nav.open nav { display: flex; }
.eyebrow i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-2); margin-right: .4rem; box-shadow: 0 0 8px var(--violet-2); }
.hero-photo { background: url('dandhara-hero.jpg') center 22% / cover no-repeat; }
.hero-copy em { font-style: normal; background: linear-gradient(120deg, var(--violet-3), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy h1 em { font-style: normal; }
.play { color: var(--muted); font-size: .92rem; align-self: center; padding: .8rem .4rem; }
.play:hover { color: var(--violet-3); }
.hero-sign { font-weight: 800; font-size: 1.4rem; letter-spacing: .1em; align-items: center; }
.hero-sign small { font-weight: 500; font-size: .68rem; letter-spacing: .16em; color: var(--muted); }

.statement { display: grid; gap: 2rem; grid-template-columns: auto minmax(260px, 1fr) minmax(240px, .85fr); align-items: start; }
.statement h2 em, .section-head h2 em { font-style: normal; background: linear-gradient(120deg, var(--violet-3), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pillars strong { display: grid; gap: .2rem; font-size: 2.6rem; color: var(--violet-3); background: none; border: 0; padding: 0; }
.pillars strong small { font-size: .78rem; color: var(--muted); font-weight: 500; }
.pillars p { margin: 0; }

.photo-break { position: relative; display: grid; place-items: center; text-align: center; background: url('dandhara-training.jpg') center 30% / cover no-repeat; }
.photo-break::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 6, 15, .72), rgba(9, 6, 15, .82)); }
.photo-break div { position: relative; z-index: 1; font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.25; }
.photo-break em { font-style: normal; color: var(--violet-3); }
.photo-break b { display: block; color: var(--violet-2); font-size: 1.6rem; margin-bottom: .4rem; }

.service-list article { position: relative; display: grid; gap: .4rem; }
.service-list small { font-size: .74rem; letter-spacing: .18em; color: var(--violet-3); font-weight: 700; }
.service-list h3 { font-size: 1.15rem; }
.service-list p { color: var(--muted); font-size: .9rem; margin: 0; }
.service-list article > a { position: absolute; top: 1.2rem; right: 1.3rem; color: var(--violet-3); font-size: 1.1rem; }

.plan label { display: inline-block; width: fit-content; padding: .25rem .7rem; border-radius: 999px; background: rgba(168, 85, 247, .18); color: var(--violet-3); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.plan b { font-size: 1.2rem; }
.plan strong { font-size: 2.2rem; font-weight: 800; color: var(--violet-3); display: flex; align-items: baseline; gap: .25rem; }
.plan strong small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.plan p { color: var(--muted); font-size: .9rem; margin: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .88rem; color: var(--muted); }
.contact > div > small { color: var(--muted); }
.contact label { color: var(--muted); }
.contact h2 { margin-bottom: .6rem; }

/* ---------- Parcerias (site público) ---------- */
.partners-section { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.partner-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.partner-empty { grid-column: 1 / -1; margin: 0; }
.partner-card {
  position: relative; display: grid; gap: .45rem; align-content: start;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem;
  transition: border-color .2s ease, transform .2s ease;
}
.partner-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.partner-card.featured { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), 0 18px 46px var(--glow); }
.partner-card > label {
  position: absolute; top: 1rem; right: 1rem; padding: .2rem .6rem; border-radius: 999px;
  background: rgba(168, 85, 247, .18); color: var(--violet-3);
  font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.partner-mark {
  width: 62px; height: 62px; border-radius: 18px; overflow: hidden; margin-bottom: .4rem;
  display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
}
.partner-mark img { width: 100%; height: 100%; object-fit: contain; padding: .35rem; background: #fff; }
.partner-mark span { font-size: 1.15rem; font-weight: 800; color: var(--violet-3); letter-spacing: .04em; }
.partner-card h3 { font-size: 1.1rem; margin: 0; }
.partner-card > small { color: var(--violet-3); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.partner-card p { margin: .2rem 0 0; color: var(--muted); font-size: .88rem; }
.partner-benefit { font-size: .84rem; color: var(--ok); font-weight: 600; }
.partner-since { font-style: normal; font-size: .76rem; color: var(--muted); }
.partner-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.partner-links a {
  padding: .32rem .75rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .76rem; font-weight: 600; color: var(--violet-3); background: rgba(139, 92, 246, .08);
}
.partner-links a:hover { border-color: var(--line-strong); color: var(--text); }
.partner-refresh > * { animation: partner-in .35s ease both; }
@keyframes partner-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Parcerias no painel */
.item.partner .partner-id { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.item.partner .partner-id > div { display: grid; gap: .1rem; min-width: 0; }
.partner-logo {
  width: 52px; height: 52px; border-radius: 15px; flex: none; object-fit: contain;
  background: #fff; border: 1px solid var(--line); padding: .25rem;
}
.partner-logo.empty-logo {
  display: grid; place-items: center; padding: 0; background: linear-gradient(135deg, var(--violet), var(--violet-2));
  color: #fff; font-weight: 800; font-size: .82rem; border-color: transparent;
}
.item.partner .chips { margin-top: .3rem; }
.item.partner details { border-top: 1px dashed var(--line); padding-top: .5rem; }

/* ==========================================================
   LOGIN
   ========================================================== */
.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem;
  background: radial-gradient(900px 500px at 50% 0%, rgba(139, 92, 246, .28), transparent 65%), var(--bg);
}
.login-card {
  width: min(430px, 100%); background: linear-gradient(170deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: 26px; padding: 2.2rem; box-shadow: var(--shadow); text-align: center;
}
.login-card .logo-lg { width: 120px; margin: 0 auto 1.2rem; border-radius: 24px; filter: drop-shadow(0 0 26px var(--glow)); }
.login-card h1 { font-size: 1.55rem; }
.login-card > p { color: var(--muted); font-size: .92rem; }
.login-card form { display: grid; gap: .8rem; margin-top: 1.4rem; text-align: left; }
.login-card label { display: grid; gap: .35rem; font-size: .82rem; color: var(--muted); font-weight: 600; }
.login-card input {
  padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); color: var(--text); font: inherit;
}
.login-card input:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.login-card small { display: block; margin-top: 1rem; color: var(--muted); font-size: .78rem; }
.error { background: rgba(248, 113, 113, .14); border: 1px solid rgba(248, 113, 113, .4); color: #FDC5C5; padding: .7rem .9rem; border-radius: 12px; font-size: .88rem; }

/* ==========================================================
   PAINEL
   ========================================================== */
body.admin { display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; background: var(--bg); }

.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1.2rem;
  padding: 1.2rem 1rem; background: var(--bg-2); border-right: 1px solid var(--line);
}
.sidebar .brand { display: flex; align-items: center; gap: .7rem; padding: .3rem .4rem 1rem; border-bottom: 1px solid var(--line); }
.sidebar .brand img { width: 44px; height: 44px; border-radius: 13px; filter: drop-shadow(0 0 14px var(--glow)); }
.sidebar .brand span { display: grid; line-height: 1.15; }
.sidebar .brand b { font-size: .84rem; letter-spacing: .08em; }
.sidebar .brand small { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.sidebar nav { display: grid; gap: .18rem; }
.sidebar nav a {
  display: flex; align-items: center; gap: .75rem; padding: .68rem .8rem; border-radius: 12px;
  color: var(--muted); font-size: .92rem; font-weight: 500; transition: background .18s ease, color .18s ease;
}
.sidebar nav a svg { width: 19px; height: 19px; flex: none; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.sidebar nav a.active { background: rgba(139, 92, 246, .18); color: var(--violet-3); box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .3); }
.sidebar-foot { margin-top: auto; display: grid; gap: .7rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.sidebar-foot .me { display: flex; align-items: center; gap: .6rem; }
.sidebar-foot .me span:last-child { display: grid; line-height: 1.2; }
.sidebar-foot .me b { font-size: .85rem; }
.sidebar-foot .me small { font-size: .72rem; color: var(--muted); }
.sidebar-foot .logout { font-size: .8rem; color: var(--muted); }
.sidebar-foot .logout:hover { color: var(--bad); }

.avatar {
  width: 36px; height: 36px; border-radius: 12px; flex: none; object-fit: cover;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
}
.avatar.xl { width: 84px; height: 84px; border-radius: 24px; font-size: 1.5rem; }

.admin-main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem); background: rgba(9, 6, 15, .86);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 1.15rem; margin: 0; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .8rem; }
.topbar .search { position: relative; display: flex; align-items: center; }
.topbar .search svg { position: absolute; left: .7rem; width: 16px; height: 16px; color: var(--muted); }
.topbar .search input {
  padding: .55rem .9rem .55rem 2.1rem; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-size: .85rem; width: 210px;
}
.topbar .search input:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.topbar .bell { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); }
.topbar .bell svg { width: 18px; height: 18px; }
.topbar .bell i { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--violet-2); box-shadow: 0 0 8px var(--violet-2); }
.admin-burger { display: none; background: none; border: 0; color: var(--text); font-size: 1.3rem; cursor: pointer; }

.admin-content { padding: clamp(1rem, 3vw, 2rem); display: grid; gap: 1.2rem; align-content: start; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.page-head h2 { font-size: 1.5rem; }
.flash { padding: .85rem 1.1rem; border-radius: 14px; font-size: .9rem; }
.flash.ok { background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .35); color: #A7F3D0; }
.flash.error { background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .35); color: #FCC; }

.card {
  background: linear-gradient(168deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; min-width: 0;
}
.card > h2 { font-size: 1.2rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2 { font-size: 1.1rem; margin: 0; }
.card-head small { color: var(--muted); font-size: .8rem; }
.cols { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
.cols.wide { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.side-stack { display: grid; gap: 1.2rem; align-content: start; }

.metrics { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.metrics.compact { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.metric {
  background: linear-gradient(168deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: grid; gap: .3rem;
}
.metric header { display: flex; align-items: start; justify-content: space-between; gap: .5rem; }
.metric small { color: var(--muted); font-size: .8rem; }
.metric .ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(139, 92, 246, .16); color: var(--violet-3); }
.metric .ico svg { width: 17px; height: 17px; }
.metric strong { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.metric span { font-size: .78rem; color: var(--muted); display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.metric span.good { color: var(--ok); }
.metric span.warn { color: var(--warn); }
.metric span.bad { color: var(--bad); }
.metric .delta {
  display: inline-flex; align-items: center; gap: .2rem; font-style: normal; font-size: .72rem; font-weight: 700;
  padding: .12rem .42rem; border-radius: 999px; margin-left: .1rem; white-space: nowrap;
}
.metric .delta.up { color: var(--ok); background: rgba(52, 211, 153, .13); }
.metric .delta.down { color: var(--bad); background: rgba(248, 113, 113, .13); }
.metric .delta.flat { color: var(--muted); background: rgba(255, 255, 255, .06); }

/* Credenciais reveladas uma única vez ao liberar o acesso da aluna */
.reveal-box {
  margin: .2rem 0 1rem; padding: 1rem 1.1rem; border-radius: 14px;
  border: 1px solid rgba(168, 85, 247, .38); background: rgba(168, 85, 247, .08);
}
.reveal-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .1); }
.reveal-row:last-of-type { border-bottom: 0; }
.reveal-row span { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.reveal-row b { font-size: 1.05rem; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .06em; color: #fff; }

/* Área da aluna (portal) */
body.portal { background: var(--bg); min-height: 100vh; }
.portal-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 2.2rem);
  background: rgba(9, 6, 15, .92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.portal-top .brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.portal-top .brand img { border-radius: 12px; }
.portal-top .brand b { display: block; font-size: .92rem; letter-spacing: .04em; }
.portal-top .brand small { display: block; font-size: .7rem; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; }
.portal-top .logout { font-size: .82rem; color: var(--muted); text-decoration: none; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; }
.portal-top .logout:hover { color: #fff; border-color: var(--violet); }
.portal-main { max-width: 1080px; margin: 0 auto; padding: clamp(1rem, 3vw, 1.8rem) clamp(1rem, 4vw, 2.2rem) 4rem; display: grid; gap: 1.1rem; }
.portal-main .tabs { margin-bottom: .2rem; }

/* Convite de instalacao do app (aparece so quando o navegador permite) */
.install-app {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .55rem .5rem 1rem; border: 0; border-radius: 999px;
  font: inherit; font-size: .86rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45), 0 0 22px var(--glow);
  transition: padding .2s ease, gap .2s ease;
}
.install-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer;
}
.install-app span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .22); font-weight: 800; flex: none; }
.install-cta b { white-space: nowrap; }
.install-min {
  display: grid; place-items: center; width: 24px; height: 24px; flex: none;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .22); color: #fff;
  font: inherit; font-size: 1rem; line-height: 1; cursor: pointer;
}
.install-min:hover { background: rgba(0, 0, 0, .4); }
.install-app:hover { filter: brightness(1.08); }

/* Minimizado: sobra apenas o balao redondo, que volta a expandir ao ser tocado. */
.install-app.min { padding: .55rem; gap: 0; left: auto; right: 1rem; }
.install-app.min .install-cta b { display: none; }
.install-app.min .install-min { display: none; }
.install-app.min span { width: 26px; height: 26px; font-size: 1.05rem; background: rgba(255, 255, 255, .26); }

@media (max-width: 700px) {
  .install-app { left: 1rem; right: 1rem; justify-content: center; bottom: .9rem; }
  .install-app.min { left: auto; right: 1rem; bottom: .9rem; }
}

/* Assistente Lena: painel e botão de minimizar, inclusive em telas estreitas. */
.lena-widget { position: fixed; right: 1rem; bottom: 1rem; z-index: 55; }
.lena-panel { width: min(390px, calc(100vw - 2rem)); height: min(630px, calc(100vh - 7rem)); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 24px; background: #120d20; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.lena-head { display:flex; align-items:center; justify-content:space-between; padding: .9rem 1rem; border-bottom:1px solid var(--line); background:rgba(255,255,255,.035); }
.lena-head div { display:grid; gap:.2rem; } .lena-head small { color:var(--muted); }
.lena-minimize, .lena-open { border:0; color:#fff; cursor:pointer; background:linear-gradient(135deg,var(--violet),var(--violet-2)); }
.lena-minimize { width:42px; height:42px; border-radius:50%; font-size:1.5rem; line-height:1; }
.lena-messages { padding: 1rem; overflow:auto; display:grid; align-content:end; gap:.65rem; }
.lena-message { max-width:86%; margin:0; padding:.7rem .85rem; border-radius:16px; font-size:.85rem; line-height:1.4; }
.lena-bot { justify-self:start; background:rgba(255,255,255,.07); color:#eee8f8; } .lena-user { justify-self:end; background:rgba(139,92,246,.28); }
.lena-form { display:flex; gap:.55rem; padding:.8rem; border-top:1px solid var(--line); } .lena-form input { min-width:0; } .lena-form button { width:46px; flex:none; border:0; border-radius:50%; background:var(--violet-2); color:#fff; font-size:1.2rem; cursor:pointer; }
.lena-open { display:none; width:58px; height:58px; border-radius:50%; font-size:1.35rem; box-shadow:0 10px 28px rgba(0,0,0,.45); }
.lena-widget.is-minimized .lena-panel { display:none; } .lena-widget.is-minimized .lena-open { display:grid; place-items:center; }
.conjugated-label { color: var(--violet-3); font-weight:700; }
@media (max-width:620px) { .lena-widget { right:.7rem; bottom:.7rem; } .lena-panel { height:min(610px,calc(100vh - 5rem)); } }

/* Listas e tabelas */
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .75rem .7rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
td small { display: block; color: var(--muted); font-size: .76rem; }
tr:last-child td { border-bottom: 0; }
tr.row-sep td { background: rgba(255, 255, 255, .03); }
.cell-user { display: flex; align-items: center; gap: .65rem; }
.cell-user span { display: grid; line-height: 1.25; }
td.positive, .positive { color: var(--ok); }
td.negative, .negative { color: var(--bad); }
td.neutral, .neutral { color: var(--muted); }

.agenda-list { display: grid; gap: .55rem; }
.agenda-row {
  display: flex; align-items: center; gap: .8rem; padding: .8rem;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .025);
  transition: border-color .18s ease, transform .18s ease;
}
.agenda-row:hover { border-color: var(--line-strong); transform: translateX(2px); }
.agenda-row .who { display: grid; line-height: 1.25; min-width: 0; }
.agenda-row .who small { color: var(--muted); font-size: .78rem; }
.agenda-row .when { margin-left: auto; display: grid; justify-items: end; line-height: 1.25; }
.agenda-row .when small { font-size: .72rem; }

.mini-list { display: grid; gap: .45rem; }
.mini-list a { display: flex; align-items: center; gap: .7rem; padding: .5rem; border-radius: 12px; }
.mini-list a:hover { background: rgba(255, 255, 255, .05); }
.mini-list span { display: grid; line-height: 1.2; }
.mini-list small { color: var(--muted); font-size: .75rem; }

.bars { display: flex; align-items: end; gap: .35rem; height: 150px; padding-top: .5rem; }
.bars i {
  flex: 1; border-radius: 6px 6px 3px 3px; position: relative;
  background: linear-gradient(180deg, var(--violet-2), rgba(139, 92, 246, .25));
  min-height: 4px; transition: filter .2s ease;
}
.bars i:hover { filter: brightness(1.3); }
.bars i small { position: absolute; bottom: -1.3rem; left: 0; right: 0; text-align: center; font-size: .6rem; color: var(--muted); }

.status { text-transform: capitalize; }
.status.pago, .chip.status.pago { color: var(--ok); }
.status.pendente, .chip.status.pendente { color: var(--warn); }
.status.atrasado, .chip.status.atrasado { color: var(--bad); }
.status.cancelado, .chip.status.cancelado { color: var(--muted); }
.status.confirmado { color: var(--ok); }
.status.realizado { color: var(--violet-3); }

.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-size: .74rem; font-weight: 600; color: var(--muted);
}
.chip.ok { color: var(--ok); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .1); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.chip-btn {
  padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); color: var(--muted); font: inherit; font-size: .74rem; cursor: pointer;
}
.chip-btn:hover { border-color: var(--line-strong); color: var(--text); }

/* Formulários */
.form-grid { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.form-grid > .span-2 { grid-column: 1 / -1; }
label { display: grid; gap: .32rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
label.check { display: flex; align-items: center; gap: .5rem; }
input, select, textarea {
  width: 100%; padding: .72rem .85rem; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045); color: var(--text); font: inherit; font-size: .92rem; font-weight: 400;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: rgba(156, 147, 180, .6); }
select option { background: var(--surface-2); color: var(--text); }
input[type="file"] { padding: .55rem; font-size: .82rem; }
input[type="range"] { padding: 0; accent-color: var(--violet-2); }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .3rem; }
.field-inline { max-width: 240px; padding: .5rem .8rem; font-size: .85rem; }
.hint { font-size: .8rem; color: var(--muted); margin: .6rem 0 0; }
.req { font-size: .66rem; color: var(--violet-3); text-transform: uppercase; letter-spacing: .08em; }
.group-title { margin: 1.5rem 0 .7rem; font-size: .84rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet-3); }
.group-title small { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: .76rem; }

/* Wizard */
.wizard { padding: 0; overflow: hidden; }
.wizard-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.5rem .8rem; }
.wizard-head h2 { font-size: 1.35rem; }
.wizard-head small { color: var(--muted); font-size: .84rem; }
.wizard-progress { width: min(260px, 100%); height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.wizard-progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--violet-3)); transition: width .3s ease; box-shadow: 0 0 12px var(--glow); }
.wizard-steps { display: flex; gap: .4rem; overflow-x: auto; padding: 0 1.5rem 1rem; border-bottom: 1px solid var(--line); }
.wizard-steps::-webkit-scrollbar, .tabs::-webkit-scrollbar, .table::-webkit-scrollbar { height: 6px; }
.wizard-steps::-webkit-scrollbar-thumb, .tabs::-webkit-scrollbar-thumb, .table::-webkit-scrollbar-thumb { background: rgba(168, 85, 247, .35); border-radius: 999px; }
.wizard-steps::-webkit-scrollbar-track, .tabs::-webkit-scrollbar-track, .table::-webkit-scrollbar-track { background: transparent; }
.wizard-steps button {
  display: flex; align-items: center; gap: .55rem; padding: .55rem .9rem; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--muted); font: inherit; font-size: .84rem; cursor: pointer;
}
.wizard-steps button b { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: .74rem; }
.wizard-steps button.active { color: var(--text); border-color: var(--violet); background: rgba(139, 92, 246, .16); }
.wizard-steps button.active b { background: linear-gradient(120deg, var(--violet), var(--violet-2)); color: #fff; }
.wizard-steps button.done b { background: rgba(52, 211, 153, .25); color: var(--ok); }
.wizard-form { padding: 1.4rem 1.5rem 1.5rem; }
.wizard-pane { display: none; }
.wizard-pane.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pane-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.pane-head h3 { font-size: 1.1rem; }
.pane-head p { color: var(--muted); font-size: .86rem; margin: 0; }
.badge { padding: .3rem .75rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.badge.success { background: rgba(52, 211, 153, .14); color: var(--ok); border: 1px solid rgba(52, 211, 153, .3); }
.wizard-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: 1.2rem 1.5rem; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.wizard-actions .btn.primary { margin-left: auto; }

/* Foto */
.photo-field { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.photo-drop {
  width: 104px; height: 104px; border-radius: 24px; border: 1.5px dashed var(--line-strong);
  display: grid; place-items: center; overflow: hidden; cursor: pointer; background: rgba(139, 92, 246, .07); position: relative;
}
.photo-drop img { width: 100%; height: 100%; object-fit: cover; }
.photo-drop .photo-empty { display: grid; place-items: center; gap: .2rem; color: var(--violet-3); font-size: 1.5rem; }
.photo-drop .photo-empty small { font-size: .68rem; color: var(--muted); }
.photo-drop.filled .photo-empty { display: none; }

/* Medidas e resultados */
.measure-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.measure-grid label { gap: .25rem; }
.measure-grid label span { font-size: .74rem; }
.measure-grid label input { padding: .55rem .7rem; font-size: .88rem; }
.measure-grid label.required { position: relative; }
.measure-grid label.required span { color: var(--violet-3); }
.measure-grid label.required input { border-color: var(--line-strong); background: rgba(139, 92, 246, .1); }
.measure-grid label.dimmed { opacity: .45; }

.result-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
.result {
  background: rgba(139, 92, 246, .08); border: 1px solid rgba(168, 85, 247, .18);
  border-radius: 14px; padding: .75rem .85rem; display: grid; gap: .1rem;
}
.result small { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.result b { font-size: 1.3rem; font-weight: 800; }
.result i { font-style: normal; font-size: .72rem; color: var(--violet-3); }
.result-grid.small .result b { font-size: 1.1rem; }

/* Preço */
.price-box { background: linear-gradient(150deg, rgba(139, 92, 246, .18), rgba(168, 85, 247, .06)); border: 1px solid var(--line-strong); border-radius: 20px; padding: 1.4rem; margin-bottom: 1.2rem; }
.price-box > small { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-3); font-weight: 700; }
.price-box > div { display: flex; align-items: center; gap: .6rem; margin: .5rem 0 .3rem; }
.price-box span { font-size: 1.8rem; font-weight: 800; color: var(--muted); }
.price-box input { font-size: 2rem; font-weight: 800; padding: .4rem .7rem; border-radius: 14px; background: rgba(0, 0, 0, .28); border-color: var(--line-strong); }
.price-box p { margin: 0; font-size: .8rem; color: var(--muted); }

/* Confirmação */
.confirm { text-align: center; padding: 1rem 0 .5rem; }
.confirm .check, .empty .check {
  display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 1rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: #fff; font-size: 1.6rem; box-shadow: 0 0 26px var(--glow);
}
.confirm p { color: var(--muted); max-width: 560px; margin: 0 auto 1.4rem; font-size: .9rem; }
.confirm-summary { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); text-align: left; }
.confirm-summary > div { background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; display: grid; gap: .15rem; }
.confirm-summary small { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.confirm-summary b { font-size: .96rem; }
.empty { text-align: center; padding: 2.5rem 1.5rem; }
.empty p { color: var(--muted); }

/* Perfil do aluno */
.student-hero { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; justify-content: space-between; }
.student-hero .who { display: flex; gap: 1.1rem; align-items: center; min-width: 0; }
.student-hero h2 { font-size: 1.6rem; }
.student-hero small { color: var(--muted); font-size: .86rem; }
.finance-badge { display: grid; gap: .2rem; padding: 1rem 1.3rem; border-radius: 18px; background: rgba(139, 92, 246, .12); border: 1px solid var(--line-strong); min-width: 210px; }
.finance-badge small { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.finance-badge strong { font-size: 1.7rem; font-weight: 800; }
.student-actions { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
.student-actions form { margin: 0; }

.tabs { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .3rem; border-bottom: 1px solid var(--line); }
.tabs a { padding: .55rem .9rem; border-radius: 10px 10px 0 0; color: var(--muted); font-size: .88rem; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.tabs a.active { color: var(--violet-3); border-bottom-color: var(--violet-2); background: rgba(139, 92, 246, .1); }

.summary-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.summary-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.summary-list li:last-child { border-bottom: 0; }
.summary-list span { color: var(--muted); }

.stack { display: grid; gap: .8rem; }
.item { border: 1px solid var(--line); border-radius: 16px; padding: 1rem; background: rgba(255, 255, 255, .025); display: grid; gap: .6rem; }
.item.off { opacity: .55; }
.item > header { display: flex; align-items: start; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.item > header div { display: grid; line-height: 1.3; min-width: 0; }
.item > header small { color: var(--muted); font-size: .78rem; }
.item.pay b { font-size: 1.2rem; }
.pay-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.item .inline { margin: 0; }
.item select { padding: .45rem .7rem; font-size: .82rem; }
.workout { background: rgba(0, 0, 0, .3); border-radius: 12px; padding: .8rem 1rem; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .82rem; white-space: pre-wrap; margin: 0; color: #DCD4EE; }
.note-text { margin: 0; font-size: .88rem; color: #CFC7E2; }

.progress { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--violet-3)); box-shadow: 0 0 10px var(--glow); }
.goal-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.goal-form input[type="range"] { flex: 1; min-width: 130px; }
.goal-form output { font-size: .8rem; color: var(--violet-3); font-weight: 700; min-width: 38px; }
.goal-form select { width: auto; }
.item.goal.done { border-color: rgba(52, 211, 153, .3); }

.eval-list { display: grid; gap: 1rem; }
.eval-list article { border: 1px solid var(--line); border-radius: 16px; padding: 1rem; background: rgba(255, 255, 255, .025); display: grid; gap: .7rem; }
.eval-list header { display: flex; align-items: start; justify-content: space-between; gap: .8rem; }
.eval-list header div { display: grid; line-height: 1.3; }
.eval-list header small { color: var(--muted); font-size: .78rem; }
details summary { cursor: pointer; font-size: .84rem; color: var(--violet-3); font-weight: 600; padding: .3rem 0; }
details[open] summary { margin-bottom: .6rem; }
.detail-cols { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.detail-cols b { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .35rem; }
.detail-cols span { display: flex; justify-content: space-between; gap: .8rem; font-size: .84rem; padding: .22rem 0; border-bottom: 1px dashed var(--line); }
.detail-cols i { font-style: normal; font-weight: 700; }

.chart { width: 100%; height: 190px; }
.chart .chart-label { fill: #9C93B4; font-size: 10px; text-anchor: middle; }
.chart .chart-value { fill: #F2EEFB; font-size: 10px; text-anchor: middle; font-weight: 700; }

.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .03); }
.gallery img { width: 100%; height: 165px; object-fit: cover; }
.gallery figcaption { padding: .6rem .7rem; display: grid; gap: .15rem; font-size: .8rem; }
.gallery figcaption small { color: var(--muted); font-size: .72rem; }

.timeline { display: grid; gap: .7rem; position: relative; }
.timeline article { border-left: 2px solid var(--line-strong); padding: .1rem 0 .1rem .9rem; }
.timeline header { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.timeline header b { font-size: .9rem; }
.timeline header small { color: var(--muted); font-size: .74rem; }
.timeline p { margin: .15rem 0 0; font-size: .84rem; color: var(--muted); }

.kanban { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kanban > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: grid; gap: .6rem; align-content: start; }
.kanban > div > b { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--violet-3); }
.kanban-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 .35rem; border-radius: 999px; background: rgba(168,85,247,.18); color: #fff; font-size: .68rem; }
.kanban article { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px; padding: .8rem; display: grid; gap: .3rem; }
.kanban article small { color: var(--muted); font-size: .76rem; }
.kanban select { padding: .4rem .6rem; font-size: .8rem; }
.lead-contact { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .25rem; }
.lead-contact .chip-btn { text-decoration: none; color: var(--violet-3); }
.kanban-empty { padding: .45rem 0; color: var(--muted); font-size: .78rem; }

.exercise-list { display: grid; gap: .7rem; margin-top: 1rem; }
.exercise-card {
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 16px;
  padding: .9rem 1rem; display: grid; gap: .7rem;
}
.exercise-main { display: flex; align-items: start; gap: .8rem; }
.exercise-num {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: #fff;
  display: grid; place-items: center; font-size: .8rem; font-weight: 800;
}
.exercise-info { display: grid; gap: .15rem; min-width: 0; }
.exercise-info b { font-size: 1rem; }
.exercise-info small { color: var(--muted); font-size: .78rem; }
.exercise-info small.exercise-note { color: #CFC7E2; font-style: italic; }
.exercise-video { width: 100%; border-radius: 14px; overflow: hidden; background: #000; }
.exercise-video .video-label { display: block; padding: .55rem .75rem; color: #EDE7FA; background: rgba(255,255,255,.08); font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.exercise-video iframe, .exercise-video video { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.exercise-row {
  display: flex; align-items: start; justify-content: space-between; gap: .8rem;
  padding: .65rem .5rem; border-top: 1px dashed var(--line);
}
.exercise-row:first-child { border-top: 0; }
.exercise-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.exercise-add { margin-top: .6rem; }
.exercise-add summary { cursor: pointer; font-size: .85rem; color: var(--violet-3); font-weight: 600; }
.exercise-form { margin-top: .6rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .cols { grid-template-columns: 1fr; }
  .statement { grid-template-columns: 1fr; }
  .public-nav nav { display: none; }
  .public-nav .menu { display: block; }
  .public-nav.open { flex-wrap: wrap; }
  .public-nav.open nav { display: flex; flex-basis: 100%; flex-direction: column; gap: .6rem; padding-top: .8rem; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  body.admin { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: 262px; z-index: 60;
    transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow);
  }
  body.nav-open .sidebar { transform: none; }
  .admin-burger { display: block; }
  .topbar .search input { width: 140px; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wizard-actions { flex-direction: column; align-items: stretch; }
  .wizard-actions .btn.primary { margin-left: 0; }
  .wizard-actions .btn { width: 100%; }
  .metric strong { font-size: 1.5rem; }
  .student-hero { flex-direction: column; align-items: stretch; }
  .finance-badge { min-width: 0; }
  .topbar-actions .search { display: none; }
  .avatar.xl { width: 64px; height: 64px; border-radius: 18px; font-size: 1.2rem; }
  .exercise-row { flex-direction: column; }
  .exercise-actions { margin-left: 36px; }
}

/* ==========================================================
   NOVO LAYOUT — painel administrativo + app da aluna
   Camada visual compatível com o HTML existente e otimizada para mobile.
   ========================================================== */
body.admin, body.portal {
  background:
    radial-gradient(900px 520px at 100% -8%, rgba(168,85,247,.18), transparent 62%),
    radial-gradient(700px 420px at -10% 30%, rgba(99,102,241,.10), transparent 65%),
    var(--bg);
}
body.admin .card, body.portal .card {
  background: linear-gradient(145deg, rgba(25,17,43,.94), rgba(16,11,29,.96));
  border-color: rgba(255,255,255,.09);
  box-shadow: 0 14px 38px rgba(0,0,0,.20);
  backdrop-filter: blur(12px);
}
body.admin .card:hover, body.portal .card:hover {
  border-color: rgba(192,132,252,.26);
}

/* Painel da Personal */
body.admin .sidebar {
  background: linear-gradient(180deg, rgba(18,12,32,.98), rgba(10,7,18,.98));
  border-right-color: rgba(255,255,255,.09);
  box-shadow: 14px 0 45px rgba(0,0,0,.18);
}
body.admin .sidebar .brand {
  padding: 1.05rem .9rem 1.2rem;
  margin-bottom: .7rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
body.admin .sidebar nav { gap: .28rem; }
body.admin .sidebar nav a {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #a9a0bd;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
body.admin .sidebar nav a:hover {
  color: #fff;
  background: rgba(168,85,247,.10);
  transform: translateX(2px);
}
body.admin .sidebar nav a.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(139,92,246,.30), rgba(168,85,247,.10));
  border-color: rgba(192,132,252,.26);
  box-shadow: inset 3px 0 0 var(--violet-2), 0 8px 22px rgba(139,92,246,.12);
}
body.admin .sidebar nav a svg { filter: drop-shadow(0 0 6px rgba(192,132,252,.18)); }
body.admin .admin-main { min-width: 0; }
body.admin .topbar {
  min-height: 78px;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  background: rgba(9,6,15,.72);
  border-bottom-color: rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}
body.admin .topbar h1 { font-size: clamp(1.25rem, 2vw, 1.65rem); letter-spacing: -.04em; }
body.admin .topbar-actions .search {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.10);
  border-radius: 999px;
}
body.admin .topbar-actions .search:focus-within { border-color: var(--violet-3); box-shadow: 0 0 0 3px rgba(168,85,247,.10); }
body.admin .admin-content { padding: clamp(1rem, 3vw, 2rem); }
body.admin .metrics { gap: 1rem; }
body.admin .metric {
  position: relative;
  overflow: hidden;
  min-height: 136px;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(145deg, rgba(34,23,57,.95), rgba(19,13,34,.96));
  border-color: rgba(255,255,255,.09);
  border-radius: 20px;
}
body.admin .metric::after {
  content: '';
  position: absolute;
  width: 110px; height: 110px;
  right: -40px; bottom: -60px;
  border-radius: 50%;
  background: rgba(168,85,247,.14);
  filter: blur(3px);
}
body.admin .metric strong { font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.05em; }
body.admin .section-head { margin-bottom: 1rem; }
body.admin .section-head h2 { font-size: 1.25rem; }

/* App da aluna */
body.portal .portal-top {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 76px;
  background: rgba(9,6,15,.76);
  border-bottom-color: rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}
body.portal .portal-top .brand img { width: 46px; height: 46px; border-radius: 15px; box-shadow: 0 0 22px rgba(168,85,247,.22); }
body.portal .portal-top .brand b { letter-spacing: .08em; }
body.portal .portal-main { max-width: 1180px; gap: 1.25rem; }
body.portal .student-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(39,24,68,.98), rgba(18,12,32,.97));
}
body.portal .student-hero::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  right: -100px; top: -130px;
  border-radius: 50%;
  background: rgba(168,85,247,.20);
  filter: blur(10px);
  pointer-events: none;
}
body.portal .student-hero .who, body.portal .student-hero > a { position: relative; z-index: 1; }
body.portal .student-hero h2 { font-size: clamp(1.55rem, 5vw, 2.25rem); letter-spacing: -.05em; }
body.portal .student-hero .avatar.xl { box-shadow: 0 12px 28px rgba(0,0,0,.28), 0 0 0 5px rgba(192,132,252,.08); }
body.portal .tabs {
  gap: .45rem;
  padding: .35rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(16,11,29,.72);
  scrollbar-width: thin;
}
body.portal .tabs a { border: 0; border-radius: 11px; padding: .62rem .9rem; }
body.portal .tabs a:hover { background: rgba(255,255,255,.06); }
body.portal .tabs a.active { color: #fff; background: linear-gradient(120deg, var(--violet), var(--violet-2)); box-shadow: 0 7px 18px rgba(139,92,246,.22); }
body.portal .metrics.compact { gap: .85rem; }
body.portal .metric {
  min-height: 128px;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(22,15,38,.88);
  border-color: rgba(255,255,255,.08);
}
body.portal .metric strong { font-size: clamp(1.45rem, 4vw, 2rem); letter-spacing: -.05em; }
body.portal .card-head h2 { letter-spacing: -.04em; }
body.portal .exercise-card { border-radius: 18px; background: rgba(255,255,255,.035); }
body.portal .exercise-num { box-shadow: 0 7px 16px rgba(139,92,246,.24); }

@media (max-width: 900px) {
  body.admin .admin-content { padding: 1rem; }
  body.portal .portal-main { padding-left: .85rem; padding-right: .85rem; }
}
@media (max-width: 620px) {
  body.portal .portal-top { padding: .75rem .85rem; }
  body.portal .portal-top .brand small { letter-spacing: .1em; }
  body.portal .student-hero { border-radius: 22px; gap: 1rem; }
  body.portal .student-hero .btn { width: 100%; }
  body.portal .tabs { margin-left: -.1rem; margin-right: -.1rem; }
  body.portal .tabs a { font-size: .78rem; padding: .56rem .7rem; }
  body.portal .metrics.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* CRM 2.0 — funil visual, busca e operação rápida. */
.crm-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: clamp(1.3rem,3vw,2rem); margin-bottom: 1rem; overflow: hidden; border: 1px solid rgba(192,132,252,.22); border-radius: 24px; background: linear-gradient(120deg, rgba(50,28,81,.95), rgba(18,12,32,.96)); box-shadow: 0 18px 45px rgba(0,0,0,.2); }
.crm-hero h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); letter-spacing: -.05em; }
.crm-hero p:last-child { margin: 0; color: var(--muted); }
.crm-hero-mark { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 22px; color: #fff; font-size: 2rem; background: linear-gradient(135deg,var(--violet),var(--violet-2)); box-shadow: 0 0 35px rgba(168,85,247,.35); transform: rotate(8deg); }
.crm-stats { display: grid; gap: .8rem; grid-template-columns: repeat(4, minmax(0,1fr)); margin-bottom: 1rem; }
.crm-stat { display: grid; gap: .18rem; padding: 1rem 1.1rem; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: rgba(22,15,38,.82); }
.crm-stat small, .crm-stat span { color: var(--muted); font-size: .74rem; }
.crm-stat strong { font-size: 1.75rem; letter-spacing: -.05em; }
.crm-stat.success strong { color: var(--ok); } .crm-stat.danger strong { color: var(--bad); }
.crm-toolbar { padding: .8rem; margin-bottom: 1rem; }
.crm-search { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.crm-search > span { color: var(--violet-3); font-size: 1.35rem; }
.crm-search input { flex: 1 1 240px; min-width: 160px; border: 0; background: transparent; }
.crm-search input:focus { outline: 0; }
.crm-search select { width: auto; min-width: 150px; padding: .65rem .75rem; }
.crm-add-card { margin-bottom: 1rem; }
.crm-add-card .card-head { align-items: center; }
.crm-kanban { grid-template-columns: repeat(4, minmax(220px,1fr)); overflow-x: auto; padding-bottom: .5rem; }
.crm-column { min-height: 190px; background: rgba(12,8,22,.66) !important; border-radius: 20px !important; }
.crm-column > b { display: flex; align-items: center; justify-content: space-between; }
.lead-card { gap: .7rem !important; padding: .95rem !important; border-radius: 17px !important; background: linear-gradient(145deg,rgba(37,25,58,.92),rgba(22,15,38,.92)) !important; }
.lead-card:hover { border-color: rgba(192,132,252,.35) !important; transform: translateY(-2px); }
.lead-card-head { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.lead-card-head > div { display: grid; gap: .1rem; min-width: 0; }
.lead-card-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 12px; color: #fff; font-size: .72rem; font-weight: 800; background: linear-gradient(135deg,var(--violet),var(--violet-2)); }
.lead-data { display: grid; gap: .2rem; color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.lead-stage-form { margin-top: .15rem; }
.lead-stage-form label { gap: .2rem; font-size: .68rem; }
.lead-stage-form select { padding: .5rem .6rem; font-size: .76rem; }

@media (max-width: 1100px) { .crm-kanban { grid-template-columns: repeat(4, minmax(230px, 1fr)); } }
@media (max-width: 760px) { .crm-stats { grid-template-columns: repeat(2, minmax(0,1fr)); } .crm-kanban { grid-template-columns: repeat(4, minmax(245px,1fr)); } }
@media (max-width: 480px) { .crm-hero { align-items: start; } .crm-hero-mark { width: 52px; height: 52px; border-radius: 17px; font-size: 1.5rem; } .crm-search select, .crm-search .btn { flex: 1 1 130px; } }

/* Painel administrativo — direção visual premium / editorial. */
body.admin {
  grid-template-columns: 286px 1fr;
  background: #09070f;
  background-image: radial-gradient(900px 600px at 90% -10%, rgba(168,85,247,.16), transparent 60%), linear-gradient(135deg,#09070f 0%,#0e0918 55%,#0a0712 100%);
}
body.admin .sidebar {
  width: 286px;
  padding: 1.35rem 1.1rem;
  background: linear-gradient(180deg, rgba(25,15,43,.98), rgba(9,7,16,.99));
  border-right: 1px solid rgba(192,132,252,.16);
}
body.admin .sidebar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,var(--violet),var(--violet-2),transparent); }
body.admin .sidebar .brand { padding: .25rem .35rem 1.25rem; margin-bottom: .7rem; border-bottom-color: rgba(255,255,255,.1); }
body.admin .sidebar .brand img { width: 50px; height: 50px; border-radius: 16px; box-shadow: 0 8px 25px rgba(168,85,247,.24); }
body.admin .sidebar .brand b { font-size: .9rem; }
body.admin .sidebar .brand small { color: var(--violet-3); }
body.admin .sidebar nav { gap: .35rem; }
body.admin .sidebar nav a { position: relative; min-height: 46px; padding: .7rem .85rem; border: 1px solid transparent; border-radius: 15px; font-size: .88rem; }
body.admin .sidebar nav a.active { color: #fff; background: linear-gradient(105deg,rgba(139,92,246,.36),rgba(168,85,247,.10)); border-color: rgba(192,132,252,.32); box-shadow: 0 10px 28px rgba(139,92,246,.14), inset 3px 0 0 var(--violet-2); }
body.admin .sidebar nav a.active::after { content: '›'; margin-left: auto; color: var(--violet-3); font-size: 1.2rem; }
body.admin .sidebar-foot { padding-top: 1rem; border-top-color: rgba(255,255,255,.1); }
body.admin .sidebar-foot .me { padding: .6rem; border-radius: 15px; background: rgba(255,255,255,.045); }
body.admin .sidebar-foot .logout { padding: .55rem .6rem; border-radius: 10px; }
body.admin .sidebar-foot .logout:hover { background: rgba(248,113,113,.09); }
body.admin .admin-main { background: transparent; }
body.admin .topbar { min-height: 86px; padding: 1.1rem clamp(1.1rem,4vw,2.8rem); background: rgba(9,7,15,.72); border-bottom: 1px solid rgba(255,255,255,.09); box-shadow: 0 8px 30px rgba(0,0,0,.12); }
body.admin .topbar h1 { font-size: clamp(1.35rem,2.6vw,1.85rem); font-weight: 800; letter-spacing: -.06em; }
body.admin .topbar-actions { gap: .65rem; }
body.admin .topbar .search input { width: min(280px, 28vw); padding: .7rem 1rem .7rem 2.25rem; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.1); }
body.admin .topbar .bell { width: 42px; height: 42px; border-radius: 14px; background: rgba(255,255,255,.04); }
body.admin .admin-content { max-width: 1600px; width: 100%; padding: clamp(1.15rem,3vw,2.5rem) clamp(1.1rem,4vw,2.8rem) 3rem; gap: 1.35rem; }
body.admin .page-head h2 { font-size: clamp(1.55rem,3vw,2rem); letter-spacing: -.055em; }
body.admin .page-head .muted { max-width: 680px; }
body.admin .card { padding: clamp(1.05rem,2vw,1.55rem); border-radius: 22px; background: linear-gradient(145deg,rgba(27,18,47,.94),rgba(15,10,27,.97)); border-color: rgba(255,255,255,.085); box-shadow: 0 16px 45px rgba(0,0,0,.18); }
body.admin .card-head { margin-bottom: 1.15rem; }
body.admin .card-head h2 { font-size: 1.15rem; letter-spacing: -.035em; }
body.admin .metrics { gap: .9rem; }
body.admin .metric { min-height: 145px; padding: 1.15rem; border-radius: 21px; background: linear-gradient(145deg,rgba(35,23,59,.94),rgba(18,12,33,.96)); }
body.admin .metric strong { font-size: clamp(1.7rem,3vw,2.35rem); letter-spacing: -.065em; }
body.admin .metric .ico { width: 38px; height: 38px; border-radius: 13px; background: linear-gradient(135deg,rgba(139,92,246,.3),rgba(168,85,247,.08)); }
body.admin table { border-collapse: separate; border-spacing: 0 .35rem; }
body.admin th { padding-bottom: .35rem; }
body.admin tbody tr { background: rgba(255,255,255,.025); }
body.admin tbody td { border-bottom: 0; }
body.admin tbody tr td:first-child { border-radius: 12px 0 0 12px; }
body.admin tbody tr td:last-child { border-radius: 0 12px 12px 0; }
body.admin input, body.admin select, body.admin textarea { border-radius: 14px; background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.1); }
body.admin input:focus, body.admin select:focus, body.admin textarea:focus { box-shadow: 0 0 0 4px rgba(168,85,247,.12); }
body.admin .btn { min-height: 42px; }
body.admin .btn.primary { box-shadow: 0 10px 28px rgba(168,85,247,.2); }
body.admin .kanban { gap: .9rem; }
body.admin .kanban > div { padding: 1rem; border-radius: 20px; background: rgba(12,8,22,.62); border-color: rgba(255,255,255,.09); }

@media (max-width: 900px) {
  body.admin { grid-template-columns: 1fr; }
  body.admin .sidebar { width: 286px; }
  body.admin .topbar { min-height: 72px; }
}
@media (max-width: 620px) {
  body.admin .topbar { padding: .85rem 1rem; }
  body.admin .topbar h1 { font-size: 1.2rem; }
  body.admin .admin-content { padding: .9rem; gap: 1rem; }
  body.admin .card { border-radius: 18px; }
  body.admin .metric { min-height: 122px; padding: .9rem; }
  body.admin .metric strong { font-size: 1.5rem; }
  body.admin .topbar .search { display: none; }
}
