/* ========================================
   English Learning — Base Styles
   ======================================== */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f0f3f7;

  --text: #172033;
  --text-soft: #667085;
  --text-light: #98a2b3;

  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef2ff;

  --border: #e4e7ec;

  --success: #12b76a;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 4px 14px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 12px 30px rgba(16, 24, 40, 0.08);

  --container: 1120px;
}


/* ========================================
   Reset
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  background: var(--bg);
  color: var(--text);

  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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


/* ========================================
   Container
   ======================================== */

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}


/* ========================================
   Header
   ======================================== */

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);

  position: sticky;
  top: 0;
  z-index: 100;

  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 68px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  width: 125px;
  height: auto;
}

.header-login {
  color: var(--primary);
  font-size: 14px;
  font-weight: 650;

  padding: 8px 12px;
  border-radius: var(--radius-sm);

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.header-login:hover {
  background: var(--primary-soft);
}


/* ========================================
   Hero
   ======================================== */

.hero {
  padding: 72px 0 76px;

  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(79, 70, 229, 0.10),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      var(--bg) 100%
    );
}

.hero-content {
  max-width: 780px;
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;

  color: var(--primary);

  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.4px;

  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(36px, 8vw, 64px);
  line-height: 1.08;
  letter-spacing: -1.8px;
  font-weight: 800;

  margin-bottom: 22px;
}

.hero p {
  max-width: 650px;
  margin: 0 auto;

  color: var(--text-soft);

  font-size: 17px;
  line-height: 1.7;
}


/* ========================================
   Buttons
   ======================================== */

.hero-actions {
  display: flex;
  flex-direction: column;

  gap: 12px;

  margin-top: 32px;
}

.btn {
  min-height: 50px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 22px;

  border-radius: 13px;

  font-size: 15px;
  font-weight: 700;

  border: 1px solid transparent;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;

  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.20);
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--text);

  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-soft);
}


/* ========================================
   Intro Section
   ======================================== */

.intro-section {
  padding: 20px 0 25px;
  background: var(--bg);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.8px;

  margin-bottom: 14px;
}

.section-heading p {
  color: var(--text-soft);
  font-size: 16px;
}


/* ========================================
   Feature Cards
   ======================================== */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;

  gap: 16px;
}

.feature-card {
  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  padding: 26px;

  box-shadow: var(--shadow-sm);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Feature Card Icons */

.feature-icon {
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 14px;

  color: var(--primary);
}

.feature-icon .lucide-icon {
  width: 32px;
  height: 32px;

  display: block;

  stroke-width: 2;
}

.feature-icon-level {
  color: var(--primary);
}

.feature-icon-learn {
  color: var(--primary);
}

.feature-icon-review {
  color: var(--primary);
}

.feature-number {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 20px;

  border-radius: 11px;

  background: var(--primary-soft);
  color: var(--primary);

  font-size: 13px;
  font-weight: 800;
}

.feature-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}

/* ========================================
   Level Selection
   ======================================== */

.level-section {
  padding: 72px 0 80px;

  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(79, 70, 229, 0.08),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      var(--bg) 100%
    );
}

.level-section .section-heading {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 42px;
  text-align: center;
}

.level-section .section-heading h1 {
  font-size: clamp(32px, 7vw, 48px);
  line-height: 1.12;
  letter-spacing: -1.2px;
  font-weight: 800;

  margin-bottom: 16px;
}

.level-section .section-heading p {
  max-width: 620px;
  margin-inline: auto;

  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}


/* Level Grid */

.level-grid {
  display: grid;
  grid-template-columns: 1fr;

  gap: 16px;

  max-width: 900px;
  margin-inline: auto;
}


/* Level Card */

.level-card {
  display: flex;
  flex-direction: column;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  padding: 24px;

  box-shadow: var(--shadow-sm);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.level-card:hover {
  transform: translateY(-3px);

  border-color: rgba(79, 70, 229, 0.25);

  box-shadow: var(--shadow-md);
}


/* Level Number */

.level-number {
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 20px;

  border-radius: 12px;

  background: var(--primary-soft);
  color: var(--primary);

  font-size: 13px;
  font-weight: 800;
}


/* Level Content */

.level-content h2 {
  font-size: 22px;
  line-height: 1.25;

  margin-bottom: 6px;
}

.level-name {
  display: inline-block;

  color: var(--primary);

  font-size: 14px;
  font-weight: 800;

  margin-bottom: 12px;
}

.level-content p {
  color: var(--text-soft);

  font-size: 15px;
  line-height: 1.65;

  margin-bottom: 22px;
}


/* Level Button */

.level-btn {
  width: 100%;
  margin-top: auto;
}
/* Level Buttons — Green Learning Path */

.level-card .btn-primary {
  background: var(--success);
  color: #ffffff;

  box-shadow: 0 8px 20px rgba(18, 183, 106, 0.18);
}

.level-card .btn-primary:hover {
  background: #0f9f5d;
   }

/* ========================================
   Level Selection — Tablet
   ======================================== */

@media (min-width: 640px) {

  .level-section {
    padding: 90px 0 100px;
  }

  .level-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .level-card {
    padding: 28px;
  }

}


/* ========================================
   Level Selection — Desktop
   ======================================== */

@media (min-width: 900px) {

  .level-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .level-card {
    padding: 30px;
  }

}

/* ========================================
   Guest Section
   ======================================== */

.guest-section {
  padding: 20px 0 80px;
}

.guest-card {
  display: flex;
  flex-direction: column;

  gap: 28px;

  padding: 30px;

  background: var(--primary);
  color: #ffffff;

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-md);
}

.guest-card .eyebrow {
  color: #ffffff;
  opacity: 0.85;
}

.guest-card h2 {
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.6px;

  margin-bottom: 12px;
}

.guest-card p {
  max-width: 620px;

  color: rgba(255, 255, 255, 0.82);

  font-size: 15px;
}

.guest-card .btn {
  background: #ffffff;
  color: var(--primary);

  width: 100%;
}

.guest-card .btn:hover {
  background: #f8f9ff;
}


/* ========================================
   Footer
   ======================================== */

.site-footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.footer-inner {
  min-height: 72px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.footer-inner p {
  color: var(--text-light);
  font-size: 13px;
}


/* ========================================
   Tablet
   ======================================== */

@media (min-width: 640px) {

  .container {
    width: min(100% - 48px, var(--container));
  }

  .hero {
    padding: 100px 0 110px;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .hero-actions .btn {
    min-width: 170px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .guest-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    padding: 42px;
  }

  .guest-card .btn {
    width: auto;
    min-width: 180px;
    flex-shrink: 0;
  }
}


/* ========================================
   Desktop
   ======================================== */

@media (min-width: 900px) {

  .container {
    width: min(100% - 64px, var(--container));
  }

  .header-inner {
    min-height: 74px;
  }

  .hero h1 {
    max-width: 850px;
    margin-inline: auto;
  }

  .feature-card {
    padding: 30px;
  }

  .guest-card {
    padding: 48px;
  }
}


/* ========================================
   Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
  }

/* ========================================
   Authentication Page
   ======================================== */

.auth-page {
  min-height: calc(100vh - 68px);

  padding: 48px 0 72px;

  background:
    radial-gradient(
      circle at 85% 8%,
      rgba(79, 70, 229, 0.09),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      var(--bg) 55%,
      #ffffff 100%
    );
}


/* Authentication Card */

.auth-card {
  max-width: 620px;
  margin: 0 auto;

  padding: 32px 22px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-md);
}


/* Authentication Heading */

.auth-heading {
  text-align: center;
  margin-bottom: 34px;
}

.auth-icon {
  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 16px;

  border-radius: 18px;

  background: var(--primary-soft);

  font-size: 28px;
}

.auth-heading h1 {
  margin-bottom: 8px;

  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  font-weight: 800;
}

.auth-heading p {
  color: var(--text-soft);

  font-size: 15px;
  line-height: 1.6;
}


/* Authentication Sections */

.auth-section {
  padding-top: 4px;
}

.auth-section h2 {
  margin-bottom: 20px;

  font-size: 23px;
  line-height: 1.25;
  font-weight: 800;
}

.auth-description {
  margin-top: -10px;
  margin-bottom: 22px;

  color: var(--text-soft);

  font-size: 14px;
}


/* Forms */

.auth-section form {
  display: flex;
  flex-direction: column;

  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;

  gap: 7px;
}

.form-group label {
  color: var(--text);

  font-size: 14px;
  font-weight: 700;
}

.optional {
  color: var(--text-light);

  font-size: 12px;
  font-weight: 600;

  margin-left: 4px;
}


/* Inputs */

.form-group input {
  width: 100%;
  min-height: 50px;

  padding: 0 15px;

  background: #ffffff;

  color: var(--text);

  border: 1px solid var(--border);
  border-radius: 12px;

  font: inherit;
  font-size: 15px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-group input::placeholder {
  color: var(--text-light);
}

.form-group input:focus {
  border-color: var(--primary);

  box-shadow:
    0 0 0 3px rgba(79, 70, 229, 0.10);
}


/* Main Authentication Button */

.auth-primary-btn {
  width: 100%;
  min-height: 52px;

  margin-top: 2px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 20px;

  background: var(--primary);
  color: #ffffff;

  border: 1px solid transparent;
  border-radius: 13px;

  font: inherit;
  font-size: 15px;
  font-weight: 750;

  cursor: pointer;

  box-shadow:
    0 8px 20px rgba(79, 70, 229, 0.20);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.auth-primary-btn:hover {
  background: var(--primary-dark);

  transform: translateY(-1px);
}

.auth-primary-btn:active {
  transform: translateY(0);
}


/* Links */

.auth-link {
  display: inline-block;

  margin-top: 16px;

  color: var(--primary);

  font-size: 14px;
  font-weight: 700;

  transition: color 0.2s ease;
}

.auth-link:hover {
  color: var(--primary-dark);
}


/* Divider */

.auth-divider {
  display: flex;
  align-items: center;

  gap: 14px;

  margin: 30px 0;

  color: var(--text-light);

  font-size: 13px;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: "";

  flex: 1;

  height: 1px;

  background: var(--border);
}

.auth-divider span {
  white-space: nowrap;
}


/* Social Login */

.social-login {
  display: flex;
  flex-direction: column;

  gap: 10px;
}

.social-btn {
  width: 100%;
  min-height: 50px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 18px;

  background: #ffffff;
  color: var(--text);

  border: 1px solid var(--border);
  border-radius: 12px;

  font: inherit;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.social-btn:hover {
  background: var(--surface-soft);

  border-color: rgba(79, 70, 229, 0.25);

  transform: translateY(-1px);
}


/* Level Selection */

.level-selection {
  margin-top: 6px;

  padding: 22px;

  background: var(--surface-soft);

  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.level-selection h3 {
  margin-bottom: 5px;

  font-size: 17px;
  font-weight: 800;
}

.level-selection p {
  margin-bottom: 16px;

  color: var(--text-soft);

  font-size: 13px;
}


/* Level Options */

.level-options {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 10px;
}

.level-option {
  min-height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  color: var(--text);

  border: 1px solid var(--border);
  border-radius: 11px;

  font: inherit;
  font-size: 14px;
  font-weight: 800;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.level-option:hover {
  border-color: rgba(79, 70, 229, 0.35);

  color: var(--primary);

  transform: translateY(-1px);
}


/* Selected Level */

.level-option.selected {
  background: var(--primary);

  color: #ffffff;

  border-color: var(--primary);

  box-shadow:
    0 6px 14px rgba(79, 70, 229, 0.18);
}


/* Authentication Footer */

.auth-footer {
  margin-top: 30px;
  padding-top: 24px;

  border-top: 1px solid var(--border);

  text-align: center;
}

.auth-footer p {
  color: var(--text-soft);

  font-size: 14px;
}

.auth-footer .auth-link {
  margin-top: 0;
}


/* ========================================
   Authentication — Tablet
   ======================================== */

@media (min-width: 640px) {

  .auth-page {
    padding: 64px 0 90px;
  }

  .auth-card {
    padding: 42px;
  }

  .auth-heading h1 {
    font-size: 36px;
  }

  .level-options {
    grid-template-columns: repeat(6, 1fr);
  }

}


/* ========================================
   Authentication — Desktop
   ======================================== */

@media (min-width: 900px) {

  .auth-page {
    min-height: calc(100vh - 74px);
  }

  .auth-card {
    padding: 48px;
  }

   }

/* =========================================================
   Dashboard
   ========================================================= */
.dashboard-page {
  padding: 48px 0 80px;
}

.dashboard-welcome {
  margin-bottom: 32px;
}

.dashboard-welcome .eyebrow {
  margin-bottom: 8px;
}

.dashboard-welcome h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.dashboard-level {
  margin: 10px 0 0;
  color: #667085;
  font-size: 1rem;
}

.dashboard-card {
  width: min(100%, 960px);
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.07);
}

.continue-card {
  padding: 36px 40px 40px;
}

.dashboard-card-heading h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
}

.dashboard-card-heading p {
  margin: 8px 0 0;
  color: #667085;
}

.dashboard-divider {
  height: 1px;
  margin: 28px 0;
  background: #e4e7ec;
}

.learning-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.learning-stat {
  min-width: 0;
  text-align: center;
  padding: 8px 6px;
}

.learning-stat-icon {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
  line-height: 1;
}

.learning-stat-label {
  display: block;
  color: #667085;
  font-size: 0.88rem;
  line-height: 1.3;
}

.learning-stat-value {
  display: block;
  margin-top: 7px;
  color: #101828;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
}

.dashboard-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dashboard-actions .btn {
  width: min(100%, 300px);
  min-height: 48px;
}

.guest-review-option {
  width: min(100%, 300px);
}

.guest-review-option .btn {
  width: 100%;
}

.dashboard-actions .btn-secondary {
  background: #fff;
}

.guest-review-note {
  margin: 8px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.progress-card {
  padding: 28px 32px 32px;
  margin-top: 32px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
}

.progress-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.progress-stat {
  padding: 16px 10px;
  text-align: center;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  background: #fafbfc;
}

.progress-stat-label {
  display: block;
  color: #667085;
  font-size: 0.84rem;
}

.progress-stat-value {
  display: block;
  margin-top: 7px;
  color: #101828;
  font-size: 1.45rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .dashboard-page {
    padding: 36px 0 64px;
  }

  .dashboard-welcome {
    margin-bottom: 24px;
  }

  .continue-card {
    padding: 28px 20px 30px;
  }

  .learning-stats-grid,
  .progress-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dashboard-divider {
    margin: 24px 0;
  }

  .progress-card {
    padding: 24px 18px 26px;
    margin-top: 24px;
  }
}

/* =========================================
   Learning Page
   ========================================= */

.learning-page {
    background: #f7f8fa;
}

.learning-container {
    max-width: 960px;
    padding-top: 32px;
    padding-bottom: 80px;
}


/* Exit Learning */

.exit-learning {
    display: inline-flex;
    align-items: center;
    color: #667085;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 28px;
}

.exit-learning:hover {
    color: #4f46e5;
}


/* Learning Heading */

.learning-heading {
    max-width: 760px;
    margin: 0 auto 28px;
}

.learning-heading h1 {
    margin: 6px 0 18px;
}


/* Progress */

.learning-progress {
    width: 100%;
}

.progress-meta {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 8px;
    color: #475467;
    font-size: 14px;
    font-weight: 600;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: #e4e7ec;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    width: 10%;
    height: 100%;
    background: #4f46e5;
    border-radius: 999px;
    transition: width 0.25s ease;
}


/* Word Card */

.word-card {
    max-width: 760px;
    min-height: 520px;
    margin: 0 auto;
    padding: 40px;

    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 24px;

    box-shadow:
        0 8px 24px rgba(16, 24, 40, 0.06);

    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Word Image */

.word-image-wrap {
    margin-bottom: 24px;
}

.word-image-placeholder {
    width: 240px;
    height: 240px;

    border-radius: 20px;

    background: #f2f4f7;
    border: 1px solid #e4e7ec;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #98a2b3;
    font-weight: 600;
}


/* Word */

.word-title {
    margin: 0 0 18px;

    font-size: 48px;
    line-height: 1.1;
    font-weight: 700;

    color: #101828;
}


/* Listen */

.listen-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    padding: 0 18px;

    border: 1px solid #e4e7ec;
    border-radius: 12px;

    background: #ffffff;
    color: #4f46e5;

    font: inherit;
    font-weight: 600;

    cursor: pointer;

    margin-bottom: 32px;
}

.listen-button:hover {
    background: #f8f8ff;
}

/* Pronunciation + Part of Speech */

.word-meta {
    margin-top: -16px;
    margin-bottom: 24px;

    color: #667085;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

/* I Know / I Don't Know */

.word-actions {
    width: 100%;

    display: flex;
    justify-content: center;

    gap: 12px;
}

.word-actions .button {
    min-width: 180px;
}


/* Meaning + Example */

.word-reveal {
    width: 100%;
    max-width: 600px;

    text-align: left;
}

.meaning-block,
.example-block {
    padding: 18px 0;

    border-top: 1px solid #e4e7ec;
}

.meaning-block h3,
.example-block h3 {
    margin: 0 0 8px;

    font-size: 15px;
    color: #475467;
}

.meaning-block p,
.example-block p {
    margin: 0;

    color: #101828;

    font-size: 18px;
    line-height: 1.6;
}


/* Got It */

.got-it-button {
    display: block;
    margin: 24px auto 0;
}


/* Session Complete */

.session-complete {
    width: 100%;
    margin: auto;

    text-align: center;
}

.session-complete h2 {
    margin: 8px 0 12px;

    font-size: 36px;
}

.session-complete p:not(.eyebrow) {
    color: #667085;
    margin-bottom: 24px;
}

.word-actions[hidden],
.word-reveal[hidden] {
    display: none !important;
}

/* =========================================
   Mobile
   ========================================= */

@media (max-width: 640px) {

    .learning-container {
        padding-top: 24px;
        padding-bottom: 56px;
    }

    .learning-heading {
        margin-bottom: 22px;
    }

    .word-card {
        min-height: 0;
        padding: 24px;
        border-radius: 20px;
    }

    .word-image-placeholder {
        width: 200px;
        height: 200px;
        border-radius: 18px;
    }

    .word-title {
        font-size: 36px;
    }

    .word-actions {
        gap: 10px;
    }

    .word-actions .button {
        min-width: 0;
        flex: 1;

        padding-left: 10px;
        padding-right: 10px;
    }

    .meaning-block p,
    .example-block p {
        font-size: 16px;
    }
}


/* =========================================
   Small Mobile
   ========================================= */

@media (max-width: 420px) {

    .word-card {
        padding: 20px;
    }

    .word-image-placeholder {
        width: 180px;
        height: 180px;
    }

    .word-title {
        font-size: 32px;
    }

    .word-actions {
        flex-direction: column;
        width: 100%;
    }

    .word-actions .button {
        width: 100%;
    }
   }

/* =========================
   Authentication Message
   ========================= */

#signup-message {
   display: none;
    margin-top: 16px !important;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    color: #16803c;
    font-size: 15px !important;
    line-height: 1.6;
    text-align: center;
}
#signup-message.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #16803c;
}

#signup-message.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}
/* =========================================
   Student Account Menu
   ========================================= */

.account-menu {
  position: relative;
  display: flex;
  align-items: center;
}


/* Account Menu Button */

.account-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 12px;

  background: transparent;
  color: var(--primary);

  border: 0;
  border-radius: var(--radius-sm);

  font: inherit;
  font-size: 14px;
  font-weight: 650;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.account-menu-button[hidden] {
    display: none !important;
}

.account-menu-button:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}


/* Existing Account Arrow */

.account-menu-arrow {
  display: inline-block;
  margin-left: 2px;

  color: currentColor;

  transition: transform 0.2s ease;
}


/* Rotate Existing Arrow */

.account-menu-button[aria-expanded="true"]
.account-menu-arrow {
  transform: rotate(180deg);
}


/* Account Dropdown */

.account-dropdown {
  position: absolute;

  top: calc(100% + 10px);
  right: 0;

  width: 220px;

  padding: 8px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  box-shadow: var(--shadow-md);

  z-index: 200;
}


/* Dropdown Item */

.account-dropdown-item {
  width: 100%;

  display: flex;
  align-items: center;

  min-height: 44px;

  padding: 10px 12px;

  background: transparent;
  color: var(--text);

  border: 0;
  border-radius: 10px;

  font: inherit;
  font-size: 14px;
  font-weight: 650;

  text-align: left;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}


/* Disabled Options */

.account-dropdown-item:disabled {
  color: var(--text-light);
  background: transparent;

  cursor: not-allowed;
  opacity: 1;
}


/* Log Out */

.account-dropdown-item.account-logout {
  color: #dc2626;
  margin-top: 4px;
}

.account-dropdown-item.account-logout:hover {
  background: #fef2f2;
  color: #b91c1c;
}


/* Hidden Dropdown */

.account-dropdown[hidden] {
  display: none !important;
}


/* Mobile */

@media (max-width: 640px) {

  .account-dropdown {
    width: 210px;
    right: 0;
  }

  .account-dropdown-item {
    min-height: 46px;
  }

}
/* ========================================
   Home — Start Options
   ======================================== */

.start-options {
  margin-top: 42px;
}

.start-options-title {
  margin: 0 0 28px;
  text-align: center;
  color: var(--text);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 750;
}

.start-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 920px;
  margin-inline: auto;
}

.start-card {
  display: flex;
  flex-direction: column;
  align-items: center;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  padding: 28px 22px 24px;

  box-shadow: var(--shadow-sm);

  text-align: center;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.start-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.start-card-guest {
  border-color: rgba(18, 183, 106, 0.18);
}

.start-card-account {
  border-color: rgba(79, 70, 229, 0.18);
}

.start-card-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 36px;
  padding: 0 14px;

  border-radius: 999px;

  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.start-card-guest .start-card-label {
  background: #ecfdf5;
  color: var(--success);
}

.start-card-account .start-card-label {
  background: var(--primary-soft);
  color: var(--primary);
}
.start-card-account .start-card-label {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Start Card Icons */
.start-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  margin-top: 10px;
}

.start-card-icon .lucide-icon {
  width: 32px;
  height: 32px;

  display: block;
  stroke-width: 2;
}

.start-card-guest .start-card-icon {
  color: var(--success);
}

.start-card-account .start-card-icon {
  color: var(--primary);
}

.start-card h3 {
  margin: 12px 0 10px;

  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  font-weight: 800;
}

.start-card p {
  max-width: 360px;

  margin: 0 auto;

  color: var(--text-soft);

  font-size: 15px;
  line-height: 1.6;
}

.start-card .btn {
  width: 100%;
  margin-top: 22px;
}

.start-card-guest .btn {
  background: var(--success);
  color: #ffffff;

  box-shadow: 0 8px 20px rgba(18, 183, 106, 0.18);
}

.start-card-guest .btn:hover {
  background: #0f9f5d;
}

.start-card-account .btn {
  background: var(--primary);
  color: #ffffff;

  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.20);
}

.start-card-account .btn:hover {
  background: var(--primary-dark);
}


/* ========================================
   Home — Start Options — Tablet/Desktop
   ======================================== */

@media (min-width: 640px) {

  .start-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .start-card {
    padding: 30px;
  }

}


/* ========================================
   Home — Start Options — Mobile
   ======================================== */

@media (max-width: 639px) {

  .start-options {
    margin-top: 34px;
  }

  .start-options-title {
    margin-bottom: 20px;
    font-size: 18px;
  }

  .intro-section {
    padding: 24px 0 60px;
  }

}
.start-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  margin-top: 10px;
}

.start-card-icon .lucide-icon {
  width: 32px;
  height: 32px;

  display: block;
  stroke-width: 2;
}

.start-card-guest .start-card-icon {
  color: var(--success);
}

.start-card-account .start-card-icon {
  color: var(--primary);
}

/* =========================================
   Word Status Badge
   ========================================= */

.word-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 30px;
    padding: 0 10px;

    margin-bottom: 12px;

    background: #f8f9fc;
    color: #475467;

    border: 1px solid #e4e7ec;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
}

.word-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    line-height: 1;
}

.word-status-badge[hidden] {
    display: none !important;
}
@media (max-width: 639px) {
  .logo img {
    width: 105px;
  }
}
