/* ================================================================
   MyAISchool — Bright Glassmorphism Landing  |  lms-landing.css
   Primary: #00897B  |  Highlight: #E65100  |  BG: #F4F7F6 + teal glass
   ================================================================ */

/* ── CSS Variables — Deep Forest Teal Palette v3.0.0 ── */
:root {
  --mas-primary:      #00897B;
  --mas-primary-dark: #004D40;
  --mas-primary-rgb:  0, 137, 123;
  --mas-pink:         #E65100;
  --mas-pink-rgb:     230, 81, 0;
  --mas-purple:       #00897B;
  --mas-green:        #00897B;
  --mas-amber:        #F5BE4B;

  --mas-bg:           #F4F7F6;
  --mas-white:        #ffffff;
  --mas-card:         #FFFFFF;
  --mas-glass:        rgba(255,255,255,0.72);
  --mas-glass-border: rgba(0,137,123,0.2);
  --mas-surface:      #EDF2F0;

  --mas-text:         #1A2327;
  --mas-muted:        #546E7A;
  --mas-border:       #CFD8DC;

  --mas-shadow:       0 4px 8px rgba(0,50,43,.07), 0 1px 3px rgba(0,50,43,.04);
  --mas-shadow-md:    0 8px 24px rgba(0,77,64,.09), 0 4px 8px rgba(0,50,43,.05);
  --mas-shadow-lg:    0 16px 40px rgba(0,77,64,.12), 0 8px 16px rgba(0,50,43,.06);

  --mas-radius:       20px;
  --mas-radius-sm:    12px;
  --mas-radius-pill:  999px;
  --mas-transition:   0.3s cubic-bezier(0.16,1,0.3,1);
}

/* ── Font variables ── */
:root {
  --mas-font-head: 'Sora', -apple-system, sans-serif;
  --mas-font-body: 'DM Sans', -apple-system, sans-serif;
}

/* ── Base ── */
.mas-page { font-family: var(--mas-font-body); background: var(--mas-bg); color: var(--mas-text); overflow-x: hidden; }
.mas-page *, .mas-page *::before, .mas-page *::after { box-sizing: border-box; }
.mas-page h1, .mas-page h2, .mas-page h3, .mas-page h4 { font-family: var(--mas-font-head); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.mas-page a { color: inherit; }
.mas-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .mas-container { padding: 0 20px; } }

/* ── Text utils ── */
.mas-text-primary { color: var(--mas-primary); }
.mas-text-pink    { color: var(--mas-pink); }
.mas-text-muted   { color: var(--mas-muted); }

/* ── Buttons ── */
.mas-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 28px; border-radius: var(--mas-radius-pill);
  font-family: var(--mas-font-body); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: var(--mas-transition); white-space: nowrap; line-height: 1;
}
.mas-btn--primary {
  background: linear-gradient(135deg, var(--mas-primary), var(--mas-primary-dark));
  color: #fff; box-shadow: 0 8px 24px rgba(var(--mas-primary-rgb),.35);
}
.mas-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(var(--mas-primary-rgb),.45); color: #fff; text-decoration: none; }
.mas-btn--pink { background: linear-gradient(135deg, var(--mas-pink),#c23070); color: #fff; box-shadow: 0 8px 24px rgba(var(--mas-pink-rgb),.35); }
.mas-btn--pink:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(var(--mas-pink-rgb),.45); color: #fff; text-decoration: none; }
.mas-btn--outline { background: transparent; border: 1.5px solid var(--mas-primary); color: var(--mas-primary); }
.mas-btn--outline:hover { background: var(--mas-primary); color: #fff; transform: translateY(-2px); text-decoration: none; }
.mas-btn--outline-white { background: transparent; border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.mas-btn--outline-white:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.mas-btn--lg { padding: 16px 36px; font-size: 16px; }
.mas-btn--sm { padding: 8px 18px; font-size: 13px; }

/* ── Section labels / headers ── */
.mas-section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--mas-primary); margin-bottom: 14px;
}
.mas-section-label::before { content:''; width:24px; height:2px; background:var(--mas-primary); border-radius:1px; }
.mas-section-header { text-align: center; margin-bottom: 60px; }
.mas-section-header h2 { font-size: clamp(28px,4vw,44px); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.mas-section-header p { font-size: 17px; color: var(--mas-muted); max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ── Scroll progress ── */
.mas-scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999; width: 0;
  background: linear-gradient(90deg, var(--mas-primary), var(--mas-pink));
  transition: width .1s linear; pointer-events: none;
}

/* ── Custom cursor ── */
.mas-cursor {
  width: 12px; height: 12px; background: var(--mas-primary); border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9998; transform: translate(-50%,-50%);
  transition: transform .1s;
}
.mas-cursor-trail {
  width: 36px; height: 36px; border: 1.5px solid rgba(var(--mas-primary-rgb),.4); border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9997; transform: translate(-50%,-50%);
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.mas-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
}
.mas-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 60px; gap: 24px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  background: rgba(0,77,64,.85);
  border-bottom: 1px solid rgba(224,242,241,.1);
  box-shadow: 0 1px 0 rgba(0,137,123,.1), 0 2px 16px rgba(0,50,43,.15);
  transition: var(--mas-transition);
}
.mas-nav.scrolled .mas-nav__inner {
  background: rgba(0,77,64,.95);
  border-bottom-color: rgba(224,242,241,.1);
  box-shadow: 0 4px 24px rgba(0,50,43,.2), inset 0 -1px 0 rgba(224,242,241,.05);
  padding-top: 12px; padding-bottom: 12px;
}
.mas-nav__logo { text-decoration: none; flex-shrink: 0; }
.mas-nav__logo img { height: 36px; display: block; }
.mas-nav__logo-text {
  font-family: var(--mas-font-head); font-weight: 800; font-size: 20px;
  color: #E0F2F1; display: flex; align-items: center; gap: 1px;
}
.mas-nav__logo-text .accent { color: var(--mas-primary); }
.mas-nav__logo-dot {
  display: inline-block; width: 7px; height: 7px;
  background: var(--mas-pink); border-radius: 50%; margin: 0 2px;
  animation: mas-pulse-dot 2s infinite; vertical-align: middle;
}
@keyframes mas-pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(var(--mas-pink-rgb),.6); }
  50% { box-shadow: 0 0 0 6px rgba(var(--mas-pink-rgb),0); }
}
.mas-nav__links { display: flex; align-items: center; gap: 32px; }
.mas-nav__links a { font-size: 14px; font-weight: 500; color: #80CBC4; text-decoration: none; transition: color .2s; }
.mas-nav__links a:hover { color: #E0F2F1; }
.mas-nav__cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.mas-nav__login { font-size: 14px; font-weight: 600; color: #E0F2F1; text-decoration: none; transition: color .2s; }
.mas-nav__login:hover { color: #80CBC4; }
.mas-nav__logout-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  color: #80CBC4; text-decoration: none;
  background: rgba(224,242,241,.08);
  border: 1px solid rgba(224,242,241,.15);
  transition: all .2s ease; flex-shrink: 0;
}
.mas-nav__logout-btn:hover { color: #E0F2F1; background: rgba(230,81,0,.15); border-color: rgba(230,81,0,.3); }
.mas-nav__logout-btn svg { display: block; }
.mas-nav__hamburger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 24px; height: 18px; background: none; border: none; cursor: pointer; padding: 0;
}
.mas-nav__hamburger span { display: block; height: 2px; border-radius: 1px; background: #E0F2F1; transition: var(--mas-transition); }
.mas-nav__hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mas-nav__hamburger.active span:nth-child(2) { opacity: 0; }
.mas-nav__hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mas-nav__mobile {
  display: flex; flex-direction: column;
  background: rgba(0,77,64,.95); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(224,242,241,.1);
  box-shadow: 0 8px 24px rgba(0,50,43,.15), inset 0 1px 0 rgba(224,242,241,.05);
  padding: 0 32px;
  overflow: hidden; max-height: 0; transition: max-height .4s ease;
}
.mas-nav__mobile.open { max-height: 500px; }
.mas-nav__mobile a {
  padding: 13px 0; font-size: 15px; font-weight: 500; color: #E0F2F1;
  text-decoration: none; border-bottom: 1px solid rgba(224,242,241,.1); display: block;
}
.mas-nav__mobile a:last-child { border-bottom: none; }
.mas-nav__mobile a:hover { color: var(--mas-primary); }
@media (max-width: 900px) {
  .mas-nav__inner { padding: 14px 24px; }
  .mas-nav__links { display: none; }
  .mas-nav__hamburger { display: flex; }
  .mas-nav__cta .mas-btn, .mas-nav__login { display: none; }
}

/* ================================================================
   HERO
   ================================================================ */
.mas-hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #004D40 0%, #00332B 50%, #004D40 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 140px 32px 80px; position: relative; overflow: hidden;
}
.mas-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(224,242,241,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,242,241,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: mas-grid-move 22s linear infinite;
  mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, black, transparent);
}
@keyframes mas-grid-move { to { transform: translateY(64px); } }
.mas-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.mas-orb--1 { width: 480px; height: 480px; background: rgba(var(--mas-primary-rgb),.14); top: -80px; left: -80px; animation: mas-float1 8s ease-in-out infinite; }
.mas-orb--2 { width: 360px; height: 360px; background: rgba(var(--mas-pink-rgb),.1); top: 30%; right: -60px; animation: mas-float2 10s ease-in-out infinite; }
.mas-orb--3 { width: 280px; height: 280px; background: rgba(124,108,245,.08); bottom: 10%; left: 40%; animation: mas-float3 7s ease-in-out infinite; }
@keyframes mas-float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,20px)} }
@keyframes mas-float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,30px)} }
@keyframes mas-float3 { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(calc(-50% + 20px),15px)} }
.mas-hero__neural { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .12; pointer-events: none; }
.mas-float-chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: rgba(0,137,123,.15);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(224,242,241,.2);
  border-radius: 40px; padding: 8px 18px; font-size: 13px; font-weight: 500;
  color: #E0F2F1;
  box-shadow: 0 4px 20px rgba(0,50,43,.2), inset 0 1px 0 rgba(255,255,255,.05);
  white-space: nowrap; z-index: 2;
}
.mas-float-chip--1 { top: 22%; left: 7%;  animation: mas-chip-float 5s ease-in-out infinite; }
.mas-float-chip--2 { top: 42%; right: 6%; animation: mas-chip-float 6s ease-in-out infinite 1s; }
.mas-float-chip--3 { bottom: 24%; left: 10%; animation: mas-chip-float 4.5s ease-in-out infinite .5s; }
@keyframes mas-chip-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.mas-hero__content { position: relative; z-index: 2; max-width: 800px; }
.mas-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,137,123,.15); border: 1px solid rgba(224,242,241,.2);
  color: #E0F2F1; padding: 8px 20px; border-radius: 50px;
  font-size: 13px; font-weight: 600; margin-bottom: 28px;
}
.mas-badge-dot { width: 6px; height: 6px; background: var(--mas-primary); border-radius: 50%; animation: mas-pulse-dot 1.5s infinite; }
.mas-hero__h1 { font-size: clamp(42px,7vw,82px); font-weight: 800; letter-spacing: -2.5px; line-height: 1.05; margin-bottom: 24px; color: #FFFFFF; }
.mas-hero__sub { font-size: clamp(16px,2vw,18px); color: #80CBC4; max-width: 600px; margin: 0 auto 36px; line-height: 1.7; }
.mas-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.mas-hero__stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.mas-stat-item { text-align: center; }
.mas-stat-num { font-family: var(--mas-font-head); font-size: 32px; font-weight: 800; color: var(--mas-primary); display: block; line-height: 1; }
.mas-stat-label { font-size: 12px; color: #80CBC4; margin-top: 4px; letter-spacing: .05em; }
@media (max-width: 900px) {
  .mas-hero { padding: 120px 20px 60px; }
  .mas-float-chip { display: none; }
  .mas-hero__stats { gap: 28px; }
  .mas-stat-num { font-size: 26px; }
}

/* ================================================================
   TICKER
   ================================================================ */
.mas-ticker {
  background: rgba(var(--mas-primary-rgb),.06);
  border-top: 1px solid rgba(var(--mas-primary-rgb),.15);
  border-bottom: 1px solid rgba(var(--mas-primary-rgb),.15);
  padding: 16px 0; overflow: hidden;
}
.mas-ticker__track { display: flex; gap: 60px; animation: mas-ticker 30s linear infinite; width: max-content; white-space: nowrap; }
.mas-ticker__item { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--mas-muted); }
.mas-ticker__item .icon { color: var(--mas-primary); font-size: 16px; }
@keyframes mas-ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ================================================================
   LEARNING LOOP
   ================================================================ */
/* ── Trust Bar ── */
.mas-trust-bar { background: #fff; border-top: 1px solid var(--mas-border); border-bottom: 1px solid var(--mas-border); padding: 20px 0; overflow: hidden; }
.mas-trust-bar__label { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mas-muted); margin-bottom: 16px; }
.mas-trust-bar__track-wrap { overflow: hidden; }
.mas-trust-bar__track { display: flex; gap: 14px; width: max-content; animation: mas-trust-scroll 32s linear infinite; }
.mas-trust-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; border-radius: 40px; background: var(--mas-surface); border: 1px solid var(--mas-border); font-size: 13.5px; font-weight: 600; color: var(--mas-text); white-space: nowrap; }
@keyframes mas-trust-scroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ── Section CTA utility ── */
.mas-section-cta { text-align: center; margin-top: 48px; }

.mas-loop { padding: 100px 0; background: var(--mas-bg); }

/* ── Artifact Tabs & Panels ── */
.mas-artifact-tabs {
  display: flex; gap: 8px; justify-content: center;
  margin-bottom: 32px; flex-wrap: wrap;
}
.mas-artifact-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 50px;
  border: 1.5px solid var(--mas-border);
  background: var(--mas-white); color: var(--mas-muted);
  font-size: 14px; font-weight: 600; font-family: var(--mas-font-body);
  cursor: pointer; transition: all 0.2s ease;
}
.mas-artifact-tab:hover {
  border-color: var(--mas-primary); color: var(--mas-primary);
  background: rgba(0,137,123,.04);
}
.mas-artifact-tab--active {
  background: var(--mas-primary); color: #fff;
  border-color: var(--mas-primary);
  box-shadow: 0 4px 16px rgba(0,137,123,.25);
}
.mas-artifact-tab__icon { font-size: 16px; }

.mas-artifact-panel {
  display: none;
  max-width: 560px; margin: 0 auto;
}
.mas-artifact-panel--active { display: block; }

.mas-artifact-frame {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,137,123,.15);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0,77,64,.08), inset 0 1px 0 rgba(255,255,255,.9);
  overflow: hidden;
}

@media (max-width: 640px) {
  .mas-artifact-tabs { gap: 6px; }
  .mas-artifact-tab { padding: 8px 16px; font-size: 13px; }
}
.mas-loop-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.mas-loop-card {
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: var(--mas-radius); padding: 28px; position: relative; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.88);
  transition: var(--mas-transition);
}
.mas-loop-card:hover {
  border-color: rgba(0,137,123,.4);
  box-shadow: 0 12px 36px rgba(0,137,123,.12), 0 4px 8px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.92);
  transform: translateY(-5px);
}
.mas-loop-card__num {
  font-family: var(--mas-font-head); font-size: .72rem; font-weight: 800; letter-spacing: .15em;
  color: var(--mas-primary); margin-bottom: 10px;
}
.mas-loop-card__icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.mas-loop-card h3 { font-size: .95rem; font-weight: 800; letter-spacing: .08em; margin-bottom: 8px; }
.mas-loop-card p { font-size: .85rem; color: var(--mas-muted); line-height: 1.6; margin: 0; }
.mas-loop-connector {
  position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; background: var(--mas-primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 10px; z-index: 2;
}
@media (max-width: 900px) { .mas-loop-grid { grid-template-columns: repeat(2,1fr); } .mas-loop { padding: 60px 0; } }
@media (max-width: 500px) { .mas-loop-grid { grid-template-columns: 1fr; } }

/* ================================================================
   FEATURES BENTO GRID
   ================================================================ */
.mas-features { padding: 100px 0; background: var(--mas-bg); }
.mas-bento-grid {
  display: grid; grid-template-columns: repeat(12,1fr); gap: 20px;
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
}
.mas-bc-tutor      { grid-column: 1/6;  grid-row: 1; }
.mas-bc-assessment { grid-column: 6/10; grid-row: 1; }
.mas-bc-token      { grid-column: 10/13;grid-row: 1; }
.mas-bc-worksheet  { grid-column: 1/5;  grid-row: 2; }
.mas-bc-notes      { grid-column: 5/9;  grid-row: 2; }
.mas-bc-exam       { grid-column: 9/13; grid-row: 2; }
.mas-bento-card {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: var(--mas-radius); padding: 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,.07), inset 0 1px 0 rgba(255,255,255,.9);
  position: relative; overflow: hidden;
  transition: all .35s cubic-bezier(0.16,1,0.3,1);
}
.mas-bento-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--mas-primary), transparent);
  opacity: 0; transition: opacity .3s;
}
.mas-bento-card:hover {
  border-color: rgba(0,137,123,.45);
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,137,123,.14), 0 8px 16px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.95);
}
.mas-bento-card:hover::before { opacity: 1; }
.mas-card-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.mas-icon-teal   { background: rgba(var(--mas-primary-rgb),.1); }
.mas-icon-pink   { background: rgba(var(--mas-pink-rgb),.1); }
.mas-icon-purple { background: rgba(124,108,245,.1); }
.mas-icon-green  { background: rgba(12,191,122,.1); }
.mas-icon-amber  { background: rgba(245,166,35,.1); }
.mas-card-title { font-family: var(--mas-font-head); font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--mas-primary-dark); }
.mas-card-desc { font-size: 13px; color: var(--mas-muted); line-height: 1.7; }
.mas-demo-area { margin-top: 20px; background: rgba(var(--mas-primary-rgb),.04); border-radius: var(--mas-radius-sm); padding: 14px; min-height: 100px; }

/* ── Demo: Chat ── */
.mas-chat-bubble { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; opacity: 0; animation: mas-chat-appear .5s ease forwards; }
.mas-chat-bubble.right { flex-direction: row-reverse; }
.mas-chat-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg,var(--mas-primary),var(--mas-purple)); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; font-weight: 700; }
.mas-chat-text { background: rgba(var(--mas-primary-rgb),.1); border: 1px solid rgba(var(--mas-primary-rgb),.2); padding: 7px 12px; border-radius: 10px; font-size: 11px; line-height: 1.5; max-width: 210px; color: var(--mas-text); }
.mas-chat-bubble.right .mas-chat-text { background: rgba(var(--mas-pink-rgb),.1); border-color: rgba(var(--mas-pink-rgb),.2); }
.mas-chat-bubble:nth-child(1){animation-delay:.4s} .mas-chat-bubble:nth-child(2){animation-delay:1.4s} .mas-chat-bubble:nth-child(3){animation-delay:2.6s}
@keyframes mas-chat-appear { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* ── Demo: MCQ ── */
.mas-mcq-item { background: var(--mas-white); border: 1.5px solid var(--mas-border); border-radius: 8px; padding: 8px 12px; font-size: 11px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; transition: all .3s; color: var(--mas-text); }
.mas-mcq-item.correct { border-color: var(--mas-green); background: rgba(12,191,122,.08); }
.mas-mcq-item.wrong   { border-color: var(--mas-pink);  background: rgba(var(--mas-pink-rgb),.08); }
.mas-mcq-radio { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--mas-border); flex-shrink: 0; transition: all .3s; }
.mas-mcq-item.correct .mas-mcq-radio { border-color: var(--mas-green); background: var(--mas-green); }
.mas-mcq-item.wrong   .mas-mcq-radio { border-color: var(--mas-pink); background: var(--mas-pink); }
.mas-score-track { height: 5px; background: var(--mas-bg); border-radius: 10px; overflow: hidden; margin-top: 10px; }
.mas-score-fill { height: 100%; background: linear-gradient(90deg,var(--mas-primary),var(--mas-green)); border-radius: 10px; width: 0; animation: mas-score-grow 2s ease .5s forwards; }
@keyframes mas-score-grow { to { width: 78%; } }
.mas-ai-feedback { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; background: rgba(var(--mas-primary-rgb),.1); border: 1px solid rgba(var(--mas-primary-rgb),.2); padding: 4px 10px; border-radius: 20px; font-size: 10px; color: var(--mas-primary); font-weight: 600; animation: mas-fadeIn 1s ease 2.5s forwards; opacity: 0; }
@keyframes mas-fadeIn { to { opacity: 1; } }

/* ── Demo: Token ── */
.mas-token-display { text-align: center; padding: 4px 0; }
.mas-token-coin { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px; background: linear-gradient(135deg,var(--mas-pink),#c23070); display: flex; align-items: center; justify-content: center; font-size: 24px; animation: mas-coin-spin 4s ease-in-out infinite; box-shadow: 0 6px 24px rgba(var(--mas-pink-rgb),.4); }
@keyframes mas-coin-spin { 0%,100%{transform:rotateY(0)} 50%{transform:rotateY(180deg)} }
.mas-token-count { font-family: var(--mas-font-head); font-size: 28px; font-weight: 800; color: var(--mas-pink); }
.mas-token-lbl { font-size: 11px; color: var(--mas-muted); margin-top: 2px; }
.mas-token-pills { display: flex; gap: 6px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.mas-token-pill { background: rgba(var(--mas-pink-rgb),.1); border: 1px solid rgba(var(--mas-pink-rgb),.25); padding: 3px 10px; border-radius: 20px; font-size: 10px; color: var(--mas-pink); font-weight: 600; }

/* ── Demo: Worksheet shimmer ── */
.mas-ws-line { height: 9px; background: rgba(var(--mas-primary-rgb),.08); border-radius: 4px; margin-bottom: 8px; position: relative; overflow: hidden; }
.mas-ws-line::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,transparent,rgba(var(--mas-primary-rgb),.3),transparent); animation: mas-shimmer 2s infinite; animation-delay: var(--d,0s); }
.mas-ws-line:nth-child(1){width:90%;--d:0s} .mas-ws-line:nth-child(2){width:75%;--d:.2s} .mas-ws-line:nth-child(3){width:85%;--d:.4s} .mas-ws-line:nth-child(4){width:60%;--d:.6s}
@keyframes mas-shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.mas-ws-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: rgba(var(--mas-primary-rgb),.1); border: 1px solid rgba(var(--mas-primary-rgb),.25); padding: 5px 12px; border-radius: 20px; font-size: 10px; color: var(--mas-primary); font-weight: 600; animation: mas-fadeIn 1s ease 2s forwards; opacity: 0; }

/* ── Demo: Notes typewriter ── */
.mas-note-subject { display: inline-block; background: rgba(var(--mas-primary-rgb),.1); color: var(--mas-primary); font-size: 10px; font-weight: 700; padding: 2px 10px; border-radius: 20px; margin-bottom: 8px; }
.mas-note-content { font-size: 11px; color: var(--mas-text); line-height: 1.8; }
.mas-cursor-blink { display: inline-block; width: 2px; height: 12px; background: var(--mas-primary); margin-left: 1px; vertical-align: middle; animation: mas-blink 1s infinite; }
@keyframes mas-blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Demo: Exam ring + grid ── */
.mas-exam-demo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mas-exam-ring-wrap { width: 72px; height: 72px; flex-shrink: 0; }
.mas-q-grid { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.mas-q-pill { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; }
.mas-q-pill--done    { background: rgba(var(--mas-primary-rgb),.15); color: var(--mas-primary); }
.mas-q-pill--current { border: 2px solid var(--mas-primary); color: var(--mas-primary); }
.mas-q-pill--pending { background: var(--mas-bg); color: var(--mas-muted); }
.mas-exam-timer { font-family: var(--mas-font-head); font-size: 13px; font-weight: 700; color: var(--mas-primary); text-align: center; margin-top: 6px; }

/* Responsive bento */
@media (max-width: 1200px) {
  .mas-bento-grid { grid-template-columns: repeat(6,1fr); }
  .mas-bc-tutor{grid-column:1/4} .mas-bc-assessment{grid-column:4/7} .mas-bc-token{grid-column:1/3}
  .mas-bc-worksheet{grid-column:3/5} .mas-bc-notes{grid-column:5/7} .mas-bc-exam{grid-column:1/4}
}
@media (max-width: 900px) {
  .mas-bento-grid { grid-template-columns:1fr; padding: 0 20px; }
  .mas-bc-tutor,.mas-bc-assessment,.mas-bc-token,.mas-bc-worksheet,.mas-bc-notes,.mas-bc-exam { grid-column:1/-1; grid-row:auto; }
  .mas-features { padding: 60px 0; }
}

/* ================================================================
   DASHBOARD PREVIEW
   ================================================================ */
.mas-dashboard-preview { padding: 100px 0; background: var(--mas-white); }
.mas-db-frame {
  max-width: 1100px; margin: 0 auto; padding: 0 40px;
}
.mas-db-wrapper {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.07), inset 0 1px 0 rgba(255,255,255,.9);
  overflow: hidden; display: flex; min-height: 460px;
}
.mas-db-sidebar {
  width: 190px; flex-shrink: 0; background: #004D40;
  display: flex; flex-direction: column; padding: 22px 0;
}
.mas-db-sidebar__logo {
  padding: 0 16px 18px; font-family: var(--mas-font-head); font-weight: 700; font-size: 14px;
  color: #fff; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 10px;
}
.mas-db-sidebar__logo .accent { color: var(--mas-primary); }
.mas-db-nav-item {
  display: flex; align-items: center; gap: 9px; padding: 10px 16px;
  font-size: 12px; color: rgba(255,255,255,.5); border-left: 3px solid transparent;
  transition: all .2s; cursor: default;
}
.mas-db-nav-item.active { color: #fff; background: rgba(var(--mas-primary-rgb),.15); border-left-color: var(--mas-primary); }
.mas-db-nav-item:not(.active):hover { color: rgba(255,255,255,.8); background: rgba(255,255,255,.05); }
.mas-db-main { flex: 1; padding: 22px; background: var(--mas-surface); overflow: auto; }
.mas-db-greeting { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.mas-db-greeting h3 { font-size: 17px; font-weight: 700; color: var(--mas-text); }
.mas-db-greeting h3 .hi { color: var(--mas-primary); }
.mas-streak-pill { background: rgba(var(--mas-pink-rgb),.1); border: 1px solid rgba(var(--mas-pink-rgb),.25); color: var(--mas-pink); padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.mas-db-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 16px; }
.mas-db-stat { background: var(--mas-white); border-radius: 12px; padding: 14px; border: 1px solid var(--mas-border); text-align: center; }
.mas-db-stat__num { font-family: var(--mas-font-head); font-size: 22px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.mas-db-stat__lbl { font-size: 10px; color: var(--mas-muted); text-transform: uppercase; letter-spacing: .04em; }
.mas-db-stat:nth-child(1) .mas-db-stat__num { color: var(--mas-primary); }
.mas-db-stat:nth-child(2) .mas-db-stat__num { color: var(--mas-green); }
.mas-db-stat:nth-child(3) .mas-db-stat__num { color: var(--mas-pink); }
.mas-db-stat:nth-child(4) .mas-db-stat__num { color: var(--mas-purple); }
.mas-db-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mas-db-chart-card { background: var(--mas-white); border-radius: 12px; padding: 16px; border: 1px solid var(--mas-border); }
.mas-db-chart-card h4 { font-size: 11px; font-weight: 700; color: var(--mas-muted); margin-bottom: 12px; letter-spacing: .06em; text-transform: uppercase; }
.mas-bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.mas-bar { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg,var(--mas-primary),rgba(var(--mas-primary-rgb),.3)); transform: scaleY(0); transform-origin: bottom; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.mas-bar.animated { transform: scaleY(1); }
.mas-subject-bar { margin-bottom: 10px; }
.mas-subject-bar__hd { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 4px; }
.mas-subject-bar__name { font-weight: 600; color: var(--mas-text); }
.mas-subject-bar__pct { color: var(--mas-muted); }
.mas-subject-bar__track { height: 5px; background: var(--mas-bg); border-radius: 10px; overflow: hidden; }
.mas-subject-bar__fill { height: 100%; border-radius: 10px; transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.mas-subject-bar__fill.animated { transform: scaleX(1); }
@media (max-width: 768px) { .mas-db-sidebar{display:none} .mas-db-stats{grid-template-columns:repeat(2,1fr)} .mas-db-charts{grid-template-columns:1fr} .mas-db-frame{padding:0 20px} }

/* ================================================================
   USE CASES
   ================================================================ */
.mas-use-cases { padding: 100px 0; background: var(--mas-bg); }
.mas-uc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.mas-uc-card {
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: var(--mas-radius); padding: 32px; position: relative; overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,.07), inset 0 1px 0 rgba(255,255,255,.88);
  transition: var(--mas-transition);
}
.mas-uc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,137,123,.42);
  box-shadow: 0 16px 48px rgba(0,137,123,.14), 0 6px 12px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.95);
}
.mas-uc-num { position: absolute; top: 16px; right: 20px; font-family: var(--mas-font-head); font-size: 56px; font-weight: 900; color: var(--mas-primary); opacity: .06; line-height: 1; pointer-events: none; }
.mas-uc-icon { font-size: 32px; margin-bottom: 14px; display: block; }
.mas-uc-title { font-family: var(--mas-font-head); font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--mas-text); }
.mas-uc-desc { font-size: 13px; color: var(--mas-muted); line-height: 1.7; margin-bottom: 16px; }
.mas-uc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mas-uc-tag { background: rgba(var(--mas-primary-rgb),.08); color: var(--mas-primary); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
@media (max-width: 900px) { .mas-uc-grid{grid-template-columns:repeat(2,1fr)} .mas-use-cases{padding:60px 0} }
@media (max-width: 600px) { .mas-uc-grid{grid-template-columns:1fr} }

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.mas-testimonials { padding: 100px 0; background: var(--mas-white); }
.mas-test-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.mas-test-card {
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: var(--mas-radius); padding: 32px;
  box-shadow: 0 3px 12px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.88);
  transition: var(--mas-transition);
}
.mas-test-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,137,123,.12), 0 6px 12px rgba(0,0,0,.05), inset 0 1px 0 rgba(255,255,255,.95);
  border-color: rgba(0,137,123,.38);
}
.mas-test-stars { color: #f59e0b; font-size: 18px; margin-bottom: 14px; letter-spacing: 2px; }
.mas-test-quote { font-size: 14px; color: var(--mas-muted); line-height: 1.8; font-style: italic; margin-bottom: 20px; }
.mas-test-author { display: flex; align-items: center; gap: 12px; }
.mas-test-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mas-font-head); font-weight: 700; font-size: 15px; color: #fff; flex-shrink: 0; }
.mas-test-author-info h5 { font-size: 14px; font-weight: 700; color: var(--mas-text); margin-bottom: 2px; }
.mas-test-author-info p { font-size: 12px; color: var(--mas-muted); }
@media (max-width: 900px) { .mas-test-grid{grid-template-columns:1fr;} .mas-testimonials{padding:60px 0;} }

/* ================================================================
   CTA
   ================================================================ */
/* ── CTA / Get Started — deep forest teal gradient, seamlessly blends into footer ── */
.mas-cta {
  padding: 80px 0 0;
  text-align: center;
  background: linear-gradient(175deg, #004D40 0%, #00332B 55%, #001A14 100%) !important;
  position: relative;
  overflow: hidden;
}
.mas-cta .mas-input { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }
.mas-cta .mas-input option { color: var(--mas-text); background: #fff; }
.mas-cta .mas-input::placeholder { color: rgba(255,255,255,.5); }
/* Decorative radial glows */
.mas-cta__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(0,137,123,.22), transparent),
    radial-gradient(ellipse 50% 40% at 75% 60%, rgba(0,137,123,.14), transparent);
}
.mas-cta__inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 0 32px 80px; }
.mas-cta .mas-section-label { color: rgba(224,242,241,.65); border-color: rgba(224,242,241,.2); background: rgba(0,137,123,.18); }
.mas-cta h2 { font-size: clamp(28px,5vw,44px); font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; color: #FFFFFF; }
.mas-cta__sub { font-size: 16px; color: rgba(224,242,241,.72); margin-bottom: 40px; line-height: 1.65; }
.mas-cta__form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.mas-input {
  flex: 1; min-width: 180px; max-width: 280px;
  padding: 14px 20px; border-radius: 50px;
  border: 1.5px solid rgba(224,242,241,.25);
  background: rgba(255,255,255,.97);
  font-family: var(--mas-font-body); font-size: 15px; color: var(--mas-text);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.mas-input:focus { border-color: var(--mas-primary); box-shadow: 0 0 0 3px rgba(0,137,123,.18); }
.mas-cta__trust { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 16px; }
.mas-trust-item { font-size: 13px; color: rgba(224,242,241,.6); display: flex; align-items: center; gap: 5px; }
.mas-trust-item::before { content: '✓'; color: #80CBC4; font-weight: 700; }

/* ── Footer flows directly out of CTA — same dark background ── */
/* On the homepage the CTA section ends at #001A14; blend the footer into it */
body.page-template-slms-page-home .mas-footer,
body.home.page-template-default .mas-footer {
  background: linear-gradient(180deg, #001A14 0%, #002E25 45%, #004D40 100%);
}

/* ================================================================
   FOOTER
   ================================================================ */
.mas-footer { background: #004D40; color: rgba(255,255,255,.6); padding: 64px 0 32px; }
.mas-footer__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px;
}
.mas-footer__brand-logo { font-family: var(--mas-font-head); font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 8px; display: flex; align-items: center; gap: 2px; }
.mas-footer__brand-logo .accent { color: var(--mas-primary); }
.mas-footer__tagline { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--mas-primary); margin-bottom: 10px; }
.mas-footer__desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.4); margin-bottom: 20px; }
.mas-footer__social { display: flex; gap: 10px; flex-wrap: wrap; }
.mas-footer__social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 15px; text-decoration: none; color: rgba(255,255,255,.6); transition: background .2s,color .2s; }
.mas-footer__social a:hover { background: rgba(var(--mas-primary-rgb),.2); color: var(--mas-primary); }
.mas-footer__col h5 { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.mas-footer__col a { display: block; font-size: 13px; color: rgba(255,255,255,.45); text-decoration: none; margin-bottom: 10px; transition: color .2s; }
.mas-footer__col a:hover { color: var(--mas-primary); }
.mas-footer__bottom { max-width: 1200px; margin: 0 auto; padding: 20px 40px 0; border-top: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.mas-footer__copy, .mas-footer__made { font-size: 12px; color: rgba(255,255,255,.28); }
@media (max-width: 900px) { .mas-footer__inner{grid-template-columns:1fr 1fr;gap:32px;padding:0 24px;} .mas-footer__bottom{padding:20px 24px 0;} }
@media (max-width: 500px) { .mas-footer__inner{grid-template-columns:1fr;} }

/* ================================================================
   REVEAL ANIMATIONS
   ================================================================ */
.mas-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); transition-delay: var(--delay,0s); }
.mas-reveal.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   STICKY BOTTOM CTA
   ================================================================ */
.mas-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 -4px 24px rgba(0,0,0,.07), inset 0 1px 0 rgba(255,255,255,.9);
  padding: 12px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transform: translateY(100%); transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.mas-sticky-cta.visible { transform: translateY(0); }
.mas-sticky-cta__text { font-size: 14px; font-weight: 600; color: var(--mas-text); }
@media (max-width: 600px) { .mas-sticky-cta { display: none; } }

/* ================================================================
   INNER PAGE (Courses / Topics / Archive) — shared
   ================================================================ */
.mas-page-body { padding-top: 76px; }
.mas-page-container { max-width: 1200px; margin: 0 auto; padding: 40px; }
@media (max-width: 768px) { .mas-page-container { padding: 24px 20px; } }
.mas-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mas-muted); margin-bottom: 20px; flex-wrap: wrap; }
.mas-breadcrumb a { color: var(--mas-primary); text-decoration: none; }
.mas-breadcrumb a:hover { text-decoration: underline; }
.mas-breadcrumb__sep { opacity: .4; }

/* ================================================================
   PLANS PAGE HERO
   ================================================================ */
.mas-plans-hero { padding: 100px 0 48px; background: linear-gradient(135deg, #F4F7F6 0%, rgba(0,137,123,.07) 100%); text-align: center; }
.mas-plans-hero__inner { max-width: 600px; margin: 0 auto; }
.mas-plans-hero__title { font-size: clamp(2rem, 4vw, 3rem); margin: 16px 0 12px; color: var(--mas-text); }
.mas-plans-hero__sub { font-size: 1.05rem; color: var(--mas-muted); line-height: 1.65; }
.mas-plans-content { padding-bottom: 80px; }

/* ================================================================
   AUTH PAGE  (Login / Register)
   ================================================================ */
.mas-auth-page {
  min-height: calc(100vh - 76px);
  display: flex; align-items: center; justify-content: center;
  padding: 100px 20px 60px;
  background: radial-gradient(ellipse at center, #004D40 0%, #002D26 80%);
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}
.mas-auth-wrap { width: 100%; max-width: 460px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.mas-auth-brand { margin-bottom: 4px; }
.mas-auth-brand__logo { text-decoration: none; display: inline-block; }

/* Card — glass on dark teal */
.mas-auth-card {
  width: 100%;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(224,242,241,.2);
  border-radius: var(--mas-radius); padding: 36px 36px 32px;
  box-shadow: 0 8px 32px rgba(0,30,25,.3), inset 0 1px 0 rgba(255,255,255,.05);
}
@media (max-width: 480px) { .mas-auth-card { padding: 28px 20px 24px; border-radius: var(--mas-radius-sm); } }

/* Tabs — dark teal */
.mas-auth-tabs { display: flex; gap: 4px; background: rgba(0,51,43,.5); border-radius: 10px; padding: 4px; margin-bottom: 28px; }
.mas-auth-tab {
  flex: 1; text-align: center; padding: 9px 12px;
  border-radius: 8px; font-size: 0.9rem; font-weight: 600;
  text-decoration: none; color: #80CBC4;
  transition: all 0.2s ease;
}
.mas-auth-tab--active { background: rgba(0,137,123,.3); color: #E0F2F1; box-shadow: 0 2px 8px rgba(0,50,43,.2); }
.mas-auth-tab:hover:not(.mas-auth-tab--active) { color: #E0F2F1; }

/* Headings — on dark teal bg */
.mas-auth-heading { font-size: 1.5rem; margin: 0 0 4px; color: #E0F2F1; font-family: var(--mas-font-head); }
.mas-auth-sub { font-size: 0.9rem; color: #80CBC4; margin: 0 0 24px; }

/* Notices */
.mas-auth-notice { padding: 12px 16px; border-radius: 10px; font-size: 0.875rem; margin-bottom: 20px; }
.mas-auth-notice--success { background: rgba(12,191,122,.12); color: #065f46; border: 1px solid rgba(12,191,122,.3); }
.mas-auth-notice--error   { background: rgba(239,68,68,.1);   color: #991b1b; border: 1px solid rgba(239,68,68,.25); }
.mas-auth-notice a { color: inherit; font-weight: 600; text-decoration: underline; }

/* ── Google OAuth Button ── */
.mas-auth-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 48px; border-radius: 10px;
  background: #FFFFFF; color: #1A2327;
  border: 1.5px solid #CFD8DC;
  font-size: 15px; font-weight: 600; font-family: var(--mas-font-body);
  text-decoration: none; cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.mas-auth-google:hover {
  border-color: #90A4AE; background: #FAFAFA;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  text-decoration: none; color: #1A2327;
}
.mas-auth-google svg { flex-shrink: 0; }

/* ── "or" Divider ── */
.mas-auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0;
  color: #80CBC4; font-size: 13px; font-weight: 500;
}
.mas-auth-divider::before,
.mas-auth-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(224,242,241,.3);
}

/* ── Phone field with +91 prefix ── */
.mas-phone-wrapper {
  display: flex; align-items: center;
  border: 1px solid rgba(224,242,241,.25);
  border-radius: 10px; background: rgba(255,255,255,.92);
  overflow: hidden; transition: border-color 0.2s;
}
.mas-phone-wrapper:focus-within {
  border-color: #00897B;
  box-shadow: 0 0 0 3px rgba(0,137,123,.25);
  background: #FFFFFF;
}
.mas-phone-prefix {
  display: flex; align-items: center; gap: 4px;
  padding: 0 10px 0 12px; font-size: 14px; font-weight: 600;
  color: #546E7A; white-space: nowrap; flex-shrink: 0;
  border-right: 1px solid rgba(224,242,241,.2);
  height: 46px; background: rgba(240,247,245,.5);
}
.mas-phone-prefix svg { flex-shrink: 0; }
.mas-input--phone {
  border: none !important; border-radius: 0 !important;
  box-shadow: none !important; background: transparent !important;
  flex: 1; min-width: 0;
}
.mas-field-hint {
  display: block; font-size: 0.75rem; color: #80CBC4;
  margin-top: 4px;
}

/* ── Verify pending icon ── */
.mas-verify-icon {
  text-align: center; margin-bottom: 16px;
}
.mas-verify-icon svg {
  animation: mas-verify-bounce 2s ease-in-out infinite;
}
@keyframes mas-verify-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* WP login form overrides */
.mas-auth-form #loginform,
.mas-auth-form .mas-register-form { display: flex; flex-direction: column; gap: 16px; }
.mas-auth-form #loginform p,
.mas-auth-form .mas-register-form .mas-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.mas-auth-form label,
.mas-auth-form .mas-field label { font-size: 0.85rem; font-weight: 600; color: #E0F2F1; }
.mas-auth-form input[type="text"],
.mas-auth-form input[type="password"],
.mas-auth-form input[type="email"],
.mas-auth-form input[type="tel"],
.mas-auth-form .mas-input {
  height: 48px; padding: 12px 16px;
  border: 1px solid rgba(224,242,241,.25); border-radius: 10px;
  font-family: var(--mas-font-body); font-size: 0.95rem;
  color: #1A2327; font-weight: 500;
  background: rgba(255,255,255,.92);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; width: 100%;
  box-sizing: border-box;
}
.mas-auth-form input:focus,
.mas-auth-form .mas-input:focus {
  border-color: #00897B;
  box-shadow: 0 0 0 3px rgba(0,137,123,.25);
  background: #FFFFFF;
}
.mas-auth-form input::placeholder {
  color: #90A4AE;
}
/* WP login form submit button */
.mas-auth-form #wp-submit,
.mas-auth-form input[type="submit"] {
  height: 48px; width: 100%;
  background: linear-gradient(135deg, var(--mas-primary), var(--mas-primary-dark));
  color: #fff; border: none; border-radius: var(--mas-radius-pill);
  font-family: var(--mas-font-body); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 6px 20px rgba(var(--mas-primary-rgb),.35);
}
.mas-auth-form #wp-submit:hover,
.mas-auth-form input[type="submit"]:hover { opacity: 0.9; transform: translateY(-1px); }
/* Full-width button utility */
.mas-btn--full { width: 100%; justify-content: center; height: 48px; font-size: 1rem; border-radius: var(--mas-radius-pill); }

/* Remember me row */
.mas-auth-form #rememberme { width: auto; height: auto; }
.mas-auth-form .forgetmenot { flex-direction: row; align-items: center; gap: 8px; font-size: 0.85rem; color: #80CBC4; }

/* Links */
/* Forgot password row — properly spaced below inputs, above submit */
.mas-auth-forgot {
  font-size: 0.83rem; text-align: right;
  margin: -4px 0 8px;
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.mas-auth-forgot a { color: #80CBC4; text-decoration: none; font-weight: 500; }
.mas-auth-forgot a:hover { color: #E0F2F1; text-decoration: underline; }
.mas-auth-forgot-sep { color: rgba(128,203,196,.4); font-size: 0.75rem; }
.mas-auth-switch { font-size: 0.875rem; color: #80CBC4; text-align: center; margin: 16px 0 0; }
.mas-auth-switch a { color: #E0F2F1; font-weight: 600; text-decoration: none; }
.mas-auth-legal { font-size: 0.78rem; color: #80CBC4; text-align: center; line-height: 1.5; margin: 0; }
.mas-auth-legal a { color: #E0F2F1; text-decoration: none; }

/* Field wrapper for register form */
.mas-field { display: flex; flex-direction: column; gap: 6px; }
.mas-field label { font-size: 0.85rem; font-weight: 600; color: #E0F2F1; }

/* Trust strip */
.mas-auth-trust { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; color: #80CBC4; flex-wrap: wrap; justify-content: center; }
.mas-hide-sm { display: inline; }
@media (max-width: 480px) { .mas-hide-sm { display: none; } }

/* ================================================================
   COURSES ARCHIVE PAGE
   ================================================================ */

/* Archive page wrapper — light mint gradient so glass cards have backdrop */
.mas-archive-page {
  background: linear-gradient(160deg, #E0F2F1 0%, #F4F7F6 40%, #FFFFFF 70%, #FFFFFF 100%);
  background-attachment: fixed;
  min-height: 80vh;
}

/* Hero */
.mas-archive-hero { padding: 96px 0 40px; background: linear-gradient(135deg, rgba(255,255,255,.7) 0%, rgba(0,137,123,.08) 100%); backdrop-filter: none; }
.mas-archive-hero__inner { max-width: 700px; }
.mas-archive-hero__title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin: 12px 0 10px; color: var(--mas-text); }
.mas-archive-hero__sub { font-size: 1rem; color: var(--mas-muted); line-height: 1.6; margin: 0; }

/* Layout: sidebar + results */
.mas-archive-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 36px 0 80px;
  align-items: start;
}

/* ── Filter Sidebar — glass ── */
.mas-filter-sidebar {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: var(--mas-radius-sm);
  padding: 20px;
  position: sticky; top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  box-shadow: 0 4px 16px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.9);
}
.mas-filter-sidebar__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--mas-border);
}
.mas-filter-sidebar__title { font-size: 0.9rem; font-weight: 700; color: var(--mas-text); }
.mas-filter-clear-all { font-size: 0.78rem; color: var(--mas-primary); text-decoration: none; font-weight: 600; }
.mas-filter-clear-all:hover { text-decoration: underline; }

/* Filter group */
.mas-filter-group { margin-bottom: 18px; border-bottom: 1px solid var(--mas-border); padding-bottom: 16px; }
.mas-filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.mas-filter-group__toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; cursor: pointer;
  font-size: 0.85rem; font-weight: 700; color: var(--mas-text);
  padding: 0 0 10px; font-family: var(--mas-font-body);
}
.mas-filter-group__toggle:hover { color: var(--mas-primary); }
.mas-filter-group__arrow { font-size: 0.75rem; transition: transform 0.2s; }
.mas-filter-group--collapsed .mas-filter-group__arrow { transform: rotate(-90deg); }
.mas-filter-group--collapsed .mas-filter-group__terms { display: none; }
.mas-filter-group__terms { display: flex; flex-wrap: wrap; gap: 6px; }

/* Filter pills */
.mas-filter-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 500;
  border: 1.5px solid var(--mas-border);
  background: var(--mas-white); color: var(--mas-text);
  text-decoration: none; transition: all 0.18s ease; cursor: pointer;
  white-space: nowrap;
}
.mas-filter-pill:hover { border-color: var(--mas-primary); color: var(--mas-primary); background: rgba(var(--mas-primary-rgb),.05); }
.mas-filter-pill--active { background: var(--mas-primary); border-color: var(--mas-primary); color: #fff; }
.mas-filter-pill--active:hover { background: var(--mas-primary-dark); border-color: var(--mas-primary-dark); color: #fff; }
.mas-filter-pill__count { font-size: 0.7rem; opacity: 0.75; }

/* ── Results panel ── */
.mas-archive-results { min-width: 0; }

/* Active filter chips */
.mas-active-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 16px; padding: 12px 16px;
  background: rgba(var(--mas-primary-rgb), .05);
  border: 1px solid rgba(var(--mas-primary-rgb), .15);
  border-radius: var(--mas-radius-sm);
}
.mas-active-filters__label { font-size: 0.8rem; font-weight: 700; color: var(--mas-muted); margin-right: 4px; }
.mas-filter-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600;
  background: var(--mas-primary); color: #fff;
  text-decoration: none; transition: background 0.18s;
}
.mas-filter-chip:hover { background: var(--mas-primary-dark); color: #fff; }
.mas-filter-chip--clear { background: var(--mas-pink); }
.mas-filter-chip--clear:hover { background: #c93a72; }

/* Sort bar */
.mas-archive-sortbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.mas-archive-sortbar__left { display: flex; align-items: center; gap: 10px; }
.mas-archive-count { font-size: 0.875rem; color: var(--mas-muted); }
.mas-archive-count strong { color: var(--mas-text); font-weight: 700; }

/* Mobile filter toggle button (hidden on desktop) */
.mas-filter-toggle-btn {
  display: none;
  align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 50px;
  border: 1.5px solid var(--mas-border);
  background: var(--mas-white); color: var(--mas-text);
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; font-family: var(--mas-font-body);
  transition: border-color 0.2s;
}
.mas-filter-toggle-btn:hover { border-color: var(--mas-primary); color: var(--mas-primary); }
.mas-filter-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--mas-primary); color: #fff;
  font-size: 0.7rem; font-weight: 700; line-height: 1;
}

/* Course grid */
.mas-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* Pagination */
.mas-archive-pagination { margin-top: 8px; }
.mas-archive-pagination .nav-links { display: flex; align-items: center; gap: 6px; justify-content: center; flex-wrap: wrap; }
.mas-archive-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 8px; border: 1.5px solid var(--mas-border);
  font-size: 0.875rem; font-weight: 600;
  color: var(--mas-text); text-decoration: none;
  transition: all 0.18s ease;
}
.mas-archive-pagination .page-numbers:hover,
.mas-archive-pagination .page-numbers.current { background: var(--mas-primary); border-color: var(--mas-primary); color: #fff; }
.mas-archive-pagination .page-numbers.dots { border: none; background: none; cursor: default; }

/* Empty state */
.mas-archive-empty { text-align: center; padding: 60px 20px; }
.mas-archive-empty__icon { font-size: 3rem; margin-bottom: 16px; }
.mas-archive-empty h3 { font-size: 1.25rem; margin: 0 0 8px; color: var(--mas-text); }
.mas-archive-empty p { color: var(--mas-muted); font-size: 0.9rem; }
.mas-archive-empty a { color: var(--mas-primary); font-weight: 600; }

/* Mobile overlay */
.mas-filter-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 299;
  backdrop-filter: blur(2px);
}
.mas-filter-overlay--visible { display: block; }

/* Filter dropdown select (used for course_class) */
.mas-filter-select {
  width: 100%; height: 42px;
  padding: 0 32px 0 12px;
  border: 1.5px solid var(--mas-border); border-radius: 10px;
  background-color: var(--mas-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a8d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  -webkit-appearance: none; appearance: none;
  color: var(--mas-text); font-family: var(--mas-font-body);
  font-size: 0.875rem; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mas-filter-select:hover  { border-color: var(--mas-primary); }
.mas-filter-select:focus  { border-color: var(--mas-primary); outline: none; box-shadow: 0 0 0 3px rgba(var(--mas-primary-rgb),.1); }
.mas-filter-select--active { border-color: var(--mas-primary); color: var(--mas-primary); font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .mas-archive-layout { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }

  .mas-filter-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 300px; z-index: 300;
    border-radius: 0; max-height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 24px 20px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  }
  .mas-filter-sidebar--open { transform: translateX(0); }

  .mas-filter-toggle-btn { display: inline-flex; }
}
@media (max-width: 640px) {
  .mas-courses-grid { grid-template-columns: 1fr; }
  .mas-archive-hero { padding: 80px 0 28px; }
}
