/* ==========================================================================
   ENGLIX — Stylesheet
   Brand colours taken from your logo sheet.
   Mobile-first: designed for phones, then widened for desktop.
   ========================================================================== */

:root {
  --blue:        #0052FF;   /* Englix Kinetic — your main brand blue */
  --blue-dark:   #0040C9;
  --blue-soft:   #EAF0FF;
  --emerald:     #00D384;   /* Ascent Emerald — for "approved" / success */
  --emerald-soft:#E4FBF3;
  --ink:         #0B1020;   /* near-black for text */
  --ink-soft:    #4A5468;   /* grey body text */
  --grey:        #F4F6FA;   /* page background tint */
  --line:        #E2E7F0;   /* borders */
  --white:       #FFFFFF;
  --amber:       #B26A00;
  --amber-soft:  #FFF6E5;
  --red:         #C81E3C;
  --red-soft:    #FDECEF;

  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 4px 20px rgba(11, 16, 32, 0.07);
  --shadow-lg:   0 12px 40px rgba(11, 16, 32, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--ink);
  line-height: 1.2;
  font-weight: 800;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 700; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow { max-width: 540px; }
.container-mid    { max-width: 860px; }


/* ---------- Header / navigation ------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--blue);
}
.logo-light { color: var(--white); }
.logo img { height: 34px; width: auto; }

/* When you add your real logo PNG later, this shows it and hides the text. */
.logo-image { display: none; }
.has-logo .logo-image { display: block; }
.has-logo .logo-text  { display: none; }

#menu-toggle {
  display: block;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}

#main-nav {
  display: none;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px 20px;
  box-shadow: var(--shadow);
}
#main-nav.open { display: block; }

#main-nav a {
  display: block;
  padding: 11px 0;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
#main-nav a:last-child { border-bottom: none; }
#main-nav .btn { margin-top: 12px; text-align: center; border-bottom: none; }

@media (min-width: 860px) {
  #menu-toggle { display: none; }
  #main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    position: static;
    padding: 0;
    border: none;
    box-shadow: none;
    background: none;
  }
  #main-nav a { padding: 0; border: none; }
  #main-nav .btn { margin-top: 0; padding: 10px 20px; }
}


/* ---------- Buttons ------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }

.btn-outline { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); }

.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--grey); }

.btn-success { background: var(--emerald); color: #05301F; }
.btn-danger  { background: var(--red-soft); color: var(--red); border-color: #F3C4CD; }

.btn-telegram { background: #229ED9; color: var(--white); }
.btn-telegram:hover { background: #1B87BA; }

.btn-whatsapp { background: #25D366; color: #04331A; }
.btn-whatsapp:hover { background: #1FBA59; }

.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px 15px; font-size: 0.85rem; }


/* ---------- Hero ---------------------------------------------------------- */

.hero {
  background:
    radial-gradient(1000px 400px at 15% -10%, rgba(0, 82, 255, 0.10), transparent 60%),
    radial-gradient(700px 400px at 95% 0%, rgba(0, 211, 132, 0.10), transparent 60%),
    var(--white);
  padding: 56px 0 60px;
  text-align: center;
}

.hero h1 { font-size: 2.1rem; letter-spacing: -0.02em; margin-bottom: 16px; }
.hero h1 span { color: var(--blue); }
.hero p.lead { font-size: 1.05rem; max-width: 600px; margin: 0 auto 28px; }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto 34px;
}

.pill {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 15px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 20px;
  min-width: 140px;
  box-shadow: var(--shadow);
}
.hero-stat strong { display: block; font-size: 1.3rem; color: var(--ink); font-family: 'Plus Jakarta Sans', sans-serif; }
.hero-stat span { font-size: 0.82rem; }

@media (min-width: 760px) {
  .hero { padding: 80px 0 88px; }
  .hero h1 { font-size: 3.1rem; }
  .hero p.lead { font-size: 1.15rem; }
  .hero-actions { flex-direction: row; justify-content: center; max-width: none; }
}


/* ---------- Sections ------------------------------------------------------ */

.section { padding: 56px 0; }
.section-grey { background: var(--grey); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.section-head h2 { margin-bottom: 12px; letter-spacing: -0.01em; }

@media (min-width: 760px) {
  .section { padding: 76px 0; }
  h2 { font-size: 2.1rem; }
}


/* ---------- Cards / grids ------------------------------------------------- */

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }

@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-hover { transition: all 0.18s ease; }
.card-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #CBD8F5; }


/* ---------- Course cards -------------------------------------------------- */

.course-card { display: flex; flex-direction: column; }
.course-card .course-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--emerald-soft);
  color: #00694A;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.course-card h3 { margin-bottom: 10px; }
.course-card p.desc { font-size: 0.93rem; margin-bottom: 18px; flex-grow: 1; }

.price-rows { border-top: 1px solid var(--line); margin-bottom: 18px; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.price-row .tier { font-weight: 600; color: var(--ink); }
.price-row .amount { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--ink); }
.price-row .amount small { font-weight: 500; color: var(--ink-soft); font-size: 0.78rem; }
.price-row .free { color: var(--emerald); font-weight: 800; }

.course-meta { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 16px; }


/* ---------- Feature list -------------------------------------------------- */

.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .tick {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--emerald-soft);
  color: #00694A;
  display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 700;
}
.feature h3 { font-size: 1rem; margin-bottom: 4px; }
.feature p { font-size: 0.9rem; }


/* ---------- Tables -------------------------------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--grey); font-weight: 700; color: var(--ink); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td.nowrap { white-space: nowrap; }


/* ---------- Forms --------------------------------------------------------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
}

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: 0.9rem; margin-bottom: 7px; }
.field .hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }

input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="url"], input[type="file"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease;
}
textarea { min-height: 84px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12);
}

.form-foot { text-align: center; margin-top: 18px; font-size: 0.9rem; }


/* ---------- Radio cards (package picker) ---------------------------------- */

.radio-cards { display: grid; gap: 10px; }
.radio-card {
  display: block;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.radio-card:hover { border-color: #B9CBF5; background: #FAFBFF; }
.radio-card input { margin-right: 10px; accent-color: var(--blue); }
.radio-card.selected { border-color: var(--blue); background: var(--blue-soft); }
.radio-card .rc-title { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.radio-card .rc-price { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--blue); }
.radio-card .rc-desc { font-size: 0.83rem; margin-top: 4px; margin-left: 26px; }


/* ---------- Message boxes ------------------------------------------------- */

.msg {
  display: none;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.msg-error   { background: var(--red-soft);     color: var(--red);     border-color: #F3C4CD; display: block; }
.msg-success { background: var(--emerald-soft); color: #00694A;        border-color: #A9EBD1; display: block; }
.msg-info    { background: var(--blue-soft);    color: var(--blue-dark); border-color: #C3D5FF; display: block; }
.msg-warn    { background: var(--amber-soft);   color: var(--amber);   border-color: #F5DFB5; display: block; }


/* ---------- Status badges ------------------------------------------------- */

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-approved { background: var(--emerald-soft); color: #00694A; }
.badge-pending  { background: var(--amber-soft);   color: var(--amber); }
.badge-admin    { background: var(--blue-soft);    color: var(--blue-dark); }
.badge-grey     { background: var(--grey);         color: var(--ink-soft); }


/* ---------- Dashboard ----------------------------------------------------- */

.dash-header {
  background: var(--ink);
  color: var(--white);
  padding: 30px 0;
}
.dash-header h1 { color: var(--white); font-size: 1.5rem; margin-bottom: 6px; }
.dash-header p { color: #A7B2C7; font-size: 0.93rem; }
.dash-header .badge { margin-top: 12px; }

.locked-box {
  text-align: center;
  padding: 44px 24px;
  background: var(--amber-soft);
  border: 1px solid #F5DFB5;
  border-radius: var(--radius);
}
.locked-box .lock-icon { font-size: 2.6rem; margin-bottom: 14px; }
.locked-box h2 { color: var(--amber); margin-bottom: 12px; font-size: 1.4rem; }
.locked-box p { max-width: 520px; margin: 0 auto 12px; color: #7A5100; }

.steps { list-style: none; counter-reset: s; max-width: 460px; margin: 24px auto 0; text-align: left; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 14px; font-size: 0.92rem; color: var(--ink); }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 27px; height: 27px;
  background: var(--blue); color: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.82rem;
}

.resource-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.resource-item:last-child { border-bottom: none; }
.resource-item h4 { margin-bottom: 3px; }
.resource-item p { font-size: 0.85rem; }

.empty {
  text-align: center;
  padding: 34px 20px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  background: var(--grey);
  border-radius: var(--radius-sm);
}


/* ---------- Admin --------------------------------------------------------- */

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tab {
  padding: 12px 18px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.admin-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 26px; }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.stat strong { display: block; font-size: 1.7rem; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--ink); }
.stat span { font-size: 0.82rem; }

.modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(11, 16, 32, 0.55);
  z-index: 100;
  padding: 20px;
  overflow-y: auto;
}
.modal-backdrop.open { display: block; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 540px;
  margin: 40px auto;
  padding: 26px 24px;
  box-shadow: var(--shadow-lg);
}
.modal h3 { margin-bottom: 18px; }


/* ---------- Footer -------------------------------------------------------- */

.site-footer { background: var(--ink); color: #A7B2C7; padding: 46px 0 26px; margin-top: 0; }
.footer-inner { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: var(--white); margin-bottom: 12px; }
.site-footer a { display: block; color: #A7B2C7; font-size: 0.9rem; padding: 5px 0; }
.site-footer a:hover { color: var(--white); }
.footer-tag { font-size: 0.9rem; margin-top: 10px; }
.footer-bottom { border-top: 1px solid #232B42; margin-top: 32px; padding-top: 20px; font-size: 0.85rem; }
.footer-small { font-size: 0.78rem; color: #6E7A93; margin-top: 8px; }


/* ---------- Language toggle ----------------------------------------------- */

.lang-btn {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  font-family: 'Inter', 'Hind Siliguri', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.lang-btn:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }

#lang-toggle-wrap { display: inline-block; margin-right: 8px; }

/* Bengali needs a font that actually has the glyphs, and slightly more
   line-height so the characters don't feel cramped. */
body.lang-bn,
body.lang-bn h1, body.lang-bn h2, body.lang-bn h3, body.lang-bn h4,
body.lang-bn .btn, body.lang-bn input, body.lang-bn select, body.lang-bn textarea {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Inter', sans-serif;
}
body.lang-bn { line-height: 1.8; }
body.lang-bn h1, body.lang-bn h2, body.lang-bn h3 { line-height: 1.4; }

/* Keep the ENGLIX wordmark in Latin type even in Bengali mode */
body.lang-bn .logo { font-family: 'Plus Jakarta Sans', sans-serif; }


/* ---------- Teachers ------------------------------------------------------- */

.teacher-card { text-align: center; }

.teacher-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--emerald));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-photo span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.teacher-title {
  color: var(--blue);
  font-size: 0.87rem;
  font-weight: 600;
  margin-top: 3px;
}

.teacher-meta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* The "Become a teacher" band on the homepage */
.teach-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
}
.teach-cta p { max-width: 520px; margin-top: 4px; }
.teach-cta .btn { flex-shrink: 0; }

/* Expanded teacher application in the admin panel */
.app-detail {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--grey);
  border-radius: var(--radius-sm);
  font-size: 0.89rem;
}
.app-detail p { margin-bottom: 12px; }
.app-detail p:last-child { margin-bottom: 0; }
.app-detail strong { color: var(--ink); }


/* ---------- Order lines on the student dashboard --------------------------- */

.order-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--white);
}


/* ---------- Clinary branding & footer -------------------------------------- */

.footer-brand {
  font-size: 0.78rem;
  opacity: 0.62;
  letter-spacing: 0.02em;
  margin-top: 4px;
}
.footer-brand span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  opacity: 1;
  letter-spacing: 0.01em;
}

.footer-complain {
  display: inline-block;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 8px;
  text-decoration: underline;
}
.footer-complain:hover { opacity: 1; }


/* ---------- Modal (complaint form, screenshot viewer) --------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 16, 32, 0.62);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow-y: auto;
  animation: modal-in 0.18s ease;
}
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modal-rise 0.22s cubic-bezier(.2,.8,.3,1);
  max-height: 92vh;
  overflow-y: auto;
}
@keyframes modal-rise { from { transform: translateY(14px); } to { transform: none; } }

.modal-close {
  position: absolute;
  top: 10px; right: 14px;
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
}
.modal-close:hover { color: var(--ink); }

.proof-modal { max-width: 640px; }

.proof-full {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform 0.25s ease;
}
.proof-full.zoomed { transform: scale(1.8); cursor: zoom-out; }


/* ---------- Order numbers -------------------------------------------------- */

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 13px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.order-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.order-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--blue);
}


/* ---------- Payment notice board ------------------------------------------ */

.pay-number {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--white);
}
.pay-number-hot {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.pay-number-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pay-number-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.pay-instruction {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 14px;
  margin: 14px 0;
}
.pay-instruction strong { color: var(--ink); font-size: 0.9rem; }
.pay-instruction p { margin-top: 3px; }

.pay-amount-callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  text-align: center;
  font-size: 0.95rem;
}
.pay-amount-callout strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  display: block;
  margin-top: 3px;
}


/* ---------- Approval notice ------------------------------------------------ */

.approval-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1.5px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: var(--white);
}
.approval-icon { font-size: 1.5rem; line-height: 1.2; }
.approval-notice strong { color: var(--ink); font-family: 'Plus Jakarta Sans', sans-serif; }
.approval-notice p { margin-top: 4px; }


/* ---------- Payment proof & order states ---------------------------------- */

.proof-preview {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-height: 320px;
}
.proof-preview img { width: 100%; object-fit: contain; }

.state-card { text-align: center; }
.state-card .state-icon { font-size: 2.6rem; margin-bottom: 6px; }
.state-card h3 { margin-bottom: 6px; }

.state-waiting { border-color: var(--amber); background: var(--amber-soft); }
.state-ok      { border-color: var(--emerald); background: var(--emerald-soft); }
.state-bad     { border-color: var(--red); background: var(--red-soft); }


/* ---------- Order total on the signup form -------------------------------- */

.order-total {
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  background: var(--blue-soft);
  margin-bottom: 20px;
}
.ot-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
  padding: 3px 0;
}
.ot-save { color: #046B45; font-weight: 600; }
.ot-total {
  border-top: 1px solid rgba(0,82,255,0.22);
  margin-top: 8px;
  padding-top: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
}


/* ---------- Accounts summary boxes ---------------------------------------- */

.stat-box {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stat-box .stat-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.stat-box strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}


/* ---------- Student results ----------------------------------------------- */

.testimonial { display: flex; flex-direction: column; justify-content: space-between; }

.testimonial .quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 16px;
}

.testimonial .who { border-top: 1px solid var(--line); padding-top: 12px; }
.testimonial .who strong { display: block; color: var(--ink); font-size: 0.93rem; }

.testimonial .result {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #046B45;
  background: var(--emerald-soft);
  padding: 2px 9px;
  border-radius: 999px;
}


/* ---------- FAQ ----------------------------------------------------------- */

/* Built on <details> so it still opens and closes if JavaScript fails */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: var(--white);
  overflow: hidden;
}

.faq summary {
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--blue);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq[open] summary::after { content: "−"; }
.faq[open] summary { border-bottom: 1px solid var(--line); }

.faq p {
  padding: 14px 18px 17px;
  font-size: 0.93rem;
  margin: 0;
}


/* ---------- Discounts & featured packages --------------------------------- */

/* The crossed-out original price */
.was {
  color: var(--ink-soft);
  opacity: 0.62;
  font-weight: 500;
  margin-right: 5px;
}

.save-line {
  font-size: 0.76rem;
  font-weight: 700;
  color: #046B45;
  background: var(--emerald-soft);
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  margin: 0 0 8px;
}

/* The one package you've chosen to highlight */
.price-row-star .tier { font-weight: 700; color: var(--ink); }

.star-tag {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

.radio-card-star { border-color: var(--blue); }

.rc-features {
  list-style: none;
  margin: 9px 0 0;
  padding: 0;
}
.rc-features li {
  font-size: 0.83rem;
  color: var(--ink-soft);
  padding-left: 19px;
  position: relative;
  margin-bottom: 3px;
}
.rc-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
}


/* ---------- Notice board -------------------------------------------------- */

.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  margin-bottom: 11px;
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.notice:hover { box-shadow: var(--shadow); }

/* Unread notices lean green — the same colour as "approved" elsewhere */
.notice-new    { border-left-color: var(--emerald); background: linear-gradient(90deg, var(--emerald-soft), var(--white) 40%); }
.notice-pinned { border-left-color: var(--blue); }

.notice-top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  flex-wrap: wrap;
}
.notice-top h4 { font-size: 1rem; margin-bottom: 2px; }

.notice-kind { font-size: 1.2rem; line-height: 1.3; }

.notice-body {
  margin-top: 10px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  white-space: normal;
}

.notice-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.notice-actions:empty { margin-top: 0; }


/* ---------- Live class card ----------------------------------------------- */

.live-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--white);
  margin-bottom: 12px;
}
.live-card h4 { font-size: 1.05rem; }

.live-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Live right now — the only place on the site that earns red */
.live-now {
  border-color: var(--red);
  background: linear-gradient(180deg, var(--red-soft), var(--white) 70%);
  box-shadow: 0 6px 24px rgba(200, 30, 60, 0.10);
}
.live-now .live-head { color: var(--red); }

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(200, 30, 60, 0.55);
  animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse {
  70%  { box-shadow: 0 0 0 11px rgba(200, 30, 60, 0); }
  100% { box-shadow: 0 0 0 0  rgba(200, 30, 60, 0); }
}

.live-soon { border-color: #F0D9A8; background: var(--amber-soft); }
.live-soon .live-head { color: var(--amber); }

.live-timer {
  font-variant-numeric: tabular-nums;   /* stops the digits jiggling each second */
  font-size: 0.95rem;
  color: var(--amber);
}


/* ---------- Seat counters ------------------------------------------------- */

.seat-line {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 2px 0 9px;
  margin-top: -4px;
}
.seat-line.seat-warm   { color: var(--amber); }
.seat-line.seat-urgent { color: var(--red); }

.seat-bar {
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 5px;
}
.seat-fill {
  height: 100%;
  background: var(--emerald);
  border-radius: 99px;
  transition: width 0.6s ease;
}
.seat-warm   .seat-fill { background: var(--amber); }
.seat-urgent .seat-fill { background: var(--red); }

/* A gentle pulse only when it's genuinely almost gone */
.seat-urgent { animation: seat-pulse 2.6s ease-in-out infinite; }
@keyframes seat-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.62; } }

.seat-out {
  display: inline-block;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  margin: 2px 0 10px;
}

/* A sold-out choice on the signup form */
.radio-card-out {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--grey);
}
.radio-card-out:hover { border-color: var(--line); background: var(--grey); }


/* ---------- Toast notifications (admin) ----------------------------------- */

#toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}

.toast {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  animation: toast-in 0.28s ease;
}
.toast strong { display: block; color: var(--ink); font-size: 0.92rem; margin-bottom: 4px; }
.toast p { font-size: 0.83rem; color: var(--ink-soft); margin: 0; }
.toast:hover { border-left-color: var(--emerald); }

.toast-out { animation: toast-out 0.5s ease forwards; }

@keyframes toast-in  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to   { opacity: 0; transform: translateX(20px); } }

@media (max-width: 560px) {
  #toast-stack { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}


/* ---------- Utilities ----------------------------------------------------- */

.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 26px; }
.small { font-size: 0.85rem; }
.muted { color: var(--ink-soft); }
.hidden { display: none !important; }
.loading { text-align: center; padding: 34px; color: var(--ink-soft); font-size: 0.92rem; }
