html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ==========================================================================
   IELTS Academic Simulation Portal - Official Cambridge Standard Theme
   Smart Abroad Global - Computer-Delivered Examination System
   ========================================================================== */

:root {
  /* 60% Dominant Light / White */
  --bg-main: #f8fafc;          /* Clean ultra-light base */
  --bg-card: #ffffff;          /* Pure white card surface */
  --bg-question: #ffffff;      /* Pure white question canvas */
  --bg-passage: #ffffff;       /* Pure white reading passage */
  --border: #cbd5e1;           /* Clean structural border */
  --border-light: #e2e8f0;      /* Subtle border */
  --text-main: #0f172a;        /* High-contrast dark charcoal */
  --text-muted: #475569;       /* Slate muted text */
  --text-light: #94a3b8;       /* Subtle caption text */

  /* 30% Secondary Dominant - Rich Deep Teal */
  --teal-dark: #042f2e;        /* Deepest dark teal navy */
  --teal-800: #115e59;         /* Rich forest teal */
  --teal-primary: #0f766e;     /* Primary classic teal */
  --teal-600: #0d9488;         /* Vibrant ocean teal */
  --teal-tint: #f0fdfa;        /* Softest sea mist tint */
  --primary: #0f766e;          /* Core brand teal */
  --primary-dark: #042f2e;     /* Core dark teal */
  --primary-light: #14b8a6;    /* Core sea green light */

  /* 10% Vibrant Accent - Sea Green & Mint */
  --sea-green: #14b8a6;        /* Primary vibrant sea green */
  --sea-green-bright: #2dd4bf; /* Bright mint highlight */
  --sea-green-dark: #059669;   /* Deep emerald sea green */
  --sea-green-bg: #ccfbf1;     /* Soft badge background */
  --accent: #14b8a6;           /* UI Accent */
  --accent-sea: #10b981;       /* Success / Action */
  --amber: #f59e0b;            /* Warning / Review Flag */
  --danger: #ef4444;           /* Error / Incorrect */

  /* Dimensions & Typography */
  --header-h: 72px;
  --banner-h: 56px;
  --bottom-bar-h: 68px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-reading: "Georgia", Cambria, "Times New Roman", Times, serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   1. Cambridge Official Learning Partner Banner
   ========================================================================== */
.partner-banner {
  background: linear-gradient(135deg, #042f2e 0%, #115e59 50%, #0f766e 100%);
  color: #ffffff;
  padding: 10px 24px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #f59e0b;
  position: relative;
  z-index: 100;
  flex-wrap: wrap;
  gap: 12px;
}

.partner-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.partner-crest {
  background: #f59e0b;
  color: #091e42;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.partner-headline {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.partner-headline strong {
  color: #fbbf24;
}

.partner-cta-btn {
  background: #10b981;
  color: #ffffff;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.82rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.partner-cta-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* ==========================================================================
   2. Main Header / Navigation
   ========================================================================== */
.app-header {
  height: var(--header-h);
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.brand-logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f766e;
  letter-spacing: -0.02em;
}

.brand-logo-text span {
  color: #10b981;
}

.brand-portal-tag {
  background: #ccfbf1;
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}

.user-avatar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
}

.btn-header-auth {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-header-auth:hover {
  background: #115e59;
}

/* ==========================================================================
   3. Dashboard & Hero Section
   ========================================================================== */
.dashboard-container {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 20px;
  flex: 1;
  width: 100%;
}

.dashboard-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: 32px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

.hero-subtitle {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero-title span {
  color: #0f766e;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 780px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-badges-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

/* Test Catalog Grid */
.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-heading-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.test-card {
  min-width: 0;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.test-card:hover {
  transform: translateY(-4px);
  border-color: #5eead4;
  box-shadow: 0 16px 32px rgba(30, 58, 138, 0.08);
}

.test-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.test-badge {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.test-level-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
}

.test-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.test-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.test-modules-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
  margin-bottom: 8px;
}

.module-chip {
  min-width: 0;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
}

.module-chip:hover {
  background: #f0fdfa;
  border-color: #0d9488;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.18);
}

.module-chip:active {
  transform: translateY(0) scale(0.98);
}

.module-chip-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.module-chip-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.module-chip:hover .module-chip-icon {
  background: #0f766e;
  border-color: #0f766e;
}

.module-chip-icon .g-icon,
.module-chip-icon svg {
  width: 22px;
  height: 22px;
  fill: #0f766e;
  color: #0f766e;
  transition: fill 0.2s, color 0.2s;
}

.module-chip:hover .module-chip-icon .g-icon,
.module-chip:hover .module-chip-icon svg {
  fill: #ffffff;
  color: #ffffff;
}

.module-chip-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.module-chip-name {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.module-chip-time {
  font-size: 0.84rem;
  font-weight: 600;
  color: #0d9488;
}

.module-chip-arrow {
  font-size: 1.25rem;
  font-weight: 900;
  color: #94a3b8;
  transition: all 0.2s;
  padding-left: 6px;
}

.module-chip:hover .module-chip-arrow {
  color: #0f766e;
  transform: translateX(4px);
}

.btn-start-full-test {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: #ffffff;
  border: none;
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-start-full-test:hover {
  background: linear-gradient(135deg, #115e59 0%, #0f766e 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* Coming soon card */
.test-card-coming-soon {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.coming-soon-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

/* ==========================================================================
   4. Computer-Delivered Examination Workspace (Full Screen / Split View)
   ========================================================================== */
#exam-workspace {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  flex-direction: column;
}

#exam-workspace.active {
  display: flex;
}

/* Exam Top Bar */
.exam-topbar {
  height: 64px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid #1e293b;
}

.exam-meta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.exam-title-badge {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.exam-section-pills {
  display: flex;
  gap: 6px;
}

.section-pill-btn {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.section-pill-btn.active {
  background: #0f766e;
  color: #ffffff;
  border-color: #14b8a6;
}

/* Timer Display */
.exam-timer-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1e293b;
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid #334155;
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
}

.exam-timer-box.warning {
  background: #7f1d1d;
  color: #fecaca;
  border-color: #ef4444;
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.8; }
  to { opacity: 1; }
}

.exam-tools-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-tool {
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #334155;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-tool:hover {
  background: #334155;
}

.btn-finish-test {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-finish-test:hover {
  background: #059669;
}

/* Exam Main Content Area */
.exam-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* Split Screen for Reading */
.split-left-pane {
  flex: 1;
  width: 50%;
  border-right: 2px solid var(--border);
  overflow-y: auto;
  padding: 32px 36px;
  background: #ffffff;
  font-family: var(--font-reading);
  font-size: 1.05rem;
  line-height: 1.75;
  color: #1e293b;
}

.split-left-pane h2 {
  font-family: var(--font-family);
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
}

.split-left-pane p {
  margin-bottom: 18px;
}

.split-right-pane {
  flex: 1;
  width: 50%;
  overflow-y: auto;
  padding: 32px 36px;
  background: #f8fafc;
}

/* Text Highlighter Selection Popup */
.highlight-yellow {
  background-color: #fef08a !important;
  color: #000000;
  border-radius: 2px;
}

.highlight-green {
  background-color: #bbf7d0 !important;
  color: #000000;
  border-radius: 2px;
}

/* Question Layouts */
.question-block {
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--teal-primary, #0f766e);
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.04);
}

.question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.question-number-badge {
  background: #ccfbf1;
  color: #0f766e;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #99f6e4;
}

.flag-review-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.question-prompt {
  font-size: 0.98rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 14px;
  line-height: 1.5;
}

.question-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-choice-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.92rem;
  color: #1e293b;
}

.option-choice-label:hover {
  background: #f0fdfa;
  border-color: #14b8a6;
}

.option-choice-label.selected {
  background: #f0fdfa;
  border-color: #0f766e;
  border-width: 2px;
  color: #0f766e;
  font-weight: 700;
}

.fill-input-box {
  width: 100%;
  max-width: 380px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s;
}

.fill-input-box:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Writing Module Layout */
.writing-layout {
  display: flex;
  width: 100%;
  height: 100%;
}

.writing-prompt-pane {
  width: 45%;
  border-right: 2px solid var(--border);
  overflow-y: auto;
  padding: 28px;
  background: #ffffff;
}

.writing-editor-pane {
  width: 55%;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  padding: 24px 28px;
}

.editor-counter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 700;
}

.word-count-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-family: monospace;
}

.word-count-badge.ok {
  background: #dcfce7;
  color: #15803d;
}

.word-count-badge.short {
  background: #fee2e2;
  color: #b91c1c;
}

.writing-textarea {
  flex: 1;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  resize: none;
  outline: none;
  color: #1e293b;
}

.writing-textarea:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Speaking Module Layout */
.speaking-container {
  max-width: 820px;
  margin: 30px auto;
  padding: 0 20px;
  width: 100%;
}

.speaking-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.recorder-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.btn-record {
  background: #ef4444;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-record.recording {
  animation: pulse 1s infinite alternate;
  background: #b91c1c;
}

/* Exam Bottom Question Palette Bar */
.exam-bottom-bar {
  height: var(--bottom-bar-h);
  background: #ffffff;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

.question-nav-palette {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
  max-width: calc(100vw - 320px);
}

.q-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.q-nav-btn:hover {
  background: #e2e8f0;
}

.q-nav-btn.answered {
  background: #0f766e;
  color: #ffffff;
  border-color: #115e59;
}

.q-nav-btn.flagged {
  border-bottom: 3px solid #f59e0b;
}

.q-nav-btn.current {
  box-shadow: 0 0 0 2px #0f172a;
}

/* ==========================================================================
   5. Authentication & Registration Modal
   ========================================================================== */
.auth-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal-overlay.active {
  display: flex;
}

.auth-modal-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.auth-modal-top {
  background: linear-gradient(135deg, #042f2e 0%, #0f766e 100%);
  color: #ffffff;
  padding: 24px 28px;
  position: relative;
}

.auth-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-body {
  padding: 28px;
}

.auth-tab-switch {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 22px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 9px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab-btn.active {
  background: #ffffff;
  color: #0f766e;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-auth-submit {
  width: 100%;
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: #ffffff;
  border: none;
  padding: 13px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}

.auth-alert {
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.auth-alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

.auth-alert.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: block;
}

/* ==========================================================================
   6. Result & Analytics Scorecard Modal
   ========================================================================== */
.results-modal-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

.scorecard-banner {
  background: linear-gradient(135deg, #042f2e 0%, #0f766e 100%);
  color: #ffffff;
  padding: 32px 36px;
  text-align: center;
}

.scorecard-band-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #f59e0b;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-weight: 900;
}

.scorecard-band-val {
  font-size: 2.4rem;
  line-height: 1;
}

.scorecard-band-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.review-answers-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.92rem;
}

.review-answers-table th {
  background: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border);
  color: #475569;
}

.review-answers-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}

.status-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-tag.correct {
  background: #dcfce7;
  color: #15803d;
}

.status-tag.incorrect {
  background: #fee2e2;
  color: #b91c1c;
}

/* ==========================================================================
   7. Brand Logo & Header Additions
   ========================================================================== */
.brand-logo-img {
  height: 44px;
  width: auto;
  aspect-ratio: 1039 / 508;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.02);
}

.exam-brand-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  margin-right: 12px;
}

/* ==========================================================================
   8. High-Converting Admissions Lead Gen Section & SmartAbroad.in Bridge
   ========================================================================== */
.leadgen-conversion-section {
  margin-top: 36px;
  margin-bottom: 20px;
}

.leadgen-card {
  background: linear-gradient(135deg, #042f2e 0%, #115e59 60%, #0f766e 100%);
  border-radius: 20px;
  padding: 44px 48px;
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.leadgen-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.leadgen-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.leadgen-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.leadgen-title .gradient-text {
  background: linear-gradient(90deg, #2dd4bf 0%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.leadgen-copy {
  font-size: 1.02rem;
  line-height: 1.65;
  opacity: 0.92;
  max-width: 820px;
  margin-bottom: 32px;
}

.leadgen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.leadgen-feature {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.2s, background 0.2s;
}

.leadgen-feature:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.leadgen-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 10px;
}

.leadgen-feature h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.leadgen-feature p {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.leadgen-cta-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.btn-leadgen-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 900;
  padding: 18px 36px;
  border-radius: 40px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.4);
  transition: all 0.25s ease;
  letter-spacing: -0.01em;
}

.btn-leadgen-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.55);
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #091e42;
}

.leadgen-subtext {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.84rem;
  color: #94a3b8;
  flex-wrap: wrap;
}

.leadgen-subtext span {
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
   9. Global Portal Footer
   ========================================================================== */
.app-footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 32px 36px 24px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.footer-brand-logo {
  height: 70px;
  width: auto;
  max-width: 220px;
  aspect-ratio: 1039 / 508;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
  transition: transform 0.2s ease;
}

.footer-brand-logo:hover {
  transform: scale(1.02);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 18px;
  font-size: 0.85rem;
  color: #64748b;
}

/* ==========================================================================
   10. Microphone Info Notice Modal
   ========================================================================== */
.mic-notice-card {
  background: #ffffff;
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  text-align: center;
  animation: modalIn 0.25s ease-out;
}

.mic-notice-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border: 1px solid #99f6e4;
}

.btn-mic-confirm {
  background: #0f766e;
  color: #ffffff;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.2s;
}

.btn-mic-confirm:hover {
  background: #115e59;
}


/* ==========================================================================
   11. COMPREHENSIVE RESPONSIVE STYLES (TABLET & MOBILE USER EXPERIENCE)
   ========================================================================== */

/* Tablet & Smaller Screens (<= 1024px) */
@media (max-width: 1024px) {
  .dashboard-container {
    padding: 0 16px;
    margin: 20px auto;
  }

  .dashboard-hero {
    padding: 28px 24px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .test-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 20px;
  }

  .leadgen-card {
    padding: 34px 30px;
  }

  .leadgen-title {
    font-size: 1.65rem;
  }

  .split-left-pane,
  .split-right-pane {
    padding: 24px 20px;
  }

  .writing-prompt-pane {
    width: 45%;
    padding: 22px;
  }

  .writing-editor-pane {
    width: 55%;
    padding: 20px;
  }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  /* Partner Banner */
  .partner-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 10px 14px;
    gap: 10px;
  }

  .partner-badge-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .partner-crest {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  .partner-headline {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .partner-cta-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 9px 16px;
    font-size: 0.82rem;
  }

  /* Main Navigation Header */
  .app-header {
    height: auto;
    min-height: 62px;
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-wrapper {
    gap: 8px;
  }

  .brand-logo-img {
    height: 36px !important;
  }

  .brand-portal-tag {
    font-size: 0.68rem;
    padding: 2px 6px;
    margin-left: 6px !important;
  }

  .header-right {
    gap: 8px;
  }

  .btn-header-auth {
    font-size: 0.8rem;
    padding: 7px 12px;
  }

  .user-profile-badge {
    font-size: 0.76rem;
    padding: 4px 10px;
  }

  /* Dashboard Hero */
  .dashboard-hero {
    padding: 20px 16px;
    margin-bottom: 22px;
    border-radius: 12px;
  }

  .hero-subtitle {
    font-size: 0.74rem;
  }

  .hero-title {
    font-size: 1.45rem;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .hero-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .hero-badges-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .hero-badge-pill {
    width: 100%;
    font-size: 0.8rem;
    padding: 8px 12px;
    justify-content: flex-start;
  }

  /* Section Title Row */
  .section-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 16px;
  }

  .section-heading-title {
    font-size: 1.28rem;
    line-height: 1.3;
  }

  /* Test Catalog Cards */
  .test-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    margin-bottom: 24px;
  }

  .test-card {
    padding: 18px 16px;
    border-radius: 12px;
  }

  .test-card-header {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
  }

  .test-badge, 
  .test-level-badge {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  .test-card-title {
    font-size: 1.18rem;
    margin-bottom: 6px;
    word-break: break-word;
  }

  .test-card-desc {
    font-size: 0.86rem;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  /* Module Chips in 2 clean vertical cards */
  .test-modules-chips {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
    margin-bottom: 16px;
  }

  .module-chip {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    padding: 8px 10px;
    min-height: 52px;
  }

  .module-chip-name {
    font-size: 0.82rem;
    font-weight: 700;
  }

  .module-chip-time {
    font-size: 0.72rem;
    color: #64748b;
  }

  .btn-start-full-test {
    padding: 12px 18px;
    font-size: 0.92rem;
    width: 100%;
  }

  .test-card-coming-soon {
    padding: 24px 16px;
  }

  /* Batch Promotion Banner */
  section[style*="padding:36px 40px"] {
    padding: 22px 18px !important;
  }

  /* Lead Generation Card */
  .leadgen-conversion-section {
    margin-top: 24px;
    margin-bottom: 16px;
  }

  .leadgen-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .leadgen-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
    margin-bottom: 12px;
  }

  .leadgen-title {
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .leadgen-copy {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .leadgen-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    margin-bottom: 24px;
  }

  .leadgen-feature {
    padding: 14px;
  }

  .leadgen-feature h4 {
    font-size: 0.95rem;
  }

  .leadgen-feature p {
    font-size: 0.82rem;
  }

  .btn-leadgen-main {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px 18px;
    font-size: 0.92rem;
    line-height: 1.3;
  }

  .leadgen-subtext {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.78rem;
  }

  .leadgen-subtext span:nth-child(even) {
    display: none;
  }

  /* Global Footer */
  .app-footer {
    padding: 24px 16px 18px;
  }

  .footer-brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-brand-logo {
    height: 56px !important;
    max-width: 175px !important;
    margin-bottom: 10px !important;
  }

  .footer-brand-row a {
    width: 100%;
    text-align: center;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
  }

  /* ==========================================================================
     Examination Workspace Mobile UX (Reading, Listening, Writing, Speaking)
     ========================================================================== */
  .exam-topbar {
    height: auto;
    min-height: 54px;
    padding: 8px 10px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .exam-meta-group {
    width: 100%;
    justify-content: space-between;
    order: 1;
  }

  .exam-brand-logo {
    height: 24px !important;
    padding: 2px 4px;
    margin-right: 6px;
  }

  .exam-title-badge {
    font-size: 0.82rem;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .exam-section-pills {
    gap: 4px;
  }

  .section-pill-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  .exam-timer-box {
    font-size: 0.95rem;
    padding: 4px 10px;
    order: 2;
  }

  .exam-tools-group {
    gap: 6px;
    order: 3;
  }

  .btn-tool {
    padding: 5px 8px;
    font-size: 0.75rem;
  }

  .btn-finish-test {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  /* Reading Module: Top half Passage (scrollable) + Bottom half Questions (scrollable) */
  .reading-layout {
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  .split-left-pane {
    width: 100% !important;
    height: 46% !important;
    flex: none !important;
    border-right: none !important;
    border-bottom: 2px solid var(--border) !important;
    padding: 16px 14px !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }

  .split-left-pane h2 {
    font-size: 1.25rem !important;
    margin-bottom: 12px !important;
  }

  .split-right-pane {
    width: 100% !important;
    height: 54% !important;
    flex: none !important;
    padding: 16px 14px !important;
  }

  /* Writing Module: Top Prompt + Bottom Editor */
  .writing-layout {
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  .writing-prompt-pane {
    width: 100% !important;
    height: 38% !important;
    flex: none !important;
    border-right: none !important;
    border-bottom: 2px solid var(--border) !important;
    padding: 16px 14px !important;
  }

  .writing-editor-pane {
    width: 100% !important;
    height: 62% !important;
    flex: none !important;
    padding: 14px !important;
  }

  .writing-textarea {
    padding: 12px;
    font-size: 0.92rem;
  }

  /* Speaking Module */
  .speaking-container {
    padding: 0 12px;
    margin: 16px auto;
  }

  .speaking-card {
    padding: 20px 16px;
  }

  .recorder-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-record {
    width: 100%;
    justify-content: center;
  }

  /* Question Palette Bottom Bar */
  .exam-bottom-bar {
    height: 54px;
    padding: 0 10px;
  }

  .question-nav-palette {
    max-width: calc(100vw - 130px);
    gap: 4px;
  }

  .q-nav-btn {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  /* Modals */
  .auth-modal-card {
    width: 95% !important;
    border-radius: 14px;
  }

  .auth-modal-top {
    padding: 18px 16px;
  }

  .auth-modal-body {
    padding: 18px 16px;
  }

  .results-modal-card {
    width: 96% !important;
    max-height: 94vh;
    border-radius: 14px;
  }

  .scorecard-banner {
    padding: 22px 16px;
  }

  .scorecard-band-circle {
    width: 80px;
    height: 80px;
  }

  .scorecard-band-val {
    font-size: 1.9rem;
  }

  .review-answers-table {
    display: block;
    overflow-x: auto;
    width: 100%;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .review-answers-table th,
  .review-answers-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}

/* Extra Small Phones (<= 420px) */
@media (max-width: 420px) {
  .test-modules-chips {
    grid-template-columns: 1fr !important;
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .leadgen-title {
    font-size: 1.25rem;
  }

  .btn-leadgen-main {
    font-size: 0.88rem;
    padding: 12px 14px;
  }
}


/* ==========================================================================
   Google Material SVG Icon Geometry & Human-Crafted UI Additions
   ========================================================================== */
.g-icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.16em;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.g-icon-check {
  color: #10b981 !important;
}

.g-icon-lg {
  width: 1.6em;
  height: 1.6em;
  vertical-align: -0.22em;
}

/* Material Symbols Font Fallback */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: -0.15em;
}

/* Responsive Module Chips in Cards */
.test-modules-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.module-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  transition: all 0.2s ease;
}

.module-chip:hover {
  background: #f0fdfa;
  border-color: #0f766e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.08);
}

.module-chip-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.module-chip-time {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.recording-pulse-dot {
  animation: pulse 1.2s infinite ease-in-out;
}

/* Extra Fluid Breakpoints for Mobile & Split-Screen Browsers */
@media (max-width: 900px) {
  .section-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .test-modules-chips {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .module-chip {
    padding: 8px 10px;
  }
  .module-chip-name {
    font-size: 0.82rem;
  }
  .module-chip-time {
    font-size: 0.72rem;
  }
}

@media (max-width: 380px) {
  .test-modules-chips {
    grid-template-columns: 1fr;
  }
}


/* High-Contrast Illuminated Leadgen Feature Badges */
.leadgen-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
  background: rgba(45, 212, 191, 0.22) !important;
  border: 1.5px solid #2dd4bf !important;
  box-shadow: 0 4px 18px rgba(45, 212, 191, 0.35) !important;
  margin-bottom: 14px !important;
}

.leadgen-icon .g-icon,
.leadgen-icon svg {
  width: 30px !important;
  height: 30px !important;
  fill: #2dd4bf !important;
  color: #2dd4bf !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* ==========================================================================
   Cambridge Certificate Showcase & Career Acceleration
   ========================================================================== */
.ielts-cert-section {
  background: #ffffff;
  border: 1.5px solid #ccfbf1;
  border-radius: 20px;
  padding: 44px 48px;
  margin-top: 36px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.07);
}

.ielts-cert-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #0f766e;
  padding: 6px 14px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.cert-heading {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 14px;
}

.cert-copy {
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

.cert-points-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.cert-point-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.55;
}

.cert-check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ccfbf1;
  color: #0f766e;
  flex-shrink: 0;
  margin-top: 2px;
}

.cert-check-icon .g-icon {
  width: 15px;
  height: 15px;
  fill: #0f766e;
}

.cert-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.btn-cert-primary {
  background: #0f766e;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
}

.btn-cert-primary:hover {
  background: #115e59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.35);
}

.btn-cert-secondary {
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 13px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-cert-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.cert-footnote {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 10px;
}

.ielts-cert-preview {
  display: flex;
  justify-content: center;
}

.cert-preview-card {
  position: relative;
  background: #f8fafc;
  border: 2px solid #99f6e4;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 520px;
}

.cert-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(15, 118, 110, 0.18);
}

.cert-preview-floating-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #0f766e;
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.35);
}

.cert-preview-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  display: block;
}

.cert-preview-caption {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 12px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .ielts-cert-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ielts-cert-section {
    padding: 28px 20px;
  }
  .cert-heading {
    font-size: 1.45rem;
  }
  .btn-cert-primary, .btn-cert-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Module Inline Certificate & Free Counselling Callout Banner
   ========================================================================== */
.module-cert-banner {
  background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
  border: 1.5px solid #99f6e4;
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 36px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.08);
}

.module-cert-banner-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.module-cert-thumb {
  width: 140px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #99f6e4;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.speaking-promo-card {
  margin-top: 28px;
  background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
  border: 1.5px solid #99f6e4;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 4px 14px rgba(15,118,110,0.08);
}

@media (max-width: 768px) {
  .module-cert-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .module-cert-thumb {
    width: 100%;
    max-width: 260px;
  }
}


/* ==========================================================================
   ULTIMATE FLUID RESPONSIVE SYSTEM (Baseline Phones 320px to 4K Displays)
   Supports 5.4" compact phones, 240x320 to 360x640 baseline resolutions,
   tablets (768px-1024px), and desktop environments with zero overflow.
   ========================================================================== */

/* Universal Overflow Protection */
html, body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

/* Base Mobile Overrides (<= 480px) */
@media (max-width: 480px) {
  /* Partner Banner */
  .partner-banner {
    padding: 8px 12px !important;
    gap: 8px !important;
  }
  .partner-badge-wrapper {
    width: 100% !important;
    justify-content: center !important;
  }
  .partner-headline {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }
  .partner-cta-btn {
    width: 100% !important;
    font-size: 0.8rem !important;
    padding: 8px 12px !important;
    white-space: normal !important;
    text-align: center !important;
  }

  /* Main App Header */
  .app-header {
    padding: 8px 12px !important;
    min-height: 56px !important;
    justify-content: space-between !important;
  }
  .brand-logo-img {
    height: 32px !important;
  }
  .brand-portal-tag {
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
  }
  .btn-admin-header {
    font-size: 0.72rem !important;
    padding: 5px 8px !important;
  }
  .btn-header-auth {
    font-size: 0.76rem !important;
    padding: 6px 10px !important;
  }

  /* Dashboard Container & Hero */
  .dashboard-container {
    padding: 0 12px !important;
    margin: 14px auto !important;
  }
  .dashboard-hero {
    padding: 18px 14px !important;
    border-radius: 12px !important;
  }
  .hero-title {
    font-size: 1.32rem !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }
  .hero-desc {
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
  }
  .hero-badge-pill {
    font-size: 0.75rem !important;
    padding: 6px 10px !important;
  }

  /* Test Catalog & Cards */
  .test-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .test-card {
    padding: 16px 14px !important;
    border-radius: 14px !important;
  }
  .test-card-title {
    font-size: 1.15rem !important;
    word-break: break-word !important;
  }
  .test-card-desc {
    font-size: 0.84rem !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
  }

  /* Module Chips: 1 Column Full-Width Tactile Buttons on Mobile */
  .test-modules-chips {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
  }
  .module-chip {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 14px !important;
    min-height: 54px !important;
    border-radius: 12px !important;
  }
  .module-chip-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }
  .module-chip-icon {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
  }
  .module-chip-name {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
  }
  .module-chip-time {
    font-size: 0.75rem !important;
  }
  .module-chip-arrow {
    font-size: 1.1rem !important;
    color: #0f766e !important;
    flex-shrink: 0 !important;
  }

  /* LeadGen & Certificate Sections */
  .leadgen-card {
    padding: 20px 14px !important;
    border-radius: 14px !important;
  }
  .leadgen-title {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }
  .leadgen-copy {
    font-size: 0.84rem !important;
  }
  .btn-leadgen-main {
    padding: 12px 14px !important;
    font-size: 0.88rem !important;
    white-space: normal !important;
  }
  .ielts-cert-section {
    padding: 20px 14px !important;
  }
  .cert-heading {
    font-size: 1.25rem !important;
    word-break: break-word !important;
  }
}

/* Compact Mobile Baseline (<= 360px - down to 320px CSS width / 240x320 - 360x640) */
@media (max-width: 360px) {
  .dashboard-container {
    padding: 0 8px !important;
  }
  .dashboard-hero {
    padding: 14px 10px !important;
  }
  .hero-title {
    font-size: 1.18rem !important;
  }
  .hero-desc {
    font-size: 0.78rem !important;
  }
  .test-card {
    padding: 12px 10px !important;
  }
  .test-card-title {
    font-size: 1.05rem !important;
  }
  .module-chip {
    padding: 10px 10px !important;
  }
  .module-chip-name {
    font-size: 0.88rem !important;
  }
  .module-chip-time {
    font-size: 0.7rem !important;
  }
  .partner-banner {
    padding: 6px 8px !important;
  }
  .brand-logo-img {
    height: 26px !important;
  }
  .brand-portal-tag {
    display: none !important; /* Hide tag on <=360px to keep logo and auth buttons clean */
  }
  .btn-admin-header {
    font-size: 0.68rem !important;
    padding: 4px 6px !important;
  }
  .btn-header-auth {
    font-size: 0.7rem !important;
    padding: 5px 8px !important;
  }
  .footer-brand-logo {
    height: 48px !important;
    max-width: 145px !important;
  }
}
