/* ============================================================
   SAMMY D. GLOBAL COMPUTER LIMITED — Master Stylesheet
   Design system: deep navy × gold, Poppins type, soft depth
   ============================================================ */

:root {
  --navy: #0a1220;
  --navy-2: #0e2a52;
  --navy-3: #1552a0;
  --accent: #0a84ff;
  --accent-2: #0060c0;
  --accent-soft: #e3f0fe;
  --bg: #f2f5fa;
  --bg-2: #e9eef6;
  --card: #ffffff;
  --text: #1a2735;
  --muted: #5f6d7d;
  --border: #e3e9f2;
  --green: #0e9f6e;
  --green-dark: #0b7a54;
  --red: #d64545;
  --red-dark: #b03030;
  --blue: #2563eb;
  --amber: #b45309;
  --amber-soft: #fdf3d5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(10, 18, 32, 0.06);
  --shadow: 0 8px 28px rgba(10, 18, 32, 0.10);
  --shadow-lg: 0 18px 50px rgba(10, 18, 32, 0.18);
  --grad-accent: linear-gradient(135deg, #0090f0 0%, #0060c0 100%);
  --grad-navy: linear-gradient(140deg, #0a1220 0%, #0e2a52 55%, #1552a0 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background:
    radial-gradient(1200px 500px at 85% -5%, rgba(245, 179, 1, 0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(29, 67, 137, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #b6c3d6; border-radius: 8px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: var(--navy-3); }

a { color: var(--navy-3); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.2px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 96, 192, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 96, 192, 0.45); background: var(--grad-accent); }

.btn-navy { background: var(--grad-navy); color: #fff; box-shadow: 0 6px 18px rgba(10, 18, 32, 0.28); }
.btn-navy:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(10, 18, 32, 0.38); color: #fff; }

.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

.btn-ghost-light { background: rgba(255,255,255,0.08); color: #fff; border: 1.5px solid rgba(255,255,255,0.35); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.6); transform: translateY(-2px); }

.btn-sm { padding: 9px 18px; font-size: 13px; border-radius: 9px; }
.btn-danger { background: linear-gradient(135deg, #e05555, var(--red-dark)); color: #fff; }
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(214, 69, 69, 0.4); }
.btn-success { background: linear-gradient(135deg, #14b078, var(--green-dark)); color: #fff; }
.btn-success:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(14, 159, 110, 0.4); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(4, 14, 30, 0.35);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar {
  background: linear-gradient(90deg, rgba(20,50,98,0.95), rgba(29,67,137,0.9));
  font-size: 12.5px;
  padding: 8px 0;
  color: #b9c8dd;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: var(--accent); font-weight: 600; }
.top-bar a:hover { color: #7cc0ff; text-decoration: underline; }

.main-nav .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 22px; flex-wrap: wrap; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 13px; color: #fff; transition: transform 0.2s var(--ease); }
.brand:hover { color: #fff; transform: scale(1.02); }
.brand-logo {
  width: 48px; height: 48px;
  background: var(--grad-accent);
  color: var(--navy);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; letter-spacing: -1px;
  box-shadow: 0 6px 16px rgba(217, 154, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.5);
}
.brand-name { font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: 0.3px; }
.brand-name small { display: block; font-weight: 500; font-size: 11.5px; color: #8fa5c2; letter-spacing: 2.6px; text-transform: uppercase; margin-top: 2px; }

.nav-links { display: flex; gap: 2px; list-style: none; align-items: center; flex-wrap: wrap; }
/* right side of the header row: menu links + the PORTAL button */
.nav-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nav-links a {
  color: #ccd9ea; padding: 9px 15px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  transition: background 0.18s, color 0.18s;
  position: relative; text-transform: uppercase;
}
.nav-links a:not(.btn):hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-links a.active:not(.btn) { background: rgba(10,132,255,0.15); color: var(--accent); }
.nav-links a.active:not(.btn)::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px;
  height: 2.5px; border-radius: 2px; background: var(--grad-accent);
}
.nav-cta { margin-left: 8px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(700px 380px at 88% 12%, rgba(10,132,255,0.14), transparent 62%),
    radial-gradient(600px 400px at 8% 90%, rgba(46, 96, 184, 0.35), transparent 60%),
    var(--grad-navy);
  color: #fff;
  padding: 90px 0 110px;
  position: relative;
  overflow: hidden;
}
/* decorative floating orbs */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 460px; height: 460px; right: -140px; top: -150px;
  background: radial-gradient(circle, rgba(10,132,255,0.18), transparent 65%);
  animation: float 9s ease-in-out infinite;
}
.hero::after {
  width: 340px; height: 340px; left: -120px; bottom: -140px;
  background: radial-gradient(circle, rgba(96, 152, 255, 0.18), transparent 65%);
  animation: float 11s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.05); }
}

/* subtle grid pattern */
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 52px; align-items: center; position: relative; }
.hero h1 {
  font-size: 46px; line-height: 1.13; margin-bottom: 20px;
  font-weight: 800; letter-spacing: -0.5px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.25);
}
.hero h1 span {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 14px rgba(10,132,255,0.35));
}
.hero p { font-size: 17.5px; color: #bccbe0; max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(4, 14, 30, 0.35);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-accent);
}
.hero-card h3 {
  font-size: 13px; color: var(--accent); margin-bottom: 16px;
  letter-spacing: 2.4px; font-weight: 700;
}
.hero-card ul { list-style: none; }
.hero-card li {
  padding: 10px 0; font-size: 14px; color: #d6e0ee;
  border-bottom: 1px dashed rgba(255,255,255,0.13);
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  transition: padding-left 0.2s var(--ease);
}
.hero-card li:hover { padding-left: 6px; }
.hero-card li:last-child { border-bottom: none; }
.hero-card li b { color: var(--accent); white-space: nowrap; font-weight: 700; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 78px 0; position: relative; }
.section-alt {
  background:
    radial-gradient(800px 300px at 90% 0%, rgba(10,132,255,0.05), transparent 60%),
    #fff;
}
.section-title { text-align: center; max-width: 660px; margin: 0 auto 50px; }
.section-title .eyebrow {
  display: inline-block;
  color: var(--accent-2); font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; font-size: 12px;
  background: var(--accent-soft);
  padding: 5px 16px; border-radius: 20px;
  margin-bottom: 12px;
}
.section-title h2 { font-size: 33px; color: var(--navy); margin: 10px 0 12px; font-weight: 800; letter-spacing: -0.4px; }
.section-title p { color: var(--muted); font-size: 15.5px; }

/* ============================================================
   CARDS
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 30px 28px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-accent);
  opacity: 0; transition: opacity 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #b3d4f7; }
.card:hover::before { opacity: 1; }
.card h3 { color: var(--navy); font-size: 19.5px; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .price {
  font-size: 28px; font-weight: 800; color: var(--navy);
  margin: 14px 0 4px; letter-spacing: -0.5px;
}
.card .duration {
  display: inline-block;
  background: linear-gradient(135deg, #eef3fb, #e3ecf8);
  color: var(--navy-3);
  font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 20px;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.card .card-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

.feat-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 25px; margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(217, 154, 0, 0.18);
  transition: transform 0.3s var(--ease);
}
.card:hover .feat-icon { transform: scale(1.1) rotate(-5deg); }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(10,132,255,0.12), transparent 55%),
    var(--navy);
  color: #fff; padding: 52px 0;
  position: relative; overflow: hidden;
}
.stats-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 100% 26px;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px; text-align: center; position: relative; }
.stat { padding: 14px 8px; border-radius: 14px; transition: background 0.2s; }
.stat:hover { background: rgba(255,255,255,0.05); }
.stat b {
  display: block; font-size: 36px; font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 12.5px; color: #9db1cb; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--grad-accent);
  color: #fff;
  padding: 56px 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.5;
}
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; }
.cta-band h2 { font-size: 27px; margin-bottom: 4px; font-weight: 800; letter-spacing: -0.3px; }
.cta-band p { font-weight: 500; }

/* ============================================================
   AUTH (login / signup)
   ============================================================ */
.auth-wrap {
  min-height: calc(100vh - 190px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 64px 20px;
}
.auth-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 580px; padding: 42px;
  position: relative; overflow: hidden;
}
.auth-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--grad-accent);
}
.auth-card h2 { color: var(--navy); font-size: 26px; margin-bottom: 6px; font-weight: 800; letter-spacing: -0.3px; }
.auth-card .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 17px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 7px; letter-spacing: 0.2px; }
.form-group label .req { color: var(--red); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: #f9fafc;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(245, 179, 1, 0.15);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #a4b1c1; }

.photo-drop {
  border: 2px dashed #c4cfdc; border-radius: 14px; padding: 20px;
  text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fafbfd;
}
.photo-drop:hover { border-color: var(--accent); background: #f0f7ff; }
.photo-drop img {
  width: 112px; height: 112px; object-fit: cover;
  border-radius: 12px; margin: 6px auto; display: block;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
}
.photo-drop p { font-size: 13px; color: var(--muted); }

.form-error {
  background: linear-gradient(135deg, #fdecec, #fbdcdc); border: 1px solid #f2bcbc; color: #8a2f2f;
  padding: 12px 15px; border-radius: 11px; font-size: 14px; margin-bottom: 16px; display: none;
}
.form-error.show { display: block; animation: shake 0.4s; }
.form-success {
  background: linear-gradient(135deg, #e4f6ee, #d5f0e4); border: 1px solid #aee0c9; color: #0b5e42;
  padding: 12px 15px; border-radius: 11px; font-size: 14px; margin-bottom: 16px; display: none;
}
.form-success.show { display: block; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.auth-alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(10,132,255,0.07), transparent 55%),
    var(--navy);
  color: #a9bdd6; padding: 60px 0 0; margin-top: 78px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 44px; padding-bottom: 44px; }
.site-footer h4 {
  color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: 0.6px;
  position: relative; padding-bottom: 10px;
}
.site-footer h4::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2.5px;
  background: var(--grad-accent); border-radius: 2px;
}
.site-footer p, .site-footer li { font-size: 14px; line-height: 1.95; }
.site-footer ul { list-style: none; }
.site-footer li { transition: padding-left 0.2s var(--ease); }
.site-footer li:hover { padding-left: 5px; }
.site-footer a { color: #a9bdd6; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  padding: 20px 0; text-align: center; font-size: 13px; color: #7f97b5;
}

/* ============================================================
   DASHBOARD SHELL
   ============================================================ */
/* Horizontal dashboard: brand + nav tabs in one top bar */
.dash-shell { display: block; min-height: 100vh; }
.dash-side {
  background:
    radial-gradient(500px 300px at 0% 0%, rgba(10,132,255,0.09), transparent 55%),
    linear-gradient(180deg, #0a1f3d 0%, #0d2749 100%);
  color: #c3d2e6;
  padding: 0 20px;
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px;
}
.dash-side .brand { padding: 10px 18px 10px 0; border-bottom: none; margin: 0; }
.dash-side .brand-name { font-size: 14px; }
/* The section list collapsed behind a hamburger: it lives in a slide-in
   drawer (fixed, so it escapes the sticky bar's own scroll behaviour) that
   opens from the LEFT, directly under the logo, as one vertical list.
   `background: inherit` copies the aside's theme — green for admin, navy for
   the rest. */
.dash-nav {
  list-style: none; display: none;
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(340px, 86vw); margin: 0; padding: 20px 16px 26px;
  overflow-y: auto;
  background: inherit;
  box-shadow: 18px 0 42px rgba(5, 20, 40, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 70;
}
.dash-side.open .dash-nav { display: flex; flex-direction: column; gap: 4px; animation: dashdrawer 0.24s var(--ease); }
.dash-side.open .dash-nav-tiles { display: grid; grid-template-columns: 1fr; }
.dash-side.open .dash-nav-tiles button {
  flex-direction: row; justify-content: flex-start; text-align: left;
  min-height: 46px; font-size: 13.5px; gap: 10px;
}
.dash-side.open .dash-nav-tiles button .ico { font-size: 19px; }
@keyframes dashdrawer { from { transform: translateX(-105%); } to { transform: none; } }
.dash-drawer-head {
  display: flex; align-items: center; gap: 11px;
  padding: 4px 8px 14px; margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.dash-drawer-head img { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.dash-drawer-head b { display: block; color: #fff; font-size: 13.5px; letter-spacing: 0.3px; }
.dash-drawer-head span { display: block; color: #7f97b5; font-size: 11.5px; }
.dash-nav button {
  display: inline-flex; align-items: center; gap: 9px;
  width: 100%; justify-content: flex-start;
  background: none; border: none; color: #a9bdd6;
  font-size: 13.5px; font-weight: 500; font-family: inherit;
  padding: 13px 14px; cursor: pointer; white-space: nowrap;
  border-radius: 10px;
  transition: background 0.18s, color 0.18s;
}
.dash-nav button:hover { background: rgba(255,255,255,0.06); color: #fff; }
.dash-nav button.active {
  background: linear-gradient(180deg, rgba(10,132,255,0.16), rgba(10,132,255,0.02));
  color: var(--accent); font-weight: 600;
}

/* Tile-grid nav (student portal) — two comfortable columns inside the drawer */
.dash-nav-tiles { gap: 8px; }
.dash-nav-tiles button {
  flex-direction: column; gap: 6px; text-align: center;
  padding: 12px 8px 10px; border-radius: 10px; font-size: 12px; line-height: 1.25;
  min-height: 64px; /* a comfortable tap target on a phone */
}
.dash-nav-tiles button .ico { font-size: 21px; line-height: 1; }
.dash-nav-tiles button.active { background: rgba(10,132,255,0.18); }

/* The hamburger itself sits UNDER the logo, pinned to the left edge */
.dash-burger {
  display: inline-flex; align-items: center; gap: 8px;
  flex: 0 0 100%; max-width: 100%; margin: 0 0 4px; align-self: flex-start;
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.16); border-radius: 10px;
  padding: 8px 13px; font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; position: relative; z-index: 80;
  transition: background 0.18s, border-color 0.18s;
}
.dash-burger:hover { background: rgba(255,255,255,0.14); }
/* While the drawer is open the top-bar Menu bar is hidden — it sits at a higher
   z-index than the drawer (80 vs 70), so it would float ON TOP of the drawer and
   cover its header and the first menu items. The drawer closes on picking a
   section, tapping the dimmed area outside it, or pressing Escape. */
.dash-side.open .dash-burger { display: none; }
.dash-nav-cap {
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: #7f97b5; padding: 6px 14px 8px;
}
.dash-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(7, 17, 33, 0.55); z-index: 50; /* under the top bar (60) so the burger stays clickable */
}
.dash-backdrop.show { display: block; animation: dashfade 0.2s var(--ease); }
@keyframes dashfade { from { opacity: 0; } to { opacity: 1; } }

/* Tiles-style top bar: brand + user chip in one row, hamburger at the right */
.dash-side-tiles { display: block; padding: 0 20px; }
.dash-side-tiles .dash-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding: 8px 0;
}
.dash-main {
  padding: 32px 36px;
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(10,132,255,0.05), transparent 55%),
    var(--bg);
  overflow-x: auto;
  animation: fadeup 0.4s var(--ease);
}
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.dash-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 28px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.dash-head h1 { font-size: 25px; color: var(--navy); font-weight: 800; letter-spacing: -0.4px; }
.dash-head .sub { color: var(--muted); font-size: 14px; }
.dash-user { display: flex; align-items: center; gap: 13px; background: #fff; padding: 9px 18px 9px 10px; border-radius: 40px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.dash-user img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--accent); background: var(--bg-2);
}
.dash-user .who b { display: block; font-size: 14px; color: var(--navy); line-height: 1.3; }
.dash-user .who span { font-size: 12px; color: var(--muted); }

.dash-section { display: none; animation: fadeup 0.35s var(--ease); }
.dash-section.active { display: block; }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 18px; margin-bottom: 28px; }
.tile {
  background: #fff; border-radius: 14px; border: 1px solid var(--border);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile::after {
  content: ""; position: absolute; right: -22px; top: -22px;
  width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10,132,255,0.14), transparent 70%);
}
.tile .lbl { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.3px; font-weight: 700; }
.tile .val { font-size: 29px; font-weight: 800; color: var(--navy); margin-top: 5px; letter-spacing: -0.5px; }
.tile .val.green { color: var(--green-dark); }
.tile .val.gold { color: var(--accent-2); }
.tile .val.red { color: var(--red-dark); }

/* tables */
.table-wrap {
  background: #fff; border-radius: 14px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; padding: 14px 17px;
  background: linear-gradient(180deg, #f4f7fc, #edf2f9);
  color: var(--navy);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.1px;
  font-weight: 700; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
td { padding: 14px 17px; border-top: 1px solid #eef2f8; vertical-align: middle; }
tbody tr { transition: background 0.14s; }
tbody tr:hover td { background: #fbfcfe; }
tbody tr:nth-child(even) td { background: #fafbfd; }
tbody tr:nth-child(even):hover td { background: #f6f9fd; }
.empty { padding: 40px; text-align: center; color: var(--muted); font-size: 14.5px; }
.empty::before { content: "📭"; display: block; font-size: 26px; margin-bottom: 8px; opacity: 0.5; }

/* badges */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.4px;
}
.badge.green { background: #e2f5ec; color: #0b5e42; box-shadow: inset 0 0 0 1px #b7e4d0; }
.badge.red { background: #fdecec; color: #8a2f2f; box-shadow: inset 0 0 0 1px #f2bcbc; }
.badge.gold { background: var(--amber-soft); color: var(--amber); box-shadow: inset 0 0 0 1px #f0dca0; }
.badge.blue { background: #e7effc; color: #194b8f; box-shadow: inset 0 0 0 1px #c4d8f5; }
.badge.gray { background: #edf0f5; color: #5c6b7a; box-shadow: inset 0 0 0 1px #dbe1ea; }

/* work station plan cards — a discounted plan gets a tinted border, and the
   best-value plan is ribboned from JS so only one card ever wears it */
.ws-plan { position: relative; }
.ws-plan-deal {
  border: 2px solid #b7e4d0;
  box-shadow: 0 10px 26px rgba(11, 94, 66, 0.10);
}
.ws-ribbon {
  position: absolute; top: 12px; right: -6px;
  background: #0b5e42; color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 0.7px;
  padding: 3px 10px; border-radius: 4px 0 0 4px;
}
@media (max-width: 640px) {
  .ws-ribbon { top: 8px; font-size: 9.5px; padding: 3px 8px; }
}

/* wallet card */
.wallet-card {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(10,132,255,0.16), transparent 55%),
    radial-gradient(500px 300px at 0% 100%, rgba(46,96,184,0.28), transparent 55%),
    linear-gradient(130deg, #0a1f3d 0%, #143262 100%);
  border-radius: 20px; color: #fff; padding: 32px;
  margin-bottom: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  box-shadow: 0 22px 55px rgba(10, 18, 32, 0.35);
  position: relative; overflow: hidden;
}
.wallet-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-accent);
}
.wallet-card .lbl { font-size: 12px; color: #9db1cb; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.wallet-card .amt {
  font-size: 38px; font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.5px;
}
.wallet-card .acts { display: flex; gap: 11px; flex-wrap: wrap; }

/* modal */
.modal-back {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(7, 20, 40, 0.6);
  backdrop-filter: blur(5px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-back.show { display: flex; animation: fadein 0.22s var(--ease); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 20px; width: 100%; max-width: 500px;
  padding: 32px; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalpop 0.3s var(--ease);
  position: relative;
}
.modal::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-accent); border-radius: 20px 20px 0 0;
}
@keyframes modalpop { from { opacity: 0; transform: scale(0.94) translateY(14px); } to { opacity: 1; transform: none; } }
.modal h3 { color: var(--navy); margin-bottom: 18px; font-size: 20px; font-weight: 800; }
.modal .close-x {
  float: right; background: #eef1f6; border: none; font-size: 20px;
  cursor: pointer; color: var(--muted);
  width: 34px; height: 34px; border-radius: 50%;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  line-height: 1;
}
.modal .close-x:hover { background: #fdecec; color: var(--red); transform: rotate(90deg); }

/* quiz */
.quiz-box {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 34px; max-width: 780px;
}
.quiz-q { margin-bottom: 28px; }
.quiz-q .q-text { font-weight: 700; color: var(--navy); margin-bottom: 13px; font-size: 15.5px; }
/* Section grouping on the quiz paper — each section keeps its own questions */
.quiz-section { margin-bottom: 34px; }
.quiz-sec-title {
  font-size: 13px; font-weight: 800; color: #fff; background: var(--navy);
  display: inline-block; padding: 7px 16px; border-radius: 8px;
  letter-spacing: 0.8px; text-transform: uppercase; margin: 0 0 18px;
}
.quiz-theory {
  width: 100%; box-sizing: border-box; padding: 12px 16px; font: inherit; font-size: 14.5px;
  border: 1.5px solid var(--border); border-radius: 11px; background: #fbfcfe;
  resize: vertical; color: var(--ink);
}
.quiz-theory:focus { outline: none; border-color: var(--accent-2); background: #f0f7ff; }
.quiz-opt {
  display: flex; align-items: center; gap: 11px; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 11px; margin-bottom: 10px;
  cursor: pointer; font-size: 14.5px;
  transition: all 0.15s var(--ease);
  background: #fbfcfe;
}
.quiz-opt:hover { border-color: var(--accent-2); background: #f0f7ff; transform: translateX(4px); }
.quiz-opt.selected {
  border-color: var(--accent); background: var(--accent-soft);
  font-weight: 600; box-shadow: 0 4px 14px rgba(0,96,192,0.18);
}
.quiz-timer {
  font-weight: 700; color: #fff; padding: 7px 16px; border-radius: 10px;
  background: linear-gradient(135deg, var(--red), #b03030);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px rgba(214,69,69,0.35);
}

/* toast */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  color: #fff; padding: 15px 24px; border-radius: 12px;
  font-size: 14.5px; font-weight: 500;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  display: none; max-width: 380px;
  border-left: 4px solid rgba(255,255,255,0.5);
}
.toast.show { display: block; animation: toastin 0.32s var(--ease); }
.toast.err { background: linear-gradient(135deg, #e05555, var(--red-dark)); }
.toast.ok { background: linear-gradient(135deg, #14b078, var(--green-dark)); }
@keyframes toastin { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }

.spinner {
  width: 38px; height: 38px; border: 4px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 30px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.contact-info li { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; list-style: none; }
.contact-info .ico {
  width: 46px; height: 46px; flex: none;
  background: var(--accent-soft); border-radius: 13px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(0,96,192,0.18);
}
.contact-info b { color: var(--navy); }

/* admin two-column layout */
.admin-two { align-items: start; }

/* ============================================================
   STOREFRONT (mycyberteller-style) COMPONENTS
   ============================================================ */

/* Announcement bar */
.announce-bar {
  background: var(--grad-accent);
  color: #fff;
  font-size: 13.5px; font-weight: 600;
  padding: 9px 0; text-align: center;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}
.announce-bar::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1.5px, transparent 1.5px);
  background-size: 18px 18px; opacity: 0.45;
}
.announce-bar .container { position: relative; }

/* Top utility bar right links */
.tb-right a { color: #cdd9ea; font-weight: 500; }
.tb-right a:hover { color: var(--accent); text-decoration: underline; }
.tb-sep { color: #43597c; margin: 0 9px; }

/* Hero carousel */
.hero-store { padding: 0; }
.carousel { position: relative; overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform 0.65s var(--ease);
  height: 100%;
}
.carousel-slide {
  position: relative;
  min-width: 100%;
  padding: 84px 0 100px;
  background:
    radial-gradient(700px 380px at 88% 12%, rgba(10,132,255,0.14), transparent 62%),
    radial-gradient(600px 400px at 8% 90%, rgba(46, 96, 184, 0.35), transparent 60%),
    var(--grad-navy);
  color: #fff;
}
.slide-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; position: relative;
}
.slide-kicker {
  display: inline-block;
  background: rgba(10,132,255,0.16);
  color: var(--accent);
  border: 1px solid rgba(10,132,255,0.4);
  font-size: 12px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 6px 16px; border-radius: 22px; margin-bottom: 18px;
}
.carousel-slide h1 {
  font-size: 44px; line-height: 1.13; margin-bottom: 18px;
  font-weight: 800; letter-spacing: -0.5px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.25);
}
.carousel-slide h1 span {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 14px rgba(10,132,255,0.35));
}
.carousel-slide p { font-size: 16.5px; color: #bccbe0; max-width: 560px; margin-bottom: 30px; }
.slide-art {
  font-size: 130px; line-height: 1;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.35));
  animation: float 7s ease-in-out infinite;
  user-select: none;
}
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  font-size: 18px; cursor: pointer; z-index: 5;
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s var(--ease);
}
.car-btn:hover { background: var(--accent); color: var(--navy); border-color: var(--accent); transform: translateY(-50%) scale(1.1); }
.car-prev { left: 22px; }
.car-next { right: 22px; }
.car-dots {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 9px; z-index: 5;
}
.car-dots button {
  width: 11px; height: 11px; border-radius: 20px;
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.35);
  transition: all 0.3s var(--ease);
}
.car-dots button.active { background: var(--accent); width: 30px; }

/* Promo boxes under hero */
.promo-band { background: #fff; border-bottom: 1px solid var(--border); }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.promo-box {
  display: flex; gap: 15px; align-items: center;
  padding: 26px 24px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}
.promo-box:last-child { border-right: none; }
.promo-box:hover { background: #fbfcfe; }
.promo-ico {
  width: 52px; height: 52px; flex: none;
  background: var(--accent-soft); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px;
  box-shadow: inset 0 0 0 1px rgba(0,96,192,0.18);
}
.promo-box b { display: block; color: var(--navy); font-size: 14.5px; }
.promo-box span { color: var(--muted); font-size: 13px; }

/* Shop layout: sidebar + grid */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }
.cat-sidebar {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px; position: sticky; top: 90px;
}
.cat-sidebar h4 {
  color: var(--navy); font-size: 13px; letter-spacing: 1.6px;
  text-transform: uppercase; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--accent);
}
.cat-sidebar ul { list-style: none; margin-bottom: 20px; }
.cat-sidebar ul button {
  width: 100%; text-align: left; background: none; border: none;
  font-family: inherit; font-size: 14.5px; font-weight: 500; color: var(--text);
  padding: 11px 14px; border-radius: 10px; cursor: pointer;
  transition: background 0.16s, color 0.16s, padding-left 0.18s var(--ease);
}
.cat-sidebar ul button:hover { background: #f4f7fc; padding-left: 19px; }
.cat-sidebar ul button.active {
  background: var(--grad-navy); color: #fff; font-weight: 600;
  box-shadow: 0 5px 14px rgba(10,31,61,0.25);
}
.cat-help { background: linear-gradient(140deg, #f0f7ff, var(--accent-soft)); border: 1px solid #b3d4f7; border-radius: 12px; padding: 16px 18px; }
.cat-help h4 { border-bottom: none; margin-bottom: 6px; padding-bottom: 0; }
.cat-help p { font-size: 13.5px; color: var(--muted); }
.cat-help b { color: var(--navy); font-size: 15px; }

/* Product cards */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.prod-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #b3d4f7; }
.prod-img {
  height: 130px;
  background:
    radial-gradient(300px 130px at 70% 0%, rgba(10,132,255,0.25), transparent 70%),
    linear-gradient(140deg, var(--navy) 0%, var(--navy-3) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 54px;
  position: relative;
  filter: drop-shadow(0 10px 22px rgba(10,31,61,0.3));
}
.prod-card:hover .prod-img { animation: float 3.5s ease-in-out infinite; }
.prod-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  padding: 4px 12px; border-radius: 20px; text-transform: uppercase;
}
.prod-badge.hot { background: #d64545; color: #fff; box-shadow: 0 4px 12px rgba(214,69,69,0.45); }
.prod-badge.in { background: #0e9f6e; color: #fff; box-shadow: 0 4px 12px rgba(14,159,110,0.4); }
.prod-badge.out { background: #5f6d7d; color: #fff; }
.prod-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 {
  color: var(--navy); font-size: 15px; font-weight: 600;
  line-height: 1.4; margin-bottom: 8px; min-height: 42px;
}
.prod-price { margin: 4px 0 2px; }
.prod-price .special { font-size: 12px; color: var(--accent-2); font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; }
.prod-price .amt { font-size: 23px; font-weight: 800; color: var(--navy); letter-spacing: -0.4px; }
.prod-body .btn { margin-top: auto; padding-top: 11px; padding-bottom: 11px; }

/* Rich footer (4 columns) */
.footer-grid-4 { grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr; }

@media (max-width: 1000px) {
  .shop-layout { grid-template-columns: 1fr; }
  .cat-sidebar { position: static; }
  .footer-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .carousel-slide { padding: 60px 0 84px; }
  .carousel-slide h1 { font-size: 31px; }
  .slide-art { display: none; }
  .car-btn { display: none; }
}

@media (max-width: 900px) {
  .hero-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 66px; }
  .hero h1 { font-size: 33px; }
  .form-grid, .admin-two { grid-template-columns: 1fr !important; } /* !important — admin-two grids carry inline column styles */
  .dash-main { padding: 20px; }
  .auth-card { padding: 28px 22px; }
  .wallet-card { padding: 24px; }
  .wallet-card .amt { font-size: 30px; }
}

@media (max-width: 640px) {
  .top-bar .container { justify-content: center; text-align: center; }
  .hero h1 { font-size: 27px; }
  .section-title h2 { font-size: 26px; }
  .tiles { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE PASS — mobile-friendly tables, dashboards, headers
   ============================================================ */
@media (max-width: 900px) {
  /* dashboard header stacks: title above the user chip */
  .dash-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  /* tables: smaller padding so more columns fit before scrolling */
  th { padding: 11px 10px; font-size: 10.5px; }
  td { padding: 11px 10px; font-size: 13px; }
}
@media (max-width: 640px) {
  .main-nav .container { padding: 10px 14px; }
  .brand { gap: 10px; }
  .brand-logo-img { width: 52px; height: 52px; border-radius: 12px; }
  .brand-name { font-size: 16px; }
  .brand-name small { font-size: 9.5px; letter-spacing: 1.8px; }
  .nav-links a { padding: 8px 10px; font-size: 12.5px; }
  .dash-head h1 { font-size: 20px; }
  .dash-main { padding: 14px; }
  th { padding: 9px 8px; }
  td { padding: 9px 8px; font-size: 12.5px; }
  .table-wrap { border-radius: 10px; }
  .dash-user { padding: 6px 12px 6px 8px; }
  .dash-user .who b { font-size: 12.5px; }
  .dash-user .who span { font-size: 11px; }
  .cb-stats { margin-left: 0; }
  .cb-stat { min-width: 130px; padding: 12px 14px; }
  .cb-stat-val { font-size: 20px; }
}

/* ============================================================
   LOGO IMAGE (company logo)
   ============================================================ */
.brand-logo-img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 15px;
  background: #fff;
  padding: 1.5px;
  box-shadow: 0 5px 16px rgba(0, 96, 192, 0.35), inset 0 0 0 1px rgba(0,0,0,0.06);
  transition: transform 0.2s var(--ease);
}
.brand:hover .brand-logo-img { transform: scale(1.05) rotate(-2deg); }
.brand-logo-img.lg { width: 76px; height: 76px; border-radius: 18px; }

/* ============================================================
   HORIZONTAL CATEGORY BAR (all cards in a row)
   ============================================================ */
.cat-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin-bottom: 26px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.cat-bar .cat-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--muted);
  padding: 0 8px 0 4px; white-space: nowrap;
}
.cat-bar button {
  background: #f4f7fc; border: 1.5px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  padding: 9px 20px; border-radius: 30px; cursor: pointer;
  transition: all 0.18s var(--ease); white-space: nowrap;
}
.cat-bar button:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }
.cat-bar button.active {
  background: var(--grad-accent); color: #fff; border-color: transparent;
  box-shadow: 0 5px 14px rgba(0, 96, 192, 0.35);
}
.cat-bar .cat-help-inline {
  margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap;
}
.cat-bar .cat-help-inline b { color: var(--navy); }

/* ============================================================
   PICTURE SLIDES (homepage slideshow — company / graduating students)
   ============================================================ */
.carousel-slide.slide-pic {
  background: #0a1220;
}
.slide-pic .slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.55);
}
.slide-pic .slide-inner { position: relative; }
.slide-pic .slide-kicker { background: rgba(10,132,255,0.25); border-color: rgba(10,132,255,0.65); }

/* ============================================================
   HORIZONTAL LAYOUTS
   ============================================================ */
/* Admin overview: stat tiles in one horizontal row */
#ovTiles { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding-bottom: 8px; }
#ovTiles .tile { min-width: 185px; flex: 0 0 auto; }
#ovTiles::-webkit-scrollbar { height: 7px; }

/* Footer: keep all link columns in one horizontal row */
@media (min-width: 641px) {
  .footer-grid, .footer-grid-4 { grid-template-columns: 1.5fr 0.9fr 1fr 1.2fr !important; }
}
/* ================= NEW: course billing banner (student dashboard) ================= */
.course-banner {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  background: linear-gradient(135deg, #0a1220 0%, #12325e 60%, #0060c0 130%);
  border-radius: 20px; padding: 30px 32px; margin-bottom: 26px;
  color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(10, 96, 192, 0.55);
}
.course-banner::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 230px; height: 230px;
  background: radial-gradient(circle, rgba(0, 144, 240, 0.35), transparent 70%); border-radius: 50%;
}
.cb-label { font-size: 12.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #9ec9f5; }
.cb-course { font-size: 34px; font-weight: 800; line-height: 1.15; margin: 6px 0 4px; }
.cb-sub { font-size: 14px; color: #b9cbe4; }
.cb-status { margin-top: 10px; }
.cb-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; position: relative; z-index: 1; }
.cb-stat {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px; padding: 16px 20px; min-width: 170px; backdrop-filter: blur(4px);
}
.cb-stat-lbl { font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #9ec9f5; }
.cb-stat-val { font-size: 27px; font-weight: 800; margin-top: 6px; color: #fff; }
.cb-stat-val.warn { color: #ffd166; }
.cb-stat-sub { font-size: 12px; color: #b9cbe4; margin-top: 3px; }
.cb-pay { margin-left: auto; }
@media (max-width: 760px) {
  .cb-course { font-size: 24px; }
  .cb-stats, .cb-pay { margin-left: 0; width: 100%; }
  .cb-stat { flex: 1; min-width: 140px; }
}

/* payment option cards (enrolment modal) */
.pay-option {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  border: 2px solid var(--border); border-radius: 14px; padding: 16px 18px;
  margin-bottom: 12px; cursor: pointer; transition: all .18s ease; background: #fff;
}
.pay-option:hover { border-color: var(--accent); box-shadow: 0 8px 22px -10px rgba(10, 132, 255, .45); transform: translateY(-1px); }
.pay-option .po-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ================= NEW: course & product card images ================= */
.course-img {
  width: 100%; height: 170px; object-fit: cover; border-radius: 14px 14px 0 0;
  display: block; background: #eef3fa; margin: -6px -6px 14px; width: calc(100% + 12px);
}
.card .course-img + .duration { margin-top: 0; }
.prod-img img {
  width: 100%; height: 100%; object-fit: contain; padding: 10px;
  background: #fff; border-radius: inherit;
}

/* ================= NEW: photo gallery ================= */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px;
}
.g-item {
  margin: 0; border-radius: 16px; overflow: hidden; cursor: pointer; position: relative;
  box-shadow: var(--shadow); background: #fff; transition: transform .2s ease, box-shadow .2s ease;
}
.g-item:hover { transform: translateY(-4px) scale(1.015); box-shadow: 0 18px 34px -14px rgba(10, 96, 192, .4); }
.g-item img { width: 100%; height: 210px; object-fit: cover; display: block; }
.g-item figcaption {
  padding: 11px 14px; font-size: 13.5px; font-weight: 600; color: var(--navy);
  border-top: 1px solid var(--border);
}
.lightbox {
  position: fixed; inset: 0; background: rgba(6, 12, 24, 0.92); z-index: 300;
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 14px;
  padding: 40px; cursor: zoom-out;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 92vw; max-height: 78vh; border-radius: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, .6); }
.lightbox-cap { color: #d7e4f5; font-size: 15px; font-weight: 600; text-align: center; }

/* gold pay-balance button */
.btn-gold { background: #f5b301; color: #1c1400; border: none; }
.btn-gold:hover { background: #ffd95e; color: #1c1400; transform: translateY(-1px); }

/* ================= Gallery: category headings + horizontal photo strips ================= */
.gal-cat { margin-bottom: 40px; }
.gal-cat-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.gal-cat-head h3 { margin: 0; }
.gal-cat-hint { color: var(--muted); font-size: 13.5px; }
.gal-strip { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 14px; }
.gal-strip .g-item { flex: 0 0 250px; }
.gal-strip .g-item img { height: 175px; }

/* ================= A4 print sheets (documents, results, ID card) ================= */
.a4-wrap { min-height: 100vh; background: #e9ecf2; padding: 26px 0 60px; }
.a4-toolbar {
  width: 210mm; max-width: 94vw; margin: 0 auto 18px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.a4-sheet {
  width: 210mm; max-width: 94vw; min-height: 297mm; margin: 0 auto;
  background: #fff; color: #101828; padding: 15mm 16mm; box-sizing: border-box;
  border-radius: 2px; box-shadow: 0 8px 34px rgba(15, 30, 60, 0.18);
  position: relative; overflow: hidden;
}
.a4-head { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid #0a1f3d; padding-bottom: 12px; margin-bottom: 18px; }
.a4-head img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; }
.a4-head h1 { font-size: 19px; margin: 0; color: #0a1f3d; }
.a4-head .muted { font-size: 12.5px; color: #5b6b82; }
.a4-doc-img { width: 100%; max-height: 235mm; object-fit: contain; display: block; margin: 0 auto; }
.a4-doc-embed { width: 100%; height: 235mm; display: block; margin: 0 auto; border: 0; }
.a4-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.a4-table th { text-align: left; background: #0a1f3d; color: #fff; padding: 9px 12px; }
.a4-table td { padding: 9px 12px; border-bottom: 1px solid #dfe5ee; }
.a4-sign-row { display: flex; justify-content: space-between; gap: 40px; margin-top: 14mm; }
.a4-sign-row .sig { text-align: center; min-width: 180px; }
/* signing space is INSIDE the line box: the signature sits above the line,
   the printed label below it */
.a4-sign-row .sig .line {
  border-bottom: 1.5px solid #101828; margin-bottom: 6px; min-height: 22mm;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2px;
}
.a4-sign-row .sig .lbl { font-size: 12.5px; color: #5b6b82; }
/* section headings + attendance stats + rules list on A4 sheets */
.a4-sec { font-size: 14.5px; color: #0a1f3d; margin: 18px 0 10px; letter-spacing: 0.2px; }
.a4-stats { display: flex; gap: 8px; margin-bottom: 4px; }
.a4-stat { flex: 1; text-align: center; border: 1px solid #dfe5ee; border-radius: 6px; padding: 8px 4px; }
.a4-stat .v { font-size: 15px; font-weight: 800; color: #0a1f3d; }
.a4-stat .l { font-size: 10.5px; color: #5b6b82; text-transform: uppercase; letter-spacing: 0.6px; margin-top: 2px; }
.a4-rules { font-size: 12.5px; color: #101828; line-height: 1.7; padding-left: 20px; margin: 0; }
/* performance pie — capped so it doesn't dominate the A4 result card.
   The canvas id is #perfPie; this rule previously targeted #perfChart, so the
   cap never applied and the chart rendered at the full content width. */
#perfPie { max-width: 150mm; display: block; margin: 0 auto; }

/* signup form category headings (Student Basic Info / Guardian / Programme) */
.su-cat {
  font-size: 13.5px; color: #fff; background: var(--navy); text-transform: uppercase;
  letter-spacing: 1.2px; padding: 10px 16px; border-radius: 10px; margin: 26px 0 14px;
}
.su-cat:first-child { margin-top: 10px; }

/* multi-page forms (job application / student sign up steps) */
.steps-pager {
  display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 22px;
}
.steps-pager .step {
  flex: 1; min-width: 140px; text-align: center; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted);
  background: #eef2f9; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 10px 8px; transition: all 0.2s var(--ease);
}
.steps-pager .step.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.steps-pager .step.done { background: #e2f5ec; color: var(--green-dark); border-color: #aee0c9; }
.form-page { animation: fadeup 0.3s var(--ease); }
.form-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.form-nav .spacer { flex: 1; }

/* job application steps (legacy class name kept) */
.apply-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 22px; }
.apply-steps .step {
  flex: 1; min-width: 140px; text-align: center; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted);
  background: #eef2f9; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 10px 8px; transition: all 0.2s var(--ease);
}
.apply-steps .step.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.apply-steps .step.done { background: #e2f5ec; color: var(--green-dark); border-color: #aee0c9; }
.apply-page { animation: fadeup 0.3s var(--ease); }

/* ID card (CR80 portrait: 60mm × 94mm, printed on the A4 sheet) */
.id-card {
  width: 60mm; height: 94mm; border-radius: 4mm; margin: 10mm auto;
  background: linear-gradient(160deg, #ffffff 0%, #eef3fb 100%);
  border: 1.2mm solid #0a1f3d; box-sizing: border-box;
  display: flex; overflow: hidden; position: relative; page-break-inside: avoid;
}
/* locked preview wrapper (ID card blurred until the fee is paid) */
.id-locked { position: relative; width: fit-content; margin: 0 auto; }
.id-locked .lock-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,0.35); border-radius: 4mm; text-align: center; padding: 0 10mm;
}

/* portrait front: logo top center, company + tel, passport, name, class, barcode */
.id-card.id-portrait { flex-direction: column; align-items: center; padding: 4mm 3.5mm 3mm; text-align: center; }
.idp-top { width: 100%; background: #0a1f3d; margin: -4mm -3.5mm 0; padding: 2.5mm 2mm 2mm; border-radius: 2.8mm 2.8mm 0 0; }
.idp-logo { width: 15mm; height: 15mm; border-radius: 50%; border: 0.6mm solid #f5b301; object-fit: cover; background: #fff; }
.idp-co { color: #fff; font-size: 6.6pt; font-weight: 800; line-height: 1.2; margin-top: 1.2mm; letter-spacing: 0.2px; }
.idp-tel { color: #f5b301; font-size: 6.2pt; font-weight: 700; margin-top: 0.6mm; }
.idp-photo-wrap { margin-top: 2.8mm; }
.idp-photo { width: 21mm; height: 21mm; object-fit: cover; border-radius: 2mm; border: 0.6mm solid #0a1f3d; background: #fff; }
.idp-name { font-size: 11pt; font-weight: 800; color: #0a1f3d; margin-top: 1.6mm; line-height: 1.1; padding: 0 1mm; }
.idp-class { font-size: 7.5pt; font-weight: 700; color: #39506e; margin-top: 0.8mm; text-transform: uppercase; letter-spacing: 0.4px; }
.idp-barcode-wrap { margin-top: auto; width: 100%; }
.idp-barcode { width: 100%; height: auto; display: block; }
.idp-student-no { font-size: 6.4pt; font-weight: 700; color: #39506e; margin-top: 0.6mm; letter-spacing: 0.3px; }

/* portrait back: property statement, company info, if-found, admin signature */
.id-card.id-back { padding: 4mm 4mm 3mm; }
.idb-title { font-size: 7pt; font-weight: 700; color: #39506e; letter-spacing: 0.5px; text-transform: uppercase; }
.idb-co { font-size: 8.5pt; font-weight: 800; color: #0a1f3d; margin-top: 1mm; line-height: 1.2; }
.idb-info { font-size: 6.6pt; color: #39506e; line-height: 1.55; margin-top: 2mm; text-align: left; }
.idb-found { font-size: 6.6pt; color: #101828; line-height: 1.5; margin: 2.5mm 0 0; text-align: left; }
.idb-sign { margin-top: auto; text-align: center; width: 100%; }
.idb-sign img { max-width: 34mm; max-height: 12mm; object-fit: contain; filter: grayscale(1) contrast(2); }
.idb-sign-lbl { font-size: 6.2pt; color: #5b6b82; border-top: 0.3mm solid #98a6bb; padding-top: 0.6mm; margin-top: 0.4mm; }

/* Purchased result-checker card print (same size as the student ID card) */
.pin-card {
  width: 94mm; height: 60mm; border-radius: 4mm; margin: 10mm auto;
  background: linear-gradient(135deg, #ffffff 0%, #eef3fb 100%);
  border: 1.2mm solid #0a1f3d; box-sizing: border-box; overflow: hidden;
  display: flex; flex-direction: column; page-break-inside: avoid;
}
.pin-card .pc-head { display: flex; align-items: center; gap: 3mm; background: #0a1f3d; color: #fff; padding: 2.5mm 4mm; }
.pin-card .pc-head img { width: 9mm; height: 9mm; border-radius: 50%; border: 0.5mm solid #f5b301; object-fit: cover; background: #fff; }
.pin-card .pc-head .co { font-size: 7.5pt; font-weight: 800; line-height: 1.2; }
.pin-card .pc-body { flex: 1; display: flex; align-items: center; gap: 4mm; padding: 3mm 4mm; }
.pin-card .pc-product { width: 26mm; height: 26mm; object-fit: cover; border-radius: 2mm; border: 0.5mm solid #0a1f3d; background: #fff; flex-shrink: 0; }
.pin-card .pc-name { font-size: 9.5pt; font-weight: 800; color: #0a1f3d; }
.pin-card .pc-serial { font-size: 8pt; color: #39506e; margin-top: 1mm; }
.pin-card .pc-pin { font-size: 11pt; font-weight: 800; color: #0a1f3d; background: #e8f1ff; border-radius: 2mm; padding: 1.5mm 2.5mm; margin-top: 1.5mm; display: inline-block; letter-spacing: 0.5px; }

/* Grade legend on the result card (colours beside the mark ranges) */
.grade-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.grade-legend .gl-item { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #39506e; }
.grade-legend .gl-chip { display: inline-flex; align-items: center; justify-content: center; width: 7mm; height: 6.5mm; border-radius: 3px; color: #fff; font-weight: 800; font-size: 11px; }

/* Generated ID card print: front + back together on one sheet */
.id-card-row { display: flex; gap: 12mm; justify-content: center; align-items: flex-start; flex-wrap: wrap; }

/* Uploaded ID-card scans (front + back): both sides print on one page.
   The long side of each scan is capped at 94mm, so portrait AND landscape
   scans both come out at true CR80 card size. */
.id-scan-row { display: flex; gap: 14mm; justify-content: center; align-items: flex-start; flex-wrap: wrap; padding-top: 10mm; }
.id-scan { margin: 0; text-align: center; page-break-inside: avoid; }
.id-scan img { max-width: 94mm; max-height: 94mm; width: auto; height: auto; display: block; margin: 0 auto; }
.id-scan figcaption {
  font-size: 10pt; font-weight: 800; color: #0a1f3d; letter-spacing: 2.5px;
  text-transform: uppercase; margin-top: 4mm;
}

/* ============================================================
   MOBILE NAVIGATION — hamburger / menu toggle
   ============================================================ */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 46px; height: 46px; padding: 11px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px; cursor: pointer; flex: 0 0 auto;
}
.nav-toggle:hover { background: rgba(255,255,255,0.16); }
.nav-toggle span {
  display: block; height: 2.5px; width: 100%; border-radius: 2px; background: #fff;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
/* bars morph into an X while the menu is open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .main-nav .container { flex-wrap: nowrap; }
  .nav-right { flex: 1; min-width: 0; justify-content: flex-end; }
  .nav-cta { margin-left: 4px; }
  /* the link list drops down under the header when the toggle is pressed */
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #0d1b30; border-bottom: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 26px 44px rgba(4, 14, 30, 0.5);
    padding: 12px 14px 18px; z-index: 120;
  }
  body.menu-open .nav-links { display: flex; animation: fadeup 0.25s var(--ease); }
  .nav-links a { padding: 13px 14px; font-size: 14.5px; border-radius: 10px; }
  .nav-links a.active:not(.btn)::after { left: 14px; right: 14px; bottom: 5px; }
}

/* ============================================================
   MOBILE-FRIENDLY PASS — most visitors browse on phones
   ============================================================ */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  /* 16px inputs stop mobile browsers auto-zooming when a field is focused */
  .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
  .modal-back { padding: 12px; }
  .modal { padding: 22px 16px; }
  .quiz-box { padding: 18px 14px; }
  .auth-card { padding: 22px 14px; }
  .top-bar { font-size: 11.5px; }
  .cat-bar { padding: 10px; gap: 7px; }
  .cat-bar .cat-help-inline { display: none; }
  .wallet-card { padding: 18px; }
  .toast { left: 12px; right: 12px; max-width: none; }
  /* hamburger menu links keep a comfortable tap height on small phones */
  .nav-links a { padding: 14px; font-size: 15px; }
  /* print pages: give the sheet's content room on narrow screens */
  .a4-sheet { padding: 10mm 8mm; }
}
/* PORTAL button lives inside the dropdown on small phones (the header row
   only has room for the logo + hamburger there) */
.nav-portal-li { display: none; }

@media (max-width: 640px) {
  .nav-cta { display: none; }
  .nav-portal-li { display: block; margin-top: 10px; }
  /* re-assert the button look — .nav-links a is more specific than .btn */
  .nav-portal-li a { display: block; text-align: center; color: #fff; padding: 13px 14px; }
}

@media (max-width: 400px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* Work station — plan + add-on pickers and the live price breakdown (client portal) */
.plan-choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.plan-choice {
  position: relative; overflow: hidden;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px;
  cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s;
  min-height: 44px;
}
.plan-choice:hover { border-color: var(--accent); }
.plan-choice.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan-choice .p-name { font-weight: 800; color: var(--navy); font-size: 15px; }
.plan-choice .p-price { font-weight: 800; color: var(--accent-2); font-size: 17px; margin-top: 2px; }
.plan-choice .p-note { font-size: 12px; color: var(--muted); margin-top: 2px; }
/* a discounted plan: struck-through daily-rate price + the naira saving */
.plan-choice.deal { border-color: #b7e4d0; background: #f6fdfa; }
.plan-choice .p-was { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.plan-choice .p-save { font-size: 12px; font-weight: 800; color: #0b5e42; margin-top: 4px; }
.plan-choice .ws-ribbon { font-size: 9.5px; padding: 3px 8px; top: 0; right: 0; border-radius: 0 0 0 6px; }
.addon-choices { display: grid; gap: 8px; }
.addon-choice {
  display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.addon-choice:hover { border-color: var(--accent); }
.addon-choice.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.addon-choice input { width: auto; margin: 0; }
.addon-choice .a-name { font-weight: 700; font-size: 14px; }
.addon-choice .a-price { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.hint.warn { color: var(--red); font-weight: 600; }
.price-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; gap: 12px; }
.price-row.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 16px; color: var(--navy); }

/* ---------- Client portal: written for someone who finds computers hard ----------
   One obvious action, big targets, and no table that has to be scrolled sideways
   on a phone. Everything here stacks to one column at 360px. */

.ws-hero-cta {
  max-width: 760px; text-align: center; padding: 32px 22px;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  border: 1.5px solid #dbe7f5;
}
.ws-hero-cta .ws-hero-ico { font-size: 46px; line-height: 1; }
.ws-hero-cta h2 { font-size: 23px; color: var(--navy); margin: 12px 0 8px; }
.ws-hero-cta p { color: var(--muted); font-size: 15.5px; margin: 0 0 20px; }

/* a button you cannot miss or mis-tap */
.btn-big {
  min-height: 52px; padding: 15px 26px;
  font-size: 16px; font-weight: 800; width: 100%; max-width: 340px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.pay-row { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.pay-row .btn-big { max-width: none; }

/* the numbered booking steps */
.step-block { margin-bottom: 24px; }
.step-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-weight: 800; color: var(--navy); font-size: 15.5px; margin-bottom: 12px;
}
.step-num {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.step-opt { font-weight: 600; font-size: 12.5px; color: var(--muted); }

/* bookings and payments as cards — a table is unusable on a phone */
.bk-list { display: grid; gap: 14px; max-width: 760px; }
.bk-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.bk-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; font-size: 16px; color: var(--navy); margin-bottom: 12px;
}
.bk-rows { display: grid; gap: 8px; }
.bk-rows > div { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; align-items: baseline; }
.bk-rows > div > span { color: var(--muted); }
.bk-rows > div > b { text-align: right; }

/* Head count on a work-station booking. The − / + buttons are the easy path on
   a phone; the box between them stays typeable for anyone who prefers that. */
.people-row { display: flex; align-items: center; gap: 10px; max-width: 220px; }
.people-row input[type=number] {
  flex: 1; min-width: 0; text-align: center; font-size: 19px; font-weight: 800;
  color: var(--navy); height: 48px; padding: 0 6px;
  /* Spinners are invisible on touch and duplicate the buttons beside them. */
  -moz-appearance: textfield; appearance: textfield;
}
.people-row input[type=number]::-webkit-outer-spin-button,
.people-row input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.people-btn {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--border); background: #fff; color: var(--navy);
  font-size: 24px; font-weight: 700; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.people-btn:hover { border-color: var(--accent); color: var(--accent); }
.people-btn:active { background: var(--accent-soft); }

/* Why the prices are what they are — a returning client must see a reason,
   never just a quietly higher number. */
.ft-note { border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 20px; border-left: 4px solid var(--border); background: #f6f8fb; }
.ft-note b { font-size: 14px; color: var(--navy); display: block; }
.ft-note p { color: var(--muted); font-size: 13.5px; margin: 5px 0 0; }
.ft-note.new { border-left-color: #0b5e42; background: #eefaf3; }
.ft-note.new b { color: #0b5e42; }

/* ---- A4 work-station entry pass (public/print.html?mode=wsslip) ---- */
.ws-paid {
  border-radius: 8px; padding: 14px 18px; margin-bottom: 18px;
  background: #eefaf3; border: 2px solid #0b5e42; color: #0b5e42;
}
.ws-paid .ws-paid-head { font-size: 24px; font-weight: 900; letter-spacing: 1px; }
.ws-paid .ws-paid-sub { font-size: 13px; margin-top: 4px; }
.ws-paid.unpaid { background: #fdecec; border-color: #b3261e; color: #b3261e; }
.ws-dates { display: flex; gap: 10px; margin-bottom: 18px; }
.ws-dates .ws-date {
  flex: 1; text-align: center; border: 1.5px solid #0a1f3d; border-radius: 8px; padding: 12px 6px;
}
.ws-dates .ws-date .l { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.8px; color: #5b6b82; }
.ws-dates .ws-date .v { font-size: 22px; font-weight: 900; color: #0a1f3d; margin-top: 4px; }
.ws-entry-notice {
  border: 2px solid #b3261e; background: #fdecec; color: #b3261e;
  border-radius: 8px; padding: 12px 16px; margin-top: 18px;
  font-size: 14px; font-weight: 800; text-align: center;
}

/* The compulsory disability declaration on the student application form. Red
   on purpose: the applicant must not skim past it. */
.disability-block {
  border: 2px solid var(--red); border-radius: var(--radius-sm);
  background: #fdf3f3; padding: 16px 18px; margin-top: 4px;
}
.disability-block h4 { margin: 0 0 4px; font-size: 15.5px; color: var(--red); }
.disability-block .db-lead { font-size: 13px; color: var(--red); margin: 0 0 14px; font-weight: 600; }
.disability-block .db-q { font-size: 13.5px; font-weight: 700; color: var(--navy); margin: 0 0 8px; }
.disability-block .db-choices { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 4px; }
.disability-block .db-choices label { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; }
.disability-block .db-choices input { width: auto; margin: 0; }
.disability-block select, .disability-block textarea { border-color: var(--red); }
.disability-block .db-err { color: var(--red); font-weight: 700; font-size: 13px; margin-top: 8px; }
.disability-block label.db-lbl { color: var(--red); font-weight: 700; }
/* shown when the applicant picks a CRITICAL sickness level — they cannot
   finish registering online, so the note has to read as an instruction, not
   as a validation error. */
.disability-block .db-note {
  font-size: 13px; color: #7a3d00; background: #fff5e6; border: 1px solid #f0c98a;
  border-radius: 8px; padding: 10px 12px; margin: 10px 0 0; line-height: 1.55;
}

/* 16px inputs stop iOS from zooming the page when a field is tapped */
@media (max-width: 640px) {
  .dash-main input, .dash-main select, .dash-main textarea { font-size: 16px; }
  .ws-hero-cta { padding: 26px 18px; }
  .ws-hero-cta h2 { font-size: 21px; }
  .bk-card { padding: 14px 15px; }
  .bk-rows > div { font-size: 15px; }
  /* The pass is viewed on a phone as often as on paper. The sheet clips its
     overflow, so stack the two dates rather than let the start or end date be
     cut off — they are the one thing the gate actually reads. */
  .ws-dates { flex-direction: column; }
  .ws-paid .ws-paid-head { font-size: 19px; letter-spacing: 0.5px; }
}

@media print {
  /* The page margin is the sheet's only margin. The on-screen padding must not
     be applied a second time here, or the content is pushed onto a second page. */
  @page { size: A4; margin: 8mm; }
  body { background: #fff; }
  .no-print { display: none !important; }
  .a4-wrap { padding: 0; background: #fff; min-height: auto; }
  .a4-sheet {
    box-shadow: none; width: auto; max-width: none; margin: 0;
    border-radius: 0; padding: 0; min-height: 0;
    /* overflow:hidden silently clips a long card — let it paginate instead */
    overflow: visible;
  }
  /* repeat the column headings when a long table spills onto another page */
  .a4-table thead { display: table-header-group; }
  /* never split the signature block (or a single row/stat) across pages */
  .a4-sign-row { page-break-inside: avoid; break-inside: avoid; }
  .a4-table tr, .a4-stat, .a4-sec { page-break-inside: avoid; break-inside: avoid; }
  /* a little tighter on paper so a typical card lands on one page */
  #perfPie { max-width: 128mm; }
  .a4-sec { margin: 11px 0 7px; }
  .a4-sign-row { margin-top: 9mm; }
}

/* ---- Return & refund policy acknowledgement (checkout tick box) ---- */
.policy-agree {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: #f4f7fc;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  margin: 16px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  cursor: pointer;
}
.policy-agree input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--navy);
  cursor: pointer;
}
.policy-agree a { color: var(--navy); text-decoration: underline; }
.policy-agree-nudge {
  border-color: var(--red);
  background: #fdf1f0;
  animation: policyNudge 0.35s ease;
}
@keyframes policyNudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Shop page: the pre-purchase policy note under the card grid. */
.shop-policy-note {
  margin: 26px 0 0;
  background: #fff8ec;
  border: 1.5px solid #f0c98a;
  border-radius: 12px;
  padding: 14px 17px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #7a3d00;
}
.shop-policy-note a { color: #7a3d00; text-decoration: underline; }
