/* ==========================================================================
   Mentorship & Beyond Foundation — design system
   Mentorloop-inspired: friendly, rounded, generous whitespace.
   Brand: pink #d63384 (butterflies) + blue #0e7fb8 (hand) + navy ink.
   ========================================================================== */

:root {
  --pink: #d63384;
  --pink-dark: #ad2468;
  --pink-soft: #fdeef5;
  --blue: #0e7fb8;
  --blue-dark: #0a5f8e;
  --blue-soft: #e8f4fb;
  --navy: #12324a;
  --ink: #24384a;
  --muted: #5f7183;
  --line: #e4eaf1;
  --bg-soft: #f5f8fb;
  --amber: #f5a623;
  --green: #1f9d61;
  --green-soft: #e6f6ee;
  --red: #d64545;
  --red-soft: #fdecec;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 30px rgba(18, 50, 74, .09);
  --shadow-sm: 0 2px 10px rgba(18, 50, 74, .07);
  --deep: #12324a;
  --deep-2: #0a5f8e;
  --font-head: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--navy); line-height: 1.22; font-weight: 800; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.container-narrow { width: min(760px, 92%); margin: 0 auto; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  cursor: pointer; transition: all .22s ease; white-space: nowrap;
}
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(214, 51, 132, .32); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--deep); color: #fff; }
.btn-outline-white { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline-white:hover { background: #fff; color: var(--navy); }
.btn-ghost { color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-sm { padding: 8px 18px; font-size: 13.5px; }
.btn-lg { padding: 15px 34px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b53434; color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #17804e; color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--navy); line-height: 1.1; }
.brand-name small { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a { font-weight: 600; font-size: 14.5px; color: var(--ink); position: relative; }
.nav-links > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2.5px; width: 0;
  background: var(--pink); border-radius: 2px; transition: width .25s;
}
.nav-links > a:not(.btn):hover::after, .nav-links > a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* Animated brand mark: hand + fluttering butterflies */
.mb-mark { position: relative; width: 52px; height: 48px; flex: none; }
.mb-mark .hand { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 44px; }
.mb-mark .bf { position: absolute; width: 16px; animation: bf-float 3.2s ease-in-out infinite; }
.mb-mark .bf1 { left: 50%; top: 0; margin-left: -9px; width: 19px; animation-delay: 0s; }
.mb-mark .bf2 { left: 4px; top: 10px; animation-delay: .55s; animation-duration: 3.8s; }
.mb-mark .bf3 { right: 3px; top: 8px; animation-delay: 1.1s; animation-duration: 3.5s; }
@keyframes bf-float {
  0%, 100% { transform: translateY(0) rotate(-4deg) scale(1); }
  35%      { transform: translateY(-6px) rotate(5deg) scale(1.06); }
  70%      { transform: translateY(-2px) rotate(-2deg) scale(.98); }
}
.mb-mark-lg { width: 220px; height: 200px; margin: 0 auto; }
.mb-mark-lg .hand { width: 185px; }
.mb-mark-lg .bf { width: 62px; }
.mb-mark-lg .bf1 { width: 78px; margin-left: -38px; }
.mb-mark-lg .bf2 { left: 12px; top: 42px; }
.mb-mark-lg .bf3 { right: 10px; top: 36px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 70px; background:
  radial-gradient(1100px 520px at 85% -10%, var(--blue-soft) 0%, transparent 60%), #fff; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--pink);
  color: var(--pink-dark); border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 13px;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 20px; letter-spacing: -.5px; }
.hero h1 .u-pink { color: var(--pink); position: relative; white-space: nowrap; }
.hero h1 .u-pink svg { position: absolute; left: 0; bottom: -8px; width: 100%; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 54ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-head); font-size: 28px; color: var(--navy); display: block; }
.hero-stats .stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
.hero-visual { position: relative; text-align: center; }
.hero-card {
  background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 40px 30px 30px; position: relative;
  border: 1px solid var(--line);
}
.hero-card .tagline { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--navy); margin-top: 14px; }
.hero-card .tagline em { color: var(--pink); font-style: normal; }
.float-chip {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 10px 16px;
  font-size: 13px; font-weight: 700; color: var(--navy); display: flex; gap: 8px; align-items: center;
  animation: chip-float 4.5s ease-in-out infinite;
}
.float-chip .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; }
@keyframes chip-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* --------------------------------------------------------------------------
   Sections & cards
   -------------------------------------------------------------------------- */
.section { padding: 78px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker, .kicker {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pink); background: var(--pink-soft); border-radius: 999px; padding: 6px 14px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; letter-spacing: -.4px; }
.section-head p { color: var(--muted); font-size: 16.5px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 24px;
  background: var(--blue-soft); margin-bottom: 18px;
}
.card .icon.pink { background: var(--pink-soft); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card ul { margin: 12px 0 0 18px; color: var(--muted); font-size: 14.5px; }
.card ul li { margin-bottom: 6px; }

/* CREATE timeline */
.create-track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; counter-reset: step; }
.create-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; text-align: center; position: relative; transition: .25s; }
.create-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--pink); }
.create-step .letter {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 20px; color: #fff;
  background: var(--blue);
}
.create-step:nth-child(even) .letter { background: var(--pink); }
.create-step h4 { font-size: 15.5px; margin-bottom: 6px; }
.create-step p { font-size: 12.5px; color: var(--muted); }
.create-step .day { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--pink); font-weight: 800; }

/* Cohort banner card */
.cohort-card {
  border-radius: 24px; overflow: hidden; color: #fff; position: relative;
  background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 100%);
  padding: 52px; box-shadow: var(--shadow);
}
.cohort-card h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.cohort-card .meta { display: flex; gap: 26px; flex-wrap: wrap; margin: 26px 0; }
.cohort-card .meta div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 12px 18px; border-radius: 13px; font-size: 14px; }
.cohort-card .meta b { display: block; font-size: 17px; }

/* Steps (how it works) */
.howto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.howto .step { text-align: center; padding: 26px 16px; position: relative; }
.howto .num {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pink-soft); color: var(--pink-dark); font-family: var(--font-head); font-weight: 800; font-size: 21px;
  border: 2px dashed var(--pink);
}
.howto h4 { font-size: 16.5px; margin-bottom: 8px; }
.howto p { font-size: 13.5px; color: var(--muted); }

/* Testimonials */
.tst-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 28px; box-shadow: var(--shadow-sm); }
.tst-card .quote { font-size: 15px; color: var(--ink); font-style: italic; margin-bottom: 18px; }
.tst-card .who { display: flex; align-items: center; gap: 12px; }
.tst-card .who .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--blue); }
.tst-card .who b { display: block; font-size: 14.5px; color: var(--navy); }
.tst-card .who span { font-size: 12.5px; color: var(--muted); }

/* Blog cards */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card .cover { height: 190px; background: var(--bg-soft); display: grid; place-items: center; font-size: 44px; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .cat { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
.post-card h3 { font-size: 18px; }
.post-card h3 a { color: var(--navy); }
.post-card .meta { margin-top: auto; font-size: 12.5px; color: var(--muted); }

/* Prose (CMS/blog content) */
.prose { font-size: 16px; color: var(--ink); }
.prose h2 { font-size: 24px; margin: 34px 0 14px; }
.prose h3 { font-size: 19px; margin: 26px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { border-left: 4px solid var(--pink); background: var(--pink-soft); padding: 14px 20px; border-radius: 0 12px 12px 0; margin-bottom: 18px; }
.prose img { border-radius: var(--radius-sm); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.fg { margin-bottom: 18px; }
.fg label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 7px; color: var(--navy); }
.fg label .req { color: var(--pink); }
.fg .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.input, .fg input[type=text], .fg input[type=email], .fg input[type=tel], .fg input[type=password],
.fg input[type=number], .fg input[type=date], .fg input[type=datetime-local], .fg input[type=url],
.fg input[type=file], .fg select, .fg textarea {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14.5px; color: var(--ink); background: #fff; transition: border .2s, box-shadow .2s;
}
.fg textarea { resize: vertical; min-height: 110px; }
.fg input:focus, .fg select:focus, .fg textarea:focus, .input:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3.5px var(--blue-soft);
}
.choice-list { display: flex; flex-direction: column; gap: 9px; }
.choice {
  display: flex; align-items: flex-start; gap: 11px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 15px; cursor: pointer; transition: .2s; font-size: 14.5px;
}
.choice:hover { border-color: var(--blue); background: var(--blue-soft); }
.choice input { margin-top: 3px; accent-color: var(--pink); }
.choice input:checked + span { font-weight: 700; color: var(--navy); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 40px; }

/* --------------------------------------------------------------------------
   Alerts / flash / badges
   -------------------------------------------------------------------------- */
.flash-stack { position: fixed; top: 86px; right: 18px; z-index: 500; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.alert { padding: 14px 18px; border-radius: 13px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: flex-start; animation: slide-in .35s ease; }
@keyframes slide-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.alert-success { background: var(--green-soft); color: #14603c; border: 1px solid #bfe6d2; }
.alert-error   { background: var(--red-soft); color: #8c2626; border: 1px solid #f3c8c8; }
.alert-info    { background: var(--blue-soft); color: var(--blue-dark); border: 1px solid #cfe6f4; }
.alert-static  { position: static; box-shadow: none; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: #fdf3e0; color: #a86a08; }
.badge-red   { background: var(--red-soft); color: var(--red); }
.badge-blue  { background: var(--blue-soft); color: var(--blue-dark); }
.badge-grey  { background: #eef2f6; color: var(--muted); }
.badge-pink  { background: var(--pink-soft); color: var(--pink-dark); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--deep); color: #b9c9d6; padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 42px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer a { color: #b9c9d6; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; font-size: 14px; }
.footer .about { font-size: 14px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: .2s; }
.footer-social a:hover { background: var(--pink); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; }

/* --------------------------------------------------------------------------
   Cookie banner + signup popup
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed; bottom: 18px; left: 18px; right: 18px; z-index: 600; max-width: 620px; margin: 0 auto;
  background: var(--deep); color: #dbe7f0; border-radius: 18px; padding: 22px 26px; box-shadow: 0 12px 40px rgba(0,0,0,.3);
  display: none; gap: 18px; align-items: center; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; animation: slide-up .4s ease; }
@keyframes slide-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie-banner p { font-size: 13.5px; flex: 1 1 300px; margin: 0; }
.cookie-banner a { color: #8fd0f5; }
.cookie-actions { display: flex; gap: 10px; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10, 26, 40, .6); backdrop-filter: blur(4px);
  z-index: 700; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.show { display: flex; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: 22px; max-width: 520px; width: 100%; padding: 40px; position: relative; box-shadow: 0 24px 80px rgba(0,0,0,.35); animation: pop .35s ease; max-height: 92vh; overflow: auto; }
@keyframes pop { from { transform: scale(.92) translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal .close { position: absolute; top: 14px; right: 16px; background: var(--bg-soft); border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 17px; cursor: pointer; color: var(--muted); }
.modal .close:hover { background: var(--pink-soft); color: var(--pink-dark); }

/* --------------------------------------------------------------------------
   Portal & admin shells
   -------------------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; background: var(--bg-soft); }
.sidebar { background: var(--deep); color: #b9c9d6; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .brand { margin-bottom: 26px; padding: 0 8px; }
.sidebar .brand .brand-name { color: #fff; font-size: 15.5px; }
.sidebar nav { display: flex; flex-direction: column; gap: 3px; }
.sidebar nav .nav-sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: #6d8296; margin: 18px 10px 6px; font-weight: 800; }
.sidebar nav a {
  display: flex; align-items: center; gap: 11px; color: #c3d2de; padding: 10px 12px; border-radius: 11px;
  font-size: 14px; font-weight: 600; transition: .18s;
}
.sidebar nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar nav a.active { background: var(--pink); color: #fff; }
.sidebar nav a .n-ic { width: 20px; text-align: center; }
.sidebar nav a .pill { margin-left: auto; background: var(--pink); color: #fff; border-radius: 999px; font-size: 10.5px; padding: 2px 8px; font-weight: 800; }
.sidebar nav a.active .pill { background: #fff; color: var(--pink-dark); }
.sidebar .side-foot { margin-top: auto; padding: 14px 8px 4px; font-size: 12px; color: #6d8296; }
.main { padding: 28px 34px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.topbar h1 { font-size: 24px; }
.topbar .crumbs { font-size: 13px; color: var(--muted); margin-top: 3px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.avatar-chip { display: flex; align-items: center; gap: 10px; background: #fff; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--navy); }
.avatar-chip .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; background: var(--blue); }
.bell { position: relative; width: 40px; height: 40px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 50%; font-size: 17px; }
.bell .count { position: absolute; top: -4px; right: -4px; background: var(--pink); color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 1px 6px; }

/* Panels, stats, tables */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h2 { font-size: 17.5px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.stat-card .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; background: var(--blue-soft); }
.stat-card b { font-family: var(--font-head); font-size: 26px; color: var(--navy); display: block; }
.stat-card span { font-size: 13px; color: var(--muted); font-weight: 600; }

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: var(--bg-soft); }
.tbl .actions { display: flex; gap: 8px; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .big { font-size: 42px; margin-bottom: 12px; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 12px; max-height: 480px; overflow-y: auto; padding: 6px 2px; }
.msg { max-width: 78%; padding: 12px 16px; border-radius: 16px; font-size: 14.5px; }
.msg.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .m-meta { display: block; font-size: 10.5px; opacity: .75; margin-top: 5px; }

/* Notifications list */
.notif { display: flex; gap: 14px; padding: 15px 6px; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif .n-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); font-size: 17px; }
.notif.unread { background: var(--blue-soft); border-radius: 12px; padding: 15px 14px; }
.notif b { font-size: 14.5px; color: var(--navy); display: block; }
.notif p { font-size: 13.5px; color: var(--muted); margin: 2px 0 4px; }
.notif time { font-size: 11.5px; color: var(--muted); }

/* Progress */
.progress { background: var(--line); border-radius: 999px; height: 10px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--pink); border-radius: 999px; transition: width .4s ease; }

/* Lock overlay */
.locked-note { background: #fdf3e0; border: 1.5px dashed var(--amber); color: #7c5206; border-radius: var(--radius); padding: 18px 22px; font-size: 14.5px; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; }

/* Auth pages */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  background: linear-gradient(150deg, var(--deep), var(--deep-2));
  color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.auth-side h2 { color: #fff; font-size: 30px; margin: 22px 0 12px; }
.auth-side p { color: #cfe0ec; font-size: 15.5px; max-width: 44ch; }
.auth-side .points { margin-top: 28px; display: flex; flex-direction: column; gap: 13px; }
.auth-side .points div { display: flex; gap: 11px; font-size: 14.5px; color: #dcebf5; }
.auth-form-col { display: flex; align-items: center; justify-content: center; padding: 46px 22px; background: var(--bg-soft); }
.auth-box { width: min(520px, 100%); }
.auth-box .form-card { padding: 42px; }

/* Pagination */
.pager { display: flex; gap: 7px; justify-content: center; margin-top: 30px; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 700; color: var(--navy); padding: 0 10px; }
.pager .cur { background: var(--pink); color: #fff; border-color: var(--pink); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Page header (inner pages) */
.page-head { background: linear-gradient(140deg, var(--deep), var(--deep-2)); color: #fff; padding: 62px 0 54px; position: relative; overflow: hidden; }
.page-head h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; }
.page-head p { color: #c9dcea; font-size: 16px; max-width: 60ch; }
.page-head .crumbs { font-size: 13px; margin-top: 14px; color: #9fc0d6; }
.page-head .crumbs a { color: #cfe6f6; }

/* Misc */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.small { font-size: 13px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 22px 0; border: 0; }
.kbd { background: var(--bg-soft); border: 1px solid var(--line); padding: 2px 9px; border-radius: 7px; font-family: monospace; font-size: 13px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4, .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .create-track { grid-template-columns: repeat(4, 1fr); }
  .howto { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid, .grid-2, .grid-3, .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .hero { padding: 54px 0 50px; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 18px 22px 26px; gap: 6px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .3s ease; z-index: 190;
  }
  .nav-links.open { transform: none; }
  .nav-links > a { padding: 11px 6px; font-size: 15.5px; }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-toggle { display: block; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 300; width: 262px; transform: translateX(-105%); transition: transform .3s; height: 100vh; }
  .sidebar.open { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.35); }
  .main { padding: 20px 16px 50px; }
  .mobile-side-toggle { display: inline-flex !important; }
  .form-grid { grid-template-columns: 1fr; }
  .cohort-card { padding: 32px 24px; }
}
@media (max-width: 560px) {
  .grid-4, .stat-cards, .create-track, .howto { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .form-card, .auth-box .form-card { padding: 26px 20px; }
}
.mobile-side-toggle { display: none; }

/* ==========================================================================
   v2 — Icons, dark theme, UI kit (alerts/selects/tables), social blog,
   curriculum, mentors. Mobile-first refinements.
   ========================================================================== */

.ic { vertical-align: -0.18em; flex: none; }
.btn .ic { vertical-align: -0.22em; }
.n-ic .ic, .icon .ic { vertical-align: middle; }
.ic-spacer { display: inline-block; width: 14px; }

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface, #fff); color: var(--navy); cursor: pointer;
  display: inline-grid; place-items: center; transition: .2s;
}
.theme-toggle:hover { border-color: var(--pink); color: var(--pink); }

/* --------------------------------------------------------------------------
   Dark theme
   -------------------------------------------------------------------------- */
[data-theme=dark] {
  --deep: #0e2436;
  --deep-2: #0d4a6e;
  --navy: #e8f1f8;
  --ink: #d5e2ec;
  --muted: #9fb5c8;
  --line: #22364a;
  --bg-soft: #0d1b28;
  --blue-soft: #10293d;
  --pink-soft: #2e1424;
  --green-soft: #0e2b1e;
  --red-soft: #331416;
  --shadow: 0 6px 30px rgba(0, 0, 0, .45);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --surface: #14263a;
}
[data-theme=dark] body { background: #0a1622; color: var(--ink); }
[data-theme=dark] .navbar { background: rgba(13, 27, 40, .94); border-color: var(--line); }
[data-theme=dark] .card, [data-theme=dark] .panel, [data-theme=dark] .stat-card,
[data-theme=dark] .form-card, [data-theme=dark] .hero-card, [data-theme=dark] .float-chip,
[data-theme=dark] .tst-card, [data-theme=dark] .msg.them, [data-theme=dark] .avatar-chip,
[data-theme=dark] .bell, [data-theme=dark] .pager a, [data-theme=dark] .pager span,
[data-theme=dark] .hero-badge, [data-theme=dark] .modal, [data-theme=dark] .create-step,
[data-theme=dark] .choice, [data-theme=dark] .theme-toggle { background: #14263a; border-color: var(--line); color: var(--ink); }
[data-theme=dark] .hero { background:
  radial-gradient(1100px 520px at 85% -10%, #10293d 0%, transparent 60%),
  radial-gradient(900px 500px at -10% 110%, #2b1020 0%, transparent 55%), #0a1622; }
[data-theme=dark] .section-soft, [data-theme=dark] .auth-form-col { background: #0d1b28; }
[data-theme=dark] .fg input, [data-theme=dark] .fg select, [data-theme=dark] .fg textarea, [data-theme=dark] .input,
[data-theme=dark] .mb-select-control, [data-theme=dark] .mb-select-menu {
  background: #0f2033; border-color: #24405c; color: var(--ink);
}
[data-theme=dark] .fg input:disabled { background: #14263a; color: var(--muted); }
[data-theme=dark] .tbl tr:hover td { background: #10243a; }
[data-theme=dark] .kbd { background: #0f2033; border-color: #24405c; }
[data-theme=dark] .notif.unread { background: #10293d; }
[data-theme=dark] .badge-grey { background: #22364a; color: #a9bccb; }
[data-theme=dark] .prose blockquote { background: #2b1020; }
[data-theme=dark] .locked-note { background: #2b2205; border-color: #6d5a11; color: #e8cf7a; }
[data-theme=dark] .btn-outline { border-color: #8fb4cf; color: #cfe4f3; }
[data-theme=dark] .post-card .cover { background: #10243a; }
[data-theme=dark] img.brand-invert { filter: brightness(1.15); }

/* --------------------------------------------------------------------------
   mbAlert (sweet-alert style)
   -------------------------------------------------------------------------- */
.mb-alert-backdrop {
  position: fixed; inset: 0; z-index: 900; background: rgba(8, 20, 32, .62);
  backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px;
  opacity: 0; transition: opacity .2s;
}
.mb-alert-backdrop.show { opacity: 1; }
.mb-alert {
  background: var(--surface, #fff); border-radius: 20px; padding: 34px 30px 26px; text-align: center;
  max-width: 420px; width: 100%; box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
  transform: scale(.92) translateY(12px); transition: transform .2s;
}
[data-theme=dark] .mb-alert { background: #14263a; }
.mb-alert-backdrop.show .mb-alert { transform: none; }
.mb-alert-icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
}
.mb-alert-icon.success { background: var(--green-soft); color: var(--green); }
.mb-alert-icon.error   { background: var(--red-soft); color: var(--red); }
.mb-alert-icon.warning { background: #fdf3e0; color: #a86a08; }
.mb-alert-icon.info    { background: var(--blue-soft); color: var(--blue); }
.mb-alert-icon.question{ background: var(--pink-soft); color: var(--pink); }
.mb-alert h3 { font-size: 20px; margin-bottom: 8px; }
.mb-alert p { color: var(--muted); font-size: 14.5px; }
.mb-alert-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   mbSelect
   -------------------------------------------------------------------------- */
.mb-select { position: relative; }
.mb-select-native { display: none !important; }
.mb-select-control {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-height: 46px;
  padding: 8px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; font-size: 14.5px;
}
.mb-select-control > .ic { margin-left: auto; color: var(--muted); }
.mb-select-ph { color: #9aa9b7; }
.mb-chip {
  background: var(--blue-soft); color: var(--blue-dark); border-radius: 999px; padding: 3px 11px;
  font-size: 12.5px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center;
}
[data-theme=dark] .mb-chip { color: #9fd2f2; }
.mb-chip b { cursor: pointer; font-size: 14px; }
.mb-select-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 300;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  display: none; overflow: hidden;
}
.mb-select.open .mb-select-menu { display: block; }
.mb-select-search { padding: 10px; border-bottom: 1px solid var(--line); }
.mb-select-search input { width: 100%; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 9px; font-size: 14px; background: inherit; color: inherit; }
.mb-select-options { max-height: 230px; overflow-y: auto; }
.mb-select-opt { padding: 10px 14px; cursor: pointer; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.mb-select-opt:hover { background: var(--blue-soft); }
.mb-select-opt.sel { font-weight: 700; color: var(--pink-dark); }
[data-theme=dark] .mb-select-opt.sel { color: #ff9ecb; }
.mb-select-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* --------------------------------------------------------------------------
   mbTable
   -------------------------------------------------------------------------- */
.mb-table-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.mb-table-search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; flex: 1 1 220px; max-width: 340px; color: var(--muted); background: var(--surface, #fff); }
[data-theme=dark] .mb-table-search { background: #0f2033; }
.mb-table-search input { border: 0; outline: 0; background: transparent; font-size: 14px; width: 100%; color: inherit; }
.mb-table-actions { display: flex; gap: 8px; align-items: center; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--pink); }
th.sort-asc::after { content: ' ↑'; color: var(--pink); }
th.sort-desc::after { content: ' ↓'; color: var(--pink); }

/* --------------------------------------------------------------------------
   Social blog
   -------------------------------------------------------------------------- */
.react-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 26px 0; }
.react-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface, #fff); color: var(--ink); cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px; transition: .18s;
}
[data-theme=dark] .react-btn { background: #14263a; }
.react-btn:hover { transform: translateY(-2px); border-color: var(--pink); color: var(--pink); }
.react-btn.active { background: var(--pink); border-color: var(--pink); color: #fff; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 700; cursor: pointer; border: 0; color: #fff; transition: .18s;
}
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter  { background: #14171a; }
.share-btn.instagram{ background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.share-btn.email    { background: var(--blue); }
.share-btn.link     { background: var(--muted); }
.comment-item { display: flex; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-item:last-child { border-bottom: 0; }
.comment-item .cavatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 14px; background: var(--blue); overflow: hidden;
}
.comment-item .cavatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-bubble { background: var(--bg-soft); border-radius: 4px 16px 16px 16px; padding: 12px 16px; }
[data-theme=dark] .comment-bubble { background: #10243a; }
.comment-bubble b { font-size: 14px; color: var(--navy); }
.comment-bubble p { font-size: 14px; color: var(--ink); margin-top: 3px; }
.comment-meta { display: flex; gap: 16px; margin: 6px 2px 0; font-size: 12.5px; color: var(--muted); align-items: center; }
.comment-meta button { background: none; border: 0; color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.comment-meta button:hover, .comment-meta button.active { color: var(--pink); }
.comment-replies { margin-left: 30px; }

/* --------------------------------------------------------------------------
   Curriculum / self-paced learning
   -------------------------------------------------------------------------- */
.module-card { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; overflow: hidden; background: var(--surface, #fff); }
[data-theme=dark] .module-card { background: #14263a; }
.module-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; }
.module-head:hover { background: var(--bg-soft); }
.module-head .mnum { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; background: var(--blue-soft); color: var(--blue-dark); }
.module-items { border-top: 1px solid var(--line); display: none; }
.module-card.open .module-items { display: block; }
.mitem { display: flex; align-items: center; gap: 13px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.mitem:last-child { border-bottom: 0; }
.mitem .mtype { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--pink-soft); color: var(--pink-dark); }
.mitem.done .mtype { background: var(--green-soft); color: var(--green); }
.mitem b { font-size: 14.5px; }
.mitem .small { font-size: 12px; }

/* Mentee cards (mentor view) */
.mentee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.mentee-card { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
[data-theme=dark] .mentee-card { background: #14263a; }
.mentee-card .mavatar { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; color: #fff; font-size: 24px; font-weight: 800; background: var(--blue); overflow: hidden; }
.mentee-card .mavatar img { width: 100%; height: 100%; object-fit: cover; }
.mentee-card b { display: block; font-size: 15px; color: var(--navy); }
.mentee-card .mno { font-size: 12px; color: var(--pink-dark); font-weight: 800; letter-spacing: .06em; }

/* Backup cards */
.backup-row code { font-size: 12px; }

/* Mobile-first refinements */
@media (max-width: 560px) {
  .btn-lg { padding: 13px 22px; font-size: 15px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 52px 0; }
  .topbar h1 { font-size: 20px; }
  .main { padding: 16px 12px 44px; }
  .panel { padding: 18px 16px; }
  .mb-table-bar { flex-direction: column; align-items: stretch; }
  .mb-table-search { max-width: none; }
  .react-bar { gap: 6px; }
  .react-btn { padding: 7px 12px; font-size: 12.5px; }
  .comment-replies { margin-left: 14px; }
  .cohort-card .meta div { flex: 1 1 40%; }
  .flash-stack { left: 12px; right: 12px; max-width: none; }
}


/* Dark-theme contrast refinements */
[data-theme=dark] .mno { color: #ff8fc2; }
[data-theme=dark] .badge-amber { background: #33260a; color: #e6b45c; }
[data-theme=dark] .mb-alert-icon.warning { background: #33260a; color: #e6b45c; }
[data-theme=dark] .card .icon { background: #10293d; }
[data-theme=dark] .card .icon.pink { background: #2e1424; }
[data-theme=dark] .howto .num { background: #2e1424; color: #ff8fc2; }
[data-theme=dark] .cohort-card .meta div { background: rgba(255,255,255,.08); }
[data-theme=dark] .comment-bubble b, [data-theme=dark] .post-card h3 a { color: #e8f1f8; }
[data-theme=dark] .share-btn.twitter { background: #2b3a4a; }
[data-theme=dark] .mb-table-search input::placeholder,
[data-theme=dark] .fg input::placeholder, [data-theme=dark] .fg textarea::placeholder { color: #6d8296; }

/* --------------------------------------------------------------------------
   Spider Secrets: live web weaving
   -------------------------------------------------------------------------- */
.web-stage {
  position: relative; border-radius: 24px; overflow: hidden;
  background: radial-gradient(900px 480px at 50% 42%, #16324a 0%, #0d1f30 68%, #0a1826 100%);
  border: 1px solid #1d3850; box-shadow: var(--shadow);
}
.web-stage > svg#webSvg { display: block; width: 100%; height: auto; }
.web-thread { stroke: rgba(214, 230, 244, .34); stroke-width: 1.1; fill: none; }
.web-frame-line { stroke: rgba(214, 230, 244, .48); stroke-width: 1.5; }
.web-spiral { stroke: rgba(232, 244, 253, .75); stroke-width: 1.5; stroke-linecap: round; }
.woven .web-thread { filter: drop-shadow(0 0 2.5px rgba(160, 210, 250, .5)); }
.woven #webSway { animation: web-sway 9s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes web-sway { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(.5deg); } }

.sp-abdomen { fill: #22303e; stroke: #0b141d; stroke-width: .8; }
.sp-head { fill: #2c3c4c; stroke: #0b141d; stroke-width: .8; }
.sp-mark { fill: var(--pink); opacity: .85; }
.sp-eye { fill: #cfe6f6; }
.sp-leg { stroke: #26343f; stroke-width: 1.7; fill: none; stroke-linecap: round; }

.stage-node .node-core { fill: #7d92a5; transition: fill .4s; }
.stage-node .node-halo { fill: transparent; transition: fill .5s; }
.stage-node .node-ring { fill: none; stroke: #9db3c6; stroke-width: 1.6; }
.stage-node .node-label {
  font-family: var(--font-head); font-size: 13.5px; font-weight: 700; fill: rgba(214, 230, 244, .45);
  letter-spacing: .04em; transition: fill .5s;
}
.stage-node.active .node-label { fill: #eaf4fc; }
.stage-node.st-green.active .node-core { fill: #35c380; }
.stage-node.st-green.active .node-halo { fill: rgba(53, 195, 128, .16); }
.stage-node.st-green.active .node-ring { stroke: #35c380; }
.stage-node.st-blue.active .node-core { fill: #3aa5dd; }
.stage-node.st-blue.active .node-halo { fill: rgba(58, 165, 221, .16); }
.stage-node.st-blue.active .node-ring { stroke: #3aa5dd; }
.stage-node.st-pink.active .node-core { fill: #ef6aab; }
.stage-node.st-pink.active .node-halo { fill: rgba(239, 106, 171, .16); }
.stage-node.st-pink.active .node-ring { stroke: #ef6aab; }
.stage-node.st-amber.active .node-core { fill: #f0b64f; }
.stage-node.st-amber.active .node-halo { fill: rgba(240, 182, 79, .16); }
.stage-node.st-amber.active .node-ring { stroke: #f0b64f; }
.stage-node.active .node-core { animation: node-pop .5s ease; }
@keyframes node-pop { 0% { r: 5.5; } 45% { r: 9; } 100% { r: 5.5; } }

.web-hud {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between;
  align-items: center; gap: 14px; padding: 14px 22px; flex-wrap: wrap;
  background: linear-gradient(0deg, rgba(6, 16, 26, .82), transparent);
}
.web-hud span { color: #cfe0ec; font-size: 13.5px; font-weight: 600; }
.stage-card { transition: box-shadow .5s, opacity .5s, transform .5s; }
.stage-card.lit { opacity: 1 !important; box-shadow: 0 10px 34px rgba(14, 127, 184, .18); transform: translateY(-4px); }
@media (max-width: 560px) {
  .stage-node .node-label { font-size: 19px; }
  .web-hud { padding: 10px 14px; }
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gal-albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.gal-album-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface, #fff); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; color: inherit; }
[data-theme=dark] .gal-album-card { background: #14263a; }
.gal-album-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: inherit; }
.gal-album-cover { position: relative; height: 210px; background: var(--bg-soft); }
.gal-album-cover img { width: 100%; height: 100%; object-fit: cover; }
.gal-album-empty { display: grid; place-items: center; height: 100%; color: var(--muted); }
.gal-album-count { position: absolute; bottom: 10px; right: 10px; background: rgba(8, 20, 32, .72); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; display: inline-flex; gap: 5px; align-items: center; }
.gal-album-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.gal-album-body h3 { font-size: 17px; }

.gal-grid { columns: 3 300px; column-gap: 16px; }
.gal-item { break-inside: avoid; margin: 0 0 16px; position: relative; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--bg-soft); border: 1px solid var(--line); }
.gal-item img, .gal-item video { width: 100%; display: block; transition: transform .4s ease; }
.gal-item:hover img, .gal-item:hover video { transform: scale(1.035); }
.gal-item:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.gal-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 20, 32, .65); color: #fff; border: 2px solid rgba(255,255,255,.65); pointer-events: none; }
.gal-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 12px; background: linear-gradient(0deg, rgba(6, 16, 26, .85), transparent); color: #fff; font-size: 12.5px; opacity: 0; transition: opacity .3s; }
.gal-item:hover figcaption, .gal-item:focus figcaption { opacity: 1; }
.gal-item figcaption b { display: block; font-size: 13.5px; }
.gal-item figcaption span { color: #cfe0ec; }

/* Lightbox */
.gal-lightbox { position: fixed; inset: 0; z-index: 950; background: rgba(5, 12, 20, .93); backdrop-filter: blur(6px); display: none; }
.gal-lightbox.show { display: block; animation: fade .25s; }
.gal-lb-stage { position: absolute; inset: 54px 64px 86px; display: grid; place-items: center; }
.gal-lb-stage img, .gal-lb-stage video { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 80px rgba(0,0,0,.6); }
.gal-yt-wrap { width: min(1100px, 100%); aspect-ratio: 16 / 9; }
.gal-yt-wrap iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.gal-lb-btn { position: absolute; z-index: 5; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: .2s; }
.gal-lb-btn:hover { background: var(--pink); border-color: var(--pink); }
.gal-lb-close { top: 16px; right: 16px; }
.gal-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.gal-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.gal-lb-caption { position: absolute; left: 0; right: 0; bottom: 40px; text-align: center; color: #fff; padding: 0 70px; font-size: 14px; }
.gal-lb-caption b { display: block; font-size: 15.5px; }
.gal-lb-caption span { color: #b9cddd; font-size: 13px; }
.gal-lb-counter { position: absolute; top: 24px; left: 22px; color: #b9cddd; font-size: 13px; font-weight: 700; }

/* Admin gallery grid */
.gal-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.gal-admin-item { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface, #fff); }
[data-theme=dark] .gal-admin-item { background: #14263a; }
.gal-admin-item.is-cover { border-color: var(--pink); }
.gal-admin-thumb { position: relative; height: 140px; border-radius: 10px; overflow: hidden; background: var(--bg-soft); margin-bottom: 10px; }
.gal-admin-thumb img, .gal-admin-thumb video { width: 100%; height: 100%; object-fit: cover; }
.gal-type { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 8px; background: rgba(8,20,32,.7); color: #fff; display: grid; place-items: center; }
.gal-cover-badge { position: absolute; bottom: 8px; left: 8px; }

@media (max-width: 1024px) { .gal-albums { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .gal-albums { grid-template-columns: 1fr; }
  .gal-grid { columns: 2 150px; column-gap: 10px; }
  .gal-item { margin-bottom: 10px; }
  .gal-lb-stage { inset: 50px 8px 96px; }
  .gal-lb-caption { padding: 0 16px; bottom: 46px; }
  .gal-lb-prev { left: 6px; } .gal-lb-next { right: 6px; }
}

/* Galaxy weave canvas */
.web-stage canvas { display: block; width: 100%; border-radius: 24px; }

/* --------------------------------------------------------------------------
   Profile wizard + Personal Styles presentation
   -------------------------------------------------------------------------- */
.wiz-progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.wiz-progress i { display: block; height: 100%; background: var(--pink); border-radius: 999px; transition: width .35s ease; }
.wiz-steps-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.wiz-dot {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface, #fff);
  font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--muted); cursor: pointer; transition: .2s;
}
[data-theme=dark] .wiz-dot { background: #14263a; }
.wiz-dot.cur { background: var(--pink); border-color: var(--pink); color: #fff; }
.wiz-dot.done { border-color: var(--green); color: var(--green); }
.wiz-title { font-size: 18px; margin-bottom: 14px; }
.guide-card {
  display: flex; gap: 16px; align-items: flex-start; background: var(--blue-soft); border: 1px solid #cfe6f4;
  border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; font-size: 14px;
}
[data-theme=dark] .guide-card { background: #10293d; border-color: #24405c; }
.guide-card b { display: block; margin-bottom: 6px; color: var(--blue-dark); }
[data-theme=dark] .guide-card b { color: #8fd0f5; }
.guide-card ol { margin: 0 0 12px 18px; color: var(--ink); }
.guide-card ol li { margin-bottom: 4px; }
.guide-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: #fff; padding: 6px; flex: none; border: 1px solid var(--line); }
.wiz-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; flex-wrap: wrap; }
.wiz-actions #wizBack { margin-right: auto; }
.wiz-review { display: flex; flex-direction: column; gap: 8px; }
.wiz-review-row { display: flex; gap: 14px; padding: 10px 14px; border-radius: 10px; background: var(--bg-soft); font-size: 13.5px; }
.wiz-review-row b { min-width: 130px; }
.wiz-review-row.missing span { color: var(--muted); font-style: italic; }
.wiz-review-row.ok b { color: var(--green); }

.pr-header { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.pr-avatar { width: 92px; height: 92px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--blue); color: #fff; font-size: 30px; font-weight: 800; border: 3px solid var(--pink-soft); }
.pr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pr-tagline { font-family: var(--font-head); font-weight: 700; color: var(--pink-dark); font-size: 16px; margin: 2px 0; }
[data-theme=dark] .pr-tagline { color: #ff8fc2; }
.pr-sec-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.pr-sec-ic { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--pink-soft); color: var(--pink-dark); }
[data-theme=dark] .pr-sec-ic { color: #ff8fc2; }
.pr-sec-no { font-family: var(--font-head); font-weight: 800; color: var(--muted); font-size: 13px; }
.pr-sec-head h3 { font-size: 17px; letter-spacing: .04em; }
.pr-sec-head h3 em { font-style: normal; color: var(--blue-dark); }
[data-theme=dark] .pr-sec-head h3 em { color: #8fd0f5; }
.pr-desc { color: var(--ink); font-size: 14.5px; margin-bottom: 14px; }
.pr-traits { list-style: none; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 18px; }
.pr-traits li { font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; color: var(--ink); }
.pr-traits li .ic { color: var(--green); margin-top: 2px; }
.pr-scores { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.pr-score-row { display: grid; grid-template-columns: 96px 1fr 44px; gap: 12px; align-items: center; font-size: 13.5px; }
.pr-score-row b { text-align: right; }
.pr-score-bar { height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; }
.pr-score-bar i { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.pr-score-row:first-of-type .pr-score-bar i { background: var(--blue); }
.pr-vm h3 { font-size: 15px; letter-spacing: .06em; margin: 10px 0 8px; }
.pr-vm p { font-size: 14.5px; color: var(--ink); }
.pr-lights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pr-light { border-radius: 14px; padding: 18px; border: 1px solid var(--line); }
.pr-light span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 10px; }
.pr-light.sun  { background: #fdf6e4; } .pr-light.sun span  { background: #f5e3ad; color: #8a6a08; }
.pr-light.moon { background: var(--bg-soft); } .pr-light.moon span { background: #dfe8f0; color: var(--navy); }
.pr-light.stars{ background: var(--blue-soft); } .pr-light.stars span{ background: #cde7f7; color: var(--blue-dark); }
[data-theme=dark] .pr-light.sun  { background: #2b2408; }
[data-theme=dark] .pr-light.sun span { background: #4a3c0e; color: #e8cf7a; }
[data-theme=dark] .pr-light.moon { background: #14263a; }
[data-theme=dark] .pr-light.moon span { background: #22364a; color: #d5e2ec; }
[data-theme=dark] .pr-light.stars{ background: #10293d; }
[data-theme=dark] .pr-light.stars span { background: #1a3c57; color: #8fd0f5; }
.pr-light b { display: block; font-size: 13px; letter-spacing: .05em; margin-bottom: 6px; color: var(--navy); }
.pr-light p { font-size: 13.5px; color: var(--ink); }
.pr-plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pr-plan-col { border-left: 3px solid var(--pink); background: var(--bg-soft); border-radius: 0 12px 12px 0; padding: 14px 16px; }
[data-theme=dark] .pr-plan-col { background: #10243a; }
.pr-plan-col b { display: flex; gap: 7px; align-items: center; margin-bottom: 8px; font-size: 14px; color: var(--navy); }
.pr-plan-col p { font-size: 13.5px; color: var(--ink); }
.pr-qa { border-bottom: 1px solid var(--line); padding: 10px 4px; }
.pr-qa:last-child { border-bottom: 0; }
.pr-qa summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--navy); }
.pr-qa p { padding: 8px 4px 2px; font-size: 14px; color: var(--ink); }
@media (max-width: 860px) {
  .pr-lights, .pr-plan { grid-template-columns: 1fr; }
  .pr-traits { grid-template-columns: 1fr; }
  .wiz-actions #wizBack { margin-right: 0; }
}

/* --------------------------------------------------------------------------
   PWA install invitation (appears after cookie consent, until installed)
   -------------------------------------------------------------------------- */
.pwa-banner {
  position: fixed; right: 18px; bottom: 18px; z-index: 590; max-width: 430px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  background: var(--deep); color: #dbe7f0; border: 1px solid #24405c;
  border-radius: 18px; padding: 16px 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(24px); transition: opacity .35s ease, transform .35s ease;
}
.pwa-banner.show { opacity: 1; transform: none; }
.pwa-banner .pwa-ic { width: 46px; height: 46px; border-radius: 12px; background: #fff; padding: 5px; flex: none; }
.pwa-banner .pwa-txt { flex: 1 1 180px; min-width: 0; }
.pwa-banner .pwa-txt b { display: block; color: #fff; font-family: var(--font-head); font-size: 14.5px; }
.pwa-banner .pwa-txt span { font-size: 12.5px; color: #b9cddd; line-height: 1.45; display: block; margin-top: 2px; }
.pwa-banner .pwa-actions { display: flex; gap: 8px; align-items: center; }
.pwa-banner .pwa-later { color: #b9cddd; background: transparent; }
.pwa-banner .pwa-later:hover { color: #fff; background: rgba(255, 255, 255, .08); }
@media (max-width: 560px) {
  .pwa-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
