/* ÁREA DE MEMBROS EDITA ON — identidade: grafite, coral, ciano, DM Sans */
:root {
  --bg: #0d0e10;
  --bg-2: #111315;
  --sidebar: #0f1012;
  --surface: #17191c;
  --surface-2: #1d2024;
  --surface-3: #262a30;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f5f7;
  --text-soft: #b4b9c2;
  --muted: #868c97;
  --coral: #ff735f;
  --coral-soft: #ffa08f;
  --coral-deep: #e8553f;
  --cyan: #39c6ca;
  --cyan-soft: #8ee3e5;
  --success: #3ad29f;
  --gold: #f6c330;
  --danger: #ff5f6d;
  --grad-cta: linear-gradient(135deg, #ff735f 0%, #ff9466 100%);
  --grad-progress: linear-gradient(90deg, #ff735f, #39c6ca);
  --shadow-cta: 0 10px 30px rgba(255, 115, 95, 0.35);
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.5);
  --r: 8px;
  --r-lg: 14px;
  --sidebar-w: 256px;
  --topbar-h: 64px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: rgba(255, 115, 95, 0.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2e34; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Botões, pílulas, barras ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--r);
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-cta); color: #1a0f0c; box-shadow: var(--shadow-cta); }
.btn-primary:hover { box-shadow: 0 14px 36px rgba(255, 115, 95, 0.5); transform: translateY(-1px); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-3); }
.btn-outline { border: 1px solid var(--border-strong); color: var(--text); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.04); }
.btn-success { background: rgba(58, 210, 159, 0.12); color: var(--success); border: 1px solid rgba(58, 210, 159, 0.35); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); color: var(--text-soft);
}
.pill-coral { background: rgba(255, 115, 95, 0.12); border-color: rgba(255, 115, 95, 0.35); color: var(--coral-soft); }
.pill-cyan { background: rgba(57, 198, 202, 0.12); border-color: rgba(57, 198, 202, 0.35); color: var(--cyan-soft); }
.pill-success { background: rgba(58, 210, 159, 0.12); border-color: rgba(58, 210, 159, 0.35); color: var(--success); }
.pill-dark { background: rgba(0, 0, 0, 0.55); border-color: rgba(255, 255, 255, 0.12); color: #fff; backdrop-filter: blur(6px); }

.progress { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--grad-progress); transition: width 0.6s var(--ease); }
.progress-thin { height: 4px; }

.kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.soft { color: var(--text-soft); }

.section { margin-top: 44px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.count { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(255, 115, 95, 0.14); color: var(--coral-soft); border: 1px solid rgba(255, 115, 95, 0.3); }
.link { color: var(--coral); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { color: var(--coral-soft); }

/* ---------- Layout do app ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; transition: grid-template-columns 0.25s var(--ease); }
.app.collapsed { --sidebar-w: 84px; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: var(--sidebar); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 22px 14px 18px; z-index: 40;
}
.sb-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 26px; }
.sb-brand img.logo { height: 30px; width: auto; }
.sb-brand img.symbol { height: 36px; width: 36px; display: none; }
.sb-toggle { width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r); color: var(--muted); border: 1px solid var(--border); }
.sb-toggle:hover { color: var(--text); background: var(--surface-2); }
.sb-nav { display: flex; flex-direction: column; gap: 4px; }
.sb-sep { height: 1px; background: var(--border); margin: 14px 6px; }
.sb-link {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-radius: 10px;
  color: var(--text-soft); font-weight: 500; font-size: 14.5px; position: relative;
  transition: background 0.15s, color 0.15s;
}
.sb-link:hover { background: var(--surface); color: var(--text); }
.sb-link.active { background: linear-gradient(90deg, rgba(255, 115, 95, 0.18), rgba(255, 115, 95, 0.06)); color: var(--coral-soft); }
.sb-link.active::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--coral); }
.sb-link .tag { margin-left: auto; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--coral); color: #1a0f0c; }
.sb-spacer { flex: 1; }
.sb-progress { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; margin-bottom: 14px; }
.sb-progress .kicker { font-size: 10px; }
.sb-progress strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 10px; background: var(--grad-progress); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sb-progress small { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }
.sb-user { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.sb-user a, .sb-user button { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 10px; border-radius: 10px; color: var(--text-soft); font-size: 14px; text-align: left; }
.sb-user a:hover, .sb-user button:hover { background: var(--surface); color: var(--text); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--grad-cta); color: #1a0f0c; font-weight: 800; font-size: 14px; }
.sb-user .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app.collapsed .sb-brand { flex-direction: column; padding-bottom: 20px; }
.app.collapsed .sb-brand img.logo { display: none; }
.app.collapsed .sb-brand img.symbol { display: block; }
.app.collapsed .sb-link { justify-content: center; padding: 0; }
.app.collapsed .sb-link span, .app.collapsed .sb-link .tag, .app.collapsed .sb-progress, .app.collapsed .sb-user .name, .app.collapsed .sb-user .lbl { display: none; }
.app.collapsed .sb-user a, .app.collapsed .sb-user button { justify-content: center; padding: 0; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px; padding: 0 32px;
  background: rgba(13, 14, 16, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.tb-menu { display: none; width: 38px; height: 38px; place-items: center; border-radius: var(--r); border: 1px solid var(--border); }
.tb-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.welcome { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--text-soft); white-space: nowrap; }
.welcome::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.tb-spacer { flex: 1; }
.search { position: relative; width: 260px; }
.search input { width: 100%; height: 40px; padding: 0 14px 0 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); outline: none; font-size: 14px; }
.search input:focus { border-color: rgba(255, 115, 95, 0.5); box-shadow: 0 0 0 3px rgba(255, 115, 95, 0.12); }
.search > svg { position: absolute; left: 12px; top: 11px; color: var(--muted); }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--text-soft); }
.icon-btn:hover { background: var(--surface); color: var(--text); }
.icon-btn .dot { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.tb-avatar { cursor: pointer; }

.dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; width: 360px; max-height: 420px; overflow: auto;
  background: #15171a; border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: 8px; z-index: 60; animation: pop 0.16s var(--ease);
}
.search .dropdown { left: 0; right: auto; width: 100%; min-width: 320px; }
.dd-head { padding: 8px 10px 10px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; }
.dd-item { display: flex; gap: 12px; padding: 10px; border-radius: 10px; align-items: flex-start; }
.dd-item:hover { background: var(--surface-2); }
.dd-item .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 115, 95, 0.12); color: var(--coral); flex: none; }
.dd-item b { display: block; font-size: 13.5px; font-weight: 600; }
.dd-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.dd-empty { padding: 18px 10px; color: var(--muted); font-size: 13px; text-align: center; }
@keyframes pop { from { transform: translateY(-4px) scale(0.98); } to { transform: none; } }
@keyframes rise { from { transform: translate(-50%, 10px); } to { transform: translate(-50%, 0); } }

.page { padding: 32px; width: 100%; max-width: 1440px; margin: 0 auto; animation: fade 0.25s var(--ease); }
@keyframes fade { from { transform: translateY(6px); } to { transform: none; } }

/* ---------- Banner ---------- */
.banner { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: #120e0d; min-height: 360px; }
.banner-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0.6s; }
.banner-slide.on { opacity: 1; visibility: visible; position: relative; }
.banner-bg { position: absolute; inset: 0; background:
  radial-gradient(60% 90% at 85% 40%, rgba(255, 115, 95, 0.38), transparent 60%),
  radial-gradient(40% 60% at 10% 100%, rgba(57, 198, 202, 0.18), transparent 70%),
  linear-gradient(120deg, #170f0d 0%, #120f10 60%, #0f1215 100%); }
.banner-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.banner-copy { position: relative; padding: 48px 0 48px 52px; z-index: 2; }
.banner-copy h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; margin: 16px 0 14px; text-transform: uppercase; }
.banner-copy h2 em { font-style: normal; background: var(--grad-cta); -webkit-background-clip: text; background-clip: text; color: transparent; }
.banner-copy p { color: var(--text-soft); font-size: 16px; max-width: 460px; margin: 0 0 26px; }
.banner-art { position: relative; height: 100%; min-height: 360px; z-index: 1; }
.banner-art img { position: absolute; right: -40px; top: 50%; width: 118%; max-width: none; transform: translateY(-50%) perspective(1400px) rotateY(-16deg) rotateX(6deg); border-radius: 14px; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 80px rgba(255,115,95,0.25); }
.banner-dots { position: absolute; left: 52px; bottom: 22px; display: flex; gap: 8px; z-index: 3; }
.banner-dots button { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,0.25); transition: width 0.3s var(--ease), background 0.3s; }
.banner-dots button.on { width: 26px; background: var(--coral); }

/* ---------- Hero do produto ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--border);
  background: radial-gradient(70% 120% at 0% 0%, rgba(255,115,95,0.16), transparent 55%), linear-gradient(135deg, #15110f, #101215 70%);
  display: grid; grid-template-columns: 1fr 1.1fr; min-height: 470px;
}
.hero-type { position: absolute; left: -10px; top: 56px; font-size: clamp(70px, 9vw, 150px); font-weight: 800; line-height: 0.86; letter-spacing: -0.04em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.06); white-space: nowrap; pointer-events: none; user-select: none; }
.hero-copy { position: relative; z-index: 2; padding: 56px 0 48px 56px; display: flex; flex-direction: column; justify-content: center; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(42px, 5vw, 72px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 800; margin: 18px 0 10px; }
.hero h1 b { color: var(--coral); }
.hero .lead { font-size: clamp(20px, 2vw, 28px); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 12px; }
.hero p.desc { color: var(--text-soft); font-size: 16px; max-width: 470px; margin: 0 0 28px; }
.hero-progress { display: flex; align-items: center; gap: 16px; margin-top: 30px; max-width: 520px; }
.hero-progress .progress { flex: 1; height: 7px; }
.hero-progress b { font-size: 14px; white-space: nowrap; }
.hero-art { position: relative; z-index: 1; }
.hero-art img { position: absolute; left: 6%; top: 50%; width: 125%; max-width: none; transform: translateY(-50%) perspective(1600px) rotateY(-14deg); border-radius: 14px; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 50px 90px rgba(0,0,0,0.65), 0 0 120px rgba(255,115,95,0.18); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #13110f 0%, transparent 25%); }

/* ---------- Carrossel / cards de módulo ---------- */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 262px; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-btn { position: absolute; top: 46%; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(15,16,18,0.88); border: 1px solid var(--border-strong); z-index: 5; backdrop-filter: blur(6px); }
.rail-btn:hover { border-color: var(--coral); color: var(--coral); }
.rail-btn.prev { left: -18px; } .rail-btn.next { right: -18px; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }

/* ---------- Cursos (cada produto principal é um curso com os seus módulos) ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.ccard { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--border-strong); }
.ccard-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #0b0b0c; }
.ccard-cover img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform 0.5s var(--ease); }
.ccard:hover .ccard-cover img { transform: scale(1.04); }
.ccard.locked .ccard-cover img { filter: grayscale(0.6) brightness(0.55); }
.ccard-cover .pill, .ccard-cover .mlock { position: absolute; top: 12px; right: 12px; }
.ccard-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ccard-brand { display: flex; align-items: center; gap: 10px; }
.ccard-brand img { width: 34px; height: 34px; border-radius: 9px; }
.ccard-brand h3 { margin: 0; font-size: 21px; letter-spacing: -0.01em; }
.ccard-body > p { margin: 0; color: var(--text-soft); font-size: 14.5px; line-height: 1.5; }
.ccard-progress { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; }
.ccard-progress .progress { flex: 1; }
.ccard-progress b { font-size: 13px; }
.ccard-price { margin-top: auto; padding-top: 6px; }
.ccard-price b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.ccard-price small { color: var(--muted); font-size: 12.5px; }
.ccard .btn { margin-top: 4px; }
.course-title { display: flex; align-items: center; gap: 10px; }
.course-title img { width: 32px; height: 32px; border-radius: 8px; }
.course-buy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border-strong); }
.course-buy > div { flex: 1; min-width: 220px; }
.course-buy b { display: block; font-size: 16px; }
.course-buy span { color: var(--text-soft); font-size: 14px; }
.course-buy strong { font-size: 26px; letter-spacing: -0.02em; }
.course-desc { color: var(--text-soft); font-size: 15px; line-height: 1.6; max-width: 760px; margin: 0 0 6px; }

.mcard { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; height: 440px; border-radius: 18px; overflow: hidden; background: #111214; border: 1px solid var(--border); transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; isolation: isolate; }
.mcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card), 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); border-color: transparent; }
.mcard-cover { position: absolute; inset: 0; z-index: -1; }
.mcard-cover img { width: 100%; height: 100%; object-fit: cover; object-position: left top; filter: grayscale(0.35) brightness(0.55); transform: scale(1.35); transform-origin: 20% 30%; transition: transform 0.6s var(--ease), filter 0.4s; }
.mcard:hover .mcard-cover img { transform: scale(1.42); filter: grayscale(0.1) brightness(0.62); }
.mcard-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.15) 30%, rgba(10,10,12,0.75) 62%, #0e0f11 82%), radial-gradient(90% 50% at 50% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); }
.mcard.locked .mcard-cover img { filter: grayscale(1) brightness(0.4); }
.mcard-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px; }
.mnum { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.14); color: var(--accent); backdrop-filter: blur(6px); }
.mlock { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.14); }
.mbrand { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; letter-spacing: -0.01em; }
.mbrand img { width: 20px; height: 20px; border-radius: 5px; }
.mcard-headline { padding: 4px 18px 0; font-weight: 800; text-transform: uppercase; font-size: 31px; line-height: 0.92; letter-spacing: -0.03em; text-shadow: 0 4px 24px rgba(0,0,0,0.6); }
.mcard-headline span { display: block; }
.mcard-headline span:last-child { color: var(--accent); }
.mcard-body { margin-top: auto; padding: 16px 18px 18px; }
.mcard-body h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.mmeta { display: flex; align-items: center; gap: 6px; color: var(--text-soft); font-size: 13px; }
.mfoot { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 10px; }
.mstatus { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 7px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.mstatus.free { background: rgba(57,198,202,0.14); color: var(--cyan-soft); border: 1px solid rgba(57,198,202,0.35); }
.mstatus.buy { background: rgba(255,255,255,0.08); color: var(--text); border: 1px solid var(--border-strong); }
.mstatus.done { background: rgba(58,210,159,0.14); color: var(--success); border: 1px solid rgba(58,210,159,0.35); }
.mprice { font-weight: 800; font-size: 15px; }
.mpct { font-weight: 700; font-size: 13px; color: var(--text-soft); }

/* ---------- Continuar assistindo ---------- */
.continue { display: grid; grid-template-columns: 220px 1fr auto; gap: 22px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.continue-thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; }
.continue-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0.65; }
.continue-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; }
.continue-thumb .play span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-cta); color: #1a0f0c; box-shadow: var(--shadow-cta); }
.continue h3 { margin: 6px 0 4px; font-size: 18px; }

/* ---------- Loja ---------- */
.store-hero { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--border); padding: 56px; background: radial-gradient(60% 100% at 100% 0%, rgba(255,115,95,0.28), transparent 60%), radial-gradient(50% 80% at 0% 100%, rgba(57,198,202,0.14), transparent 70%), #121315; }
.store-hero h1 { font-size: clamp(36px, 4.4vw, 64px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; margin: 18px 0 14px; max-width: 760px; }
.store-hero h1 em { font-style: normal; color: var(--coral); }
.store-hero p { color: var(--text-soft); font-size: 17px; max-width: 560px; margin: 0 0 28px; }
.store-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.store-hero .big { position: absolute; right: -20px; bottom: -40px; font-size: 220px; font-weight: 800; letter-spacing: -0.06em; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(255,115,95,0.18); pointer-events: none; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { height: 38px; padding: 0 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.tab:hover { color: var(--text); border-color: var(--border-strong); }
.tab.on { background: var(--grad-cta); color: #1a0f0c; border-color: transparent; }
.tab .n { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: rgba(0,0,0,0.2); }

.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.ocard { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.ocard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: rgba(255,115,95,0.35); }
.ocard-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #0b0b0c; }
.ocard-cover img { width: 100%; height: 100%; object-fit: cover; object-position: left top; filter: brightness(0.7); transition: transform 0.5s var(--ease); }
.ocard:hover .ocard-cover img { transform: scale(1.05); }
.ocard-cover .tags { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; }
.off { background: var(--coral); color: #1a0f0c; font-weight: 800; font-size: 12px; padding: 4px 9px; border-radius: 7px; }
.ocard-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.ocard-body h3 { margin: 6px 0 6px; font-size: 19px; line-height: 1.2; }
.ocard-body > p { margin: 0 0 16px; color: var(--text-soft); font-size: 14px; }
.price { margin-top: auto; border-top: 1px solid var(--border); padding-top: 14px; }
.price .old { color: var(--muted); font-size: 13px; text-decoration: line-through; }
.price .inst { font-size: 13px; color: var(--text-soft); }
.price .now { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.price .now small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.price .save { color: var(--success); font-size: 13px; font-weight: 600; }
.ocard .btn { margin-top: 14px; }

.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.offer-detail { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.od-cover { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: #0b0b0c; }
.od-cover img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: left top; }
.od-box { position: sticky; top: calc(var(--topbar-h) + 24px); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.od-box h1 { font-size: 30px; line-height: 1.08; letter-spacing: -0.02em; margin: 12px 0 8px; }
.od-box .price { border-top: 0; padding-top: 6px; margin: 18px 0 18px; }
.od-box .price .now { font-size: 36px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); font-size: 14.5px; }
.checks li svg { color: var(--success); margin-top: 2px; }
.secure { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--muted); font-size: 12.5px; margin-top: 12px; }
.od-text { margin-top: 24px; color: var(--text-soft); font-size: 15.5px; line-height: 1.7; }
.od-text h2 { color: var(--text); font-size: 20px; margin: 0 0 10px; }

/* ---------- Aula ---------- */
.lesson-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.lesson-head h1 { font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.lesson-head .lp { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 240px; }
.lesson-head .lp .progress { flex: 1; }
.lesson-layout { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
.player { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--border); }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: radial-gradient(60% 80% at 50% 40%, rgba(255,115,95,0.18), transparent 70%), #0e0f11; }
.player-empty img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0.12; filter: blur(2px); }
.player-empty .inner { position: relative; padding: 24px; }
.player-empty img.logo { height: 54px; margin: 0 auto 18px; }
.player-empty p { color: var(--text-soft); margin: 0; font-size: 14px; }
.lesson-card { margin-top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lesson-card h2 { margin: 4px 0 4px; font-size: 20px; letter-spacing: -0.01em; }
.lesson-card .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.materials { margin-top: 16px; display: grid; gap: 10px; }
.material { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: var(--r-lg); background: var(--grad-cta); color: #1a0f0c; font-weight: 700; box-shadow: var(--shadow-cta); }
.material:hover { filter: brightness(1.05); }
.lesson-list { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px; position: sticky; top: calc(var(--topbar-h) + 20px); max-height: calc(100vh - var(--topbar-h) - 40px); display: flex; flex-direction: column; }
.lesson-list .ll-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 12px; font-weight: 700; }
.ll-items { overflow: auto; display: grid; gap: 8px; padding-right: 2px; }
.ll-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: #141619; transition: border-color 0.15s, background 0.15s; }
.ll-item:hover { border-color: var(--border-strong); }
.ll-item.on { border-color: rgba(255,115,95,0.55); background: rgba(255,115,95,0.08); }
.ll-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 700; background: var(--surface-3); color: var(--text-soft); }
.ll-item.done .ll-n { background: rgba(58,210,159,0.15); color: var(--success); }
.ll-item.on .ll-n { background: var(--grad-cta); color: #1a0f0c; }
.ll-item b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.ll-item small { color: var(--muted); font-size: 12px; display: inline-flex; gap: 4px; align-items: center; margin-top: 3px; }
.ll-item small svg { width: 12px; height: 12px; }

/* ---------- Downloads ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.dl { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.dl .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,115,95,0.12); color: var(--coral); }
.dl .ico svg { width: 24px; height: 24px; }
.dl h3 { margin: 4px 0 0; font-size: 18px; }
.dl p { margin: 0; color: var(--text-soft); font-size: 14px; flex: 1; }

/* ---------- Novidades ---------- */
.news-hero { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--border); min-height: 380px; display: flex; align-items: flex-end; }
.news-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.news-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,14,16,0.97) 0%, rgba(13,14,16,0.85) 45%, rgba(13,14,16,0.35) 100%), linear-gradient(0deg, rgba(13,14,16,0.9), transparent 60%); }
.news-hero .inner { position: relative; z-index: 2; padding: 48px; max-width: 640px; }
.news-hero h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.025em; margin: 14px 0 12px; }
.news-hero p { color: var(--text-soft); margin: 0 0 24px; }
.news-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.news-item { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 14px; }
.news-item .thumb { aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: #000; }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.news-item h3 { margin: 8px 0 6px; font-size: 18px; }
.news-item p { margin: 0 0 12px; color: var(--text-soft); font-size: 14px; }
.news-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.news-meta time { font-size: 12px; color: var(--muted); }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.side-card h3 { margin: 0 0 14px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.side-card h3 svg { color: var(--coral); }
.mini { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.mini:first-of-type { border-top: 0; }
.mini img { width: 64px; height: 42px; object-fit: cover; object-position: left top; border-radius: 8px; }
.mini b { font-size: 13.5px; display: block; line-height: 1.3; }
.mini small { color: var(--coral); font-weight: 700; font-size: 12.5px; }

/* ---------- Formulários ---------- */
.page-title { text-align: center; margin: 8px 0 28px; }
.page-title h1 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.025em; margin: 0 0 6px; background: var(--grad-cta); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.page-title p { color: var(--text-soft); margin: 0; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; max-width: 860px; margin: 0 auto; }
.form-card + .form-card { margin-top: 20px; }
.form-card h2 { margin: 0 0 4px; font-size: 20px; }
.form-card > p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; }
.field label .req { color: var(--coral); }
.field small { color: var(--muted); font-size: 12px; }
.input { width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; background: #111315; border: 1px solid var(--border-strong); outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
textarea.input { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23868c97' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.input:focus { border-color: rgba(255,115,95,0.6); box-shadow: 0 0 0 3px rgba(255,115,95,0.14); }
.input[readonly] { color: var(--muted); }
.drop { display: flex; align-items: center; justify-content: center; gap: 10px; height: 64px; border-radius: 12px; border: 1px dashed var(--border-strong); color: var(--text-soft); cursor: pointer; }
.drop:hover { border-color: var(--coral); color: var(--coral); }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.files span { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--surface-3); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.ticket { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.ticket:first-of-type { border-top: 0; }
.ticket b { display: block; }
.ticket small { color: var(--muted); }
.empty { text-align: center; padding: 26px 10px; color: var(--muted); font-size: 14px; }
.profile-head { display: flex; align-items: center; gap: 18px; max-width: 860px; margin: 0 auto 22px; }
.profile-head .avatar { width: 72px; height: 72px; font-size: 28px; }
.profile-head h1 { margin: 0; font-size: 26px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: rgba(57,198,202,0.08); border: 1px solid rgba(57,198,202,0.25); color: var(--cyan-soft); font-size: 13px; }
.note svg { flex: none; margin-top: 1px; }

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { position: relative; overflow: hidden; background: radial-gradient(70% 70% at 30% 30%, rgba(255,115,95,0.28), transparent 60%), radial-gradient(60% 60% at 90% 90%, rgba(57,198,202,0.16), transparent 70%), #100f10; padding: 48px; display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.auth-art .logo { height: 36px; width: auto; align-self: flex-start; position: relative; z-index: 2; }
.auth-art h1 { position: relative; z-index: 2; font-size: clamp(40px, 4.6vw, 70px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 800; margin: auto 0 16px; text-transform: uppercase; }
.auth-art h1 em { font-style: normal; color: var(--coral); }
.auth-art p { position: relative; z-index: 2; color: var(--text-soft); max-width: 440px; margin: 0; font-size: 16px; }
.auth-art img.shot { position: absolute; right: -18%; top: 12%; width: 92%; max-width: none; border-radius: 14px; border: 1px solid rgba(255,255,255,0.1); transform: perspective(1400px) rotateY(-18deg) rotateX(6deg); opacity: 0.55; box-shadow: 0 40px 80px rgba(0,0,0,0.6); }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #100f10 8%, transparent 60%); z-index: 1; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.auth-box { width: 100%; max-width: 410px; }
.auth-box .symbol { width: 52px; height: 52px; margin-bottom: 22px; }
.auth-box h2 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 6px; }
.auth-box > p { color: var(--muted); margin: 0 0 28px; }
.auth-box form { display: grid; gap: 16px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.auth-row a { color: var(--coral); font-weight: 600; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); cursor: pointer; }
.check input { accent-color: var(--coral); width: 16px; height: 16px; }
.auth-alt { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }
.auth-alt a { color: var(--coral); font-weight: 600; }
.pw { position: relative; }
.pw button { position: absolute; right: 8px; top: 7px; width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); border-radius: 8px; }
.pw button:hover { color: var(--text); }

/* ---------- Toast / instalar ---------- */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 100; display: grid; gap: 10px; }
.toast { display: flex; gap: 10px; align-items: flex-start; max-width: 380px; padding: 14px 16px; border-radius: 12px; background: #1b1d21; border: 1px solid var(--border-strong); box-shadow: var(--shadow-card); font-size: 14px; animation: pop 0.2s var(--ease); }
.toast svg { color: var(--coral); margin-top: 1px; }
.toast.ok svg { color: var(--success); }
.install { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: #17181b; border: 1px solid var(--border-strong); box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 40px rgba(255,115,95,0.15); animation: rise 0.25s var(--ease); width: max-content; max-width: calc(100vw - 32px); }
.install .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-cta); color: #1a0f0c; flex: none; }
.install b { display: block; font-size: 15px; }
.install small { color: var(--muted); font-size: 12.5px; }
.install .x { width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); border-radius: 8px; }
.install .x:hover { color: var(--text); background: var(--surface-2); }
.scrim { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-list { position: static; max-height: none; }
  .news-layout { grid-template-columns: 1fr; }
  .offer-detail { grid-template-columns: 1fr; }
  .od-box { position: static; }
  .search { width: 200px; }
}
@media (max-width: 960px) {
  .app, .app.collapsed { grid-template-columns: 1fr; --sidebar-w: 280px; }
  .sidebar { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform 0.25s var(--ease); }
  .app.menu-open .sidebar { transform: none; box-shadow: 30px 0 60px rgba(0,0,0,0.5); }
  .app.menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 35; }
  .sb-toggle { display: none; }
  .app.collapsed .sb-brand img.logo { display: block; }
  .app.collapsed .sb-brand img.symbol { display: none; }
  .app.collapsed .sb-link { justify-content: flex-start; padding: 0 14px; }
  .app.collapsed .sb-link span, .app.collapsed .sb-progress, .app.collapsed .sb-user .name, .app.collapsed .sb-user .lbl { display: initial; }
  .app.collapsed .sb-progress { display: block; }
  .tb-menu { display: grid; }
  .welcome { display: none; }
  .topbar { padding: 0 16px; gap: 8px; }
  .page { padding: 20px 16px; }
  .hero, .banner-slide { grid-template-columns: 1fr; }
  .hero-copy { padding: 36px 24px 28px; }
  .hero-art { min-height: 230px; }
  .hero-art img { left: 24px; width: 120%; }
  .banner-copy { padding: 32px 24px 56px; }
  .banner-art { min-height: 200px; display: none; }
  .banner-dots { left: 24px; }
  .banner { min-height: 0; }
  .store-hero { padding: 32px 24px; }
  .store-hero .big { font-size: 130px; }
  .continue { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 260px; padding: 28px 24px; }
  .auth-art img.shot { width: 120%; right: -40%; top: 18%; }
  .auth-art h1 { font-size: 38px; margin-top: 70px; }
  .rail-btn { display: none; }
}
@media (max-width: 640px) {
  .search { display: none; }
  .tb-title { font-size: 17px; }
  .fgrid { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .news-item { grid-template-columns: 1fr; }
  .news-hero .inner { padding: 28px 22px; }
  .lesson-head .lp { margin-left: 0; width: 100%; }
  .lesson-card .actions { margin-left: 0; width: 100%; }
  .lesson-card .actions .btn { flex: 1; }
  .rail { grid-auto-columns: 78%; }
  .dropdown { width: calc(100vw - 32px); right: -60px; }
  .install { bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
