/* ============================================
   AUDILINGO — Component Library v2.6.0
   Prefix: .al-* (avoids conflicts with plugins)
   ============================================ */

/* ── BUTTONS ──────────────────────────────── */
.al-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 44px; /* WCAG touch target */
  border-radius: var(--al-radius-pill);
  font-family: var(--al-font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.al-btn-primary {
  background: var(--al-primary);
  color: #fff;
  box-shadow: var(--al-shadow-primary);
}
.al-btn-primary:hover {
  background: var(--al-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(108, 99, 255, 0.35);
}

.al-btn-ghost {
  background: transparent;
  color: var(--al-text-white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.al-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.al-btn-outline {
  background: transparent;
  color: var(--al-primary);
  border: 1.5px solid var(--al-primary);
}
.al-btn-outline:hover {
  background: var(--al-primary-light);
}

.al-btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}
.al-btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  min-height: 36px;
}

/* ── BADGES ───────────────────────────────── */
.al-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--al-radius-pill);
  font-family: var(--al-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Dark-mode level badges */
.al-badge-beginner {
  background: rgba(52, 199, 89, 0.15);
  color: #34C759;
  border: 1px solid rgba(52, 199, 89, 0.25);
}
.al-badge-elementary {
  background: rgba(90, 200, 250, 0.15);
  color: #5AC8FA;
  border: 1px solid rgba(90, 200, 250, 0.25);
}
.al-badge-intermediate {
  background: rgba(255, 149, 0, 0.15);
  color: #FF9500;
  border: 1px solid rgba(255, 149, 0, 0.25);
}
.al-badge-advanced {
  background: rgba(255, 107, 107, 0.15);
  color: #FF6B6B;
  border: 1px solid rgba(255, 107, 107, 0.25);
}
.al-badge-accent {
  background: rgba(108, 99, 255, 0.15);
  color: #a5a1f5;
  border: 1px solid rgba(108, 99, 255, 0.25);
}

/* ── CARDS ────────────────────────────────── */
.al-card {
  background: var(--al-bg-dark-2);
  border: 1px solid var(--al-border);
  border-radius: var(--al-radius-lg);
  padding: var(--al-space-6);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.al-card:hover {
  border-color: var(--al-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--al-shadow-lg);
}

.al-card-feature {
  background: var(--al-bg-dark-2);
  border: 1px solid var(--al-border);
  border-radius: var(--al-radius-lg);
  padding: var(--al-space-6);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.al-card-feature:hover {
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: var(--al-shadow-primary);
  transform: translateY(-4px);
}
.al-card-feature .al-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--al-radius-md);
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--al-space-4);
}
.al-card-feature .al-card-title {
  font-family: var(--al-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--al-text-white);
  margin-bottom: var(--al-space-2);
}
.al-card-feature .al-card-desc {
  font-family: var(--al-font-body);
  font-size: 14px;
  color: var(--al-text-subtle);
  line-height: 1.65;
}

/* ── VIDEO CARD ───────────────────────────── */
.al-video-card {
  background: var(--al-bg-dark-2);
  border: 1px solid var(--al-border);
  border-radius: var(--al-radius-lg);
  overflow: hidden;
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.al-video-card:hover {
  border-color: rgba(108, 99, 255, 0.35);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.15);
  transform: translateY(-4px);
}
.al-video-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  position: relative;
}
.al-video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.al-video-card:hover .al-video-card-thumb img { transform: scale(1.06); }
.al-video-card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.al-video-card:hover .al-video-card-play-overlay { opacity: 1; }
.al-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--al-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--al-shadow-primary);
}
.al-play-btn::after {
  content: '';
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 17px solid #fff;
  margin-left: 4px;
}
.al-video-card-body { padding: var(--al-space-4) var(--al-space-4) var(--al-space-5); }
.al-video-card-title {
  font-family: var(--al-font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--al-text-white);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.al-duration-tag {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-family: var(--al-font-display);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ── SECTIONS ─────────────────────────────── */
.al-section {
  width: 100%;
  padding: var(--al-space-10) 0;
}
.al-section-dark  { background: var(--al-bg-dark);   color: var(--al-text-white); }
.al-section-surf  { background: var(--al-bg-dark-2); color: var(--al-text-white); }
.al-section-light { background: var(--al-bg-light);  color: var(--al-text-dark); }
.al-section-white { background: var(--al-bg-white);  color: var(--al-text-dark); }

.al-section-label {
  display: inline-block;
  font-family: var(--al-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--al-primary);
  margin-bottom: var(--al-space-3);
}
.al-section-title {
  font-family: var(--al-font-display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--al-space-4);
}
.al-section-sub {
  font-family: var(--al-font-body);
  font-size: 16px;
  color: var(--al-text-subtle);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* ── NAVIGATION ───────────────────────────── */
.al-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(15, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--al-border);
}
.al-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--al-space-5);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--al-space-5);
}
.al-nav-logo {
  font-family: var(--al-font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--al-text-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.al-nav-logo span { color: var(--al-primary); }
.al-nav-links {
  display: flex;
  align-items: center;
  gap: var(--al-space-6);
  list-style: none;
}
.al-nav-links a {
  font-family: var(--al-font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.al-nav-links a:hover { color: #fff; }

.al-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.al-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.al-nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.al-nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.al-nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── NAV AUTH ─────────────────────────────── */
.al-nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.al-nav-login {
  font-family: var(--al-font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.al-nav-login:hover { color: #fff; }

.al-nav-avatar-wrap { position: relative; }
.al-nav-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.2s;
}
.al-nav-avatar-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.al-nav-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: block;
}
.al-nav-avatar-name {
  font-family: var(--al-font-body);
  font-size: 13px;
  font-weight: 500;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.al-nav-chevron { transition: transform 0.2s; opacity: 0.5; }
.al-nav-avatar-btn[aria-expanded="true"] .al-nav-chevron { transform: rotate(180deg); }

.al-nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 155px;
  background: #1C1B2E;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 200;
}
.al-nav-dropdown.open { display: block; }
.al-nav-dropdown a,
.al-nav-dropdown button {
  display: block;
  width: 100%;
  padding: 9px 14px;
  font-family: var(--al-font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  box-sizing: border-box;
}
.al-nav-dropdown a:hover,
.al-nav-dropdown button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.al-nav-dropdown .al-nav-logout { color: rgba(255, 107, 107, 0.7); }
.al-nav-dropdown .al-nav-logout:hover {
  background: rgba(255, 107, 107, 0.08);
  color: #FF6B6B;
}

.al-nav-yt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}
.al-nav-yt-btn:hover {
  color: #ff4444;
  background: rgba(255, 0, 0, 0.1);
}

/* ── FOOTER ───────────────────────────────── */
.al-footer {
  background: var(--al-bg-dark-2);
  border-top: 1px solid var(--al-border);
  padding: var(--al-space-8) 0;
}
.al-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--al-space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--al-space-4);
}
.al-footer-copy {
  font-family: var(--al-font-body);
  font-size: 13px;
  color: var(--al-text-ghost);
}
.al-footer-links {
  display: flex;
  gap: var(--al-space-5);
}
.al-footer-links a {
  font-family: var(--al-font-body);
  font-size: 13px;
  color: var(--al-text-subtle);
  text-decoration: none;
  transition: color 0.2s;
}
.al-footer-links a:hover { color: var(--al-primary); }

/* ── SHARED SITE FOOTER (Layout A) ───────── */
.al-site-footer {
  background: var(--al-bg-dark-2);
  border-top: 1px solid var(--al-border);
  padding: 40px 0 32px;
}
.al-site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--al-space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--al-space-4);
}
.al-site-footer-copy {
  font-family: var(--al-font-body);
  font-size: 13px;
  color: var(--al-text-ghost);
}
.al-site-footer-links {
  display: flex;
  gap: var(--al-space-5);
}
.al-site-footer-links a {
  font-family: var(--al-font-body);
  font-size: 13px;
  color: var(--al-text-subtle);
  text-decoration: none;
  transition: color 0.2s;
}
.al-site-footer-links a:hover { color: var(--al-primary); }

/* ── SOCIAL LINKS (footer + nav) ─────────── */
.al-footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.al-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--al-radius-pill);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--al-font-body);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
}
.al-social-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}
.al-social-youtube:hover {
  border-color: rgba(255, 0, 0, 0.5);
  color: #ff4444;
  background: rgba(255, 0, 0, 0.08);
}
.al-social-email:hover,
.al-social-web:hover {
  border-color: rgba(108, 99, 255, 0.5);
  color: #a5a1f5;
  background: rgba(108, 99, 255, 0.08);
}

/* ── GRID LAYOUTS ─────────────────────────── */
.al-grid-2   { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--al-space-5); }
.al-grid-3   { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--al-space-5); }
.al-grid-4   { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--al-space-5); }
.al-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--al-space-5);
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 1024px) {
  .al-grid-4   { grid-template-columns: repeat(2, 1fr); }
  .al-grid-3   { grid-template-columns: repeat(2, 1fr); }
  .al-section-title { font-size: 28px; }
}
@media (max-width: 768px) {
  .al-grid-4,
  .al-grid-3,
  .al-grid-2 { grid-template-columns: 1fr; }
  .al-section-title { font-size: 24px; }
  .al-section { padding: var(--al-space-8) 0; }
  .al-nav-toggle { display: flex; }
  .al-nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--al-bg-dark-2);
    padding: var(--al-space-5);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--al-space-4);
    border-bottom: 1px solid var(--al-border);
  }
  .al-nav-links.open { display: flex; }
  .al-nav { position: relative; }
  .al-footer-inner { flex-direction: column; text-align: center; }
  .al-site-footer-inner { flex-direction: column; text-align: center; }
  .al-container { padding: 0 var(--al-space-4); }
}
@media (max-width: 480px) {
  .al-section-title { font-size: 22px; }
  .al-btn-lg { padding: 14px 28px; font-size: 15px; }
}

/* ── Footer subscribe bar ─────────────────────────── */
.al-footer-subscribe {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: #1C1B2E;
  border-top: 1px solid rgba(108,99,255,0.22);
  padding: 14px 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
}
.al-footer-subscribe.active {
  transform: translateY(0);
}
.al-footer-sub-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.al-footer-sub-text {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.al-footer-sub-text strong {
  font-family: var(--al-font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFE;
}
.al-footer-sub-text span {
  font-size: 13px;
  color: rgba(255,255,255,0.42);
  font-family: var(--al-font-body, 'DM Sans', sans-serif);
}
.al-footer-sub-form {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
}
.al-footer-sub-form input[type="email"] {
  padding: 10px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #FFFFFE;
  font-size: 13px;
  width: 220px;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--al-font-body, 'DM Sans', sans-serif);
}
.al-footer-sub-form input[type="email"]:focus {
  border-color: rgba(108,99,255,0.55);
}
.al-footer-sub-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.2);
}
.al-footer-sub-form button[type="submit"] {
  padding: 10px 18px;
  background: #6C63FF;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  font-family: var(--al-font-display, 'Plus Jakarta Sans', sans-serif);
}
.al-footer-sub-form button[type="submit"]:hover { background: #5b53e8; }
.al-footer-sub-form button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }
.al-footer-sub-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.28);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.18s;
  flex-shrink: 0;
  margin-left: auto;
}
.al-footer-sub-close:hover { color: rgba(255,255,255,0.65); }
.al-footer-sub-msg {
  text-align: center;
  font-size: 12px;
  padding-top: 6px;
  display: none;
  font-family: var(--al-font-body, 'DM Sans', sans-serif);
}
.al-footer-sub-msg.success { color: #68D391; }
.al-footer-sub-msg.error   { color: #FC8181; }
@media (max-width: 640px) {
  .al-footer-subscribe { padding: 12px 16px; }
  .al-footer-sub-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .al-footer-sub-form  { width: 100%; }
  .al-footer-sub-form input[type="email"] { flex: 1; width: auto; min-width: 0; }
  .al-footer-sub-close { position: absolute; top: 12px; right: 16px; }
}

/* ── Email popup modal ─────────────────────────────── */
.al-email-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.al-email-popup.active { display: flex; }
.al-email-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
}
.al-email-popup-card {
  position: relative;
  z-index: 1;
  background: #1C1B2E;
  border: 1px solid rgba(108,99,255,0.22);
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  animation: al-popup-in 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(108,99,255,0.08);
}
@keyframes al-popup-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.al-popup-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  color: rgba(255,255,255,0.28);
  font-size: 24px; cursor: pointer;
  line-height: 1; padding: 4px 8px;
  border-radius: 6px; transition: color 0.18s;
}
.al-popup-close:hover { color: rgba(255,255,255,0.65); }
.al-popup-icon { font-size: 36px; margin-bottom: 12px; }
.al-popup-title {
  font-family: var(--al-font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 22px; font-weight: 700;
  color: #FFFFFE; margin: 0 0 8px;
}
.al-popup-sub {
  font-size: 14px; color: rgba(255,255,255,0.52);
  margin: 0 0 24px; line-height: 1.6;
  font-family: var(--al-font-body, 'DM Sans', sans-serif);
}
.al-popup-honeypot {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.al-popup-input-row { display: flex; gap: 8px; margin-bottom: 10px; }
.al-popup-input-row input[type="email"] {
  flex: 1; min-width: 0;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; color: #FFFFFE;
  font-size: 14px; outline: none;
  transition: border-color 0.2s;
  font-family: var(--al-font-body, 'DM Sans', sans-serif);
}
.al-popup-input-row input[type="email"]:focus { border-color: rgba(108,99,255,0.55); }
.al-popup-input-row input[type="email"]::placeholder { color: rgba(255,255,255,0.22); }
.al-popup-input-row button {
  padding: 12px 20px; background: #6C63FF; color: #fff;
  border: none; border-radius: 12px; font-size: 14px;
  font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--al-font-display, 'Plus Jakarta Sans', sans-serif);
}
.al-popup-input-row button:hover { background: #5b53e8; transform: translateY(-1px); }
.al-popup-input-row button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.al-popup-message {
  font-size: 13px; margin-bottom: 8px; min-height: 18px;
  font-family: var(--al-font-body, 'DM Sans', sans-serif);
}
.al-popup-message.success { color: #68D391; }
.al-popup-message.error   { color: #FC8181; }
.al-popup-privacy {
  font-size: 11px; color: rgba(255,255,255,0.22);
  margin: 0 0 16px;
  font-family: var(--al-font-body, 'DM Sans', sans-serif);
}
.al-popup-privacy a { color: rgba(176,172,255,0.5); text-decoration: underline; }
.al-popup-later {
  background: none; border: none;
  color: rgba(255,255,255,0.2); font-size: 12px;
  cursor: pointer; text-decoration: underline; padding: 0;
  font-family: var(--al-font-body, 'DM Sans', sans-serif);
  transition: color 0.18s;
}
.al-popup-later:hover { color: rgba(255,255,255,0.45); }
@media (max-width: 480px) {
  .al-email-popup-card { padding: 32px 22px; border-radius: 16px; }
  .al-popup-input-row  { flex-direction: column; }
  .al-popup-input-row button { width: 100%; }
}

/* ── VOCAB SAVE BUTTON (subtitle pin) ────────── */
.al-sub-save-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.22);
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
  line-height: 1;
}
.audilingo-sub-item:hover .al-sub-save-btn {
  display: inline-flex;
}
.al-sub-save-btn:hover {
  color: rgba(108, 99, 255, 0.85);
  background: rgba(108, 99, 255, 0.1);
}
.al-sub-save-btn.al-sub-saved {
  display: inline-flex;
  color: var(--color-primary, #6C63FF);
  opacity: 0.7;
}
.al-sub-save-btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

/* ── RESUME PROMPT ────────────────────────────── */
.al-resume-prompt {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  position: relative;
  animation: al-resume-in 0.25s ease;
}
@keyframes al-resume-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.al-resume-prompt-text {
  font-family: var(--al-font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  flex: 1;
}
.al-resume-prompt-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.al-resume-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  min-height: 34px;
  border-radius: 8px;
  font-family: var(--al-font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.al-resume-btn-primary {
  background: var(--color-primary, #6C63FF);
  color: #fff;
}
.al-resume-btn-primary:hover {
  background: #5b53e8;
}
.al-resume-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.al-resume-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}
.al-resume-dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.25);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s;
  flex-shrink: 0;
  line-height: 1;
}
.al-resume-dismiss:hover { color: rgba(255, 255, 255, 0.55); }

/* ── STREAK BADGE ─────────────────────────────── */
.al-streak-badge {
  background: rgba(251, 146, 60, 0.12);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.28);
}

/* ── CONTINUE WATCHING (global shared tokens) ──── */
/* (component-level styles defined in profile-template.php inline block
   to avoid a separate CSS request; only shared tokens live here) */
