/* ==========================================================================
   e-IELTS design system  —  brand: red #E10303, maroon #7C0000
   Loaded after the legacy theme (style.css) so it overrides it.
   New components use the "ei-" prefix so dashboards keep working.
   ========================================================================== */

:root {
  --ei-red: #E10303;
  --ei-red-600: #C10202;
  --ei-red-700: #A00202;
  --ei-maroon: #7C0000;
  --ei-ink: #1D1517;          /* warm near-black: headings, footer */
  --ei-ink-2: #2A2023;
  --ei-text: #3D3436;
  --ei-muted: #6E6264;
  --ei-line: #EEE6E4;
  --ei-sand: #FBF7F5;         /* alternate section background */
  --ei-blush: #FFF0EE;        /* soft red tint */
  --ei-blush-2: #FFE1DD;
  --ei-white: #FFFFFF;
  --ei-green: #11845B;
  --ei-amber: #B76E00;

  --ei-radius: 14px;
  --ei-radius-lg: 22px;
  --ei-shadow-sm: 0 1px 2px rgba(29, 21, 23, .06), 0 1px 3px rgba(29, 21, 23, .05);
  --ei-shadow: 0 10px 30px -12px rgba(29, 21, 23, .18);
  --ei-shadow-lg: 0 30px 60px -20px rgba(29, 21, 23, .28);
  --ei-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Bootstrap 5 variables -> brand */
  --bs-primary: var(--ei-red);
  --bs-primary-rgb: 225, 3, 3;
  --bs-link-color: var(--ei-red);
  --bs-link-color-rgb: 225, 3, 3;
  --bs-link-hover-color: var(--ei-red-700);
  --bs-link-hover-color-rgb: 160, 2, 2;
  --bs-body-font-family: var(--ei-font);
  --bs-body-color: var(--ei-text);
  --bs-focus-ring-color: rgba(225, 3, 3, .2);
}

/* ---------- Base ---------- */
body {
  font-family: var(--ei-font);
  color: var(--ei-text);
  background: var(--ei-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--ei-font);
  color: var(--ei-ink);
  letter-spacing: -0.02em;
}
a { color: var(--ei-red); text-decoration: none; }
a:hover { color: var(--ei-red-700); }
::selection { background: var(--ei-blush-2); color: var(--ei-ink); }
:focus-visible { outline: 3px solid rgba(225, 3, 3, .35); outline-offset: 2px; }

/* ---------- Buttons (also restyles legacy .btn-primary used in dashboards) ---------- */
.btn { font-family: var(--ei-font); font-weight: 600; border-radius: 10px; transition: all .18s ease; }
.btn-primary, .btn-primary:focus {
  background: var(--ei-red) !important; border-color: var(--ei-red) !important; color: #fff !important;
}
.btn-primary:hover, .btn-primary:active {
  background: var(--ei-red-600) !important; border-color: var(--ei-red-600) !important; color: #fff !important;
  transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(225, 3, 3, .6);
}
.btn-outline-primary { color: var(--ei-red); border-color: var(--ei-red); }
.btn-outline-primary:hover { background: var(--ei-red); border-color: var(--ei-red); color: #fff; }

.ei-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 700; font-size: .975rem; line-height: 1; white-space: nowrap;
  padding: .95rem 1.5rem; border-radius: 12px; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  cursor: pointer;
}
.ei-btn:hover { transform: translateY(-1px); }
.ei-btn-primary { background: var(--ei-red); color: #fff; box-shadow: 0 10px 22px -10px rgba(225, 3, 3, .75); }
.ei-btn-primary:hover { background: var(--ei-red-600); color: #fff; }
.ei-btn-dark { background: var(--ei-ink); color: #fff; }
.ei-btn-dark:hover { background: #000; color: #fff; }
.ei-btn-ghost { background: #fff; color: var(--ei-ink); border-color: var(--ei-line); }
.ei-btn-ghost:hover { border-color: var(--ei-ink); color: var(--ei-ink); }
.ei-btn-light { background: #fff; color: var(--ei-red); }
.ei-btn-light:hover { background: var(--ei-blush); color: var(--ei-red-700); }
.ei-btn-sm { padding: .65rem 1rem; font-size: .9rem; border-radius: 10px; }
.ei-btn-block { width: 100%; }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: 10px; border: 1.5px solid var(--ei-line); padding: .75rem .95rem;
  font-family: var(--ei-font); color: var(--ei-ink); background-color: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--ei-red); box-shadow: 0 0 0 4px rgba(225, 3, 3, .1);
}
.form-label, label { font-weight: 600; color: var(--ei-ink); font-size: .92rem; }
.form-check-input:checked { background-color: var(--ei-red); border-color: var(--ei-red); }

/* ---------- Header (restyles legacy markup so mobile menu JS keeps working) ---------- */
.header { background: transparent !important; box-shadow: none !important; }
.header .header-fixed { background: rgba(255, 255, 255, .94) !important; backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--ei-line); }
/* space for the fixed header on redesigned pages */
.ei-hero, .ei-page-head, .ei-auth, .ei-error, .ei-top { margin-top: 77px; }
.header .header-nav { padding: 0 !important; min-height: 76px; background: transparent !important; border: 0 !important; }
.header .navbar-brand.logo img, .header .menu-logo img { height: 54px; width: auto; max-width: none; }
.header .main-nav > li > a {
  font-family: var(--ei-font); font-weight: 600 !important; font-size: .95rem !important;
  color: var(--ei-ink-2) !important; position: relative;
}
@media (min-width: 992px) {
  .header .main-nav > li { margin-right: 26px !important; }
  .header .main-nav > li > a { padding: 27px 0 !important; line-height: 22px; }
  .header .main-nav > li > a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; border-radius: 2px;
    background: var(--ei-red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
  }
  .header .main-nav > li > a:hover::after, .header .main-nav > li.active > a::after { transform: scaleX(1); }
  .header .main-nav > li.login-link { display: none; }
}
.header .main-nav > li.active > a, .header .main-nav > li > a:hover { color: var(--ei-red) !important; }
.header .header-navbar-rht { align-items: center; gap: 10px; }
.header .header-navbar-rht .header-login {
  background: var(--ei-red) !important; color: #fff !important; border: 0 !important;
  border-radius: 10px !important; padding: .7rem 1.15rem !important; font-weight: 700 !important;
  box-shadow: 0 8px 18px -10px rgba(225, 3, 3, .8);
}
.header .header-navbar-rht .header-login:hover { background: var(--ei-red-600) !important; }
.header .header-navbar-rht .ei-nav-link-plain {
  font-weight: 700; color: var(--ei-ink-2); padding: .7rem .6rem;
}
.header .header-navbar-rht .ei-nav-link-plain:hover { color: var(--ei-red); }
.header .bar-icon span { background-color: var(--ei-ink) !important; }
.new-notification-indicator { background: var(--ei-red) !important; }
@media (max-width: 991.98px) {
  .main-menu-wrapper { background: #fff !important; }
  .main-menu-wrapper .main-nav > li > a { padding: 14px 20px !important; border-bottom: 1px solid var(--ei-line) !important; }
  .menu-header { border-bottom: 1px solid var(--ei-line) !important; }
  .header .navbar-brand.logo img { height: 38px; }
  .header .header-navbar-rht .ei-nav-link-plain { display: none; }
}

/* ---------- Layout helpers ---------- */
.ei-section { padding: 96px 0; }
.ei-section-sm { padding: 64px 0; }
.ei-bg-sand { background: var(--ei-sand); }
.ei-bg-blush { background: var(--ei-blush); }
.ei-bg-ink { background: var(--ei-ink); color: #d9cfd1; }
.ei-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ei-red); margin-bottom: .9rem;
}
.ei-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.ei-title { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.85rem); font-weight: 800; line-height: 1.12; margin-bottom: 1rem; }
.ei-lead { font-size: 1.08rem; line-height: 1.7; color: var(--ei-muted); max-width: 640px; }
.ei-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.ei-section-head .ei-lead { margin-bottom: 0; }
.ei-center { text-align: center; }
.ei-center .ei-lead { margin-left: auto; margin-right: auto; }
.ei-link-arrow { font-weight: 700; color: var(--ei-ink); display: inline-flex; align-items: center; gap: .45rem; }
.ei-link-arrow i { transition: transform .18s ease; color: var(--ei-red); }
.ei-link-arrow:hover { color: var(--ei-red); }
.ei-link-arrow:hover i { transform: translateX(3px); }

/* ---------- Hero ---------- */
.ei-hero {
  position: relative; overflow: hidden; padding: 72px 0 88px;
  background:
    radial-gradient(900px 480px at 92% -10%, rgba(225, 3, 3, .10), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(124, 0, 0, .07), transparent 60%),
    linear-gradient(180deg, #FFF8F6 0%, #fff 100%);
}
.ei-hero-mark {
  position: absolute; right: -140px; top: -120px; width: 620px; opacity: .05; pointer-events: none; user-select: none;
}
.ei-hero h1 {
  font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 1.25rem;
}
.ei-hero h1 .ei-accent { color: var(--ei-red); position: relative; white-space: nowrap; }
.ei-hero h1 .ei-accent svg { position: absolute; left: 0; bottom: -.18em; width: 100%; height: .32em; }
.ei-hero .ei-lead { font-size: 1.15rem; margin-bottom: 2rem; }
.ei-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 2rem; }
.ei-hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ei-muted); font-size: .92rem; font-weight: 600; }
.ei-hero-trust span { display: inline-flex; align-items: center; gap: .5rem; }
.ei-hero-trust i { color: var(--ei-green); }

.ei-search {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--ei-line);
  border-radius: 14px; padding: 6px 6px 6px 16px; box-shadow: var(--ei-shadow-sm); max-width: 560px; margin-bottom: 1.6rem;
}
.ei-search i { color: var(--ei-muted); }
.ei-search input { flex: 1; border: 0; outline: 0; font-size: 1rem; padding: .7rem .25rem; background: transparent; color: var(--ei-ink); min-width: 0; }
.ei-search:focus-within { border-color: var(--ei-red); box-shadow: 0 0 0 4px rgba(225, 3, 3, .08); }

/* Band score card (hero visual) */
.ei-score-wrap { position: relative; max-width: 470px; margin-left: auto; }
.ei-score-card {
  position: relative; background: #fff; border-radius: var(--ei-radius-lg); padding: 28px;
  box-shadow: var(--ei-shadow-lg); border: 1px solid var(--ei-line); z-index: 2;
}
.ei-score-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.ei-score-head small { color: var(--ei-muted); font-weight: 600; font-size: .8rem; }
.ei-score-head h6 { margin: 2px 0 0; font-weight: 800; font-size: 1rem; }
.ei-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700; padding: .35rem .7rem; border-radius: 999px; }
.ei-pill-green { background: #E7F6EF; color: var(--ei-green); }
.ei-pill-red { background: var(--ei-blush); color: var(--ei-red); }
.ei-pill-dark { background: var(--ei-ink); color: #fff; }
.ei-overall { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: var(--ei-radius); background: var(--ei-sand); margin-bottom: 20px; }
.ei-ring { --p: 83; width: 86px; height: 86px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--ei-red) calc(var(--p) * 1%), #F1E7E5 0); display: grid; place-items: center; }
.ei-ring span { width: 68px; height: 68px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1.55rem; color: var(--ei-ink); letter-spacing: -0.03em; }
.ei-overall p { margin: 0; color: var(--ei-muted); font-size: .88rem; }
.ei-overall strong { display: block; color: var(--ei-ink); font-size: 1.05rem; }
.ei-bars { display: grid; gap: 14px; }
.ei-bar-row { display: grid; grid-template-columns: 92px 1fr 36px; align-items: center; gap: 12px; font-size: .88rem; font-weight: 600; color: var(--ei-ink-2); }
.ei-bar-row i { color: var(--ei-red); width: 18px; }
.ei-bar { height: 8px; border-radius: 999px; background: #F3ECEA; overflow: hidden; }
.ei-bar b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ei-maroon), var(--ei-red)); }
.ei-bar-row em { font-style: normal; font-weight: 800; color: var(--ei-ink); text-align: right; }
.ei-float {
  position: absolute; z-index: 3; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--ei-shadow);
  border: 1px solid var(--ei-line); display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 700; color: var(--ei-ink);
}
.ei-float small { display: block; font-weight: 600; color: var(--ei-muted); font-size: .75rem; }
.ei-float .ei-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--ei-blush); color: var(--ei-red); }
.ei-float-1 { left: -36px; bottom: -46px; }
.ei-float-2 { right: 26px; top: -44px; }
.ei-score-wrap::before {
  content: ""; position: absolute; inset: 30px -18px -18px 30px; border-radius: var(--ei-radius-lg);
  background: linear-gradient(135deg, var(--ei-red), var(--ei-maroon)); z-index: 1; opacity: .95;
}
@media (max-width: 991.98px) {
  .ei-hero { padding: 48px 0 64px; }
  .ei-score-wrap { margin: 56px auto 0; }
  .ei-float-1 { left: -8px; }
  .ei-float-2 { right: 8px; }
}

/* ---------- Stats strip ---------- */
.ei-stats { margin-top: -44px; position: relative; z-index: 5; }
.ei-stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--ei-radius-lg);
  box-shadow: var(--ei-shadow); border: 1px solid var(--ei-line); overflow: hidden;
}
.ei-stat { padding: 26px 28px; display: flex; align-items: center; gap: 16px; }
.ei-stat + .ei-stat { border-left: 1px solid var(--ei-line); }
.ei-stat .ei-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--ei-blush); color: var(--ei-red); font-size: 1.15rem; flex-shrink: 0; }
.ei-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--ei-ink); line-height: 1.1; letter-spacing: -0.03em; }
.ei-stat span { color: var(--ei-muted); font-size: .88rem; font-weight: 600; }
@media (max-width: 991.98px) {
  .ei-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .ei-stat:nth-child(3) { border-left: 0; }
  .ei-stat:nth-child(n+3) { border-top: 1px solid var(--ei-line); }
}
@media (max-width: 575.98px) { .ei-stat { padding: 18px; } .ei-stat strong { font-size: 1.3rem; } }

/* ---------- Module cards (Listening / Reading / Writing / Speaking) ---------- */
.ei-modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ei-module {
  position: relative; background: #fff; border: 1px solid var(--ei-line); border-radius: var(--ei-radius-lg);
  padding: 28px 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; color: var(--ei-text); display: block; overflow: hidden;
}
.ei-module:hover { transform: translateY(-4px); box-shadow: var(--ei-shadow); border-color: transparent; color: var(--ei-text); }
.ei-module .ei-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 20px; background: var(--ei-blush); color: var(--ei-red); transition: all .2s ease; }
.ei-module:hover .ei-ico { background: var(--ei-red); color: #fff; }
.ei-module h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .5rem; }
.ei-module p { font-size: .93rem; line-height: 1.6; color: var(--ei-muted); margin-bottom: 1rem; }
.ei-module .ei-meta { font-size: .8rem; font-weight: 700; color: var(--ei-ink-2); display: flex; gap: 14px; }
.ei-module .ei-meta span { display: inline-flex; gap: .35rem; align-items: center; }
.ei-module .ei-num { position: absolute; right: 18px; top: 10px; font-size: 4.2rem; font-weight: 800; color: #F6EFED; letter-spacing: -0.05em; line-height: 1; }
@media (max-width: 991.98px) { .ei-modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .ei-modules { grid-template-columns: 1fr; } }

/* ---------- Course cards ---------- */
.ei-course {
  position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ei-line);
  border-radius: var(--ei-radius-lg); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.ei-course:hover { transform: translateY(-4px); box-shadow: var(--ei-shadow); }
.ei-course-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--ei-blush), #fff); overflow: hidden; display: block; }
.ei-course-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ei-course:hover .ei-course-media img { transform: scale(1.04); }
.ei-course-media .ei-placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.ei-course-media .ei-placeholder img { width: 64px; height: 64px; object-fit: contain; opacity: .5; }
.ei-course-badges { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; }
.ei-badge { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .38rem .65rem; border-radius: 8px; background: #fff; color: var(--ei-ink); box-shadow: var(--ei-shadow-sm); }
.ei-badge-live { background: var(--ei-red); color: #fff; }
.ei-badge-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin-right: 6px; vertical-align: 1px; animation: ei-pulse 1.6s infinite; }
.ei-badge-free { background: var(--ei-green); color: #fff; }
@keyframes ei-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.ei-wish {
  position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  color: var(--ei-ink); box-shadow: var(--ei-shadow-sm); cursor: pointer; border: 0; transition: transform .15s ease;
}
.ei-wish:hover { transform: scale(1.08); }
.ei-wish .color-active { color: var(--ei-red) !important; font-weight: 900; }
.ei-course-body { padding: 20px 22px 6px; flex: 1; display: flex; flex-direction: column; }
.ei-course-cat { font-size: .78rem; font-weight: 700; color: var(--ei-red); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .45rem; }
.ei-course-title { font-size: 1.1rem; font-weight: 800; line-height: 1.35; margin-bottom: .75rem; }
.ei-course-title a { color: var(--ei-ink); }
.ei-course-title a:hover { color: var(--ei-red); }
.ei-course-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; color: var(--ei-muted); font-weight: 600; margin-top: auto; padding-bottom: 14px; }
.ei-course-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.ei-course-meta i { color: var(--ei-ink-2); opacity: .7; }
.ei-course-meta .ei-urgent { color: var(--ei-red); }
.ei-course-meta .ei-urgent i { color: var(--ei-red); opacity: 1; }
.ei-course-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-top: 1px solid var(--ei-line); }
.ei-price { font-size: 1.3rem; font-weight: 800; color: var(--ei-ink); letter-spacing: -0.02em; }
.ei-price del { font-size: .9rem; font-weight: 600; color: var(--ei-muted); margin-left: 6px; }
.ei-price.is-free { color: var(--ei-green); }

/* ---------- Steps ---------- */
.ei-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.ei-step { position: relative; padding: 30px 28px; background: #fff; border-radius: var(--ei-radius-lg); border: 1px solid var(--ei-line); }
.ei-step::before {
  counter-increment: step; content: "0" counter(step); display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--ei-ink); color: #fff; font-weight: 800; font-size: .95rem; margin-bottom: 18px;
}
.ei-step h3 { font-size: 1.15rem; font-weight: 800; }
.ei-step p { color: var(--ei-muted); line-height: 1.65; margin: 0 0 1rem; font-size: .95rem; }
@media (max-width: 991.98px) { .ei-steps { grid-template-columns: 1fr; } }

/* ---------- Feature split ---------- */
.ei-check { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 14px; }
.ei-check li { display: flex; gap: 14px; align-items: flex-start; color: var(--ei-text); line-height: 1.55; }
.ei-check li i { width: 26px; height: 26px; border-radius: 8px; background: var(--ei-red); color: #fff; display: grid; place-items: center; font-size: .75rem; flex-shrink: 0; margin-top: 1px; }
.ei-check li strong { color: var(--ei-ink); }
.ei-panel { background: #fff; border-radius: var(--ei-radius-lg); padding: 26px; border: 1px solid var(--ei-line); box-shadow: var(--ei-shadow); }
.ei-mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--ei-line); }
.ei-mock-row:last-child { border-bottom: 0; }
.ei-mock-row .ei-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--ei-blush); color: var(--ei-red); flex-shrink: 0; }
.ei-mock-row strong { color: var(--ei-ink); display: block; font-size: .95rem; }
.ei-mock-row small { color: var(--ei-muted); font-weight: 600; }

/* ---------- Category chips ---------- */
.ei-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ei-chip {
  display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--ei-line);
  background: #fff; color: var(--ei-ink); font-weight: 700; font-size: .92rem; transition: all .15s ease;
}
.ei-chip img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.ei-chip:hover, .ei-chip.is-active { border-color: var(--ei-red); color: var(--ei-red); background: var(--ei-blush); }

/* ---------- Instructors ---------- */
.ei-teacher { text-align: center; background: #fff; border: 1px solid var(--ei-line); border-radius: var(--ei-radius-lg); padding: 28px 20px; height: 100%; }
.ei-teacher .ei-avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden; background: var(--ei-blush); display: grid; place-items: center; color: var(--ei-red); font-weight: 800; font-size: 1.8rem; box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--ei-line); }
.ei-teacher .ei-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ei-teacher h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .25rem; }
.ei-teacher p { color: var(--ei-muted); font-size: .88rem; margin: 0; font-weight: 600; }

/* ---------- CTA band ---------- */
.ei-cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: 56px; color: #fff;
  background: radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(120deg, var(--ei-red) 0%, var(--ei-maroon) 100%);
}
.ei-cta h2 { color: #fff; font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.5rem); font-weight: 800; margin-bottom: .75rem; }
.ei-cta p { color: rgba(255, 255, 255, .85); font-size: 1.05rem; margin: 0; max-width: 560px; }
.ei-cta-mark { position: absolute; right: -60px; bottom: -90px; width: 320px; opacity: .12; filter: brightness(0) invert(1); pointer-events: none; }
@media (max-width: 767.98px) { .ei-cta { padding: 36px 26px; } }

/* ---------- Blog cards ---------- */
.ei-post { display: flex; flex-direction: column; height: 100%; border-radius: var(--ei-radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--ei-line); transition: box-shadow .2s ease, transform .2s ease; }
.ei-post:hover { box-shadow: var(--ei-shadow); transform: translateY(-3px); }
.ei-post-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ei-blush); }
.ei-post-media img { width: 100%; height: 100%; object-fit: cover; }
.ei-post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ei-post-date { font-size: .8rem; font-weight: 700; color: var(--ei-muted); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .05em; }
.ei-post h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.4; margin-bottom: 1rem; }
.ei-post h3 a { color: var(--ei-ink); }
.ei-post h3 a:hover { color: var(--ei-red); }
.ei-post .ei-link-arrow { margin-top: auto; font-size: .9rem; }

/* ---------- Page header (inner pages) ---------- */
.ei-page-head { padding: 56px 0 48px; background: linear-gradient(180deg, #FFF6F4, #fff); border-bottom: 1px solid var(--ei-line); position: relative; overflow: hidden; }
.ei-page-head h1 { font-size: clamp(2rem, 1.3rem + 2vw, 2.9rem); font-weight: 800; margin-bottom: .5rem; }
.ei-page-head p { color: var(--ei-muted); margin: 0; font-size: 1.05rem; max-width: 640px; }
.ei-crumbs { display: flex; gap: .5rem; align-items: center; font-size: .85rem; font-weight: 600; color: var(--ei-muted); margin-bottom: 1rem; list-style: none; padding: 0; flex-wrap: wrap; }
.ei-crumbs a { color: var(--ei-muted); }
.ei-crumbs a:hover { color: var(--ei-red); }
.ei-crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }

/* ---------- Filters sidebar ---------- */
.ei-filter { background: #fff; border: 1px solid var(--ei-line); border-radius: var(--ei-radius-lg); padding: 22px; position: sticky; top: 96px; }
.ei-filter h4 { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ei-muted); margin: 0 0 12px; }
.ei-filter + .ei-filter, .ei-filter-group + .ei-filter-group { margin-top: 22px; }
.ei-filter .form-check { margin-bottom: .55rem; }
.ei-filter .form-check-label { font-weight: 600; color: var(--ei-ink-2); font-size: .93rem; }
.ei-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.ei-toolbar p { margin: 0; color: var(--ei-muted); font-weight: 600; }
.ei-empty { text-align: center; padding: 60px 20px; border: 1.5px dashed var(--ei-line); border-radius: var(--ei-radius-lg); background: var(--ei-sand); }
.ei-empty i { font-size: 2rem; color: var(--ei-red); margin-bottom: 14px; }
.ei-empty h3 { font-size: 1.2rem; font-weight: 800; }
.ei-empty p { color: var(--ei-muted); }

/* Pagination */
.ei-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; list-style: none; padding: 0; flex-wrap: wrap; }
.ei-pagination a, .ei-pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--ei-line); font-weight: 700; color: var(--ei-ink); background: #fff; }
.ei-pagination a:hover { border-color: var(--ei-red); color: var(--ei-red); }
.ei-pagination .is-current { background: var(--ei-red); border-color: var(--ei-red); color: #fff; }

/* ---------- Auth pages ---------- */
.ei-auth { min-height: calc(100vh - 77px); display: grid; grid-template-columns: 1fr 1fr; }
.ei-auth-aside {
  position: relative; overflow: hidden; padding: 64px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(500px 300px at 100% 0%, rgba(255, 255, 255, .12), transparent 60%), linear-gradient(150deg, var(--ei-red), var(--ei-maroon));
}
.ei-auth-aside h2 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 800; line-height: 1.15; }
.ei-auth-aside p { color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.ei-auth-aside .ei-check li { color: #fff; }
.ei-auth-aside .ei-check li i { background: #fff; color: var(--ei-red); }
.ei-auth-aside .ei-cta-mark { right: -80px; bottom: -80px; width: 360px; }
.ei-auth-main { display: flex; align-items: center; justify-content: center; padding: 56px 24px; background: #fff; }
.ei-auth-card { width: 100%; max-width: 440px; }
.ei-auth-card h1 { font-size: 2rem; font-weight: 800; margin-bottom: .4rem; }
.ei-auth-card > p { color: var(--ei-muted); margin-bottom: 1.8rem; }
.ei-auth-card .form-group, .ei-auth-card .input-block { margin-bottom: 1.1rem; }
.ei-auth-card .ei-row-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; font-size: .92rem; }
.ei-auth-card .ei-switch { text-align: center; margin-top: 1.6rem; color: var(--ei-muted); }
.ei-auth-card .ei-switch a { font-weight: 700; }
.ei-pass { position: relative; }
.ei-pass .toggle-password, .ei-pass .ei-eye { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--ei-muted); }
@media (max-width: 991.98px) { .ei-auth { grid-template-columns: 1fr; } .ei-auth-aside { display: none; } }

/* ---------- Content / prose (blog, pages, course description) ---------- */
.ei-prose { font-size: 1.04rem; line-height: 1.8; color: var(--ei-text); }
.ei-prose h2, .ei-prose h3, .ei-prose h4 { margin: 2rem 0 .8rem; font-weight: 800; }
.ei-prose img { max-width: 100%; height: auto; border-radius: var(--ei-radius); }
.ei-prose a { text-decoration: underline; text-underline-offset: 3px; }
.ei-prose blockquote { border-left: 4px solid var(--ei-red); background: var(--ei-sand); padding: 16px 20px; border-radius: 0 12px 12px 0; }
.ei-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.ei-prose td, .ei-prose th { border: 1px solid var(--ei-line); padding: .6rem .8rem; }

/* ---------- Cards / boxes for inner pages ---------- */
.ei-card { background: #fff; border: 1px solid var(--ei-line); border-radius: var(--ei-radius-lg); padding: 28px; }
.ei-card-sticky { position: sticky; top: 96px; }
.ei-info-list { list-style: none; padding: 0; margin: 0; }
.ei-info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ei-line); font-size: .94rem; }
.ei-info-list li:last-child { border-bottom: 0; }
.ei-info-list li span { color: var(--ei-muted); display: inline-flex; gap: .55rem; align-items: center; }
.ei-info-list li span i { color: var(--ei-red); width: 16px; }
.ei-info-list li strong { color: var(--ei-ink); text-align: right; }
.ei-contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--ei-line); }
.ei-contact-item:last-child { border-bottom: 0; }
.ei-contact-item .ei-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--ei-blush); color: var(--ei-red); display: grid; place-items: center; flex-shrink: 0; }
.ei-contact-item h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ei-muted); font-weight: 800; margin-bottom: .25rem; }
.ei-contact-item p, .ei-contact-item a { margin: 0; color: var(--ei-ink); font-weight: 600; }

/* ---------- Error page ---------- */
.ei-error { padding: 110px 0; text-align: center; }
.ei-error .ei-code { font-size: clamp(5rem, 3rem + 8vw, 9rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: var(--ei-red); }

/* ---------- Footer ---------- */
.ei-footer { background: var(--ei-ink); color: #B9AEB0; padding: 72px 0 0; font-size: .95rem; }
.ei-footer a { color: #D9CFD1; }
.ei-footer a:hover { color: #fff; }
.ei-footer-logo img { height: 52px; width: auto; margin-bottom: 18px; }
.ei-footer-about { max-width: 330px; line-height: 1.7; }
.ei-footer h5 { color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.ei-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ei-social { display: flex; gap: 10px; margin-top: 22px; }
.ei-social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; transition: background .15s ease; }
.ei-social a:hover { background: var(--ei-red); color: #fff; }
.ei-footer-bottom { margin-top: 56px; padding: 24px 0 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; color: #8F8386; }
.ei-footer-bottom p { margin: 0 0 .4rem; }
.ei-footer-legal { max-width: 860px; line-height: 1.6; }
@media (max-width: 767.98px) {
  body.ei-has-bottom-menu .ei-footer-bottom { padding-bottom: 92px; }
}

/* Mobile bottom app bar (logged-in) */
.bottom-menu { border-top: 1px solid var(--ei-line) !important; box-shadow: 0 -6px 20px -12px rgba(29, 21, 23, .25) !important; }
.bottom-menu .menu-item.active, .bottom-menu .menu-item.active .menu-icon { color: var(--ei-red) !important; }

/* Toastr */
#toast-container > .toast-success { background-color: var(--ei-green); }
#toast-container > .toast-error { background-color: var(--ei-red); }
#toast-container > div { border-radius: 12px; box-shadow: var(--ei-shadow) !important; opacity: 1; font-family: var(--ei-font); }

/* Reveal-on-scroll */
.ei-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.ei-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ei-reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Course detail ---------- */
.ei-detail-head { padding-bottom: 56px; }
.ei-detail-head .ei-badges { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.ei-detail-head .ei-badge { box-shadow: none; border: 1px solid var(--ei-line); }
.ei-detail-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; font-weight: 600; color: var(--ei-ink-2); font-size: .95rem; }
.ei-detail-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.ei-detail-meta i { color: var(--ei-red); }
.ei-detail-meta .ei-urgent { color: var(--ei-red); }
.ei-block { margin-bottom: 44px; }
.ei-block > h2 { font-size: 1.45rem; font-weight: 800; margin-bottom: 18px; }
.ei-enroll { position: sticky; top: 96px; background: #fff; border: 1px solid var(--ei-line); border-radius: var(--ei-radius-lg); overflow: hidden; box-shadow: var(--ei-shadow); margin-top: -150px; z-index: 3; }
.ei-enroll-media { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--ei-blush), #fff); }
.ei-enroll-media img.ei-cover { width: 100%; height: 100%; object-fit: cover; }
.ei-enroll-media .ei-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 40%, rgba(29, 21, 23, .45)); }
.ei-enroll-media .ei-play span { width: 66px; height: 66px; border-radius: 50%; background: #fff; color: var(--ei-red); display: grid; place-items: center; font-size: 1.3rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.ei-enroll-media:hover .ei-play span { transform: scale(1.08); }
.ei-enroll-media .ei-play em { position: absolute; bottom: 14px; color: #fff; font-style: normal; font-weight: 700; font-size: .88rem; }
.ei-enroll-body { padding: 24px; }
.ei-enroll .ei-price { font-size: 2rem; display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.ei-enroll .ei-save { display: inline-block; font-size: .8rem; font-weight: 800; color: var(--ei-green); background: #E7F6EF; padding: .25rem .55rem; border-radius: 6px; margin-bottom: 18px; }
.ei-enroll .ei-actions { display: flex; gap: 10px; margin: 18px 0 22px; }
.ei-enroll .ei-actions .ei-btn-primary { flex: 1; }
.ei-enroll .ei-actions .ei-btn-ghost { width: 54px; padding-left: 0; padding-right: 0; }
.ei-enroll .ei-actions .color-active { color: var(--ei-red); font-weight: 900; }
.ei-enroll h4 { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ei-muted); margin: 0 0 6px; }
@media (max-width: 991.98px) { .ei-enroll { margin-top: 0; position: static; } }

.ei-acc { border: 1px solid var(--ei-line); border-radius: var(--ei-radius-lg); overflow: hidden; background: #fff; }
.ei-acc-item + .ei-acc-item { border-top: 1px solid var(--ei-line); }
.ei-acc-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: #fff; border: 0; text-align: left; font-weight: 700; color: var(--ei-ink); font-size: 1rem; }
.ei-acc-btn:hover { background: var(--ei-sand); }
.ei-acc-btn .ei-num { width: 34px; height: 34px; border-radius: 10px; background: var(--ei-blush); color: var(--ei-red); display: grid; place-items: center; font-size: .85rem; font-weight: 800; flex-shrink: 0; }
.ei-acc-btn .ei-acc-sub { margin-left: auto; font-size: .82rem; color: var(--ei-muted); font-weight: 600; white-space: nowrap; }
.ei-acc-btn .ei-chev { color: var(--ei-muted); transition: transform .2s ease; }
.ei-acc-btn:not(.collapsed) .ei-chev { transform: rotate(180deg); }
.ei-acc-panel { padding: 4px 22px 18px 70px; }
.ei-acc-panel p { color: var(--ei-muted); margin: 8px 0 0; }
.ei-lesson { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: .94rem; color: var(--ei-text); border-bottom: 1px dashed var(--ei-line); }
.ei-lesson:last-child { border-bottom: 0; }
.ei-lesson i { color: var(--ei-red); width: 16px; }
.ei-lesson span:last-child { margin-left: auto; color: var(--ei-muted); font-size: .85rem; font-weight: 600; }
.ei-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ei-tag { font-size: .8rem; font-weight: 700; padding: .3rem .6rem; border-radius: 7px; background: var(--ei-sand); color: var(--ei-ink-2); display: inline-flex; gap: .35rem; align-items: center; }
.ei-tag i { color: var(--ei-red); }
.ei-includes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ei-include { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--ei-line); border-radius: var(--ei-radius); background: #fff; }
.ei-include .ei-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--ei-blush); color: var(--ei-red); display: grid; place-items: center; flex-shrink: 0; }
.ei-include strong { display: block; color: var(--ei-ink); }
.ei-include small { color: var(--ei-muted); font-size: .86rem; }
@media (max-width: 575.98px) { .ei-includes { grid-template-columns: 1fr; } .ei-acc-panel { padding-left: 22px; } }
.ei-schedule { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--ei-line); border-radius: var(--ei-radius-lg); overflow: hidden; background: #fff; }
.ei-schedule div { padding: 18px 20px; }
.ei-schedule div + div { border-left: 1px solid var(--ei-line); }
.ei-schedule small { display: block; color: var(--ei-muted); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.ei-schedule strong { color: var(--ei-ink); font-size: 1rem; }
@media (max-width: 767.98px) { .ei-schedule { grid-template-columns: 1fr 1fr; } .ei-schedule div:nth-child(3) { border-left: 0; } .ei-schedule div:nth-child(n+3) { border-top: 1px solid var(--ei-line); } }
.ei-trainer-row { display: flex; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--ei-line); border-radius: var(--ei-radius); background: #fff; }
.ei-trainer-row .ei-avatar { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--ei-blush); color: var(--ei-red); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.ei-trainer-row .ei-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ei-trainer-row h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 2px; }
.ei-trainer-row p { margin: 0; color: var(--ei-muted); font-size: .9rem; }
.ei-prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.ei-prose ol { list-style: decimal; padding-left: 1.4rem; margin-bottom: 1rem; }
.ei-prose li { margin-bottom: .35rem; }

/* Auth top bar + alerts */
.ei-auth-top { position: fixed; top: 0; left: 0; right: 0; height: 77px; display: flex; align-items: center; background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--ei-line); z-index: 50; backdrop-filter: blur(10px); }
.ei-auth-top img { height: 50px; width: auto; }
.ei-alert { padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: .92rem; margin-bottom: 18px; border: 1px solid; }
.ei-alert-error { background: var(--ei-blush); color: var(--ei-red-700); border-color: var(--ei-blush-2); }
.ei-alert-success { background: #E7F6EF; color: var(--ei-green); border-color: #C9EBDB; }
.ei-alert-info { background: var(--ei-sand); color: var(--ei-ink-2); border-color: var(--ei-line); }
.ei-pass .ei-eye { right: 14px; }
.ei-pass input { padding-right: 44px; }
.ei-hint { font-size: .82rem; color: var(--ei-muted); margin-top: 6px; }

/* Mobile refinements */
.main-wrapper { overflow-x: clip; }
.ei-footer { overflow-x: clip; }
@media (max-width: 767.98px) {
  .ei-section { padding: 64px 0; }
  .ei-float { display: none; }
  .ei-score-wrap::before { inset: 18px -8px -10px 18px; }
  .ei-stats { margin-top: 0; padding-top: 8px; }
  .ei-hero { padding-bottom: 40px; }
  .ei-hero-cta .ei-btn { flex: 1 1 100%; }
  .ei-section-head { margin-bottom: 28px; }
  .ei-cta { border-radius: 20px; }
}

/* ---------- Bridge: brand colours on legacy dashboard pages (until phase 2 redesign) ---------- */
.breadcrumb-bar { background: linear-gradient(180deg, #FFF6F4, #fff) !important; border-bottom: 1px solid var(--ei-line); padding: 40px 0 !important; }
.breadcrumb-bar .breadcrumb-title, .breadcrumb-bar .breadcrumb-item a { color: var(--ei-ink) !important; font-weight: 800; }
.breadcrumb-bar .breadcrumb-item.active { color: var(--ei-muted) !important; }
.breadcrumb-bar .page-breadcrumb .breadcrumb-item + .breadcrumb-item::before { background: var(--ei-red) !important; }
.page-content { background: var(--ei-sand) !important; }
.settings-widget { border-radius: var(--ei-radius-lg) !important; border: 1px solid var(--ei-line) !important; box-shadow: none !important; }
.settings-widget.dash-profile::before { background: linear-gradient(135deg, var(--ei-red), var(--ei-maroon)) !important; }
.settings-widget.dash-profile .profile-bg { background: transparent !important; }
.dash-profile h4, .dash-profile h4 a, .dash-profile h3, .dash-profile h3 a { color: var(--ei-ink) !important; }
.settings-widget h3, .settings-widget h4, .settings-menu h3, .page-content h1, .page-content h2, .page-content h3, .page-content h4, .page-content h5 { color: var(--ei-ink) !important; }
.settings-widget .nav-link:hover, .settings-widget .nav-item.active .nav-link, .settings-menu .nav-link.active { color: var(--ei-red) !important; }
.settings-widget .nav-item.active .nav-link i, .settings-widget .nav-link:hover i { color: var(--ei-red) !important; }
.dash-info { border-radius: var(--ei-radius-lg) !important; border: 1px solid var(--ei-line) !important; box-shadow: none !important; }
.card { border-radius: var(--ei-radius); }
.badge.bg-primary, .bg-primary { background-color: var(--ei-red) !important; }
.text-primary { color: var(--ei-red) !important; }
.page-link { color: var(--ei-red); }
.page-item.active .page-link { background: var(--ei-red); border-color: var(--ei-red); }
.nav-tabs .nav-link.active, .nav-pills .nav-link.active { color: var(--ei-red) !important; border-color: var(--ei-red) !important; }
.nav-pills .nav-link.active { background: var(--ei-blush) !important; }
.header .user-img img { border: 2px solid var(--ei-blush-2); }
.header .noti-nav img { filter: none; }

/* ==========================================================================
   IELTS Library
   ========================================================================== */
.ei-bn, [lang="bn"] { font-family: "Hind Siliguri", "Noto Sans Bengali", var(--ei-font); }
.ei-lib-hero { padding: 64px 0 56px; background:
    radial-gradient(800px 380px at 90% -20%, rgba(225, 3, 3, .10), transparent 60%),
    linear-gradient(180deg, #FFF6F4, #fff); border-bottom: 1px solid var(--ei-line); }
.ei-lib-hero h1 { font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: .6rem; }
.ei-lib-hero .ei-bn-line { font-size: 1.25rem; color: var(--ei-maroon); font-weight: 600; margin-bottom: 1rem; }
.ei-lib-hero .ei-search { max-width: 680px; margin: 1.6rem 0 1rem; padding: 8px 8px 8px 20px; border-radius: 16px; }
.ei-lib-hero .ei-search input { font-size: 1.05rem; padding: .85rem .25rem; }
.ei-lib-pop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: var(--ei-muted); font-weight: 600; }
.ei-lib-pop a { background: #fff; border: 1px solid var(--ei-line); padding: .35rem .7rem; border-radius: 999px; color: var(--ei-ink-2); }
.ei-lib-pop a:hover { border-color: var(--ei-red); color: var(--ei-red); }

.ei-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ei-section-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--ei-radius-lg); background: #fff;
  border: 1px solid var(--ei-line); color: var(--ei-text); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ei-section-card:hover { transform: translateY(-3px); box-shadow: var(--ei-shadow); border-color: transparent; color: var(--ei-text); }
.ei-section-card .ei-ico { width: 50px; height: 50px; border-radius: 14px; background: var(--ei-blush); color: var(--ei-red); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; transition: all .18s ease; }
.ei-section-card:hover .ei-ico { background: var(--ei-red); color: #fff; }
.ei-section-card h3 { font-size: 1.1rem; font-weight: 800; margin: 0; }
.ei-section-card .ei-bn { color: var(--ei-maroon); font-weight: 600; font-size: .95rem; }
.ei-section-card p { color: var(--ei-muted); font-size: .9rem; line-height: 1.55; margin: .45rem 0 .5rem; }
.ei-section-card small { font-weight: 700; color: var(--ei-ink-2); font-size: .8rem; }

.ei-art-card { display: flex; flex-direction: column; height: 100%; padding: 22px; border-radius: var(--ei-radius-lg); background: #fff; border: 1px solid var(--ei-line); transition: box-shadow .18s ease, transform .18s ease; color: var(--ei-text); }
.ei-art-card:hover { box-shadow: var(--ei-shadow); transform: translateY(-2px); color: var(--ei-text); }
.ei-art-card .ei-art-sec { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ei-red); margin-bottom: .5rem; display: flex; gap: .45rem; align-items: center; }
.ei-art-card h3 { font-size: 1.06rem; font-weight: 800; line-height: 1.38; margin-bottom: .5rem; color: var(--ei-ink); }
.ei-art-card p { color: var(--ei-muted); font-size: .9rem; line-height: 1.55; margin-bottom: .9rem; }
.ei-art-card .ei-art-meta { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.ei-chip-sm { font-size: .72rem; font-weight: 700; padding: .25rem .55rem; border-radius: 6px; background: var(--ei-sand); color: var(--ei-ink-2); }
.ei-chip-sm.is-bn { background: #FFF4E5; color: var(--ei-amber); }
.ei-art-row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--ei-line); border-radius: var(--ei-radius); background: #fff; color: var(--ei-text); transition: border-color .15s ease, box-shadow .15s ease; }
.ei-art-row + .ei-art-row { margin-top: 12px; }
.ei-art-row:hover { border-color: var(--ei-red); box-shadow: var(--ei-shadow-sm); color: var(--ei-text); }
.ei-art-row .ei-n { width: 34px; height: 34px; border-radius: 10px; background: var(--ei-blush); color: var(--ei-red); display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.ei-art-row h3 { font-size: 1.02rem; font-weight: 800; margin: 0 0 .25rem; color: var(--ei-ink); }
.ei-art-row p { margin: 0; color: var(--ei-muted); font-size: .9rem; }

/* Article page */
.ei-article-head { padding: 48px 0 36px; background: linear-gradient(180deg, #FFF6F4, #fff); border-bottom: 1px solid var(--ei-line); }
.ei-article-head h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: .75rem; }
.ei-article-head .ei-sub { font-size: 1.1rem; color: var(--ei-muted); max-width: 760px; margin-bottom: 1.2rem; line-height: 1.65; }
.ei-art-info { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: .88rem; font-weight: 600; color: var(--ei-muted); }
.ei-art-info i { color: var(--ei-red); margin-right: .35rem; }
.ei-lang { display: inline-flex; border: 1.5px solid var(--ei-line); border-radius: 10px; overflow: hidden; background: #fff; }
.ei-lang a, .ei-lang span { padding: .4rem .8rem; font-weight: 700; font-size: .85rem; color: var(--ei-ink-2); }
.ei-lang .is-on { background: var(--ei-ink); color: #fff; }
.ei-lang .is-off { color: #B9AEB0; cursor: not-allowed; }
.ei-article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 280px; gap: 48px; padding: 44px 0 80px; align-items: start; }
.ei-toc { position: sticky; top: 100px; font-size: .9rem; }
.ei-toc h4, .ei-side h4 { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ei-muted); margin-bottom: 12px; }
.ei-toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--ei-line); }
.ei-toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ei-ink-2); line-height: 1.4; }
.ei-toc li.lvl-3 a { padding-left: 26px; font-size: .85rem; color: var(--ei-muted); }
.ei-toc li a:hover, .ei-toc li a.is-active { color: var(--ei-red); border-left-color: var(--ei-red); }
.ei-side { position: sticky; top: 100px; display: grid; gap: 18px; }
.ei-side .ei-card { padding: 20px; }
.ei-side .ei-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ei-side .ei-card ul a { color: var(--ei-ink); font-weight: 600; font-size: .92rem; line-height: 1.4; }
.ei-side .ei-card ul a:hover { color: var(--ei-red); }
@media (max-width: 1199.98px) { .ei-article-layout { grid-template-columns: minmax(0, 1fr) 280px; } .ei-toc-col { display: none; } }
@media (max-width: 991.98px) { .ei-article-layout { grid-template-columns: 1fr; gap: 32px; } .ei-side { position: static; } }
.ei-toc-mobile { display: none; margin-bottom: 24px; }
@media (max-width: 1199.98px) { .ei-toc-mobile { display: block; } }
.ei-toc-mobile summary { font-weight: 800; cursor: pointer; padding: 12px 16px; border: 1px solid var(--ei-line); border-radius: 12px; background: var(--ei-sand); }
.ei-toc-mobile ol { margin: 10px 0 0; padding-left: 1.2rem; }

/* Rich article content */
.ei-article { font-size: 1.07rem; line-height: 1.85; color: var(--ei-text); }
.ei-article[lang="bn"] { font-size: 1.12rem; line-height: 1.95; }
.ei-article > *:first-child { margin-top: 0; }
.ei-article h2 { font-size: 1.6rem; font-weight: 800; margin: 2.6rem 0 1rem; scroll-margin-top: 100px; letter-spacing: -0.02em; }
.ei-article h3 { font-size: 1.2rem; font-weight: 800; margin: 2rem 0 .7rem; scroll-margin-top: 100px; }
.ei-article p { margin-bottom: 1.15rem; }
.ei-article ul, .ei-article ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.ei-article ul { list-style: disc; } .ei-article ol { list-style: decimal; }
.ei-article li { margin-bottom: .45rem; }
.ei-article strong { color: var(--ei-ink); }
.ei-article a { text-decoration: underline; text-underline-offset: 3px; }
.ei-article blockquote { margin: 1.6rem 0; padding: 18px 22px; border-left: 4px solid var(--ei-red); background: var(--ei-blush); border-radius: 0 14px 14px 0; color: var(--ei-ink-2); }
.ei-article blockquote p:last-child { margin-bottom: 0; }
.ei-article hr { margin: 2.4rem 0; border-color: var(--ei-line); opacity: 1; }
.ei-article code { background: var(--ei-sand); color: var(--ei-maroon); padding: .1rem .35rem; border-radius: 5px; font-size: .92em; }
.ei-table-wrap { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--ei-line); border-radius: 14px; }
.ei-article table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0; }
.ei-article th { background: var(--ei-sand); color: var(--ei-ink); font-weight: 800; text-align: left; }
.ei-article th, .ei-article td { padding: .7rem .9rem; border-bottom: 1px solid var(--ei-line); vertical-align: top; }
.ei-article tr:last-child td { border-bottom: 0; }
.ei-article details { margin: 1.2rem 0; border: 1.5px solid var(--ei-line); border-radius: 14px; background: #fff; }
.ei-article details summary { cursor: pointer; padding: 12px 18px; font-weight: 800; color: var(--ei-red); list-style: none; }
.ei-article details summary::-webkit-details-marker { display: none; }
.ei-article details summary::before { content: "\25B8"; display: inline-block; margin-right: .5rem; transition: transform .15s ease; }
.ei-article details[open] summary::before { transform: rotate(90deg); }
.ei-article details > *:not(summary) { padding: 0 18px; }
.ei-article details[open] { padding-bottom: 6px; background: #FFFCFB; }
.ei-article img { max-width: 100%; height: auto; border-radius: 14px; }
.ei-review-note { margin-top: 2.4rem; padding: 18px 20px; border-radius: 14px; background: var(--ei-sand); font-size: .92rem; color: var(--ei-muted); display: flex; gap: 14px; align-items: flex-start; }
.ei-review-note i { color: var(--ei-green); margin-top: 3px; }
.ei-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 2.4rem; }
.ei-prevnext a { display: block; padding: 16px 18px; border: 1px solid var(--ei-line); border-radius: 14px; color: var(--ei-ink); font-weight: 700; line-height: 1.4; }
.ei-prevnext a small { display: block; font-size: .75rem; color: var(--ei-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; font-weight: 800; }
.ei-prevnext a:hover { border-color: var(--ei-red); color: var(--ei-red); }
.ei-prevnext .is-next { text-align: right; grid-column: 2; }
.ei-editor-bar { background: #FFF4E5; border-bottom: 1px solid #F5D9A8; color: #7A4A00; font-weight: 600; font-size: .92rem; padding: 10px 0; margin-top: 77px; }
.ei-editor-bar + .ei-article-head, .ei-editor-bar + .ei-page-head { margin-top: 0; }
.ei-article-head { margin-top: 77px; }
.ei-level-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.ei-article ul > li, .ei-prose ul > li { list-style: disc; }
.ei-article ol > li, .ei-prose ol > li { list-style: decimal; }
.ei-article ul ul > li { list-style: circle; }

/* ==========================================================================
   Free tools
   ========================================================================== */
.ei-tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ei-tool-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--ei-radius-lg); background: #fff; border: 1px solid var(--ei-line); color: var(--ei-text); transition: transform .18s ease, box-shadow .18s ease; }
.ei-tool-card:hover { transform: translateY(-3px); box-shadow: var(--ei-shadow); color: var(--ei-text); }
.ei-tool-card .ei-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--ei-red); color: #fff; display: grid; place-items: center; font-size: 1.25rem; }
.ei-tool-card h3 { font-size: 1.15rem; font-weight: 800; margin: 6px 0 0; }
.ei-tool-card p { color: var(--ei-muted); margin: 0; font-size: .93rem; line-height: 1.55; }
.ei-tool-card .ei-link-arrow { margin-top: auto; padding-top: 6px; }
.ei-tool-wrap { max-width: 1100px; margin: 0 auto; }
.ei-panel-tight { background: #fff; border: 1px solid var(--ei-line); border-radius: var(--ei-radius-lg); padding: 24px; }
.ei-seg { display: inline-flex; background: var(--ei-sand); border: 1px solid var(--ei-line); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.ei-seg button { border: 0; background: transparent; padding: .55rem .9rem; border-radius: 9px; font-weight: 700; color: var(--ei-ink-2); font-size: .9rem; }
.ei-seg button.is-on { background: #fff; color: var(--ei-red); box-shadow: var(--ei-shadow-sm); }
.ei-num-input { font-size: 1.6rem; font-weight: 800; text-align: center; max-width: 120px; }
.ei-band-out { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 800; color: var(--ei-ink); font-size: 1.05rem; }
.ei-band-out b { font-size: 2rem; color: var(--ei-red); letter-spacing: -0.03em; }
.ei-result { text-align: center; padding: 28px; border-radius: var(--ei-radius-lg); background: linear-gradient(135deg, var(--ei-red), var(--ei-maroon)); color: #fff; }
.ei-result .ei-big { font-size: 4.2rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.ei-result p { color: rgba(255,255,255,.85); margin: 8px 0 0; }
.ei-skill-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--ei-line); }
.ei-skill-row:last-child { border-bottom: 0; }
.ei-skill-row label { display: flex; gap: 12px; align-items: center; font-size: 1rem; }
.ei-skill-row label i { width: 38px; height: 38px; border-radius: 10px; background: var(--ei-blush); color: var(--ei-red); display: grid; place-items: center; }
.ei-skill-row small { display: block; color: var(--ei-muted); font-weight: 500; }

/* Typing practice */
.ei-typing-area { width: 100%; min-height: 380px; border: 1.5px solid var(--ei-line); border-radius: 14px; padding: 18px; font-size: 1.05rem; line-height: 1.75; font-family: Arial, Helvetica, sans-serif; color: #111; resize: vertical; }
.ei-typing-area:focus { outline: 0; border-color: var(--ei-red); box-shadow: 0 0 0 4px rgba(225, 3, 3, .08); }
.ei-typing-area[readonly] { background: var(--ei-sand); }
.ei-stats-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--ei-line); border-radius: 14px; background: #fff; margin-bottom: 12px; position: sticky; top: 86px; z-index: 5; }
.ei-stat-pill { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--ei-ink-2); font-size: .92rem; }
.ei-stat-pill strong { font-size: 1.15rem; color: var(--ei-ink); font-variant-numeric: tabular-nums; }
.ei-timer.is-low strong { color: var(--ei-red); }
.ei-progress { height: 6px; border-radius: 999px; background: #F3ECEA; overflow: hidden; margin-top: 10px; }
.ei-progress b { display: block; height: 100%; width: 0; background: var(--ei-red); transition: width .3s ease; }
.ei-progress.is-done b { background: var(--ei-green); }
.ei-prompt { padding: 20px 22px; border-radius: 14px; background: var(--ei-sand); border: 1px solid var(--ei-line); font-size: 1.02rem; line-height: 1.7; color: var(--ei-ink); }
.ei-prompt small { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ei-red); margin-bottom: 6px; }

/* Task 2 bank */
.ei-q { padding: 20px 22px; border: 1px solid var(--ei-line); border-radius: 16px; background: #fff; }
.ei-q + .ei-q { margin-top: 12px; }
.ei-q p { color: var(--ei-ink); font-size: 1.02rem; line-height: 1.65; margin: 10px 0 14px; }
.ei-q-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ei-q-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.ei-q-actions a, .ei-q-actions button { font-size: .88rem; }

/* Cue cards */
.ei-cue { position: relative; padding: 30px; border-radius: 20px; background: #fff; border: 2px solid var(--ei-ink); box-shadow: 8px 8px 0 var(--ei-blush-2); }
.ei-cue h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; }
.ei-cue ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ei-cue li { padding-left: 22px; position: relative; color: var(--ei-ink-2); }
.ei-cue li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--ei-red); }
.ei-cue .ei-cue-cat { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ei-red); margin-bottom: 8px; }
.ei-clock { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ei-ink); line-height: 1; }
.ei-phase { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ei-muted); }
.ei-rec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ei-red); margin-right: 6px; animation: ei-pulse 1.2s infinite; }
.ei-card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ei-card-list button { text-align: left; border: 1px solid var(--ei-line); background: #fff; border-radius: 12px; padding: 12px 14px; font-weight: 700; color: var(--ei-ink-2); font-size: .9rem; }
.ei-card-list button:hover { border-color: var(--ei-red); color: var(--ei-red); }
.ei-card-list button small { display: block; font-weight: 700; color: var(--ei-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }

/* Flashcards */
.ei-flash { perspective: 1400px; height: 320px; cursor: pointer; user-select: none; }
.ei-flash-inner { position: relative; width: 100%; height: 100%; transition: transform .55s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.ei-flash.is-flipped .ei-flash-inner { transform: rotateY(180deg); }
.ei-flash-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 22px; padding: 30px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; border: 1px solid var(--ei-line); background: #fff; box-shadow: var(--ei-shadow); }
.ei-flash-back { transform: rotateY(180deg); background: linear-gradient(160deg, #fff, var(--ei-blush)); }
.ei-flash-word { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ei-ink); }
.ei-flash-pos { color: var(--ei-muted); font-style: italic; margin-top: 4px; }
.ei-flash-bn { font-size: 1.9rem; font-weight: 700; color: var(--ei-red); margin-bottom: 10px; }
.ei-flash-def { color: var(--ei-ink-2); margin-bottom: 10px; }
.ei-flash-ex { color: var(--ei-muted); font-style: italic; }
.ei-flash-hint { position: absolute; bottom: 14px; font-size: .78rem; color: var(--ei-muted); font-weight: 600; }
.ei-speak { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ei-line); background: #fff; color: var(--ei-red); display: inline-grid; place-items: center; }
.ei-speak:hover { border-color: var(--ei-red); }
.ei-vocab-table td, .ei-vocab-table th { padding: .7rem .8rem; border-bottom: 1px solid var(--ei-line); vertical-align: top; }
.ei-vocab-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ei-muted); }
.ei-vocab-table .ei-bn { font-weight: 600; color: var(--ei-maroon); }
.ei-known { color: var(--ei-green); }
@media (max-width: 575.98px) { .ei-flash { height: 360px; } .ei-clock { font-size: 2.6rem; } }

/* Start here (tools hub) */
.ei-start-here { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 28px; align-items: center; padding: 32px; border-radius: var(--ei-radius-lg); background: var(--ei-blush); border: 1px solid var(--ei-blush-2, #FBD9D5); }
.ei-start-copy h2 { font-size: 1.6rem; font-weight: 800; margin: 8px 0; letter-spacing: -0.02em; }
.ei-start-copy p { color: var(--ei-ink-2); margin: 0; }
.ei-start-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ei-start-cards .ei-tool-card { position: relative; }
.ei-stepno { position: absolute; top: 18px; right: 18px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ei-red); background: var(--ei-blush); padding: 4px 10px; border-radius: 999px; }
.ei-tools-h { font-size: 1.3rem; font-weight: 800; margin-bottom: 16px; }
@media (max-width: 991px) { .ei-start-here { grid-template-columns: 1fr; padding: 22px; } }
@media (max-width: 575px) { .ei-start-cards { grid-template-columns: 1fr; } }

/* Level test */
.ei-lt-facts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.ei-lt-facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--ei-ink-2); }
.ei-lt-facts i { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: var(--ei-blush); color: var(--ei-red); display: grid; place-items: center; }
.ei-lt-bn { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--ei-sand); border: 1px solid var(--ei-line); color: var(--ei-ink-2); line-height: 1.75; }
.ei-lt-prev { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #E7F6EF; color: var(--ei-ink-2); font-size: .92rem; }
.ei-lt-passage { max-height: 560px; overflow-y: auto; padding: 24px; border-radius: var(--ei-radius-lg); background: var(--ei-sand); border: 1px solid var(--ei-line); }
.ei-lt-passage h3 { font-size: 1.15rem; font-weight: 800; }
.ei-lt-passage p { color: var(--ei-ink); line-height: 1.75; }
.ei-lt-q { font-size: 1.2rem; font-weight: 700; color: var(--ei-ink); line-height: 1.55; margin: 0 0 18px; }
.ei-lt-tip { font-size: .85rem; color: var(--ei-ink-2); background: var(--ei-blush); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.ei-lt-options { display: grid; gap: 10px; }
.ei-lt-opt { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--ei-line); background: #fff; color: var(--ei-ink); font-weight: 600; font-size: 1rem; transition: border-color .15s ease, background .15s ease; }
.ei-lt-opt:hover { border-color: var(--ei-red); }
.ei-lt-opt.is-on { border-color: var(--ei-red); background: var(--ei-blush); }
.ei-lt-key { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; display: grid; place-items: center; background: var(--ei-sand); font-weight: 800; color: var(--ei-ink-2); font-size: .85rem; }
.ei-lt-opt.is-on .ei-lt-key { background: var(--ei-red); color: #fff; }
.ei-lt-sec { margin-top: 14px; color: var(--ei-ink-2); font-weight: 600; }
.ei-lt-weeks { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; background: var(--ei-sand); border: 1px solid var(--ei-line); }
.ei-lt-weeks i { font-size: 1.5rem; color: var(--ei-red); }
.ei-lt-weeks strong { display: block; font-size: 1.15rem; color: var(--ei-ink); }
.ei-lt-weeks span { color: var(--ei-muted); font-size: .9rem; }
.ei-lt-review summary { cursor: pointer; font-weight: 800; color: var(--ei-ink); }
.ei-lt-review li { margin-bottom: 12px; color: var(--ei-ink-2); }
.ei-lt-review li > div.ei-lt-rq { font-weight: 600; color: var(--ei-ink); }
.ei-lt-ra { font-size: .92rem; }
.ei-lt-ra .ok { color: var(--ei-green); } .ei-lt-ra .bad { color: var(--ei-red); }

/* Study planner */
.ei-plan-form { display: grid; gap: 6px; }
.ei-plan-label { display: block; font-weight: 800; color: var(--ei-ink); font-size: .92rem; margin-top: 12px; }
.ei-plan-form > .ei-plan-label:first-child { margin-top: 0; }
.ei-plan-help { font-size: .85rem; font-weight: 600; }
.ei-plan-form .ei-seg button { flex: 1 1 auto; }
.ei-routine { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.ei-routine li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--ei-line); color: var(--ei-ink-2); }
.ei-routine li:last-child { border-bottom: 0; }
.ei-plan-summary { padding: 22px 24px; border-radius: var(--ei-radius-lg); background: linear-gradient(135deg, var(--ei-red), var(--ei-maroon)); color: #fff; }
.ei-plan-sum-main { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.ei-plan-sum-main small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.ei-plan-sum-main strong { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.ei-plan-summary .ei-progress { background: rgba(255,255,255,.25); }
.ei-plan-summary .ei-progress b { background: #fff; }
.ei-plan-check { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fff; color: var(--ei-ink); font-weight: 600; font-size: .92rem; }
.ei-plan-check.is-ok i { color: var(--ei-green); } .ei-plan-check.is-bad i { color: var(--ei-red); }
.ei-plan-stage { margin: 30px 0 12px; }
.ei-plan-stage h2 { font-size: 1.3rem; font-weight: 800; margin: 0; }
.ei-plan-stage .ei-bn { color: var(--ei-maroon); font-weight: 600; }
.ei-plan-stage p { color: var(--ei-muted); margin: 4px 0 0; }
.ei-unit { border: 1px solid var(--ei-line); border-radius: 16px; background: #fff; margin-bottom: 12px; overflow: hidden; break-inside: avoid; }
.ei-unit header { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--ei-line); background: var(--ei-sand); }
.ei-unit-week { font-weight: 800; color: var(--ei-red); font-size: .95rem; }
.ei-unit-week small { display: block; color: var(--ei-muted); font-weight: 600; font-size: .78rem; }
.ei-unit h3 { font-size: 1.05rem; font-weight: 800; margin: 0; }
.ei-unit header p { margin: 2px 0 0; color: var(--ei-muted); font-size: .9rem; }
.ei-unit-count { font-weight: 800; color: var(--ei-ink-2); background: #fff; border: 1px solid var(--ei-line); border-radius: 999px; padding: 4px 10px; font-size: .85rem; }
.ei-unit.is-complete .ei-unit-count { background: var(--ei-green); color: #fff; border-color: var(--ei-green); }
.ei-unit ul { list-style: none; margin: 0; padding: 6px 18px; }
.ei-unit li { padding: 10px 0; border-bottom: 1px dashed var(--ei-line); }
.ei-unit li:last-child { border-bottom: 0; }
.ei-unit label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--ei-ink-2); margin: 0; }
.ei-unit input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 20px; accent-color: var(--ei-red); }
.ei-unit input:checked + span, .ei-unit input:checked + span a { color: var(--ei-muted); text-decoration: line-through; }
.ei-unit label a i { font-size: .75rem; margin-left: 2px; }
.ei-task-min, .ei-task-tag { display: inline-block; margin-left: 8px; font-size: .75rem; font-weight: 700; color: var(--ei-muted); background: var(--ei-sand); border-radius: 999px; padding: 1px 8px; text-decoration: none; }
.ei-task-tag { background: var(--ei-blush); color: var(--ei-red); }
@media (max-width: 575px) {
	.ei-unit header { grid-template-columns: 1fr auto; }
	.ei-unit-week { grid-column: 1 / -1; }
	.ei-plan-sum-main strong { font-size: 1.1rem; }
}
@media print {
	.header, .ei-footer, .ei-no-print, .ei-page-head .ei-crumbs { display: none !important; }
	.ei-page-head { margin-top: 0 !important; padding: 0 !important; }
	.ei-plan-summary { background: #fff !important; color: #000 !important; border: 1px solid #ccc; }
	.ei-unit a { color: #000; text-decoration: none; }
}

/* AI Writing checker */
.ei-wc-error { padding: 12px 14px; border-radius: 12px; background: var(--ei-blush); color: var(--ei-maroon); font-weight: 600; margin-bottom: 16px; }
.ei-wc-radio { margin: 0; cursor: pointer; }
.ei-wc-radio input { position: absolute; opacity: 0; pointer-events: none; }
.ei-wc-radio span { display: inline-block; padding: .55rem .9rem; border-radius: 9px; font-weight: 700; color: var(--ei-ink-2); font-size: .9rem; }
.ei-wc-radio.is-on span { background: #fff; color: var(--ei-red); box-shadow: var(--ei-shadow-sm); }
.ei-wc-radio input:focus-visible + span { outline: 2px solid var(--ei-red); }
#wc-question { font-size: 1rem; line-height: 1.6; }
.ei-wc-wait { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--ei-sand); font-weight: 600; color: var(--ei-ink-2); }
.ei-wc-tips { padding-left: 1.2rem; margin: 10px 0 12px; color: var(--ei-ink-2); }
.ei-wc-tips li { margin-bottom: 6px; list-style: decimal; }
.ei-wc-history { list-style: none; padding: 0; margin: 10px 0 0; }
.ei-wc-history li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--ei-line); }
.ei-wc-history li:last-child { border-bottom: 0; }
.ei-wc-history a { color: var(--ei-ink-2); font-weight: 600; font-size: .9rem; }
.ei-wc-history small { display: block; color: var(--ei-muted); font-weight: 500; }
.ei-wc-history b { font-size: 1.2rem; color: var(--ei-red); }
.ei-wc-crit { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--ei-line); font-weight: 600; color: var(--ei-ink-2); }
.ei-wc-crit:last-of-type { border-bottom: 0; }
.ei-wc-crit b { font-size: 1.5rem; color: var(--ei-ink); }
.ei-wc-crit.is-low b { color: var(--ei-red); }
.ei-wc-crit.is-low span::after { content: "Focus here"; margin-left: 8px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ei-red); background: var(--ei-blush); padding: 2px 8px; border-radius: 999px; }
.ei-wc-h { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.ei-wc-detail { padding: 14px 0; border-bottom: 1px dashed var(--ei-line); }
.ei-wc-detail:last-child { border-bottom: 0; padding-bottom: 0; }
.ei-wc-detail h3 { font-size: 1rem; font-weight: 800; margin: 0; }
.ei-wc-detail p { margin: 8px 0 0; color: var(--ei-ink-2); }
.ei-wc-fix { padding: 12px 14px; border-radius: 12px; background: var(--ei-sand); margin-top: 10px; }
.ei-wc-old { color: var(--ei-red); text-decoration: line-through; text-decoration-thickness: 1px; }
.ei-wc-new { color: var(--ei-green); font-weight: 700; margin-top: 4px; }
.ei-wc-new i { font-size: .8rem; margin-right: 4px; }
.ei-wc-fix small { display: block; color: var(--ei-muted); margin-top: 4px; }
.ei-wc-vocab { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ei-wc-vocab li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: var(--ei-sand); }
.ei-wc-vocab span { color: var(--ei-muted); }
.ei-wc-vocab i { color: var(--ei-red); font-size: .8rem; }
.ei-wc-vocab strong { color: var(--ei-ink); }
.ei-wc-para { height: 100%; padding: 16px; border-radius: 14px; border: 1px solid var(--ei-line); background: #fff; line-height: 1.75; color: var(--ei-ink-2); }
.ei-wc-para.is-good { background: #F1FAF5; border-color: #CDEBDC; color: var(--ei-ink); }
.ei-wc-para small { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ei-muted); margin-bottom: 6px; }
.ei-wc-para.is-good small { color: var(--ei-green); }

/* Score report verification */
.ei-verify { padding: 24px; border-radius: var(--ei-radius-lg); border: 1px solid var(--ei-line); background: #fff; }
.ei-verify.is-ok { border-color: #CDEBDC; }
.ei-verify.is-bad { border-color: #F5C2BD; background: var(--ei-blush); }
.ei-verify-head { display: flex; gap: 14px; align-items: flex-start; }
.ei-verify-head i { font-size: 1.8rem; margin-top: 2px; }
.ei-verify.is-ok .ei-verify-head i { color: var(--ei-green); }
.ei-verify.is-bad .ei-verify-head i { color: var(--ei-red); }
.ei-verify-head strong { display: block; font-size: 1.2rem; color: var(--ei-ink); }
.ei-verify-head span { color: var(--ei-muted); }
.ei-verify-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin: 20px 0 0; }
.ei-verify-grid dt { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ei-muted); }
.ei-verify-grid dd { margin: 2px 0 0; font-weight: 700; color: var(--ei-ink); }
.ei-verify-bands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 20px; }
.ei-verify-bands div { text-align: center; padding: 12px 8px; border-radius: 12px; background: var(--ei-sand); }
.ei-verify-bands span { display: block; font-size: .78rem; font-weight: 700; color: var(--ei-muted); }
.ei-verify-bands b { font-size: 1.6rem; color: var(--ei-ink); }
.ei-verify-bands .is-overall { background: var(--ei-ink); }
.ei-verify-bands .is-overall span { color: rgba(255,255,255,.7); }
.ei-verify-bands .is-overall b { color: #fff; }
@media (max-width: 575px) { .ei-verify-bands { grid-template-columns: repeat(3, 1fr); } .ei-verify-grid { grid-template-columns: 1fr; } }
