@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --ink: #071a22;
  --ink-2: #102b35;
  --muted: #63767d;
  --line: rgba(7, 26, 34, .11);
  --surface: #ffffff;
  --surface-2: #f4faf7;
  --mint: #dff9ed;
  --mint-2: #bdf2d8;
  --green: #12a878;
  --green-dark: #087657;
  --lime: #b6ef71;
  --blue: #67b7ff;
  --warning: #e99c26;
  --danger: #db4b58;
  --success: #0a9f70;
  --shadow-sm: 0 12px 32px rgba(7, 38, 44, .07);
  --shadow-lg: 0 24px 70px rgba(7, 38, 44, .15);
  --radius-sm: 16px;
  --radius: 24px;
  --radius-lg: 34px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(18,168,120,.10), transparent 28%),
    radial-gradient(circle at 92% 7%, rgba(103,183,255,.10), transparent 24%),
    #fbfdfc;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
.hidden { display: none !important; }
.container { width: min(var(--max), calc(100% - 36px)); margin-inline: auto; }

.skip-link { position: fixed; top: -100px; left: 16px; z-index: 9999; background: var(--ink); color: white; padding: 12px 16px; border-radius: 12px; }
.skip-link:focus { top: 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(7,26,34,.07);
  background: rgba(251,253,252,.82);
  backdrop-filter: blur(20px);
}
.navbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand img { width: 46px; height: 46px; filter: drop-shadow(0 10px 20px rgba(18,168,120,.16)); }
.brand strong { display: block; font-family: Manrope, sans-serif; font-size: 1rem; letter-spacing: -.03em; }
.brand span { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 10px 13px; border-radius: 13px; color: #40535a; font-size: .9rem; font-weight: 700; transition: .2s ease; }
.nav-links a:hover, .nav-links a.active { background: var(--mint); color: var(--green-dark); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: white; border-radius: 14px; cursor: pointer; }

/* Buttons */
.btn {
  border: 0;
  border-radius: 15px;
  padding: 13px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: white; box-shadow: 0 13px 28px rgba(7,26,34,.18); }
.btn-primary:hover { background: #0c2b36; }
.btn-green { background: var(--green); color: white; box-shadow: 0 13px 28px rgba(18,168,120,.23); }
.btn-green:hover { background: var(--green-dark); }
.btn-soft { background: var(--mint); color: var(--green-dark); }
.btn-white { background: white; border: 1px solid var(--line); color: var(--ink); }
.btn-danger { background: #fff0f1; color: #b52f3d; }
.btn-small { padding: 9px 12px; border-radius: 12px; font-size: .82rem; }
.icon-btn { width: 42px; height: 42px; border: 1px solid var(--line); background: white; border-radius: 14px; cursor: pointer; display: grid; place-items: center; }

/* Utility */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(18,168,120,.15); background: var(--mint); color: var(--green-dark); border-radius: 999px; font-size: .78rem; font-weight: 800; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(18,168,120,.12); }
.section { padding: 88px 0; }
.section-soft { background: linear-gradient(180deg, transparent, rgba(223,249,237,.38), transparent); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 30px; }
.section-head h2, .page-title { margin: 12px 0 0; font-family: Manrope, sans-serif; font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1; letter-spacing: -.065em; }
.section-head p { max-width: 510px; margin: 0; color: var(--muted); line-height: 1.7; }
.muted { color: var(--muted); }
.text-small { font-size: .84rem; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; background: #eff4f2; color: #53666c; font-size: .75rem; font-weight: 800; }
.pill.green { background: var(--mint); color: var(--green-dark); }
.pill.orange { background: #fff3df; color: #a76300; }
.pill.red { background: #fff0f1; color: #b42d3d; }
.pill.blue { background: #eaf5ff; color: #1766a6; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Hero */
.hero { position: relative; min-height: 720px; padding: 76px 0 54px; overflow: hidden; }
.hero::after { content: ''; position: absolute; width: 420px; height: 420px; right: -160px; top: 60px; border: 1px solid rgba(18,168,120,.12); border-radius: 50%; box-shadow: 0 0 0 60px rgba(18,168,120,.03), 0 0 0 120px rgba(18,168,120,.02); pointer-events: none; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 54px; }
.hero h1 { margin: 22px 0 0; max-width: 760px; font-family: Manrope, sans-serif; font-size: clamp(3.2rem, 7.2vw, 7.1rem); line-height: .91; letter-spacing: -.085em; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero-copy { max-width: 660px; margin-top: 25px; color: var(--muted); font-size: 1.07rem; line-height: 1.8; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 11px; }
.hero-proof { margin-top: 28px; display: flex; align-items: center; gap: 14px; color: #52646b; font-size: .86rem; font-weight: 700; }
.avatar-stack { display: flex; }
.avatar-stack span { width: 34px; height: 34px; display: grid; place-items: center; margin-left: -8px; border: 3px solid white; border-radius: 50%; background: linear-gradient(145deg, var(--mint-2), #d7eaff); font-size: .72rem; font-weight: 800; }
.avatar-stack span:first-child { margin-left: 0; }

.science-stage { position: relative; min-height: 550px; perspective: 1300px; }
.stage-panel { position: absolute; inset: 18px 4px 20px 30px; border-radius: 42px; background: linear-gradient(145deg, #071a22, #103743); overflow: hidden; box-shadow: 0 34px 80px rgba(7,26,34,.26); transform: rotateY(-4deg) rotateX(2deg); transform-style: preserve-3d; }
.stage-panel::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, black, transparent); }
.stage-panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-label { position: absolute; top: 28px; left: 28px; z-index: 4; color: white; }
.stage-label small { display: block; color: rgba(255,255,255,.58); font-weight: 700; }
.stage-label strong { display: block; margin-top: 8px; font-family: Manrope, sans-serif; font-size: 1.35rem; }
.float-card { position: absolute; z-index: 5; padding: 15px; border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.76); backdrop-filter: blur(14px); border-radius: 20px; box-shadow: var(--shadow-lg); animation: float 5.5s ease-in-out infinite; }
.float-card strong { display: block; font-family: Manrope, sans-serif; font-size: .94rem; }
.float-card span { display: block; color: var(--muted); font-size: .75rem; margin-top: 5px; }
.float-card.one { left: -12px; top: 150px; }
.float-card.two { right: -10px; bottom: 72px; animation-delay: -2s; }
.float-card.three { left: 62px; bottom: 4px; animation-delay: -4s; }
.float-icon { width: 38px; height: 38px; margin-bottom: 10px; display: grid; place-items: center; border-radius: 13px; background: var(--mint); font-size: 1.12rem; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }

/* Public sections */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.74); box-shadow: var(--shadow-sm); overflow: hidden; }
.metric { padding: 25px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-family: Manrope, sans-serif; font-size: 1.85rem; letter-spacing: -.05em; }
.metric span { display: block; margin-top: 6px; color: var(--muted); font-size: .84rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.feature-card { position: relative; min-height: 250px; padding: 24px; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.86); box-shadow: var(--shadow-sm); overflow: hidden; transition: .25s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-card::after { content: ''; position: absolute; width: 120px; height: 120px; right: -45px; bottom: -45px; border-radius: 50%; background: var(--mint); }
.feature-icon { position: relative; z-index: 2; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--mint); font-size: 1.3rem; }
.feature-card h3 { position: relative; z-index: 2; margin: 28px 0 10px; font-family: Manrope, sans-serif; font-size: 1.22rem; letter-spacing: -.03em; }
.feature-card p { position: relative; z-index: 2; margin: 0; color: var(--muted); line-height: 1.65; }
.level-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.level-card { padding: 21px; border: 1px solid var(--line); background: white; border-radius: 25px; box-shadow: var(--shadow-sm); cursor: pointer; transition: .22s ease; }
.level-card:hover { transform: translateY(-5px) rotateX(2deg); border-color: rgba(18,168,120,.25); }
.level-number { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: var(--ink); color: white; font-family: Manrope, sans-serif; font-weight: 800; }
.level-card h3 { margin: 24px 0 7px; font-family: Manrope, sans-serif; }
.level-card p { margin: 0; min-height: 58px; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.level-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }

.resource-toolbar { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, .7fr)); gap: 10px; padding: 11px; border: 1px solid var(--line); background: white; border-radius: 21px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line); background: #f8fbfa; color: var(--ink); border-radius: 14px; padding: 12px 13px; outline: none; transition: .2s ease; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(18,168,120,.45); box-shadow: 0 0 0 4px rgba(18,168,120,.09); background: white; }
.textarea { min-height: 112px; resize: vertical; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.resource-card { display: flex; flex-direction: column; min-height: 260px; padding: 19px; border: 1px solid var(--line); background: white; border-radius: 25px; box-shadow: var(--shadow-sm); transition: .22s ease; }
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.resource-card-top { display: flex; justify-content: space-between; gap: 12px; }
.resource-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: #edf8f4; color: var(--green-dark); font-weight: 900; }
.resource-card h3 { margin: 20px 0 8px; font-family: Manrope, sans-serif; font-size: 1.04rem; line-height: 1.35; }
.resource-card p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.55; }
.resource-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0; }
.resource-actions { display: flex; gap: 8px; margin-top: auto; }
.resource-actions .btn { flex: 1; }
.locked-card { background: linear-gradient(145deg, #fff, #f5f8f7); }
.locked-note { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 13px; background: #fff3df; color: #8d5a09; font-size: .78rem; font-weight: 700; }
.empty-state { grid-column: 1 / -1; padding: 45px 25px; text-align: center; border: 1px dashed rgba(7,26,34,.22); border-radius: 24px; color: var(--muted); background: rgba(255,255,255,.6); }

.cta-band { position: relative; padding: 38px; border-radius: 36px; background: linear-gradient(135deg, #071a22, #0a3b47); color: white; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ''; position: absolute; width: 320px; height: 320px; right: -110px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(182,239,113,.28), transparent 65%); }
.cta-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; }
.cta-band h2 { margin: 10px 0 9px; font-family: Manrope, sans-serif; font-size: clamp(2rem, 4vw, 3.7rem); letter-spacing: -.06em; line-height: 1; }
.cta-band p { max-width: 680px; margin: 0; color: rgba(255,255,255,.66); line-height: 1.7; }

/* Auth modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 18px; background: rgba(2,12,16,.68); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: .25s ease; }
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; border: 1px solid rgba(255,255,255,.4); border-radius: 30px; background: white; box-shadow: 0 35px 100px rgba(0,0,0,.28); transform: translateY(20px) scale(.98); transition: .25s ease; }
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-head { padding: 22px 23px 0; display: flex; justify-content: space-between; align-items: flex-start; }
.modal-head h3 { margin: 0; font-family: Manrope, sans-serif; font-size: 1.55rem; letter-spacing: -.04em; }
.modal-body { padding: 22px 23px 25px; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; border-radius: 16px; background: #f2f6f4; }
.role-switch button { padding: 11px; border: 0; border-radius: 12px; background: transparent; font-weight: 800; cursor: pointer; }
.role-switch button.active { background: white; box-shadow: 0 7px 20px rgba(7,26,34,.08); }
.form-stack { display: grid; gap: 13px; margin-top: 18px; }
.field-group label { display: block; margin-bottom: 7px; color: #42545b; font-size: .78rem; font-weight: 800; }
.form-message { min-height: 20px; font-size: .82rem; font-weight: 700; }
.form-message.error { color: var(--danger); }
.form-message.success { color: var(--success); }
.demo-box { margin-top: 16px; padding: 13px; border-radius: 15px; background: #f0f8f5; color: #405b52; font-size: .79rem; line-height: 1.55; }

/* App shell */
.app-body { background: #f3f7f5; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 20px 15px; color: white; background: linear-gradient(165deg, #071a22, #0d303b); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sidebar .brand { padding: 0 8px 21px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar .brand span { color: rgba(255,255,255,.54); }
.sidebar-mobile-close { display: none; position: absolute; top: 16px; right: 14px; z-index: 2; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; background: rgba(255,255,255,.08); color: white; font-size: 1.25rem; cursor: pointer; }
.sidebar-mobile-close:hover { background: rgba(255,255,255,.15); }
.sidebar-nav { display: grid; gap: 5px; margin-top: 20px; }
.sidebar-nav button, .sidebar-nav a { width: 100%; padding: 12px 13px; border: 0; border-radius: 14px; background: transparent; color: rgba(255,255,255,.67); text-align: left; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.sidebar-nav button:hover, .sidebar-nav button.active, .sidebar-nav a:hover { background: rgba(255,255,255,.10); color: white; }
.sidebar-footer { margin-top: 25px; padding: 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.06); }
.sidebar-footer strong { display: block; }
.sidebar-footer small { display: block; color: rgba(255,255,255,.52); margin-top: 4px; }
.app-main { min-width: 0; }
.app-topbar { position: sticky; top: 0; z-index: 60; min-height: 74px; padding: 13px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: rgba(243,247,245,.88); backdrop-filter: blur(18px); }
.app-topbar-left { display: flex; align-items: center; gap: 13px; }
.mobile-sidebar-btn { display: none; }
.topbar-title strong { display: block; font-family: Manrope, sans-serif; }
.topbar-title span { display: block; margin-top: 2px; color: var(--muted); font-size: .78rem; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.notification-button { position: relative; }
.notification-count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border: 2px solid #f3f7f5; border-radius: 999px; background: var(--danger); color: white; font-size: .65rem; font-weight: 900; display: grid; place-items: center; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px 5px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.user-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--mint); color: var(--green-dark); font-weight: 900; }
.user-chip strong { display: block; font-size: .82rem; }
.user-chip span { display: block; color: var(--muted); font-size: .7rem; margin-top: 1px; }
.app-content { padding: 28px; }
.view { display: none; animation: viewIn .28s ease; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.dashboard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; margin-bottom: 24px; }
.dashboard-head h1 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1; letter-spacing: -.065em; }
.dashboard-head p { margin: 10px 0 0; color: var(--muted); }
.access-banner { margin-bottom: 20px; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-radius: 19px; border: 1px solid rgba(18,168,120,.18); background: var(--mint); color: var(--green-dark); }
.access-banner.suspended { background: #fff2e3; border-color: #f3c17a; color: #8c5703; }
.access-banner strong { display: block; }
.access-banner span { display: block; margin-top: 2px; font-size: .82rem; opacity: .78; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card { padding: 19px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow-sm); }
.stat-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stat-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; background: var(--mint); }
.stat-card strong.value { display: block; margin-top: 21px; font-family: Manrope, sans-serif; font-size: 1.85rem; letter-spacing: -.05em; }
.stat-card span.label { display: block; margin-top: 5px; color: var(--muted); font-size: .8rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-top: 16px; }
.panel { padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.panel-head h2, .panel-head h3 { margin: 0; font-family: Manrope, sans-serif; font-size: 1.12rem; letter-spacing: -.03em; }
.list { display: grid; gap: 9px; }
.list-item { padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 13px; border: 1px solid var(--line); border-radius: 16px; background: #fbfdfc; }
.list-item-main { min-width: 0; display: flex; align-items: center; gap: 11px; }
.list-icon { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: var(--mint); }
.list-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.list-item small { display: block; margin-top: 4px; color: var(--muted); font-size: .72rem; }

/* Tables and admin */
.view-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 17px; }
.toolbar-filters { flex: 1; display: grid; grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(140px, .45fr)); gap: 9px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th { padding: 13px 15px; color: #607178; background: #f7faf9; border-bottom: 1px solid var(--line); font-size: .72rem; text-align: left; text-transform: uppercase; letter-spacing: .06em; }
td { padding: 14px 15px; border-bottom: 1px solid rgba(7,26,34,.07); vertical-align: middle; font-size: .84rem; }
tr:last-child td { border-bottom: 0; }
.student-cell { display: flex; align-items: center; gap: 10px; }
.student-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: var(--mint); color: var(--green-dark); font-weight: 900; }
.student-cell strong { display: block; }
.student-cell small { display: block; color: var(--muted); margin-top: 2px; }
.actions-cell { display: flex; align-items: center; gap: 5px; }
.status-select { min-width: 112px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 11px; background: #fafcfc; font-size: .78rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.management-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.management-card { padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow-sm); }
.management-card h3 { margin: 14px 0 7px; font-family: Manrope, sans-serif; font-size: 1rem; }
.management-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.management-card-footer { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.notification-drawer { position: fixed; right: -420px; top: 0; z-index: 260; width: min(390px, 100%); height: 100vh; padding: 20px; background: white; box-shadow: -24px 0 65px rgba(7,26,34,.18); transition: right .28s ease; overflow-y: auto; }
.notification-drawer.open { right: 0; }
.drawer-overlay { position: fixed; inset: 0; z-index: 220; background: rgba(2,12,16,.35); opacity: 0; visibility: hidden; transition: .25s ease; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.notification-item { padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #fbfdfc; }
.notification-item.unread { border-color: rgba(18,168,120,.24); background: #f1fbf7; }
.notification-item strong { display: block; font-size: .85rem; }
.notification-item p { margin: 6px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.notification-item time { display: block; margin-top: 8px; color: #8b999e; font-size: .68rem; }

/* Session cards */
.session-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.session-card { padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow-sm); }
.session-date { display: inline-grid; min-width: 67px; padding: 10px; place-items: center; border-radius: 16px; background: var(--ink); color: white; }
.session-date strong { font-family: Manrope, sans-serif; font-size: 1.4rem; line-height: 1; }
.session-date span { margin-top: 4px; font-size: .67rem; text-transform: uppercase; }
.session-card-head { display: flex; gap: 13px; align-items: flex-start; }
.session-card h3 { margin: 2px 0 6px; font-family: Manrope, sans-serif; font-size: 1.04rem; }
.session-card p { margin: 0; color: var(--muted); font-size: .81rem; line-height: 1.5; }
.session-card-actions { margin-top: 17px; display: flex; gap: 8px; }

/* Footer */
.site-footer { padding: 42px 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 28px; }
.footer-grid p { color: var(--muted); max-width: 420px; line-height: 1.6; }
.footer-links { display: grid; gap: 9px; color: #53666c; font-size: .88rem; }
.footer-bottom { margin-top: 30px; padding-top: 19px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: .78rem; }
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 57px; height: 57px; display: grid; place-items: center; border-radius: 19px; background: #16b86d; color: white; box-shadow: 0 18px 40px rgba(22,184,109,.35); font-size: 1.45rem; transition: .2s ease; }
.whatsapp-float:hover { transform: translateY(-4px) rotate(-3deg); }
.toast { position: fixed; right: 20px; bottom: 90px; z-index: 500; max-width: 360px; padding: 14px 17px; border-radius: 15px; background: var(--ink); color: white; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(22px); pointer-events: none; transition: .3s ease; font-size: .84rem; font-weight: 700; }
.toast.show { opacity: 1; transform: translateY(0); }

.app-body.sidebar-open { overflow: hidden; }

/* Responsive */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .nav-links.mobile-open { position: absolute; left: 18px; right: 18px; top: 70px; display: grid; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .science-stage { min-height: 500px; max-width: 720px; width: 100%; margin: 0 auto; }
  .level-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .toolbar-filters { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .navbar { min-height: 70px; }
  .brand img { width: 42px; height: 42px; }
  .nav-actions .btn-white { display: none; }
  .hero h1 { font-size: clamp(3rem, 13vw, 5rem); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head { align-items: flex-start; flex-direction: column; }
  .resource-toolbar { grid-template-columns: 1fr 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 240; width: min(86vw, 320px); height: 100vh; height: 100dvh; padding-top: calc(20px + env(safe-area-inset-top)); padding-bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-105%); visibility: hidden; pointer-events: none; box-shadow: 24px 0 70px rgba(2,12,16,.28); transition: transform .28s ease, visibility 0s linear .28s; }
  .sidebar.open { transform: translateX(0); visibility: visible; pointer-events: auto; transition: transform .28s ease; }
  .sidebar-mobile-close { display: grid; }
  .sidebar .brand { padding-right: 48px; }
  .sidebar-nav button, .sidebar-nav a { min-height: 49px; font-size: 1rem; touch-action: manipulation; }
  .mobile-sidebar-btn { display: grid; }
  .app-content { padding: 20px; }
  .app-topbar { padding: 12px 18px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .management-grid { grid-template-columns: repeat(2, 1fr); }
  .session-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .app-topbar { gap: 10px; }
  .topbar-title span { display: none; }
  .user-chip > div:last-child { display: none; }
  .sidebar-footer { margin-bottom: 8px; }

  .container { width: min(100% - 24px, var(--max)); }
  .section { padding: 64px 0; }
  .hero { min-height: auto; padding: 42px 0; }
  .hero-actions .btn { width: 100%; }
  .hero-proof { align-items: flex-start; }
  .science-stage { min-height: 420px; }
  .stage-panel { inset: 12px 2px 30px; border-radius: 28px; transform: none; }
  .float-card { padding: 12px; }
  .float-card.one { left: -2px; top: 125px; }
  .float-card.two { right: 0; bottom: 58px; }
  .float-card.three { display: none; }
  .metrics, .level-grid, .feature-grid, .resource-grid, .stats-grid, .management-grid { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .resource-toolbar { grid-template-columns: 1fr; }
  .cta-band { padding: 27px 21px; border-radius: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .user-chip > div:last-child { display: none; }
  .app-content { padding: 16px; }
  .dashboard-head, .view-toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-filters, .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .access-banner { align-items: flex-start; flex-direction: column; }
  .topbar-title span { display: none; }
  .modal { border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
