/* ----------------------------------------------------
   Type & Learn - Modern Antigravity Dark UI
   Global 3-Column Layout with Enlarged Natural Human Hand Outlines
   Alphabet Key Chips on Each Finger & User-Friendly Pastel Color Zones
   ---------------------------------------------------- */

:root {
  --bg-primary: #070a12;
  --bg-surface: rgba(15, 23, 42, 0.78);
  --bg-surface-elevated: rgba(30, 41, 59, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.09);
  --border-active: rgba(56, 189, 248, 0.5);

  --text-main: #f8fafc;
  --text-muted: #64748b;
  --text-dim: #475569;
  --text-bengali: #38bdf8;

  --color-correct: #22c55e;
  --color-error: #ef4444;
  --color-accent: #38bdf8;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;
  --font-bengali: 'Hind Siliguri', sans-serif;

  /* ----------------------------------------------------
     Unified 9 Finger-Zone Color System (Exact Harmonized Palette)
     Shared 1:1 between Virtual Keyboard & Hand Instruction Badges
     ---------------------------------------------------- */
  --color-left-pinky: #f472b6;
  --color-left-pinky-rgb: 244, 114, 182;

  --color-left-ring: #fb923c;
  --color-left-ring-rgb: 251, 146, 60;

  --color-left-middle: #fde047;
  --color-left-middle-rgb: 253, 224, 71;

  --color-left-index: #4ade80;
  --color-left-index-rgb: 74, 222, 128;

  --color-thumb: #38bdf8;
  --color-thumb-rgb: 56, 189, 248;

  --color-right-index: #2dd4bf;
  --color-right-index-rgb: 45, 212, 191;

  --color-right-middle: #60a5fa;
  --color-right-middle-rgb: 96, 165, 250;

  --color-right-ring: #818cf8;
  --color-right-ring-rgb: 129, 140, 248;

  --color-right-pinky: #c084fc;
  --color-right-pinky-rgb: 192, 132, 252;

  --shadow-key: 0 4px 0 #020617, 0 6px 12px rgba(0, 0, 0, 0.45);
  --shadow-key-pressed: 0 1px 0 #020617, 0 2px 4px rgba(0, 0, 0, 0.35);
}

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

.hidden {
  display: none !important;
}

/* Tailwind utility classes for responsive visibility and sizing */
.w-full {
  width: 100% !important;
}

.px-4 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.opacity-0 {
  opacity: 0 !important;
}

.absolute {
  position: absolute !important;
}

.sticky {
  position: sticky !important;
}

.relative {
  position: relative !important;
}

.top-0 {
  top: 0 !important;
}

.left-0 {
  left: 0 !important;
}

.z-50 {
  z-index: 50 !important;
}

.h-14 {
  height: 3.5rem !important; /* 56px */
}

.h-16 {
  height: 4rem !important; /* 64px */
}

.h-\[70px\] {
  height: 70px !important;
}

.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.py-2\.5,
.py-2-5 {
  padding-top: 0.625rem !important; /* 10px */
  padding-bottom: 0.625rem !important;
}

.py-3 {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.py-4 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.py-5 {
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 0.75rem !important;
}

.mb-4 {
  margin-bottom: 1rem !important;
}

.mb-6 {
  margin-bottom: 1.5rem !important;
}

.mt-\[clamp\(44px\,5vh\,50px\)\] {
  margin-top: clamp(44px, 5vh, 50px) !important;
}

.items-center {
  align-items: center !important;
}

.justify-center {
  justify-content: center !important;
}

.min-h-screen {
  min-height: 100vh !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.max-w-\[1366px\] {
  max-width: 1366px !important;
}

.flex {
  display: flex !important;
}

.justify-between {
  justify-content: space-between !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.w-\[250px\] {
  width: 250px !important;
  max-width: 250px !important;
}

.max-w-\[800px\] {
  max-width: 800px !important;
}

.w-0 {
  width: 0 !important;
}

.h-0 {
  height: 0 !important;
}

.z-\[-1\] {
  z-index: -1 !important;
}

.min-h-\[100dvh\] {
  min-height: 100dvh;
}

.min-h-\[250px\] {
  min-height: 250px;
}

.h-\[55vh\] {
  height: 55vh;
}

.mt-6 {
  margin-top: 1.5rem !important;
}

.text-center {
  text-align: center !important;
}

.text-sm {
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
}

.text-gray-400 {
  color: #9ca3af !important;
}

.flex-col {
  flex-direction: column !important;
}

@media (min-width: 1024px) {
  .lg\:flex {
    display: flex !important;
  }
  .lg\:inline-flex {
    display: inline-flex !important;
  }
  .lg\:block {
    display: block !important;
  }
  .lg\:grid {
    display: grid !important;
  }
  .lg\:hidden {
    display: none !important;
  }
  .lg\:flex-row {
    flex-direction: row !important;
  }
  .lg\:h-auto {
    height: auto !important;
  }
  .lg\:min-h-0 {
    min-height: 0 !important;
  }
  .lg\:min-h-screen {
    min-height: 100vh !important;
  }
}

@media (max-width: 1023px) {
  .hidden.lg\:flex,
  .hidden.lg\:inline-flex,
  .hidden.lg\:block,
  .hidden.lg\:grid {
    display: none !important;
  }
}

/* ====================================================
   Exact 1366px Center-Lock for Large Monitors (1920x1080)
   Lock max-width to 1366px without zoom, stretch or resize!
   ==================================================== */
@media (min-width: 1366px) {
  .app-wrapper {
    width: 100% !important;
    max-width: 1366px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-height: 740px !important;
  }

  .nav-container {
    width: 100% !important;
    max-width: 1366px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Keep widgets aligned to the exact 1366px container bounds */
  .copyright-widget {
    left: max(16px, calc((100vw - 1366px) / 2 + clamp(12px, 1.5vw, 24px))) !important;
  }

  .follow-widget {
    right: max(16px, calc((100vw - 1366px) / 2 + clamp(12px, 1.5vw, 24px))) !important;
  }
}

/* ====================================================
   Mobile Hamburger Button & Slide-Out Nav Drawer
   ==================================================== */

.mobile-hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-hamburger-btn:hover,
.mobile-hamburger-btn:active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

@media (max-width: 1023px) {
  .mobile-hamburger-btn {
    display: inline-flex !important;
  }
}

@media (min-width: 1024px) {
  .mobile-hamburger-btn {
    display: none !important;
  }
}

/* Mobile Drawer Backdrop Overlay */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-backdrop:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Slide-out Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(310px, 82vw);
  background: rgba(10, 16, 28, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.12);
  z-index: 99999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .mobile-nav-drawer,
  .mobile-nav-backdrop {
    display: none !important;
  }
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.12);
}

.mobile-drawer-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  flex: 1;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.mobile-accordion-toggle {
  justify-content: space-between;
}

.mobile-accordion-caret {
  transition: transform 0.25s ease;
}

.mobile-accordion-toggle.expanded .mobile-accordion-caret {
  transform: rotate(180deg);
}

.mobile-accordion-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 32px;
  padding-top: 3px;
}

.mobile-drawer-sublink {
  display: block;
  padding: 6px 10px;
  font-size: 0.85rem;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.18s ease;
}

.mobile-drawer-sublink:hover {
  color: #38bdf8;
  background: rgba(255, 255, 255, 0.04);
}

.mobile-drawer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 2px 0;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-lang-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-drawer-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 600;
}

.mobile-lang-toggle-pill {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
}

.mobile-lang-pill-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-lang-pill-btn.active {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.mobile-drawer-save-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  padding: 9px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-drawer-save-action:hover,
.mobile-drawer-save-action:active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(14, 165, 233, 0.15));
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
}

/* Hidden native mobile input for triggering phone on-screen keyboard */
.mobile-typing-input {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  z-index: -1 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  color: transparent !important;
  caret-color: transparent !important;
  pointer-events: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 16px !important; /* 16px prevents iOS Safari automatic zoom on focus */
  user-select: none;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  user-select: none;
}

/* ====================================================
   Top Navigation Header Bar (Themed Dark Glassmorphism)
   ==================================================== */
.top-nav-bar {
  width: 100%;
  height: 3.5rem; /* Sleek 56px height (h-14) */
  min-height: 56px;
  background: rgba(10, 16, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.03);
  position: sticky;
  top: 0;
  left: 0;
  z-index: 50;
  display: flex !important;
  align-items: center !important;
  padding: 0.625rem 0; /* py-2.5 (10px) sleek padding */
  box-sizing: border-box;
}

.nav-container {
  width: 100%;
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 clamp(12px, 1.5vw, 24px);
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  height: 100%;
  box-sizing: border-box;
}

.nav-left {
  display: flex !important;
  align-items: center !important;
  gap: clamp(16px, 2.2vw, 36px);
  flex-shrink: 0;
}

/* Themed Brand: Type & Learn */
.nav-brand {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none;
  position: relative;
  padding: 0;
}

/* Ambient glow accent behind brand like in reference image */
.nav-brand::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 38px;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.22) 0%, rgba(56, 189, 248, 0.06) 50%, transparent 75%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.nav-brand-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-main);
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}

.brand-word-type {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 255, 255, 0.25);
}

.brand-word-amp {
  color: #38bdf8;
  -webkit-text-fill-color: #38bdf8;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  opacity: 1;
  margin: 0 1px;
}

.brand-word-learn {
  color: #cbd5e1;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 80%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.nav-brand:hover .nav-brand-text {
  filter: brightness(1.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
}

.nav-link {
  color: #94a3b8;
  font-size: clamp(0.78rem, 0.86vw, 0.88rem);
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: none;
  padding: 6px 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-main);
  transition: color 0.18s ease, text-shadow 0.18s ease;
  user-select: none;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  width: auto;
}

/* Dropdown styling */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle svg {
  transition: transform 0.2s ease;
  fill: currentColor;
  opacity: 0.75;
}

.nav-dropdown:hover .dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 160px;
  background: rgba(13, 20, 36, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 10px;
  padding: 6px 0;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65), 0 0 15px rgba(56, 189, 248, 0.08);
  display: none;
  flex-direction: column;
  z-index: 101;
  animation: dropdownFade 0.15s ease;
}

.lang-dropdown .dropdown-menu {
  right: 0;
  left: auto;
}

.nav-dropdown:hover .dropdown-menu {
  display: flex;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  padding: 9px 18px;
  font-size: 0.84rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #ffffff;
}

/* Token Wallet Badge */
.token-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  gap: 5px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.4);
  border-radius: 20px;
  padding: 0 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-main);
  font-size: 0.82rem;
  box-sizing: border-box;
  white-space: nowrap;
}

.token-badge:hover,
.token-badge[aria-expanded="true"] {
  background: rgba(14, 165, 233, 0.22);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.token-icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* ====================================================
   Token Drop-Down Pop-up (Modern Glassmorphic Neon Card)
   ==================================================== */
.token-wallet-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.token-dropdown-popup {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 1000;
  width: 290px;
  background: rgba(11, 18, 33, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 18px;
  box-sizing: border-box;
  animation: slideDown 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: top right;
  user-select: none;
}

.token-dropdown-popup.hidden {
  display: none !important;
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Tooltip Arrow */
.token-popup-arrow {
  position: absolute;
  top: -6px;
  right: 42px;
  width: 10px;
  height: 10px;
  background: rgba(11, 18, 33, 0.96);
  border-left: 1px solid rgba(56, 189, 248, 0.28);
  border-top: 1px solid rgba(56, 189, 248, 0.28);
  transform: rotate(45deg);
  z-index: 2;
  pointer-events: none;
}

/* Inner Body with Spacious 15px Gap */
.token-popup-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  z-index: 1;
}

/* First Row: Current Plan & FREE badge (Subtle 12% bg & Neon text) */
.token-plan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-label {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-main);
  letter-spacing: 0.01em;
}

.plan-free-badge {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  font-family: var(--font-main);
}

/* Target Area: Sleek Dynamic Progress bar & Token Limit Text */
.token-target-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.token-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.token-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #0ea5e9 60%, #6366f1 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7), 0 0 4px rgba(14, 165, 233, 0.5);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.token-limit-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.token-limit-number {
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-main);
  letter-spacing: 0.01em;
}

.token-limit-period {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 400;
  font-family: var(--font-main);
}

/* PRO Unlimited Token Banner (Glowing, Premium Infinite Tokens View) */
.pro-unlimited-token-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(168, 85, 247, 0.15) 50%, rgba(56, 189, 248, 0.18) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.22), inset 0 0 14px rgba(168, 85, 247, 0.15);
  margin: 4px 0 6px;
  animation: proBannerGlow 3s ease-in-out infinite alternate;
}

.pro-unlimited-token-banner.hidden {
  display: none !important;
}

@keyframes proBannerGlow {
  0% {
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.2), inset 0 0 10px rgba(168, 85, 247, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
  }
  100% {
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.45), inset 0 0 18px rgba(56, 189, 248, 0.25);
    border-color: rgba(56, 189, 248, 0.65);
  }
}

.pro-infinity-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.55);
  flex-shrink: 0;
}

.pro-infinity-symbol {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
}

.pro-unlimited-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pro-unlimited-text-glow {
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(90deg, #fbbf24 0%, #f472b6 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.45));
}

.pro-unlimited-subtext {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* PRO Benefits Section: Subtle Glassmorphism Card Box */
.token-pro-benefits {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(251, 191, 36, 0.05) 100%);
  border: 1px solid rgba(251, 191, 36, 0.16);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pro-subheading {
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-main);
}

.pro-unlimited-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pro-coin-icon {
  font-size: 1.25rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.pro-unlimited-text {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 45%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.45));
}

/* Modern Linear Gradient Divider (Fading out to both sides) */
.token-popup-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.16) 50%, transparent 100%);
  border: none;
  width: 100%;
  margin: 2px 0;
}

/* Premium Modern CTA Button with Hover Glow & Scale Animation */
.token-upgrade-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 55%, #4f46e5 100%);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 9px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  user-select: none;
  position: relative;
}

.token-upgrade-btn:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #6366f1 100%);
  border-color: rgba(125, 211, 252, 0.85);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.65), 0 8px 24px rgba(14, 165, 233, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px) scale(1.02);
  color: #ffffff;
}

.token-upgrade-btn:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}

/* Insufficient Tokens Blocker Modal (Dark Neon Glassmorphism) */
.token-blocker-card {
  max-width: 440px;
  background: rgba(11, 18, 33, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(239, 68, 68, 0.2);
  border-radius: 18px;
  padding: 30px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.token-blocker-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
}

.token-blocker-icon {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6));
}

.token-blocker-desc {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
  font-family: var(--font-main);
}

.highlight-unlimited {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.token-blocker-stats {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
  margin: 4px 0;
}

.token-blocker-stat-pill {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.stat-pill-label {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  font-family: var(--font-main);
}

.stat-pill-val {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f8fafc;
  font-family: var(--font-main);
}

.token-blocker-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.token-dismiss-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #94a3b8;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-main);
}

.token-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.25);
}

.token-badge.token-zero-alert {
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
}

/* Fallback token modal */
.token-modal-content {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  padding: 24px 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(14, 165, 233, 0.2);
  color: var(--text-main);
  animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ====================================================
   Firebase Authentication & User Profile Dropdown
   ==================================================== */
.auth-header-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

#nav-login-btn.hidden {
  display: none !important;
}

/* User Avatar in Header (Proportionate 32px circular icon) */
.user-profile-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.user-profile-wrapper.hidden {
  display: none !important;
}

.user-avatar-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  border: 1.5px solid #38bdf8;
  background: rgba(14, 165, 233, 0.15);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  line-height: 1;
}

.user-avatar-btn:hover,
.user-avatar-btn[aria-expanded="true"] {
  opacity: 0.92;
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.75), 0 0 5px rgba(255, 255, 255, 0.4);
  border-color: #7dd3fc;
}

.user-avatar-btn:active {
  transform: translateY(0) scale(0.98);
  opacity: 1;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.user-avatar-img.hidden {
  display: none !important;
}

.user-avatar-initial {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  text-transform: uppercase;
  user-select: none;
}

/* User Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1000;
  width: 220px;
  background: rgba(11, 18, 33, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(56, 189, 248, 0.16);
  padding: 12px;
  box-sizing: border-box;
  animation: slideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: top right;
  user-select: none;
}

.user-dropdown-menu.hidden {
  display: none !important;
}

.user-dropdown-arrow {
  position: absolute;
  top: -6px;
  right: 11px;
  width: 10px;
  height: 10px;
  background: rgba(11, 18, 33, 0.96);
  border-left: 1px solid rgba(56, 189, 248, 0.3);
  border-top: 1px solid rgba(56, 189, 248, 0.3);
  transform: rotate(45deg);
  z-index: 2;
  pointer-events: none;
}

.user-dropdown-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 6px 8px 6px;
}

.user-display-name {
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-display-email {
  color: #94a3b8;
  font-size: 0.76rem;
  font-family: var(--font-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
  border: none;
  width: 100%;
  margin: 4px 0 8px 0;
}

.user-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.user-dropdown-item svg {
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.2s ease, transform 0.2s ease;
}

.user-dropdown-item:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #f8fafc;
  transform: translateX(2px);
}

.user-dropdown-item:hover svg {
  color: #38bdf8;
  transform: scale(1.08);
}

.user-dropdown-item.dropdown-upgrade-btn {
  color: #fef08a;
}

.user-dropdown-item.dropdown-upgrade-btn svg {
  color: #eab308;
}

.user-dropdown-item.dropdown-upgrade-btn:hover {
  background: rgba(234, 179, 8, 0.12);
  color: #fef9c3;
}

.user-dropdown-item.dropdown-upgrade-btn:hover svg {
  color: #facc15;
}

.user-dropdown-badge-pro {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.user-dropdown-item.logout-btn {
  color: #ef4444;
}

.user-dropdown-item.logout-btn svg {
  color: #ef4444;
}

.user-dropdown-item.logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.user-dropdown-item.logout-btn:hover svg {
  color: #f87171;
}

/* ====================================================
   Login Modal (Modern Dark Neon Glassmorphism)
   ==================================================== */
.auth-modal-card {
  position: relative;
  max-width: 420px;
  width: 90%;
  background: rgba(11, 18, 33, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(56, 189, 248, 0.32);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.18);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalScale 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.auth-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 1.3rem;
  line-height: 1;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.auth-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.auth-header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.auth-brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.auth-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #f8fafc;
  font-family: var(--font-main);
  letter-spacing: -0.01em;
}

.auth-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
  font-family: var(--font-main);
}

/* Google Sign-in Button */
.google-auth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.google-auth-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

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

.google-svg-icon {
  flex-shrink: 0;
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #64748b;
  font-size: 0.74rem;
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 2px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.auth-divider span {
  padding: 0 10px;
}

/* Email / Password Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.auth-label {
  font-size: 0.78rem;
  color: #cbd5e1;
  font-weight: 600;
  font-family: var(--font-main);
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 12px;
  color: #64748b;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: #f8fafc;
  font-family: var(--font-main);
  font-size: 0.88rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.auth-input:focus {
  outline: none;
  border-color: #38bdf8;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.auth-input::placeholder {
  color: #475569;
}

/* Forgot Password Link */
.auth-forgot-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
  margin-bottom: 2px;
}

.auth-forgot-btn {
  background: transparent;
  border: none;
  padding: 2px 4px;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.auth-forgot-btn:hover {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-forgot-btn:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
  border-radius: 4px;
}

.auth-forgot-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: none;
}

/* Auth Error Message */
.auth-error-msg {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-main);
  text-align: left;
  line-height: 1.4;
  animation: fadeIn 0.2s ease;
}

.auth-error-msg.hidden {
  display: none !important;
}

/* Auth Success Message */
.auth-success-msg {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-main);
  text-align: left;
  line-height: 1.45;
  white-space: pre-line;
  animation: fadeIn 0.2s ease;
}

.auth-success-msg.hidden {
  display: none !important;
}

/* Action Buttons */
.auth-action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.auth-btn-primary {
  flex: 1;
  padding: 10px 16px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 55%, #4f46e5 100%);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 9px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.auth-btn-primary:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #6366f1 100%);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
}

.auth-btn-secondary {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: #cbd5e1;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
}

.auth-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Header Notification Toast */
.nav-toast {
  position: fixed;
  top: 60px;
  right: 28px;
  background: rgba(24, 32, 44, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(12px);
  color: #f1f5f9;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.2);
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDownToast 0.25s ease-out;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-toast.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}

@keyframes slideDownToast {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ambient Background Orbs */
.app-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
}

.glow-1 {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, #0284c7, transparent 70%);
  top: -120px;
  left: 10%;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.glow-2 {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  bottom: -150px;
  right: 10%;
  animation: floatOrb 24s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, 30px) scale(1.08);
  }

  100% {
    transform: translate(-30px, -20px) scale(0.95);
  }
}

/* ====================================================
   Global 3-Column Super-Container (.app-wrapper)
   ==================================================== */
.app-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1366px;
  margin: 0 auto;
  margin-top: 0;
  flex: 1;
  height: calc(100vh - 56px - 1rem);
  height: calc(100dvh - 56px - 1rem);
  max-height: 740px;
  min-height: 0;
  padding: clamp(6px, 1.2vh, 16px) clamp(14px, 1.8vw, 24px);
  gap: clamp(10px, 1.6vw, 24px);
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* ====================================================
   Center Column: Main Content (.main-content)
   ==================================================== */
.main-content {
  width: 100%;
  max-width: 800px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1.3vh, 18px);
  min-width: 0;
  height: 100%;
  max-height: 100%;
}

/* App Header / Sub-Header Row */
.app-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(4px, 1vw, 16px);
  padding: 0 4px;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Sub-Header Logo: Neon Blue Dot & Type & Learn Typography */
.sub-header-logo {
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 0.7vw, 10px);
  user-select: none;
  flex-shrink: 0;
}

.sub-header-logo .brand-dot,
.brand-dot {
  width: clamp(8px, 0.9vw, 10px);
  height: clamp(8px, 0.9vw, 10px);
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8, 0 0 20px #38bdf8;
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.sub-header-logo .brand-title,
.brand-title {
  font-family: var(--font-main);
  font-size: clamp(1.05rem, 1.25vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}

.sub-header-logo .brand-word-type {
  color: #ffffff;
}

.sub-header-logo .brand-amp,
.brand-amp {
  color: #38bdf8;
  -webkit-text-fill-color: #38bdf8;
  font-weight: 700;
  margin: 0 2px;
}

.sub-header-logo .brand-word-learn,
.sub-header-logo .brand-learn,
.brand-learn {
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-family: var(--font-bengali);
  font-size: clamp(0.74rem, 0.82vw, 0.88rem);
  color: var(--text-muted);
  border-left: 1px solid var(--border-glass);
  padding-left: clamp(6px, 0.7vw, 10px);
}

/* Header User Level Badge - Centered & Neon Blue Themed */
.user-level-badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 0.6vw, 8px);
  padding: clamp(3px, 0.5vh, 6px) clamp(10px, 1.1vw, 18px);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(14, 165, 233, 0.05));
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 999px;
  color: #38bdf8;
  font-family: var(--font-main);
  font-size: clamp(0.78rem, 0.85vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  user-select: none;
  cursor: default;
  white-space: nowrap;
  z-index: 5;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-level-badge:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(14, 165, 233, 0.12));
  border-color: rgba(56, 189, 248, 0.68);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.42);
  transform: translateX(-50%) translateY(-1px);
}

.user-level-badge.level-up-pulse {
  animation: levelUpGlow 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes levelUpGlow {
  0% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
  }

  30% {
    transform: translateX(-50%) scale(1.16);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.85), 0 0 45px rgba(14, 165, 233, 0.55);
    border-color: #38bdf8;
  }

  100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
  }
}

.level-badge-icon {
  font-size: 1rem;
  line-height: 1;
  color: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

.level-badge-text {
  line-height: 1;
  font-weight: 700;
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Level-Up Non-Intrusive Notification (Toast) */
.level-up-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-140%);
  z-index: 10000;
  pointer-events: none;
  /* Guarantee no typing interruption */
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  user-select: none;
}

.level-up-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.level-up-toast.hide {
  transform: translateX(-50%) translateY(-140%);
  opacity: 0;
}

.level-toast-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #f8fafc;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.level-toast-sparkle {
  font-size: 1.25rem;
  line-height: 1;
  animation: levelSparkleBounce 0.7s ease infinite alternate;
}

.level-toast-hl {
  color: #38bdf8;
  font-weight: 800;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
}

@keyframes levelSparkleBounce {
  0% {
    transform: scale(0.9) rotate(-6deg);
  }

  100% {
    transform: scale(1.15) rotate(6deg);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.guide-tag {
  font-size: clamp(0.62rem, 0.7vw, 0.74rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: clamp(2px, 0.3vh, 4px) clamp(6px, 0.6vw, 10px);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-icon {
  display: flex;
  align-items: center;
  gap: clamp(3px, 0.4vw, 5px);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: clamp(0.7rem, 0.76vw, 0.82rem);
  font-weight: 500;
  padding: clamp(3px, 0.5vh, 6px) clamp(6px, 0.8vw, 12px);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-icon:hover {
  color: var(--text-main);
  border-color: var(--border-active);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
}

/* 1. Top Bar: Stats Flex Container */
.stats-bar {
  display: flex;
  gap: clamp(8px, 1.1vw, 16px);
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}

.stats-bar:has(.timer-dropdown-menu:not(.hidden)),
.stats-bar.timer-open {
  z-index: 99999 !important;
}

.stat-card {
  flex: 1;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: clamp(10px, 1.2vh, 14px);
  padding: clamp(5px, 0.8vh, 11px) clamp(10px, 1.1vw, 18px);
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 0.3vh, 4px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.stat-label {
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.5vw, 6px);
  font-size: clamp(0.66rem, 0.72vw, 0.76rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 1.45vw, 1.55rem);
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stat-unit {
  font-size: clamp(0.7rem, 0.78vw, 0.82rem);
  font-family: var(--font-main);
  font-weight: 500;
  color: var(--text-muted);
}

.stat-timer {
  position: relative;
  overflow: visible !important;
  z-index: 105;
}

.stat-timer:has(.timer-dropdown-menu:not(.hidden)),
.stat-timer.timer-open {
  z-index: 99999 !important;
}

.stat-timer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.timer-config-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 99999 !important;
}

.timer-config-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted, #94a3b8);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  outline: none;
}

.timer-config-btn:hover,
.timer-config-btn.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
  transform: scale(1.05);
}

.timer-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 215px;
  background: rgba(11, 18, 33, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.25);
  z-index: 999999 !important;
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: timerDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timer-dropdown-menu.hidden {
  display: none !important;
}

@keyframes timerDropdownFade {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.timer-dropdown-header {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 6px 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 2px;
}

.timer-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-family: inherit;
  color: #cbd5e1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: left;
}

.timer-dropdown-item:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.2);
}

.timer-dropdown-item.active {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  font-weight: 600;
}

.timer-item-check {
  font-size: 0.82rem;
  font-weight: bold;
  color: #38bdf8;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.timer-dropdown-item.active .timer-item-check {
  opacity: 1;
}

/* Custom Timer Input Panel */
.timer-custom-panel {
  padding: 8px 8px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  animation: timerDropdownFade 0.2s ease;
}

.timer-custom-panel.hidden {
  display: none !important;
}

.timer-custom-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.timer-input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.timer-number-input {
  width: 58px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  padding: 2px 4px;
  outline: none;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.timer-number-input::-webkit-outer-spin-button,
.timer-number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.timer-number-input[type=number] {
  -moz-appearance: textfield;
}

.timer-number-input:focus {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.timer-input-unit {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timer-input-colon {
  font-size: 1.15rem;
  font-weight: 700;
  color: #64748b;
  margin-top: -12px;
}

.timer-custom-error {
  font-size: 0.7rem;
  color: #f87171;
  text-align: center;
  font-weight: 500;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 6px;
  padding: 3px 6px;
}

.timer-custom-error.hidden {
  display: none !important;
}

.timer-custom-set-btn {
  width: 100%;
  padding: 7px 12px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.timer-custom-set-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.stat-timer .stat-value {
  color: var(--color-accent);
}

.typing-container.typing-disabled {
  opacity: 0.6;
  filter: grayscale(30%);
  pointer-events: none;
  cursor: not-allowed;
}

.typing-container.typing-disabled .current-char {
  animation: none !important;
  background: transparent !important;
  border-bottom: none !important;
}

.focus-notice {
  display: none !important;
}

/* 2. Middle Learning Boxes */
.learning-section {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(8px, 1.1vw, 16px);
  flex-shrink: 0;
}

.learning-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: clamp(10px, 1.2vh, 14px);
  padding: clamp(6px, 0.9vh, 13px) clamp(10px, 1.2vw, 20px);
  min-height: clamp(54px, 7.5vh, 88px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s ease;
}

.learning-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(2px, 0.4vh, 6px);
}

.card-tag {
  font-size: clamp(0.64rem, 0.7vw, 0.72rem);
  font-weight: 600;
  padding: clamp(2px, 0.3vh, 3px) clamp(6px, 0.7vw, 10px);
  border-radius: 999px;
  font-family: var(--font-bengali);
}

.tag-meaning {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.tag-syllable {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.card-title-label {
  font-size: clamp(0.64rem, 0.7vw, 0.72rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.card-content {
  display: flex;
  align-items: center;
  min-height: clamp(24px, 3.2vh, 38px);
}

.bengali-text {
  font-family: var(--font-bengali);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.01em;
}

.syllable-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.75rem, 0.85vw, 0.85rem);
  color: #94a3b8;
  filter: blur(0.5px);
  background: rgba(255, 255, 255, 0.03);
  padding: clamp(3px, 0.5vh, 5px) clamp(8px, 1vw, 12px);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.25s ease;
}

.syllable-hint:hover {
  filter: blur(0);
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.syllable-text {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(4px, 0.6vw, 8px);
  font-size: clamp(0.98rem, 1.15vw, 1.18rem);
  color: #f1f5f9;
  line-height: 1.35;
  animation: revealFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.syllable-pron-text {
  font-family: var(--font-bengali);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: 0.01em;
}

.syllable-reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: clamp(3px, 0.5vw, 6px);
  font-family: var(--font-main);
  font-size: clamp(0.66rem, 0.72vw, 0.76rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.28);
  padding: clamp(2px, 0.3vh, 3px) clamp(6px, 0.7vw, 10px);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  margin-left: clamp(4px, 0.6vw, 10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.syllable-reveal-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.55);
  color: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}

.syllable-reveal-btn:active {
  transform: translateY(0) scale(0.97);
  background: rgba(168, 85, 247, 0.28);
}

.syllable-breakdown-text {
  font-family: var(--font-bengali);
  font-size: clamp(0.85rem, 1vw, 1.05rem);
  font-weight: 500;
  color: #c084fc;
  letter-spacing: 0.01em;
  margin-left: 4px;
  animation: revealFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.syllable-text.hidden,
.syllable-hint.hidden,
.syllable-reveal-btn.hidden,
.syllable-breakdown-text.hidden {
  display: none !important;
}

@keyframes revealFade {
  0% {
    opacity: 0;
    transform: translateY(4px);
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* 3. Typing Area: Large Text Display Container */
.typing-container {
  position: relative;
  background: var(--bg-surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: clamp(12px, 1.4vh, 16px);
  padding: clamp(8px, 1.2vh, 18px) clamp(14px, 1.8vw, 26px);
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: text;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: visible;
  flex-shrink: 0;
}

.typing-container:focus-within {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(56, 189, 248, 0.1);
}

/* Active Line Centering: Strict 3-Line Window */
.typing-window {
  height: 135px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.text-display {
  line-height: 45px;
  transition: transform 0.2s ease-out;
}

.typing-track {
  display: flex;
  flex-wrap: wrap;
  column-gap: clamp(10px, 1.2vw, 16px);
  row-gap: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 1.55vw, 1.6rem);
  line-height: 45px;
  position: relative;
  align-items: center;
  margin: 0;
  padding: 0;
}

.word {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 45px;
  line-height: 45px;
  color: var(--text-dim);
  transition: color 0.15s ease;
  cursor: pointer;
  border-radius: 4px;
}

.word.word-inactive {
  color: #475569;
}

.word.word-active {
  color: #ffffff;
  border-bottom: 2px solid #38bdf8;
  padding-bottom: 1px;
}

.char {
  position: relative;
  transition: color 0.1s ease;
}

.char.char-blank {
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.char.correct {
  color: var(--color-correct) !important;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.45);
}

.char.incorrect {
  color: var(--color-error) !important;
  background: rgba(239, 68, 68, 0.18);
  border-radius: 2px;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
  animation: charShake 0.18s ease;
}

.skipped-punctuation {
  color: #facc15 !important;
  /* Neon Yellow */
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.6) !important;
}

@keyframes charShake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-2px);
  }

  75% {
    transform: translateX(2px);
  }
}

.char.current-char::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2px;
  height: 90%;
  background-color: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
  animation: blinkCaret 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes blinkCaret {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.pronunciation-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -100%) translateY(-10px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 8px;
  padding: 4px 12px;
  font-family: var(--font-bengali);
  font-size: 0.94rem;
  font-weight: 600;
  color: #38bdf8;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(56, 189, 248, 0.3);
  z-index: 1005;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.pronunciation-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(56, 189, 248, 0.6);
}

.focus-notice {
  position: absolute;
  bottom: 8px;
  right: 16px;
  font-size: 0.72rem;
  color: var(--text-dim);
  pointer-events: none;
}

/* ====================================================
   Full 5-Row Virtual Keyboard: Exact Match to Reference Picture 1
   Pastel Rainbow Border Keycaps & Glowing Active Key
   ==================================================== */
.keyboard-container {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  background: #090e1a;
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: clamp(14px, 1.6vh, 20px);
  padding: clamp(8px, 1.1vh, 16px) clamp(10px, 1.2vw, 16px);
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.65vh, 7px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  box-sizing: border-box;
}

.keyboard-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(3px, 0.45vw, 6px);
  width: 100%;
  flex-wrap: nowrap;
}

.key {
  position: relative;
  flex: 1;
  flex-shrink: 0;
  min-width: clamp(34px, 3.2vw, 46px);
  max-width: 52px;
  height: clamp(40px, 4.6vh, 48px);
  background: rgba(14, 20, 36, 0.72);
  border: 1.6px solid var(--key-color, rgba(255, 255, 255, 0.16));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: clamp(0.78rem, 0.88vw, 0.95rem);
  font-weight: 500;
  color: #f1f5f9;
  cursor: default;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: all 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-sizing: border-box;
}

/* Finger-zone CSS variable mappings for 1:1 color synchronization */
.key[data-finger="left-pinky"] {
  --key-color: var(--color-left-pinky);
}

.key[data-finger="left-ring"] {
  --key-color: var(--color-left-ring);
}

.key[data-finger="left-middle"] {
  --key-color: var(--color-left-middle);
}

.key[data-finger="left-index"] {
  --key-color: var(--color-left-index);
}

.key[data-finger="left-thumb"],
.key[data-finger="right-thumb"] {
  --key-color: var(--color-thumb);
}

.key[data-finger="right-index"] {
  --key-color: var(--color-right-index);
}

.key[data-finger="right-middle"] {
  --key-color: var(--color-right-middle);
}

.key[data-finger="right-ring"] {
  --key-color: var(--color-right-ring);
}

.key[data-finger="right-pinky"] {
  --key-color: var(--color-right-pinky);
}

/* Dual-symbol keys (Stacked cleanly like Reference Picture 1) */
.key-dual {
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 3px 0;
}

.key-dual .sub-key {
  font-size: clamp(0.56rem, 0.65vw, 0.7rem);
  line-height: 1;
  color: #94a3b8;
  font-weight: 500;
}

.key-dual .main-key {
  font-size: clamp(0.72rem, 0.82vw, 0.88rem);
  line-height: 1.1;
  color: #f8fafc;
  font-weight: 600;
}

/* Tactile bumps on home keys 'F' and 'J' */
.key-home {
  position: relative;
}

.home-bump {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

/* Key Dimension Multipliers */
.key-backspace {
  flex: 1.8;
  flex-shrink: 0;
  min-width: clamp(58px, 5.6vw, 84px);
  max-width: 96px;
  font-size: clamp(0.68rem, 0.74vw, 0.78rem);
  font-weight: 400;
  color: #cbd5e1;
}

.key-tab {
  flex: 1.4;
  flex-shrink: 0;
  min-width: clamp(48px, 4.6vw, 68px);
  max-width: 76px;
  font-size: clamp(0.68rem, 0.74vw, 0.78rem);
  font-weight: 400;
  color: #cbd5e1;
}

.key-caps {
  flex: 1.6;
  flex-shrink: 0;
  min-width: clamp(52px, 5vw, 76px);
  max-width: 84px;
  font-size: clamp(0.68rem, 0.74vw, 0.78rem);
  font-weight: 400;
  color: #cbd5e1;
}

.key-enter {
  flex: 1.7;
  flex-shrink: 0;
  min-width: clamp(54px, 5.2vw, 80px);
  max-width: 90px;
  font-size: clamp(0.68rem, 0.74vw, 0.78rem);
  font-weight: 400;
  color: #cbd5e1;
}

.key-shift {
  flex: 2.1;
  flex-shrink: 0;
  min-width: clamp(66px, 6.4vw, 98px);
  max-width: 108px;
  font-size: clamp(0.68rem, 0.74vw, 0.78rem);
  font-weight: 400;
  color: #cbd5e1;
}

.key-mod {
  flex: 1.25;
  flex-shrink: 0;
  min-width: clamp(42px, 4vw, 60px);
  max-width: 70px;
  font-size: clamp(0.68rem, 0.74vw, 0.78rem);
  font-weight: 400;
  color: #cbd5e1;
}

.key-space {
  flex: 6.5;
  flex-shrink: 0;
  min-width: clamp(160px, 16vw, 260px);
  max-width: 320px;
  font-size: clamp(0.72rem, 0.8vw, 0.82rem);
  font-weight: 500;
  color: #cbd5e1;
  letter-spacing: 0.06em;
}

/* Highlight Next Key: Soft Glowing Radial Halo (Harmonized with Key Finger Color) */
.key.highlight-next {
  border-color: var(--key-color, #38bdf8) !important;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--key-color, #38bdf8) 46%, transparent) 0%, color-mix(in srgb, var(--key-color, #38bdf8) 20%, transparent) 70%, rgba(15, 23, 42, 0.8) 100%) !important;
  box-shadow: 0 0 16px var(--key-color, #38bdf8), 0 0 32px color-mix(in srgb, var(--key-color, #38bdf8) 40%, transparent), inset 0 0 10px color-mix(in srgb, var(--key-color, #38bdf8) 45%, transparent) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 0 10px var(--key-color, #38bdf8);
  transform: translateY(-2px);
}

.key.highlight-next .sub-key,
.key.highlight-next .main-key {
  color: #ffffff !important;
  text-shadow: 0 0 8px var(--key-color, #38bdf8);
}

/* Active Press Effect: Visual tactile depression with glowing pulse */
.key.active-press {
  transform: translateY(2px) !important;
  box-shadow: 0 0 22px var(--key-color, #38bdf8), inset 0 0 12px rgba(255, 255, 255, 0.7) !important;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--key-color, #38bdf8) 65%, transparent) 0%, color-mix(in srgb, var(--key-color, #38bdf8) 30%, transparent) 100%) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* ====================================================
   Enlarged Natural Human Hand Outlines (Exact Silhouette & Thumb)
   Side Margins Placement (Left & Right)
   ==================================================== */
.hand-container {
  width: 250px;
  max-width: 250px;
  min-width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 1.2vh, 16px);
  z-index: 5;
  position: relative;
}

/* ====================================================
   Copyright Notice (Left Side Bottom)
   Exact Match to User Reference Graphic
   ==================================================== */
.copyright-widget {
  position: fixed;
  bottom: clamp(8px, 1.4vh, 18px);
  left: max(16px, calc((100vw - 1366px) / 2 + clamp(12px, 1.5vw, 24px)));
  z-index: 60;
  font-family: var(--font-main);
  font-size: clamp(0.7rem, 0.76vw, 0.82rem);
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.015em;
  user-select: none;
  white-space: nowrap;
  opacity: 0.82;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.copyright-widget:hover {
  opacity: 1;
  color: #cbd5e1;
}

/* ====================================================
   Follow Me Social Links Widget (Right Side Bottom)
   Transparent Container Matching User Reference
   ==================================================== */
.follow-widget {
  position: fixed;
  bottom: clamp(8px, 1.4vh, 18px);
  right: max(16px, calc((100vw - 1366px) / 2 + clamp(12px, 1.5vw, 24px)));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(4px, 0.8vh, 8px);
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.follow-widget:hover {
  transform: translateY(-2px);
}

.follow-title {
  font-family: var(--font-main);
  font-size: clamp(0.65rem, 0.7vw, 0.74rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #c084fc;
  text-transform: uppercase;
  user-select: none;
  padding-left: 2px;
}

.follow-icons {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
  cursor: pointer;
  border-radius: 8px;
}

.social-link svg {
  display: block;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.12);
}

.social-link.social-github:hover {
  filter: drop-shadow(0 4px 14px rgba(255, 255, 255, 0.65));
}

.social-link.social-linkedin:hover {
  filter: drop-shadow(0 4px 14px rgba(0, 119, 181, 0.75));
}

.social-link.social-twitter:hover {
  filter: drop-shadow(0 4px 14px rgba(29, 155, 240, 0.75));
}

.social-link.social-instagram:hover {
  filter: drop-shadow(0 4px 14px rgba(225, 48, 108, 0.75));
}

/* Clean, Enlarged Floating Hand Card */
.hand-card {
  width: 100%;
  max-width: 280px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: clamp(16px, 2vh, 26px);
  padding: clamp(8px, 1.2vh, 16px) clamp(8px, 1vw, 14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1vh, 12px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hand-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.55);
}

@keyframes floatHandLeft {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-7px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes floatHandRight {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-7px);
  }

  100% {
    transform: translateY(0px);
  }
}

.left-hand-card {
  animation: floatHandLeft 6s ease-in-out infinite;
}

.right-hand-card {
  animation: floatHandRight 6s ease-in-out infinite 1s;
}

.hand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: clamp(4px, 0.6vh, 8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hand-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hand-label {
  font-size: clamp(0.78rem, 0.85vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #f1f5f9;
  text-transform: uppercase;
}

.hand-sublabel {
  font-family: var(--font-bengali);
  font-size: clamp(0.7rem, 0.75vw, 0.8rem);
  color: var(--text-muted);
}

.hand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8;
}

/* Enlarged Natural Line Hand SVG Styling (Thin Vector directly matching User Reference Picture 2) */
.natural-hand-svg {
  width: 100%;
  max-width: 240px;
  height: auto;
  max-height: clamp(200px, 34vh, 340px);
  aspect-ratio: 280 / 360;
  overflow: visible;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

/* Thin Continuous Hand Silhouette Base Line (Delicate 2px outline matching Reference Picture 2) */
.hand-base-outline {
  stroke: rgba(226, 232, 240, 0.85);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: rgba(15, 23, 42, 0.45);
  transition: stroke 0.3s ease, fill 0.3s ease;
}

/* Interactive Finger Group */
.finger-group {
  transform-box: fill-box;
  transform-origin: center bottom;
  cursor: default;
}

/* Finger Contour Overlays: Thin matching stroke, illuminates when active */
.finger-contour {
  stroke: transparent;
  stroke-width: 2.2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: transparent;
  transition: stroke 0.18s ease, fill 0.18s ease, filter 0.18s ease;
}

/* Soft Fingertip Label */
.finger-svg-label {
  font-family: var(--font-main);
  font-size: 10.5px;
  font-weight: 600;
  fill: rgba(255, 255, 255, 0.45);
  text-anchor: middle;
  letter-spacing: 0.04em;
  user-select: none;
  opacity: 0.75;
  transition: fill 0.2s ease, opacity 0.2s ease, font-weight 0.2s ease;
}

/* Alphabet Key Badges along Each Finger (Spacious placement within thin finger outline) */
.key-badges {
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.key-badge-bg {
  fill: rgba(15, 23, 42, 0.85);
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1.2px;
  transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}

/* Finger Instruction Badges: Harmonized 1:1 with Virtual Keyboard Zones */
.key-badge-bg.badge-left-pinky,
[data-finger="left-pinky"] .key-badge-bg {
  stroke: var(--color-left-pinky);
  fill: rgba(244, 114, 182, 0.18);
}

.key-badge-bg.badge-left-ring,
[data-finger="left-ring"] .key-badge-bg {
  stroke: var(--color-left-ring);
  fill: rgba(251, 146, 60, 0.18);
}

.key-badge-bg.badge-left-middle,
[data-finger="left-middle"] .key-badge-bg {
  stroke: var(--color-left-middle);
  fill: rgba(253, 224, 71, 0.18);
}

.key-badge-bg.badge-left-index,
[data-finger="left-index"] .key-badge-bg {
  stroke: var(--color-left-index);
  fill: rgba(74, 222, 128, 0.18);
}

.key-badge-bg.badge-thumb,
[data-finger="left-thumb"] .key-badge-bg,
[data-finger="right-thumb"] .key-badge-bg {
  stroke: var(--color-thumb);
  fill: rgba(56, 189, 248, 0.18);
}

.key-badge-bg.badge-right-index,
[data-finger="right-index"] .key-badge-bg {
  stroke: var(--color-right-index);
  fill: rgba(45, 212, 191, 0.18);
}

.key-badge-bg.badge-right-middle,
[data-finger="right-middle"] .key-badge-bg {
  stroke: var(--color-right-middle);
  fill: rgba(96, 165, 250, 0.18);
}

.key-badge-bg.badge-right-ring,
[data-finger="right-ring"] .key-badge-bg {
  stroke: var(--color-right-ring);
  fill: rgba(129, 140, 248, 0.18);
}

.key-badge-bg.badge-right-pinky,
[data-finger="right-pinky"] .key-badge-bg {
  stroke: var(--color-right-pinky);
  fill: rgba(192, 132, 252, 0.18);
}

.key-badge-text {
  fill: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  user-select: none;
  transition: fill 0.2s ease, font-weight 0.2s ease;
}

.pill-space-bg {
  stroke-width: 1.2px;
}

.pill-space-text {
  font-size: 8px;
  font-family: var(--font-main);
  letter-spacing: 0.08em;
  font-weight: 800;
  fill: #ffffff;
}

/* ----------------------------------------------------
   Active Finger Glow (Target finger illuminates & alphabet badges glow)
   Individual 9-Color Illumination matching Virtual Keyboard
   ---------------------------------------------------- */
.finger-group.finger-active .finger-contour {
  stroke-width: 2.6px !important;
}

/* 1. Left Pinky (#f472b6) */
#finger-left-pinky.finger-active .finger-contour {
  stroke: var(--color-left-pinky) !important;
  fill: rgba(244, 114, 182, 0.28) !important;
  filter: drop-shadow(0 0 10px rgba(244, 114, 182, 0.95)) drop-shadow(0 0 18px rgba(244, 114, 182, 0.5));
}

#finger-left-pinky.finger-active .finger-svg-label {
  fill: var(--color-left-pinky) !important;
  font-weight: 700;
  opacity: 1 !important;
}

#finger-left-pinky.finger-active .key-badge-bg {
  stroke: #ffffff !important;
  fill: rgba(244, 114, 182, 0.5) !important;
  filter: drop-shadow(0 0 6px var(--color-left-pinky));
}

#finger-left-pinky.finger-active .key-badge-text {
  fill: #ffffff !important;
  font-weight: 800;
}

/* 2. Left Ring (#fb923c) */
#finger-left-ring.finger-active .finger-contour {
  stroke: var(--color-left-ring) !important;
  fill: rgba(251, 146, 60, 0.28) !important;
  filter: drop-shadow(0 0 10px rgba(251, 146, 60, 0.95)) drop-shadow(0 0 18px rgba(251, 146, 60, 0.5));
}

#finger-left-ring.finger-active .finger-svg-label {
  fill: var(--color-left-ring) !important;
  font-weight: 700;
  opacity: 1 !important;
}

#finger-left-ring.finger-active .key-badge-bg {
  stroke: #ffffff !important;
  fill: rgba(251, 146, 60, 0.5) !important;
  filter: drop-shadow(0 0 6px var(--color-left-ring));
}

#finger-left-ring.finger-active .key-badge-text {
  fill: #ffffff !important;
  font-weight: 800;
}

/* 3. Left Middle (#fde047) */
#finger-left-middle.finger-active .finger-contour {
  stroke: var(--color-left-middle) !important;
  fill: rgba(253, 224, 71, 0.28) !important;
  filter: drop-shadow(0 0 10px rgba(253, 224, 71, 0.95)) drop-shadow(0 0 18px rgba(253, 224, 71, 0.5));
}

#finger-left-middle.finger-active .finger-svg-label {
  fill: var(--color-left-middle) !important;
  font-weight: 700;
  opacity: 1 !important;
}

#finger-left-middle.finger-active .key-badge-bg {
  stroke: #ffffff !important;
  fill: rgba(253, 224, 71, 0.5) !important;
  filter: drop-shadow(0 0 6px var(--color-left-middle));
}

#finger-left-middle.finger-active .key-badge-text {
  fill: #ffffff !important;
  font-weight: 800;
}

/* 4. Left Index (#4ade80) */
#finger-left-index.finger-active .finger-contour {
  stroke: var(--color-left-index) !important;
  fill: rgba(74, 222, 128, 0.28) !important;
  filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.95)) drop-shadow(0 0 18px rgba(74, 222, 128, 0.5));
}

#finger-left-index.finger-active .finger-svg-label {
  fill: var(--color-left-index) !important;
  font-weight: 700;
  opacity: 1 !important;
}

#finger-left-index.finger-active .key-badge-bg {
  stroke: #ffffff !important;
  fill: rgba(74, 222, 128, 0.5) !important;
  filter: drop-shadow(0 0 6px var(--color-left-index));
}

#finger-left-index.finger-active .key-badge-text {
  fill: #ffffff !important;
  font-weight: 800;
}

/* 5. Thumbs (Left & Right) (#38bdf8) */
#finger-left-thumb.finger-active .finger-contour,
#finger-right-thumb.finger-active .finger-contour {
  stroke: var(--color-thumb) !important;
  fill: rgba(56, 189, 248, 0.28) !important;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.95)) drop-shadow(0 0 18px rgba(56, 189, 248, 0.5));
}

#finger-left-thumb.finger-active .finger-svg-label,
#finger-right-thumb.finger-active .finger-svg-label {
  fill: var(--color-thumb) !important;
  font-weight: 700;
  opacity: 1 !important;
}

#finger-left-thumb.finger-active .key-badge-bg,
#finger-right-thumb.finger-active .key-badge-bg {
  stroke: #ffffff !important;
  fill: rgba(56, 189, 248, 0.5) !important;
  filter: drop-shadow(0 0 6px var(--color-thumb));
}

#finger-left-thumb.finger-active .key-badge-text,
#finger-right-thumb.finger-active .key-badge-text {
  fill: #ffffff !important;
  font-weight: 800;
}

/* 6. Right Index (#2dd4bf) */
#finger-right-index.finger-active .finger-contour {
  stroke: var(--color-right-index) !important;
  fill: rgba(45, 212, 191, 0.28) !important;
  filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.95)) drop-shadow(0 0 18px rgba(45, 212, 191, 0.5));
}

#finger-right-index.finger-active .finger-svg-label {
  fill: var(--color-right-index) !important;
  font-weight: 700;
  opacity: 1 !important;
}

#finger-right-index.finger-active .key-badge-bg {
  stroke: #ffffff !important;
  fill: rgba(45, 212, 191, 0.5) !important;
  filter: drop-shadow(0 0 6px var(--color-right-index));
}

#finger-right-index.finger-active .key-badge-text {
  fill: #ffffff !important;
  font-weight: 800;
}

/* 7. Right Middle (#60a5fa) */
#finger-right-middle.finger-active .finger-contour {
  stroke: var(--color-right-middle) !important;
  fill: rgba(96, 165, 250, 0.28) !important;
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.95)) drop-shadow(0 0 18px rgba(96, 165, 250, 0.5));
}

#finger-right-middle.finger-active .finger-svg-label {
  fill: var(--color-right-middle) !important;
  font-weight: 700;
  opacity: 1 !important;
}

#finger-right-middle.finger-active .key-badge-bg {
  stroke: #ffffff !important;
  fill: rgba(96, 165, 250, 0.5) !important;
  filter: drop-shadow(0 0 6px var(--color-right-middle));
}

#finger-right-middle.finger-active .key-badge-text {
  fill: #ffffff !important;
  font-weight: 800;
}

/* 8. Right Ring (#818cf8) */
#finger-right-ring.finger-active .finger-contour {
  stroke: var(--color-right-ring) !important;
  fill: rgba(129, 140, 248, 0.28) !important;
  filter: drop-shadow(0 0 10px rgba(129, 140, 248, 0.95)) drop-shadow(0 0 18px rgba(129, 140, 248, 0.5));
}

#finger-right-ring.finger-active .finger-svg-label {
  fill: var(--color-right-ring) !important;
  font-weight: 700;
  opacity: 1 !important;
}

#finger-right-ring.finger-active .key-badge-bg {
  stroke: #ffffff !important;
  fill: rgba(129, 140, 248, 0.5) !important;
  filter: drop-shadow(0 0 6px var(--color-right-ring));
}

#finger-right-ring.finger-active .key-badge-text {
  fill: #ffffff !important;
  font-weight: 800;
}

/* 9. Right Pinky (#c084fc) */
#finger-right-pinky.finger-active .finger-contour {
  stroke: var(--color-right-pinky) !important;
  fill: rgba(192, 132, 252, 0.28) !important;
  filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.95)) drop-shadow(0 0 18px rgba(192, 132, 252, 0.5));
}

#finger-right-pinky.finger-active .finger-svg-label {
  fill: var(--color-right-pinky) !important;
  font-weight: 700;
  opacity: 1 !important;
}

#finger-right-pinky.finger-active .key-badge-bg {
  stroke: #ffffff !important;
  fill: rgba(192, 132, 252, 0.5) !important;
  filter: drop-shadow(0 0 6px var(--color-right-pinky));
}

#finger-right-pinky.finger-active .key-badge-text {
  fill: #ffffff !important;
  font-weight: 800;
}

/* ----------------------------------------------------
   Subtle Natural Finger Tap Animation (.finger-tap)
   ---------------------------------------------------- */
@keyframes naturalFingerTap {
  0% {
    transform: translateY(0) scaleY(1);
  }

  35% {
    transform: translateY(4px) scaleY(0.96);
  }

  70% {
    transform: translateY(-1.2px) scaleY(1.01);
  }

  100% {
    transform: translateY(0) scaleY(1);
  }
}

.finger-group.finger-tap {
  animation: naturalFingerTap 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Completion Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.82);
  backdrop-filter: blur(14px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px 36px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.15);
  animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  0% {
    transform: scale(0.92);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #ffffff;
  font-family: var(--font-bengali);
}

.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.modal-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: #38bdf8;
}

.m-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-family: var(--font-bengali);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.5);
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
}

/* ====================================================
   Sub-Header Right Controls: Sound, Mode & Manage Words
   ==================================================== */
.top-controls {
  position: static;
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 16px);
  flex-shrink: 1;
  flex-wrap: nowrap;
  margin: 0;
  transform: none;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: clamp(6px, 0.6vw, 8px);
  padding: clamp(3px, 0.4vw, 6px) clamp(6px, 0.7vw, 10px);
  cursor: pointer;
  font-size: clamp(12px, 1vw, 15px);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  user-select: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: clamp(28px, 3.5vh, 36px);
  min-width: clamp(28px, 3.5vh, 36px);
  box-sizing: border-box;
  flex-shrink: 1;
}

.icon-btn:hover {
  border-color: rgba(0, 229, 255, 0.5);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.25);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: translateY(0) scale(0.96);
}

.icon-btn.muted {
  opacity: 0.5;
  border-color: rgba(255, 76, 76, 0.35);
}

.icon-btn.muted:hover {
  border-color: rgba(255, 76, 76, 0.6);
  background: rgba(255, 76, 76, 0.08);
  box-shadow: 0 0 14px rgba(255, 76, 76, 0.2);
  opacity: 0.75;
}

/* Mode Toggle Segmented Pill (Basic | Advance) */
.mode-toggle-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(10, 16, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: clamp(6px, 0.6vw, 8px);
  padding: clamp(2px, 0.25vw, 3px);
  gap: clamp(2px, 0.25vw, 3px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  user-select: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  height: clamp(28px, 3.5vh, 36px);
  box-sizing: border-box;
  flex-shrink: 1;
}

.mode-toggle-pill:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 12px rgba(56, 189, 248, 0.15);
}

.mode-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: var(--font-main);
  font-size: clamp(10px, 0.8vw, 13px);
  font-weight: 600;
  padding: clamp(2px, 0.35vw, 5px) clamp(6px, 0.7vw, 11px);
  border-radius: clamp(4px, 0.5vw, 6px);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 1;
}

.mode-btn:hover {
  color: #e2e8f0;
}

.mode-btn.active[data-mode="basic"] {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
  font-weight: 700;
}

.mode-btn.active[data-mode="advance"] {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(56, 189, 248, 0.2) 100%);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.55);
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.32), 0 0 8px rgba(56, 189, 248, 0.18);
  font-weight: 700;
}

.floating-btn {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: clamp(3px, 0.4vw, 6px);
  padding: clamp(3px, 0.4vw, 6px) clamp(8px, 1vw, 14px);
  height: clamp(28px, 3.5vh, 36px);
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  color: #f8fafc;
  font-family: var(--font-main);
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(56, 189, 248, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  white-space: nowrap;
  flex-shrink: 1;
}

.floating-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 24px rgba(56, 189, 248, 0.35);
}

.floating-btn:active {
  transform: translateY(0) scale(0.98);
}

.floating-btn svg {
  width: clamp(12px, 1vw, 16px);
  height: clamp(12px, 1vw, 16px);
  transition: transform 0.3s ease;
  color: #38bdf8;
  flex-shrink: 0;
}

.floating-btn:hover svg {
  transform: rotate(30deg);
}

/* Glass-morphic Modal Container */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.25s ease;
}

.modal.hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Glass-morphic Modal Content */
.modal-content {
  background: rgba(30, 41, 59, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 18px;
  padding: 24px 26px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(56, 189, 248, 0.18);
  animation: modalAppear 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
}

@keyframes modalAppear {
  0% {
    transform: scale(0.92) translateY(12px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.modal-header h2 {
  font-size: 1.22rem;
  font-weight: 700;
  color: #f8fafc;
  font-family: var(--font-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header h2 svg {
  color: #38bdf8;
}

#close-modal {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

#close-modal:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  transform: rotate(90deg);
}

.add-word-section {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

#new-word-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}

#new-word-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.95);
}

#new-word-input::placeholder {
  color: #64748b;
}

#add-word-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

#add-word-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
}

#add-word-btn:active {
  transform: translateY(0);
}

.word-list {
  list-style: none;
  max-height: 270px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

/* Custom scrollbar for word list */
.word-list::-webkit-scrollbar {
  width: 6px;
}

.word-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 4px;
}

.word-list::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 4px;
}

.word-list::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.45);
}

.word-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.word-list-item:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(56, 189, 248, 0.25);
}

.word-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.word-name {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.02em;
}

.word-sub {
  font-family: var(--font-bengali);
  font-size: 0.78rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.delete-word-btn {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.delete-word-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
  transform: scale(1.04);
}

/* ====================================================
   Responsive Breakpoints & Height-Constrained Rules
   ==================================================== */

/* Desktop & Laptop displays: Enforce single-screen viewport without vertical scroll */
@media (min-width: 1024px) and (min-height: 560px) {

  html,
  body {
    height: 100vh;
    height: 100dvh;
    overflow-y: hidden;
  }
}

/* Compact Laptop Heights (e.g. 1366x768 screens with browser toolbars, or 1080p with 125%/150% scaling) */
@media (max-height: 740px) and (min-width: 1024px) {
  .top-nav-bar {
    height: 48px !important;
    min-height: 48px !important;
    margin-bottom: 0.5rem !important;
  }

  .app-wrapper {
    height: calc(100vh - 48px - 0.5rem) !important;
    height: calc(100dvh - 48px - 0.5rem) !important;
    padding: 4px clamp(8px, 1.2vw, 16px);
    gap: clamp(6px, 1vw, 14px);
  }

  .main-content {
    gap: 6px;
  }

  .app-header {
    margin-bottom: 2px;
  }

  .stats-bar {
    gap: 6px;
  }

  .stat-card {
    padding: 4px 8px;
    border-radius: 8px;
  }

  .stat-value {
    font-size: 1.18rem;
  }

  .learning-section {
    gap: 6px;
  }

  .learning-card {
    min-height: 52px;
    padding: 5px 10px;
    border-radius: 8px;
  }

  .card-content {
    min-height: 24px;
  }

  .bengali-text {
    font-size: 1.05rem;
  }

  .typing-container {
    padding: 8px 14px;
    border-radius: 10px;
  }

  .keyboard-container {
    padding: 6px 10px;
    gap: 4px;
    border-radius: 14px;
    max-width: 820px;
    margin: 0 auto;
  }

  .keyboard-row {
    gap: 3.5px;
  }

  .key {
    height: 40px;
    border-radius: 8px;
    font-size: 0.8rem;
    min-width: 32px;
  }

  .hand-card {
    border-radius: 14px;
    padding: 8px 10px;
    gap: 6px;
  }

  .natural-hand-svg {
    max-height: 230px;
  }
}

/* Mobile View (< 1024px) - Strictly Mobile-Optimized Layout */
@media (max-width: 1023px) {
  /* Hide sidebars (Left Hand & Right Hand) and On-Screen Virtual Keyboard on mobile */
  .left-hand-container,
  .right-hand-container,
  .keyboard-container,
  .follow-widget,
  .copyright-widget {
    display: none !important;
  }

  body {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
  }

  .app-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 14px 24px 14px;
    height: auto;
    min-height: calc(100vh - 50px);
    min-height: calc(100dvh - 50px);
    max-height: none;
    overflow-y: visible;
    width: 100%;
    box-sizing: border-box;
  }

  .main-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
    box-sizing: border-box;
    padding: 0;
  }

  /* Top Navigation Bar on mobile */
  .top-nav-bar {
    height: 48px !important;
    min-height: 48px !important;
    margin-bottom: 0.5rem !important;
  }

  .nav-container {
    padding: 0 10px !important;
    gap: 6px !important;
  }

  .nav-left {
    gap: 8px !important;
  }

  .nav-right {
    gap: 6px !important;
  }

  .nav-brand-text {
    font-size: 1.05rem !important;
  }

  /* Top Controls Layout (Reset, Sound, Basic/Advance, Manage Words in 1 neat line) */
  .app-header {
    width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .top-controls {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }

  .mode-toggle-pill {
    padding: 2px !important;
  }

  .mode-btn {
    padding: 3px 8px !important;
    font-size: 0.72rem !important;
  }

  .btn-icon {
    padding: 4px 10px !important;
    font-size: 0.76rem !important;
  }

  .floating-btn {
    padding: 4px 10px !important;
    font-size: 0.76rem !important;
    display: inline-flex !important;
    gap: 4px !important;
  }

  /* 3. Single Line Stats (Speed, Stopwatch, Accuracy) */
  .stats-bar {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .stat-card {
    padding: 5px 6px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    gap: 2px !important;
  }

  .stat-label {
    font-size: 0.62rem !important; /* text-xs */
    gap: 3px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.1 !important;
  }

  .stat-label svg {
    width: 11px !important;
    height: 11px !important;
    flex-shrink: 0 !important;
  }

  .stat-value {
    font-size: 0.95rem !important; /* compact */
    gap: 2px !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  .stat-unit {
    font-size: 0.65rem !important;
  }

  /* Compact stopwatch header in single line card */
  .stat-timer-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .timer-config-btn {
    width: 16px !important;
    height: 16px !important;
    border-radius: 4px !important;
  }

  .timer-config-btn svg {
    width: 11px !important;
    height: 11px !important;
  }

  /* 1. Stack Meaning & Syllable Section vertically (flex-col) on mobile only */
  .learning-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .learning-card {
    width: 100% !important;
    min-height: auto !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  .learning-card .card-header {
    margin-bottom: 2px !important;
  }

  .learning-card .card-tag {
    font-size: 0.6rem !important;
    padding: 1px 5px !important;
  }

  .learning-card .card-title-label {
    font-size: 0.58rem !important;
  }

  .learning-card .card-content {
    min-height: auto !important;
  }

  .learning-card .bengali-text {
    font-size: 0.88rem !important;
    line-height: 1.25 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .syllable-text {
    font-size: 0.88rem !important;
    gap: 3px !important;
    white-space: nowrap !important;
  }

  .syllable-reveal-btn {
    font-size: 0.58rem !important;
    padding: 1px 5px !important;
    margin-left: 2px !important;
  }

  /* 2. Main Typing Text Box: Controlled Height on Mobile (h-[55vh] min-h-[250px]) */
  .typing-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 16px 14px !important;
    box-sizing: border-box;
    height: 55vh !important;
    min-height: 250px !important;
    max-height: 380px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
    border-radius: 14px;
    border: 1.5px solid rgba(56, 189, 248, 0.28);
    background: rgba(15, 23, 42, 0.85);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .typing-container:hover,
  .typing-container:focus-within,
  .typing-container:active {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.18);
  }

  .typing-window {
    height: 120px;
    width: 100%;
    pointer-events: none;
  }

  .typing-track {
    font-size: 1.25rem;
    line-height: 38px;
    column-gap: 8px;
    pointer-events: none;
  }

  .word {
    height: 38px;
    line-height: 38px;
    pointer-events: none;
  }

  /* 3, 4, 5. Mobile Bottom Section: Warning & Native Keyboard Trigger Button */
  .mobile-bottom-section {
    width: 100%;
    margin-top: 14px;
    padding: 0 4px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .mobile-warning-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(8px);
    max-width: 95%;
  }

  .mobile-warning-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
  }

  .mobile-warning-text {
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
    color: #94a3b8 !important;
    margin: 0 !important;
    text-align: center;
  }

  .mobile-keyboard-btn-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .mobile-keyboard-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22) 0%, rgba(56, 189, 248, 0.12) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    color: #f0f9ff;
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(14, 165, 233, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    touch-action: manipulation;
  }

  .mobile-keyboard-trigger-btn:hover,
  .mobile-keyboard-trigger-btn:focus {
    border-color: rgba(56, 189, 248, 0.7);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.32) 0%, rgba(56, 189, 248, 0.2) 100%);
    box-shadow: 0 6px 24px rgba(14, 165, 233, 0.35);
  }

  .mobile-keyboard-trigger-btn:active {
    transform: scale(0.96);
  }

  .mobile-keyboard-trigger-btn svg {
    color: #38bdf8;
    flex-shrink: 0;
  }
}

/* ====================================================
   Modern Antigravity Manage Words Sliding Side-Panel
   ==================================================== */

/* Glass Backdrop Overlay */
.panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Side-Panel Base */
.side-panel {
  position: fixed;
  top: 0;
  right: -460px;
  width: 420px;
  max-width: 92vw;
  height: 100vh;
  background: rgba(11, 16, 29, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.85), -1px 0 0 rgba(56, 189, 248, 0.25), inset 1px 0 0 rgba(255, 255, 255, 0.05);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
  font-family: var(--font-main);
}

.side-panel.open {
  right: 0;
}

/* Header & Settings */
.panel-header {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(22, 33, 56, 0.7) 0%, rgba(13, 20, 36, 0.8) 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon {
  color: var(--color-accent);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
}

.header-top h2 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-header-actions .word-count.badge,
.panel-header-actions .word-count {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fecdd3;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.15);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.panel-header-actions .clear-all-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.panel-header-actions .clear-all-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  transform: scale(1.06);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.3);
}

.close-panel {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.close-panel:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #f87171;
  transform: scale(1.06);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.3);
}

/* Mastery Target Sleek Setting */
.mastery-setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  backdrop-filter: blur(10px);
}

.setting-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.setting-info label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
}

.setting-desc {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.setting-desc::before {
  content: '●';
  font-size: 8px;
  color: #22c55e;
}

/* Strip ugly browser default number spinner arrows completely */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
  display: none !important;
}

input[type=number] {
  -moz-appearance: textfield !important;
}

.setting-stepper-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  padding: 2px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 12px rgba(56, 189, 248, 0.12);
  transition: all 0.2s ease;
}

.setting-stepper-wrap:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
}

.stepper-btn {
  width: 26px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  line-height: 1;
}

.stepper-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  transform: scale(1.08);
}

.stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.04);
  color: #64748b;
}

#mastery-target {
  width: 38px;
  height: 28px;
  background: transparent;
  border: none;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  outline: none;
  padding: 0;
  box-shadow: none;
}

#mastery-target:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  color: #94a3b8;
}

/* File Import Container (300KB Vocabulary Importer) */
.file-import-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(14, 165, 233, 0.05);
  border: 1px dashed rgba(14, 165, 233, 0.4);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 15px;
  margin-bottom: 20px;
}

.import-info h4 {
  color: #ffffff;
  margin: 0 0 5px 0;
  font-size: 14px;
}

.import-info p {
  color: #94a3b8;
  margin: 0;
  font-size: 12px;
}

.import-btn {
  background: rgba(14, 165, 233, 0.2);
  color: #0ea5e9;
  border: 1px solid rgba(14, 165, 233, 0.5);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}

.import-btn:hover {
  background: rgba(14, 165, 233, 0.4);
}

/* Tag Container (YouTube Style with Modern Scrollbar) */
.word-list-container.tag-layout {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
}

.word-list-container.tag-layout::-webkit-scrollbar {
  width: 5px;
}

.word-list-container.tag-layout::-webkit-scrollbar-track {
  background: transparent;
}

.word-list-container.tag-layout::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.2);
  border-radius: 10px;
}

.word-list-container.tag-layout::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.4);
}

/* Individual Pill Tag Styles */
.word-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: grab;
  user-select: none;
  backdrop-filter: blur(8px);
}

.word-tag:active {
  cursor: grabbing;
}

.word-tag.dragging {
  opacity: 0.35;
  transform: scale(0.95);
  border-style: dashed !important;
}

.word-tag.drag-over {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6) !important;
  transform: scale(1.06);
}

.tag-check-icon {
  color: #10b981;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: -2px;
}

.tag-word-text {
  font-family: var(--font-main);
  letter-spacing: 0.01em;
}

.tag-score {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.2;
}

/* Red Tag (Active Practice - Max 15 slots) */
.word-tag.red {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #fecaca;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.28);
}

.word-tag.red .tag-score {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.word-tag.red:hover {
  border-color: rgba(239, 68, 68, 0.85);
  background: rgba(239, 68, 68, 0.16);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

/* Green Tag (Mastered) */
.word-tag.green {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.48);
  color: #a7f3d0;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.18);
}

.word-tag.green .tag-score {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.word-tag.green:hover {
  border-color: rgba(16, 185, 129, 0.85);
  background: rgba(16, 185, 129, 0.16);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

/* White Tag (Queue - Unmastered >= 15) */
.word-tag.white {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
}

.word-tag.white .tag-score {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.word-tag.white:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  transform: translateY(-1px);
}

/* Delete Tag Button */
.delete-tag-btn {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: inherit;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s ease;
  margin-left: 2px;
  padding: 0;
  line-height: 1;
}

.delete-tag-btn:hover {
  opacity: 1;
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.18);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

/* Empty State */
.empty-tag-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 200px;
  padding: 30px 20px;
  color: #64748b;
}

.empty-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  opacity: 0.8;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3));
}

.empty-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
  margin: 0 0 6px 0;
}

.empty-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  max-width: 260px;
  line-height: 1.4;
}

/* Fixed Footer (Add Word Input) */
.panel-footer {
  padding: 16px 24px 20px 24px;
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.85) 0%, rgba(9, 14, 26, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-glow-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #38bdf8;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

#new-word-input {
  width: 100%;
  padding: 12px 75px 12px 38px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: var(--font-main);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #f8fafc;
  box-sizing: border-box;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.25);
}

#new-word-input::placeholder {
  color: #64748b;
  font-size: 0.86rem;
}

#new-word-input:focus {
  border-color: #38bdf8;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 22px rgba(56, 189, 248, 0.35);
}

.input-key-hint {
  position: absolute;
  right: 8px;
  padding: 5px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: #e2e8f0;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35) 0%, rgba(56, 189, 248, 0.22) 100%);
  border: 1px solid rgba(56, 189, 248, 0.38);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 10px rgba(56, 189, 248, 0.15);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.input-key-hint:hover {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.65) 0%, rgba(56, 189, 248, 0.5) 100%);
  border-color: #38bdf8;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

.input-key-hint:active {
  transform: scale(0.95);
}

.input-key-hint.loading {
  opacity: 0.65;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-hint {
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Side-Panel Locked State during Active Words Fetch */
.side-panel.panel-locked .close-panel,
.side-panel.panel-locked .import-btn,
.side-panel.panel-locked #vocab-file-upload,
.side-panel.panel-locked #new-word-input,
.side-panel.panel-locked #enter-submit-btn,
.side-panel.panel-locked .stepper-btn,
.side-panel.panel-locked #mastery-target,
.side-panel.panel-locked .word-tag,
.side-panel.panel-locked .delete-tag-btn,
.side-panel.panel-locked .panel-footer {
  pointer-events: none !important;
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

.side-panel.panel-locked~.panel-backdrop {
  pointer-events: none !important;
  cursor: wait !important;
}

/* Floating Please Wait Status Bar at Bottom of Panel */
.panel-wait-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 50;
  animation: waitBarSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes waitBarSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.wait-bar-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(239, 68, 68, 0.2);
  border-top-color: #ef4444;
  border-radius: 50%;
  animation: uploadSpinnerRotate 0.7s linear infinite;
}

.wait-bar-text {
  color: #fecaca;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Animated spin for restart/refresh button when clicked in background */
.btn-refreshing svg {
  animation: refreshButtonSpin 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes refreshButtonSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Bulk Upload Spinner Overlay inside Manage Words Popup */
.upload-spinner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 16, 29, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: inherit;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.upload-spinner-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spinner-ring {
  width: 44px;
  height: 44px;
  border: 3.5px solid rgba(56, 189, 248, 0.15);
  border-top-color: #38bdf8;
  border-right-color: #818cf8;
  border-radius: 50%;
  animation: uploadSpinnerRotate 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

@keyframes uploadSpinnerRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.spinner-text {
  color: #f1f5f9;
  font-family: var(--font-main, inherit);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Staggered Tag Entry Animation */
.tag-enter-animated {
  animation: tagPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tagPopIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(8px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Dynamically Processed Word (Turns Green with smooth pop) */
.tag-just-processed {
  animation: tagProcessedPulse 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tagProcessedPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(16, 185, 129, 0);
  }

  45% {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.65);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .side-panel {
    width: 100vw;
    max-width: 100vw;
    right: -100vw;
  }
}

/* ====================================================
   Side Slide-in Extension Promotion Card
   ==================================================== */
.extension-promo-card {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 375px;
  max-width: calc(100vw - 32px);
  background: rgba(13, 20, 36, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.22);
  z-index: 1250;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  overflow: hidden;
}

.extension-promo-card.hidden {
  display: flex !important;
  transform: translateX(125%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.promo-card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(16, 185, 129, 0) 70%);
  pointer-events: none;
  filter: blur(15px);
}

.promo-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.promo-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.promo-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(16, 185, 129, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
}

.promo-tag {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.promo-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-top: 2px;
}

.promo-desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.promo-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.promo-btn-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #059669 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
  transition: all 0.22s ease;
}

.promo-btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
  filter: brightness(1.1);
}

.promo-btn-secondary {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.promo-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Extension Guide Steps List */
.guide-modal-card {
  max-width: 520px;
}

.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 0 24px 0;
  text-align: left;
}

.guide-step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.step-num {
  width: 28px;
  height: 28px;
  background: #38bdf8;
  color: #070a12;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 0.95rem;
  color: #f8fafc;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.4;
}

.step-content code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
}

/* ====================================================
   Premium Settings Modal (Dark / Neon Aesthetic)
   ==================================================== */
.settings-modal-card {
  position: relative;
  max-width: 820px;
  width: 94%;
  max-height: 90vh;
  background: rgba(9, 14, 26, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.88), 0 0 45px rgba(56, 189, 248, 0.15);
  border-radius: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScale 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

/* Top-Right Close Button */
.settings-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 1.4rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  z-index: 10;
}

.settings-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
  color: #f87171;
  transform: rotate(90deg);
}

/* Modal Body: 2-Column Grid */
.settings-modal-body {
  display: flex;
  width: 100%;
  min-height: 520px;
  max-height: 85vh;
  overflow: hidden;
}

/* Left Sidebar (Tabs) */
.settings-tabs-sidebar {
  width: 240px;
  min-width: 240px;
  background: rgba(6, 10, 20, 0.7);
  border-right: 1px solid rgba(56, 189, 248, 0.15);
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.settings-sidebar-header {
  padding: 0 8px 6px 8px;
}

.settings-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 3px 10px;
  border-radius: 20px;
}

.settings-brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.settings-tab-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.settings-tab-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #94a3b8;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  user-select: none;
}

.settings-tab-btn:hover {
  background: rgba(56, 189, 248, 0.08);
  color: #f1f5f9;
  border-color: rgba(56, 189, 248, 0.15);
}

.settings-tab-btn.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16) 0%, rgba(99, 102, 241, 0.12) 100%);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(56, 189, 248, 0.12);
}

.tab-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
}

.settings-tab-btn:hover .tab-icon-wrap {
  color: #38bdf8;
  transform: scale(1.08);
}

.settings-tab-btn.active .tab-icon-wrap {
  color: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

.tab-icon-pro {
  color: #f59e0b;
}

.settings-tab-btn.active .tab-icon-pro {
  color: #fbbf24;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.tab-label {
  flex: 1;
  white-space: nowrap;
}

.tab-pro-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  color: #ffffff;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.tab-active-indicator {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3.5px;
  height: 22px;
  background: #38bdf8;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px #38bdf8;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-tab-btn.active .tab-active-indicator {
  transform: translateY(-50%) scaleY(1);
}

/* Right Content Area */
.settings-content-area {
  flex: 1;
  padding: 28px 32px;
  overflow-y: auto;
  box-sizing: border-box;
  background: rgba(11, 18, 33, 0.4);
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.2) transparent;
}

.settings-content-area::-webkit-scrollbar {
  width: 6px;
}

.settings-content-area::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.2);
  border-radius: 4px;
}

/* Tab Panes */
.settings-tab-pane {
  display: none;
  animation: fadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.settings-tab-pane.active {
  display: block;
}

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

.pane-title {
  margin: 0 0 6px 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  font-family: var(--font-main);
  letter-spacing: -0.01em;
}

.pane-description {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* Cards inside Tab 1 */
.settings-info-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease;
}

.settings-info-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.settings-section-subtitle {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.settings-email-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-email-display .email-icon {
  color: #38bdf8;
  flex-shrink: 0;
}

.user-email-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  font-family: var(--font-mono, monospace);
  word-break: break-all;
}

.auth-provider-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* Google Connected Account Notice (Subtle) */
.settings-google-notice {
  background: rgba(66, 133, 244, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.22);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.settings-google-notice.hidden,
.settings-password-card.hidden,
.settings-password-edit-box.hidden,
.settings-password-masked-row.hidden {
  display: none !important;
}

.google-notice-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.google-notice-desc {
  margin: 0;
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Password Card (Masked row) */
.settings-password-masked-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.masked-pwd-display {
  display: flex;
  align-items: center;
  gap: 12px;
}

.masked-pwd-dots {
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  color: #e2e8f0;
  font-weight: 700;
  line-height: 1;
}

.masked-pwd-sub {
  font-size: 0.76rem;
  color: #64748b;
  font-style: italic;
}

.settings-btn-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-btn-edit:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

/* Edit Password Form Container */
.settings-password-edit-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideDown 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.edit-box-header {
  padding-bottom: 4px;
}

.edit-box-title {
  margin: 0 0 2px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
}

.edit-box-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
}

.settings-form-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
}

.settings-input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.settings-input-icon {
  position: absolute;
  left: 12px;
  color: #64748b;
  pointer-events: none;
}

.settings-text-input {
  width: 100%;
  background: rgba(11, 18, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 42px 10px 38px;
  color: #ffffff;
  font-size: 0.88rem;
  font-family: var(--font-main);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.settings-text-input:focus {
  outline: none;
  border-color: #38bdf8;
  background: rgba(11, 18, 33, 0.98);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.settings-text-input::placeholder {
  color: #64748b;
  font-size: 0.84rem;
}

.pwd-visibility-toggle {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.pwd-visibility-toggle:hover {
  color: #38bdf8;
}

/* Dynamic Red Error Alert Box */
.settings-pwd-alert-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  color: #f87171;
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.4;
  animation: shake 0.3s ease;
}

.settings-pwd-alert-error svg {
  flex-shrink: 0;
  color: #ef4444;
}

/* Dynamic Green Success Alert Box */
.settings-pwd-alert-success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.38);
  border-radius: 10px;
  padding: 12px 16px;
  color: #34d399;
  font-size: 0.86rem;
  margin-top: 14px;
  animation: fadeIn 0.3s ease;
}

.success-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #10b981;
}

.success-msg-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.success-msg-content strong {
  color: #6ee7b7;
  font-weight: 700;
}

.success-msg-content span {
  font-size: 0.78rem;
  color: #a7f3d0;
}

/* Form Action Buttons */
.settings-form-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.settings-btn-update {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}

.settings-btn-update:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.55), 0 0 12px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.settings-btn-update:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.settings-btn-cancel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.25);
}

/* TAB 2: Notifications Clean Empty State */
.settings-empty-notifications {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 45px 20px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed rgba(56, 189, 248, 0.22);
  border-radius: 16px;
  margin-top: 10px;
}

.empty-bell-halo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(14, 165, 233, 0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.15);
}

.empty-bell-inner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
  animation: bellGentlePulse 3s ease-in-out infinite;
}

@keyframes bellGentlePulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.45);
  }
}

.empty-bell-title {
  margin: 0 0 8px 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f1f5f9;
}

.empty-bell-subtitle {
  margin: 0 0 20px 0;
  font-size: 0.83rem;
  color: #94a3b8;
  max-width: 380px;
  line-height: 1.45;
}

.empty-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #cbd5e1;
}

.empty-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* TAB 3: Upgrade (PRO) */
.upgrade-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fbbf24;
  margin-bottom: 6px;
}

.settings-upgrade-card {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 27, 75, 0.7) 0%, rgba(15, 23, 42, 0.85) 50%, rgba(17, 24, 39, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.18);
  overflow: hidden;
}

.upgrade-gradient-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.upgrade-perks-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.upgrade-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
}

.perk-check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.perk-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.perk-text strong {
  font-size: 0.83rem;
  color: #f8fafc;
  font-weight: 700;
}

.perk-text span {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.35;
}

/* ====================================================
   Dynamic PRO Pricing, Smart Coupon & Checkout Section
   ==================================================== */

.upgrade-plans-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.upgrade-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.upgrade-plans-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.upgrade-plans-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* 3-Card Grid */
.upgrade-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pricing-card {
  position: relative;
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 14px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pricing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.45);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(6, 182, 212, 0.15);
}

/* Selected Card with Premium Neon/Cyan Glow */
.pricing-card.selected {
  transform: translateY(-4px);
  border-color: #06b6d4;
  background: linear-gradient(165deg, rgba(6, 182, 212, 0.14) 0%, rgba(15, 23, 42, 0.92) 55%, rgba(88, 28, 135, 0.18) 100%);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.8),
    0 0 25px rgba(6, 182, 212, 0.42),
    0 0 50px rgba(6, 182, 212, 0.18),
    inset 0 0 20px rgba(6, 182, 212, 0.12);
}

.pricing-card:focus-visible {
  box-shadow: 0 0 0 2px #38bdf8, 0 0 25px rgba(6, 182, 212, 0.5);
}

/* Top Badges (Most Popular & Best Value) */
.pricing-badge-popular,
.pricing-badge-value {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 0.67rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  z-index: 3;
}

.pricing-badge-popular {
  background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
  box-shadow: 0 2px 12px rgba(168, 85, 247, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-badge-value {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card Header */
.pricing-card-top {
  margin-bottom: 8px;
}

.pricing-duration {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.pricing-card.selected .pricing-duration {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Pricing Section Inside Card */
.pricing-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 6px 0 12px;
  min-height: 64px;
  justify-content: center;
}

.pricing-original-price {
  font-size: 0.82rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
  opacity: 0.75;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.pricing-original-price.hidden {
  display: none !important;
}

.pricing-current-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
}

.pricing-price-amount {
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  transition: all 0.2s ease;
}

.pricing-card.selected .pricing-price-amount {
  text-shadow: 0 0 18px rgba(6, 182, 212, 0.5);
}

.pricing-price-unit {
  font-size: 0.88rem;
  font-weight: 800;
  color: #38bdf8;
}

.pricing-discount-pill {
  display: inline-block;
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 6px;
  margin-left: 4px;
}

.pricing-discount-pill.hidden {
  display: none !important;
}

.pricing-billing-cycle {
  font-size: 0.71rem;
  color: #64748b;
  margin-top: 2px;
}

.pricing-card.selected .pricing-billing-cycle {
  color: #94a3b8;
}

/* Card Selection Indicator / Footer */
.pricing-card-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}

.pricing-radio-indicator {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.8px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
}

.radio-glow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.22s ease;
}

.pricing-card.selected .pricing-radio-indicator {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.2);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

.pricing-card.selected .radio-glow-dot {
  background: #06b6d4;
  box-shadow: 0 0 6px #06b6d4;
}

.pricing-select-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  transition: color 0.2s ease;
}

.pricing-card.selected .pricing-select-status {
  color: #38bdf8;
  font-weight: 800;
}

/* ====================================================
   Smart Coupon Bar
   ==================================================== */
.upgrade-coupon-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upgrade-coupon-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 5px 6px 5px 12px;
  transition: all 0.22s ease;
}

.upgrade-coupon-bar:focus-within {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.4), 0 0 16px rgba(6, 182, 212, 0.2);
}

.coupon-field-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.coupon-icon-svg {
  color: #06b6d4;
  flex-shrink: 0;
  opacity: 0.85;
}

.upgrade-coupon-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: inherit;
}

.upgrade-coupon-input::placeholder {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}

.upgrade-coupon-apply-btn {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  border: none;
  color: #ffffff;
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
  white-space: nowrap;
}

.upgrade-coupon-apply-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.5);
}

.upgrade-coupon-apply-btn:active {
  transform: translateY(0);
}

/* Coupon Alert Messages */
.upgrade-coupon-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  animation: fadeIn 0.2s ease;
}

.upgrade-coupon-alert.hidden {
  display: none !important;
}

.upgrade-coupon-alert.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.upgrade-coupon-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.coupon-remove-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.coupon-remove-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

/* ====================================================
   Main Upgrade Checkout Button
   ==================================================== */
.upgrade-checkout-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upgrade-pro-checkout-btn {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #06b6d4 0%, #2563eb 50%, #9333ea 100%);
  background-size: 200% auto;
  border: none;
  border-radius: 12px;
  padding: 13px 24px;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.38), 0 0 20px rgba(147, 51, 234, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.upgrade-pro-checkout-btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.55), 0 0 30px rgba(147, 51, 234, 0.4);
}

.upgrade-pro-checkout-btn:active {
  transform: translateY(0);
}

.checkout-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.checkout-old-price {
  text-decoration: line-through;
  opacity: 0.7;
  font-size: 0.88em;
  font-weight: 600;
  margin-right: 4px;
  color: #e2e8f0;
}

.checkout-old-price.hidden {
  display: none !important;
}

.checkout-current-price {
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.checkout-arrow-icon {
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease;
}

.upgrade-pro-checkout-btn:hover .checkout-arrow-icon {
  transform: translateX(4px);
}

.upgrade-security-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.73rem;
  color: #94a3b8;
}

.security-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.security-dot {
  color: #475569;
}

/* ====================================================
   Step 2: Payment Method Selection Styles
   ==================================================== */
.upgrade-payment-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.upgrade-payment-section.hidden,
.upgrade-plans-section.hidden {
  display: none !important;
}

/* Nav Bar & Header */
.payment-step-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 4px;
}

.payment-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-back-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.45);
  color: #22d3ee;
  transform: translateX(-2px);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.2);
}

.payment-back-btn svg {
  transition: transform 0.2s ease;
}

.payment-back-btn:hover svg {
  transform: translateX(-3px);
}

.payment-order-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8rem;
  color: #94a3b8;
  backdrop-filter: blur(8px);
}

.summary-plan-label {
  color: #e2e8f0;
  font-weight: 700;
}

.summary-badge-dot {
  color: #475569;
}

.summary-total-label {
  color: #94a3b8;
}

.summary-price-value {
  color: #38bdf8;
  font-weight: 900;
  font-size: 0.88rem;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* Heading */
.payment-step-heading {
  text-align: center;
  margin: 2px 0 6px;
}

.payment-heading-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.payment-heading-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Payment Methods Grid */
.payment-methods-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Payment Method Card */
.payment-method-card {
  position: relative;
  background: rgba(15, 23, 42, 0.65);
  border: 1.5px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.payment-method-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.45);
  background: rgba(18, 25, 44, 0.85);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(6, 182, 212, 0.15);
}

/* Card Selected State: Cyan Glow & Border */
.payment-method-card.selected {
  transform: translateY(-2px);
  border-color: #06b6d4;
  background: linear-gradient(165deg, rgba(6, 182, 212, 0.12) 0%, rgba(18, 24, 40, 0.96) 55%, rgba(147, 51, 234, 0.12) 100%);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.75),
    0 0 25px rgba(6, 182, 212, 0.32),
    0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Card Header */
.payment-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.payment-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.mobile-banking-icon {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(226, 19, 110, 0.18) 100%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #22d3ee;
}

.card-payment-icon {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
  border: 1px solid rgba(147, 51, 234, 0.35);
  color: #c084fc;
}

.payment-method-card.selected .mobile-banking-icon {
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.4);
}

.payment-method-card.selected .card-payment-icon {
  box-shadow: 0 0 14px rgba(147, 51, 234, 0.4);
}

.payment-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payment-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-method-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.payment-pill-fast {
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  letter-spacing: 0.04em;
}

.payment-pill-ssl {
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(147, 51, 234, 0.18);
  color: #c084fc;
  border: 1px solid rgba(147, 51, 234, 0.35);
  letter-spacing: 0.04em;
}

.payment-method-sub {
  font-size: 0.77rem;
  color: #94a3b8;
}

.payment-card-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-brand-logos {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.brand-bkash {
  background: rgba(226, 19, 110, 0.16);
  color: #f43f8e;
  border: 1px solid rgba(226, 19, 110, 0.35);
}

.brand-nagad {
  background: rgba(247, 147, 30, 0.16);
  color: #fb923c;
  border: 1px solid rgba(247, 147, 30, 0.35);
}

.brand-rocket {
  background: rgba(140, 52, 148, 0.2);
  color: #c084fc;
  border: 1px solid rgba(140, 52, 148, 0.38);
}

.brand-upay {
  background: rgba(0, 102, 178, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(0, 102, 178, 0.38);
}

.brand-visa {
  background: rgba(26, 31, 113, 0.38);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.brand-mastercard {
  background: rgba(235, 0, 27, 0.18);
  color: #f87171;
  border: 1px solid rgba(235, 0, 27, 0.35);
}

.brand-applepay {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Radio Indicator */
.payment-card-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-card-radio .radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06b6d4;
  opacity: 0;
  transform: scale(0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.payment-method-card.selected .payment-card-radio {
  border-color: #06b6d4;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.payment-method-card.selected .payment-card-radio .radio-dot {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 8px #06b6d4;
}

/* Dynamic Expansion Drawer (Collapsible) */
.payment-card-drawer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.28s ease,
    margin-top 0.28s ease,
    padding-top 0.28s ease;
  margin-top: 0;
  padding-top: 0;
}

.payment-card-drawer.expanded {
  max-height: 520px;
  opacity: 1;
  pointer-events: auto;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Instruction Banner */
.payment-instruction-banner {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.24);
  border-radius: 11px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.instruction-banner-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.instruction-banner-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.instruction-main-text {
  font-size: 0.88rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.highlight-cyan {
  color: #38bdf8;
  font-weight: 800;
  font-size: 0.95rem;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.highlight-phone {
  color: #f8fafc;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: monospace, var(--font-main);
  background: rgba(15, 23, 42, 0.7);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.phone-copy-group {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  vertical-align: middle;
}

.instruction-copy-btn {
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(6, 182, 212, 0.38);
  color: #22d3ee;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.instruction-copy-btn:hover {
  background: rgba(6, 182, 212, 0.28);
  color: #ffffff;
  border-color: #06b6d4;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.35);
}

.instruction-copy-btn.copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.instruction-steps-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.4;
}

.instruction-steps-hint strong {
  color: #e2e8f0;
}

/* TrxID Input & Verify Action Row */
.payment-trx-action-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.trx-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trx-input-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trx-input-required {
  color: #f43f5e;
}

.trx-input-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.trx-field-icon {
  position: absolute;
  left: 12px;
  color: #64748b;
  pointer-events: none;
}

.trx-input-field {
  width: 100%;
  background: rgba(11, 17, 32, 0.85);
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 10px 14px 10px 36px;
  color: #f8fafc;
  font-family: monospace, var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.trx-input-field::placeholder {
  font-family: var(--font-main);
  font-weight: 400;
  letter-spacing: normal;
  color: #64748b;
  font-size: 0.82rem;
}

.trx-input-field:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25);
  background: rgba(15, 23, 42, 0.95);
}

/* Verify Payment Button */
.verify-payment-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
  overflow: hidden;
}

.verify-payment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.5);
  background: linear-gradient(135deg, #22d3ee 0%, #0284c7 100%);
}

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

.verify-payment-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Payment Alerts */
.payment-verify-alert {
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 0.8rem;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.25s ease forwards;
}

.payment-verify-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #fca5a5;
}

.payment-verify-alert.success {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #6ee7b7;
}

/* Card Payment Drawer Elements */
.card-redirect-banner {
  background: rgba(147, 51, 234, 0.08);
  border: 1px solid rgba(147, 51, 234, 0.25);
  border-radius: 11px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.card-redirect-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.card-redirect-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.redirect-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #e9d5ff;
}

.redirect-desc {
  margin: 0;
  font-size: 0.76rem;
  color: #c084fc;
  line-height: 1.4;
  opacity: 0.9;
}

/* Pay Securely Button */
.pay-securely-btn {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #9333ea 0%, #2563eb 50%, #06b6d4 100%);
  background-size: 200% auto;
  border: none;
  border-radius: 12px;
  padding: 13px 24px;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.38), 0 0 20px rgba(6, 182, 212, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.pay-securely-btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(147, 51, 234, 0.55), 0 0 30px rgba(6, 182, 212, 0.4);
}

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

.pay-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.pay-btn-label strong {
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.pay-btn-arrow {
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease;
}

.pay-securely-btn:hover .pay-btn-arrow {
  transform: translateX(4px);
}

/* Payment Step Trust Row */
.payment-step-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.73rem;
  color: #94a3b8;
  margin-top: 2px;
}

@media (max-width: 600px) {
  .payment-trx-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .verify-payment-btn {
    width: 100%;
  }

  .payment-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .payment-card-right {
    width: 100%;
    justify-content: space-between;
    margin-top: 4px;
  }
}

@media (max-width: 640px) {
  .upgrade-pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Responsive adjustments for Settings Modal */
@media (max-width: 768px) {
  .settings-modal-card {
    width: 96%;
    max-height: 94vh;
  }

  .settings-modal-body {
    flex-direction: column;
    min-height: auto;
  }

  .settings-tabs-sidebar {
    width: 100%;
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
    padding: 16px;
    gap: 10px;
  }

  .settings-tab-list {
    flex-direction: row;
    overflow-x: auto;
  }

  .settings-tab-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .tab-active-indicator {
    display: none;
  }

  .settings-content-area {
    padding: 20px;
  }

  .upgrade-perks-list {
    grid-template-columns: 1fr;
  }
}

/* ====================================================
   Single-Device Session Conflict Alert Modal
   ==================================================== */
#session-conflict-modal {
  z-index: 99999;
}

.session-conflict-card {
  position: relative;
  max-width: 460px;
  width: 92%;
  background: rgba(13, 17, 28, 0.96);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 20px;
  padding: 32px 28px 28px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(239, 68, 68, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: modalScale 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.session-conflict-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.conflict-icon-halo {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.22) 0%, rgba(239, 68, 68, 0.05) 70%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.conflict-icon-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(239, 68, 68, 0.45);
  animation: conflictPulse 2s infinite ease-out;
}

@keyframes conflictPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.2;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
}

.conflict-device-icon {
  color: #f87171;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6));
}

.conflict-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
}

.conflict-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.conflict-title {
  margin: 4px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.conflict-message {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fca5a5;
  line-height: 1.45;
}

.conflict-message-bn {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
}

.conflict-data-safe-banner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 4px;
  box-sizing: border-box;
}

.safe-banner-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
}

.safe-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.safe-banner-text strong {
  font-size: 0.8rem;
  font-weight: 700;
  color: #34d399;
}

.safe-banner-text span {
  font-size: 0.74rem;
  color: #a7f3d0;
  line-height: 1.35;
}

.conflict-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.conflict-btn-primary {
  width: 100%;
  padding: 11px 18px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.conflict-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.conflict-btn-secondary {
  width: 100%;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.conflict-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

/* ====================================================
   PRO Dynamic Subscriber Styles & Compact Token Badge
   ==================================================== */
.token-badge.is-pro-member {
  height: 32px;
  padding: 0 11px;
  gap: 5px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(168, 85, 247, 0.14) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25), inset 0 0 8px rgba(245, 158, 11, 0.08);
  box-sizing: border-box;
}

.token-badge.is-pro-member:hover,
.token-badge.is-pro-member[aria-expanded="true"] {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24) 0%, rgba(168, 85, 247, 0.2) 100%);
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.45), inset 0 0 10px rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}

.token-badge-inner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.pro-unlimited-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.pro-unlimited-pill.hidden {
  display: none !important;
}

.pro-unlimited-header-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fef08a;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  text-shadow: 0 0 6px rgba(254, 240, 138, 0.4);
  line-height: 1;
}

.pro-glow-coin {
  font-size: 0.92rem;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.6));
}

/* Glowing PRO Badge in Dropdown */
.plan-pro-badge.glowing {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
  border: 1px solid rgba(245, 158, 11, 0.6);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  font-family: var(--font-main);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6), 0 0 25px rgba(236, 72, 153, 0.35);
  animation: proBadgeGlow 2.5s infinite ease-in-out;
}

@keyframes proBadgeGlow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5), 0 0 20px rgba(236, 72, 153, 0.3);
  }
  50% {
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.8), 0 0 28px rgba(236, 72, 153, 0.55);
  }
}

/* Manage Subscription Button in Dropdown */
.token-upgrade-btn.manage-sub-mode {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(6, 182, 212, 0.25) 100%);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #f1f5f9;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
}

.token-upgrade-btn.manage-sub-mode:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.38) 0%, rgba(6, 182, 212, 0.38) 100%);
  border-color: #a855f7;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
  transform: translateY(-1px);
}

/* Tab PRO Badge Active State in Settings Sidebar */
.tab-pro-badge.active-pro {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: rgba(16, 185, 129, 0.5);
  color: #ecfdf5;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* ====================================================
   PRO Active User View & Real-time Countdown Dashboard
   ==================================================== */
.pro-active-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 2;
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-active-dashboard.hidden {
  display: none !important;
}

.pro-active-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pro-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.pro-status-badge.glowing {
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
  animation: proPulse 2.4s infinite ease-in-out;
}

@keyframes proPulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
  }
  50% {
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.5);
  }
}

.pro-active-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.02em;
}

.pro-active-subtitle {
  font-size: 0.92rem;
  color: #94a3b8;
  margin: 0;
  max-width: 520px;
  line-height: 1.5;
}

/* Central Countdown Banner */
.pro-countdown-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(245, 158, 11, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.countdown-pulse-orb {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 80px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

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

.countdown-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.countdown-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: blinkDot 1.6s infinite ease-in-out;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.countdown-plan-tag {
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.countdown-clock-display {
  font-family: 'Outfit', var(--font-main), sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: -0.01em;
  padding: 14px 0;
  text-shadow: 0 0 18px rgba(251, 191, 36, 0.55), 0 2px 4px rgba(0, 0, 0, 0.8);
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.countdown-dates-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
}

.countdown-meta-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.countdown-meta-col .meta-label {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.countdown-meta-col .meta-value {
  font-size: 0.86rem;
  color: #e2e8f0;
  font-weight: 600;
}

.countdown-meta-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.highlight-gold {
  color: #fef08a !important;
}

/* Active Perks Grid */
.pro-active-perks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.active-perk-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
}

.active-perk-card:hover {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.active-perk-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1;
}

.active-perk-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.active-perk-details strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f1f5f9;
}

.active-perk-details span {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.35;
}

.active-perk-check {
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
  align-self: flex-start;
}

/* Purchase Locked Banner */
.pro-purchase-locked-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 12px;
  padding: 14px 18px;
}

.locked-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.locked-banner-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.locked-banner-text strong {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fbbf24;
}

.locked-banner-text span {
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .pro-active-perks-grid {
    grid-template-columns: 1fr;
  }
  .countdown-clock-display {
    font-size: 1.35rem;
  }
  .countdown-dates-row {
    flex-direction: column;
    gap: 8px;
  }
  .countdown-meta-divider {
    display: none;
  }
}