/* ============================================================
   EduSphere — Dashboard & Public Layout (dashboard.css)
   Sidebar • Topbar • Stats • Charts • Public website
   ============================================================ */

/* =================== APP LAYOUT =================== */
.layout { display: flex; min-height: 100vh; }

/* ---------- Sidebar (dark aurora glass in both themes) ---------- */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  position: fixed; left: 0; top: 0; bottom: 0; /* fixed — stays put even when html/body has overflow rules (v6 fix) */
  height: 100vh; display: flex; flex-direction: column; z-index: 200;
  background:
    radial-gradient(500px 300px at -30% -10%, rgba(168, 85, 247, .28), transparent 60%),
    radial-gradient(420px 300px at 120% 108%, rgba(6, 182, 212, .20), transparent 55%),
    linear-gradient(180deg, #171c3a 0%, #10152f 55%, #0d1128 100%);
  border-right: 1px solid rgba(255, 255, 255, .06);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}
.sidebar-logo {
  display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.sidebar-logo img {
  width: 44px; height: 44px; border-radius: 14px;
  box-shadow: 0 6px 18px -4px rgba(168, 85, 247, .65);
  background: #fff; padding: 3px;
}
.sidebar-logo .logo-name {
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 16.5px;
  line-height: 1.25; display: flex; flex-direction: column;
}
.sidebar-logo .logo-name small {
  font-size: 10.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  background: linear-gradient(90deg, #c084fc, #f472b6, #22d3ee);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 14px 10px; }
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); }
.sidebar-nav .nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10.5px 14px; margin-bottom: 3px; border-radius: 12px;
  color: #a7aecf; font-size: 13.6px; font-weight: 500;
  position: relative; transition: var(--tr);
}
.sidebar-nav .nav-link .ic { width: 19px; height: 19px; opacity: .85; }
.sidebar-nav .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.sidebar-nav .nav-link.active {
  color: #fff; background: var(--grad);
  box-shadow: 0 8px 20px -6px rgba(168, 85, 247, .55);
}
.sidebar-nav .nav-link.active::before {
  content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 22px; border-radius: 0 6px 6px 0; background: #fff;
}
.sidebar-nav .nav-section-title {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase;
  color: #6a7194; padding: 16px 14px 7px;
}
.sidebar-nav .nav-badge {
  margin-left: auto; background: var(--rose); color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 1.5px 8px; border-radius: 99px;
}
.sidebar-foot { padding: 15px; border-top: 1px solid rgba(255, 255, 255, .07); }
.sidebar-user {
  display: flex; align-items: center; gap: 11px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
  padding: 11px 13px; border-radius: 15px;
}
.sidebar-user b { color: #fff; font-size: 13.3px; display: block; line-height: 1.3; }
.sidebar-user small { color: #a7aecf; font-size: 11.5px; }

/* ---------- Main & Topbar ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; margin-left: var(--sidebar-w); }
.topbar {
  position: sticky; top: 0; z-index: 150;
  display: flex; align-items: center; gap: 15px;
  padding: 13px 28px;
  background: color-mix(in srgb, var(--card) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.page-title { font-family: var(--font-head); font-weight: 700; font-size: 18.5px; display: flex; flex-direction: column; line-height: 1.25; }
.page-title small { font-size: 11.5px; color: var(--muted); font-weight: 500; font-family: var(--font-body); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 11px; }
.menu-toggle { display: none; }
.icon-btn {
  width: 41px; height: 41px; border-radius: 13px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); cursor: pointer; position: relative;
  display: inline-flex; align-items: center; justify-content: center; transition: var(--tr);
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.icon-btn .ic { width: 19px; height: 19px; }
.search-box {
  display: flex; align-items: center; gap: 9px;
  background: var(--card-soft); border: 1.5px solid var(--border);
  border-radius: 13px; padding: 0 14px; height: 41px; width: 250px; transition: var(--tr);
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); }
.search-box .ic { width: 16px; height: 16px; color: var(--muted); }
.search-box input { border: 0; outline: 0; background: none; color: var(--text); font-size: 13.3px; width: 100%; font-family: var(--font-body); }

.content { padding: 26px 28px 44px; flex: 1; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.page-header h2 { font-size: 21px; }
.page-header p { color: var(--muted); font-size: 13.5px; }
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 13px 16px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.filter-bar .form-control { width: auto; min-width: 160px; }

/* =================== WELCOME BANNER =================== */
.welcome-banner {
  border-radius: 22px; padding: 27px 30px; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(460px 200px at 88% -30%, rgba(255, 255, 255, .22), transparent 60%),
    radial-gradient(360px 220px at 8% 130%, rgba(6, 182, 212, .35), transparent 55%),
    var(--grad5);
  box-shadow: 0 18px 40px -14px rgba(124, 58, 237, .55);
  margin-bottom: 24px;
}
.welcome-banner h3 { color: #fff; font-size: 21px; margin-bottom: 4px; }
.welcome-banner p { color: rgba(255, 255, 255, .85); font-size: 13.5px; }
.welcome-banner .btn { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.welcome-banner .btn:hover { background: #fff; color: var(--primary); }

/* =================== STAT CARDS =================== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 17px; margin-bottom: 24px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 19px 20px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 9px;
  box-shadow: var(--shadow); transition: var(--tr);
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3.5px;
  background: var(--grad); opacity: .9;
}
.stat-card::after {
  content: ''; position: absolute; right: -34px; bottom: -34px; width: 110px; height: 110px;
  border-radius: 50%; background: var(--grad); opacity: .07; transition: var(--tr);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-card:hover::after { transform: scale(1.45); }
.stat-icon {
  width: 46px; height: 46px; border-radius: 15px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow);
}
.stat-icon .ic { width: 22px; height: 22px; }
.stat-icon.bg-violet  { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.stat-icon.bg-cyan    { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.stat-icon.bg-amber   { background: linear-gradient(135deg, #f59e0b, #f97316); }
.stat-icon.bg-rose    { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.stat-icon.bg-emerald { background: linear-gradient(135deg, #10b981, #34d399); }
.stat-icon.bg-blue    { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.stat-value {
  font-family: var(--font-head); font-weight: 800; font-size: 25px;
  line-height: 1.1; letter-spacing: -.4px;
}
.stat-label { font-size: 12.6px; color: var(--muted); font-weight: 500; margin-top: -5px; }
.stat-trend {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  font-size: 11.5px; font-weight: 700; padding: 3.5px 10px; border-radius: 99px;
}
.stat-trend .ic { width: 12px; height: 12px; }
.stat-trend.up   { background: var(--emerald-soft); color: var(--emerald); }
.stat-trend.down { background: var(--rose-soft);    color: var(--rose); }

/* =================== CHARTS =================== */
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; margin-bottom: 24px; }
.chart-box { min-height: 300px; }
.chart-box canvas { width: 100% !important; height: 240px !important; display: block; }
.chart-box .legend {
  display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 14px 4px 0; font-size: 12.3px; color: var(--muted);
}
.chart-box .legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-box .legend i { width: 11px; height: 11px; border-radius: 4px; display: inline-block; }
.chart-box .legend b { color: var(--text); }

/* =================== QUICK TILES =================== */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.quick-tile {
  display: flex; align-items: center; gap: 13px;
  background: var(--card); border: 1px solid var(--border); border-radius: 17px;
  padding: 17px 19px; color: var(--text); box-shadow: var(--shadow); transition: var(--tr);
}
.quick-tile:hover { transform: translateY(-4px); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-lg); }
.quick-tile b { font-size: 13.8px; display: block; }
.quick-tile small { color: var(--muted); font-size: 11.8px; }
.quick-tile .stat-icon { width: 42px; height: 42px; border-radius: 13px; }

/* =================== PUBLIC WEBSITE =================== */
.public-page { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 300;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1240px; margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; gap: 22px;
}
.nav-brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--text); }
.nav-brand img { width: 42px; height: 42px; border-radius: 13px; box-shadow: var(--glow); }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-links a {
  padding: 8.5px 15px; border-radius: 11px; color: var(--text);
  font-size: 13.8px; font-weight: 600; position: relative;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-links a.active { color: var(--primary); background: var(--primary-soft); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 17px; height: 3px; border-radius: 99px; background: var(--grad);
}
.nav-cta { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; }

/* mobile slide-down menu (hidden on desktop) */
.mobile-menu {
  display: none;
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: 10px 22px 16px; box-shadow: var(--shadow-lg);
}
.mobile-menu a {
  display: block; padding: 11px 14px; border-radius: 12px;
  color: var(--text); font-weight: 600; font-size: 14px;
}
.mobile-menu a:hover { background: var(--primary-soft); color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 84px 24px 70px;
  background:
    radial-gradient(760px 460px at 88% -12%, rgba(124, 58, 237, .16), transparent 60%),
    radial-gradient(660px 420px at -8% 88%, rgba(6, 182, 212, .13), transparent 55%),
    radial-gradient(520px 360px at 45% 118%, rgba(236, 72, 153, .10), transparent 60%);
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(760px 460px at 88% -12%, rgba(124, 58, 237, .28), transparent 60%),
    radial-gradient(660px 420px at -8% 88%, rgba(6, 182, 212, .18), transparent 55%),
    radial-gradient(520px 360px at 45% 118%, rgba(236, 72, 153, .16), transparent 60%);
}
.hero-inner {
  max-width: 1240px; margin: 0 auto; display: grid;
  grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  color: var(--primary); font-weight: 600; font-size: 12.8px;
  padding: 8px 17px; border-radius: 99px; margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.hero-badge .ic { width: 14px; height: 14px; }
.hero-title { font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; line-height: 1.12; letter-spacing: -1px; margin-bottom: 18px; }
.hero-sub { color: var(--muted); font-size: 15.5px; line-height: 1.75; max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat b {
  font-family: var(--font-head); font-size: 27px; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat > span { display: block; color: var(--muted); font-size: 12.8px; margin-top: 3px; }
.hero-visual { position: relative; }
.hero-card {
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(14px); border: 1px solid var(--border);
  border-radius: 26px; padding: 26px; box-shadow: var(--shadow-lg);
  animation: heroFloat 6s ease-in-out infinite alternate;
}
@keyframes heroFloat { to { transform: translateY(-14px); } }
.hero-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-mini {
  border-radius: 18px; padding: 19px 18px; color: #fff; min-height: 108px;
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  position: relative; overflow: hidden;
}
.hero-mini .ic { width: 24px; height: 24px; margin-bottom: 7px; opacity: .95; }
.hero-mini b { font-size: 15.5px; }
.hero-mini small { color: rgba(255, 255, 255, .82); font-size: 11.8px; }
.hero-mini:nth-child(1) { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.hero-mini:nth-child(2) { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.hero-mini:nth-child(3) { background: linear-gradient(135deg, #0891b2, #2563eb); }
.hero-mini:nth-child(4) { background: linear-gradient(135deg, #f59e0b, #f43f5e); }

/* ---------- Hero Slider (homepage, admin managed) ---------- */
.hero-slider {
  position: relative; max-width: 1240px; margin: 26px auto 0;
  border-radius: 26px; overflow: hidden; isolation: isolate;
  height: clamp(380px, 46vw, 500px);
  background: #0f172a; box-shadow: var(--shadow-lg);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
}
.hs-track { display: flex; height: 100%; transition: transform .85s cubic-bezier(.77, 0, .18, 1); }
.hs-slide { position: relative; min-width: 100%; height: 100%; display: flex; align-items: center; overflow: hidden; }
.hs-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.1); transition: transform 7s cubic-bezier(.22, 1, .36, 1);
}
.hs-slide.active .hs-bg { transform: scale(1); }
.hs-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8, 11, 32, .88) 6%, rgba(8, 11, 32, .55) 50%, rgba(8, 11, 32, .18) 100%);
}
.hs-content { position: relative; z-index: 2; padding: 48px 58px; max-width: 660px; color: #fff; }
.hs-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px); color: #fff; font-weight: 600; font-size: 12.5px;
  padding: 7px 16px; border-radius: 99px; margin-bottom: 18px;
}
.hs-kicker .ic { width: 14px; height: 14px; color: #fbbf24; }
.hs-title {
  font-family: var(--font-head); font-weight: 800; line-height: 1.14; letter-spacing: -.8px;
  font-size: clamp(28px, 4.2vw, 48px); text-shadow: 0 4px 26px rgba(0, 0, 0, .35);
}
.hs-sub { color: rgba(255, 255, 255, .88); font-size: 15.5px; line-height: 1.7; max-width: 540px; margin: 16px 0 26px; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.hs-actions { display: flex; gap: 13px; flex-wrap: wrap; }
.hs-btn-ghost {
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .35);
  color: #fff; backdrop-filter: blur(8px);
}
.hs-btn-ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.hs-slide .hs-content > * { opacity: 0; transform: translateY(26px); }
.hs-slide.active .hs-content > * { animation: hsRise .8s cubic-bezier(.22, 1, .36, 1) forwards; }
.hs-slide.active .hs-content > *:nth-child(1) { animation-delay: .15s; }
.hs-slide.active .hs-content > *:nth-child(2) { animation-delay: .3s; }
.hs-slide.active .hs-content > *:nth-child(3) { animation-delay: .45s; }
.hs-slide.active .hs-content > *:nth-child(4) { animation-delay: .6s; }
@keyframes hsRise { to { opacity: 1; transform: translateY(0); } }
.hs-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(15, 23, 42, .35); backdrop-filter: blur(8px); color: #fff;
  display: grid; place-items: center; cursor: pointer; transition: all .25s ease; opacity: .75;
}
.hs-arrow .ic { width: 20px; height: 20px; }
.hs-arrow:hover { opacity: 1; background: var(--primary); border-color: var(--primary); box-shadow: var(--glow); }
.hs-arrow.prev { left: 18px; }
.hs-arrow.next { right: 18px; }
.hs-dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 4; }
.hs-dot {
  width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .42); transition: all .3s ease;
}
.hs-dot:hover { background: rgba(255, 255, 255, .75); }
.hs-dot.active { width: 32px; background: linear-gradient(90deg, #f59e0b, #ec4899); }
.hs-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: rgba(255, 255, 255, .16); z-index: 4; }
.hs-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f59e0b, #ec4899, #8b5cf6); }
.hs-single .hs-arrow, .hs-single .hs-dots, .hs-single .hs-progress { display: none; }
.hs-minis {
  max-width: 1240px; margin: -56px auto 0; padding: 0 26px; position: relative; z-index: 6;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.hs-minis .hero-mini {
  min-height: 118px; border-radius: 20px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .16);
}
.stats-strip { max-width: 1240px; margin: 34px auto 0; padding: 0 26px; }
.stats-strip-card {
  display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 24px;
  background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  padding: 28px 30px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stats-strip-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 130px at 12% 0%, rgba(124, 58, 237, .09), transparent 60%),
              radial-gradient(420px 130px at 88% 100%, rgba(6, 182, 212, .09), transparent 60%);
  pointer-events: none;
}

/* ---------- Marquee (notices strip) ---------- */
.es-marquee-wrap {
  max-width: 1240px; margin: -26px auto 0; position: relative; z-index: 5;
  display: flex; align-items: center; gap: 15px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 17px; padding: 13px 20px; box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.es-marquee-track {
  display: inline-flex; align-items: center; gap: 44px; white-space: nowrap;
  animation: esScroll 26s linear infinite; flex: 1; min-width: 0;
}
.es-marquee-wrap:hover .es-marquee-track { animation-play-state: paused; }
.es-marquee-track span { color: var(--text); font-size: 13.2px; font-weight: 500; }
.es-marquee-track b { color: var(--primary); }
@keyframes esScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: 66px 24px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.section-title { font-size: clamp(24px, 3vw, 33px); font-weight: 800; letter-spacing: -.5px; }
.section-sub { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

/* feature cards */
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 21px;
  padding: 27px 24px; box-shadow: var(--shadow); transition: var(--tr); height: 100%;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 16px; color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 17px;
  box-shadow: var(--glow);
}
.feature-icon .ic { width: 24px; height: 24px; }
.feature-icon.bg-violet  { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.feature-icon.bg-cyan    { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.feature-icon.bg-amber   { background: linear-gradient(135deg, #f59e0b, #f97316); }
.feature-icon.bg-rose    { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.feature-icon.bg-emerald { background: linear-gradient(135deg, #10b981, #34d399); }
.feature-icon.bg-blue    { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.feature-card h4 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 13.4px; }

/* course cards */
.public-card, .course-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 21px;
  overflow: hidden; box-shadow: var(--shadow); transition: var(--tr); height: 100%;
  display: flex; flex-direction: column;
}
.public-card:hover, .course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-thumb {
  height: 132px; display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .93); position: relative; overflow: hidden;
}
.course-thumb .ic { width: 46px; height: 46px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.thumb-violet  { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.thumb-cyan    { background: linear-gradient(135deg, #0891b2, #2563eb); }
.thumb-amber   { background: linear-gradient(135deg, #f59e0b, #f43f5e); }
.thumb-rose    { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.thumb-emerald { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.thumb-blue    { background: linear-gradient(135deg, #06b6d4, #34d399); }
.thumb-0 { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.thumb-1 { background: linear-gradient(135deg, #0891b2, #2563eb); }
.thumb-2 { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.thumb-3 { background: linear-gradient(135deg, #f59e0b, #f43f5e); }
.thumb-4 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.thumb-5 { background: linear-gradient(135deg, #06b6d4, #34d399); }
.course-body { padding: 20px 21px 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.course-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.course-fee { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--primary); margin-top: auto; }
.course-dur { color: var(--muted); font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; }
.course-dur .ic { width: 13px; height: 13px; }

/* notices */
.notice-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 19px 21px; box-shadow: var(--shadow); transition: var(--tr); height: 100%;
}
.notice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.notice-date {
  width: 56px; height: 60px; border-radius: 15px; flex-shrink: 0;
  background: var(--grad); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-family: var(--font-head); line-height: 1.15;
  box-shadow: var(--glow);
}
.notice-date b { font-size: 20px; }
.notice-date span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; opacity: .9; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 17px; }
.gallery-item {
  position: relative; border-radius: 19px; overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3; border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: var(--tr);
}
.gallery-item:hover { transform: translateY(-5px) scale(1.015); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.g-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: #fff; font-weight: 600; padding: 16px; text-align: center; }
.g-placeholder .ic { width: 38px; height: 38px; opacity: .92; }
.g-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 30, .78));
  opacity: 0; transition: var(--tr); padding: 17px; color: #fff; font-weight: 600; font-size: 13.8px;
}
.gallery-item:hover .g-overlay { opacity: 1; }

/* ---------- CTA banner ---------- */
.cta-banner {
  max-width: 1240px; margin: 66px auto 0; border-radius: 26px; padding: 48px 40px;
  text-align: center; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(500px 240px at 15% -20%, rgba(255,255,255,.18), transparent 55%),
    radial-gradient(520px 260px at 88% 130%, rgba(6, 182, 212, .4), transparent 55%),
    var(--grad5);
  box-shadow: 0 24px 55px -18px rgba(124, 58, 237, .6);
}
.cta-banner h2 { color: #fff; font-size: clamp(23px, 3vw, 31px); margin-bottom: 10px; }
.cta-banner p { color: rgba(255, 255, 255, .88); max-width: 560px; margin: 0 auto 24px; }
.cta-banner .btn { background: #fff; color: var(--primary); box-shadow: 0 12px 30px -10px rgba(0,0,0,.35); }
.cta-banner .btn:hover { transform: translateY(-3px); }

/* ---------- Public footer ---------- */
.footer-public {
  margin-top: 74px; color: #cfd4ee;
  background:
    radial-gradient(700px 300px at 90% -30%, rgba(168, 85, 247, .25), transparent 60%),
    linear-gradient(180deg, #161b38, #0e1229);
  padding: 56px 24px 0;
}
.footer-grid {
  max-width: 1240px; margin: 0 auto; display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 38px; padding-bottom: 40px;
}
.footer-public h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-links a { display: block; color: #a7aecf; padding: 4.5px 0; font-size: 13.4px; }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-contact li { display: flex; gap: 10px; color: #a7aecf; font-size: 13.2px; padding: 4.5px 0; align-items: flex-start; }
.footer-contact .ic { width: 16px; height: 16px; margin-top: 3px; color: #c084fc; flex-shrink: 0; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); color: #fff;
}
.footer-social a:hover { background: var(--grad); transform: translateY(-3px); color: #fff; }
.footer-social .ic { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09); padding: 18px 0;
  text-align: center; color: #8b93b8; font-size: 12.8px;
  max-width: 1240px; margin: 0 auto;
}

/* ---------- Wallet / birthday / misc portal bits ---------- */
.bday-card {
  border-radius: 22px; padding: 34px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(420px 200px at 85% -20%, rgba(255,255,255,.2), transparent 55%),
    linear-gradient(135deg, #f43f5e, #ec4899, #8b5cf6);
  box-shadow: 0 20px 45px -16px rgba(236, 72, 153, .55);
}
.bday-card h3 { color: #fff; font-size: 23px; }
.cake-icon { width: 64px; height: 64px; color: #fff; margin-bottom: 10px; }
.wallet-balance-card {
  border-radius: 24px; padding: 30px; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(480px 220px at 90% -25%, rgba(255,255,255,.2), transparent 55%),
    linear-gradient(135deg, #0ea5e9, #6366f1, #8b5cf6);
  box-shadow: 0 20px 45px -16px rgba(59, 130, 246, .5);
}
.wallet-balance-card .amount { font-family: var(--font-head); font-weight: 800; font-size: 37px; letter-spacing: -.5px; }

/* verify result */
.verify-result {
  border-radius: 21px; padding: 34px; text-align: center;
  border: 1.6px solid var(--border); background: var(--card); box-shadow: var(--shadow);
}
.verify-result.ok  { border-color: color-mix(in srgb, var(--emerald) 45%, transparent); background: color-mix(in srgb, var(--emerald) 6%, var(--card)); }
.verify-result.bad { border-color: color-mix(in srgb, var(--rose) 45%, transparent);    background: color-mix(in srgb, var(--rose) 6%, var(--card)); }
.verify-result .big-ic { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: #fff; }
.verify-result.ok .big-ic  { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 10px 26px -8px rgba(16, 185, 129, .6); }
.verify-result.bad .big-ic { background: linear-gradient(135deg, #f43f5e, #fb7185); box-shadow: 0 10px 26px -8px rgba(244, 63, 94, .6); }
.verify-result .big-ic .ic { width: 34px; height: 34px; }

/* message bubbles & rows reused across panels */
.open-message { background: var(--card-soft); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
