:root {
  --bg-primary: #0b0f17;
  --bg-secondary: #111827;
  --bg-card: #172033;
  --bg-card-hover: #1e293b;
  --border-color: #26334d;
  --border-focus: #4f46e5;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #64748b;
  
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-hover: #4338ca;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.5);
  --glow-primary: 0 0 24px rgba(79, 70, 229, 0.25);
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography & Utilities */
.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  height: 68px;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
  background: #0d1021;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #4f46e5 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: #3b4d6e;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Views Management */
.page-view {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  animation: fadeIn 0.3s ease;
}

.page-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero-section {
  text-align: center;
  max-width: 900px;
  margin: 20px auto 70px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  flex-shrink: 0;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 780px;
  margin: 0 auto 36px;
  text-wrap: balance;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.telephony-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.telephony-status-pill code {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-indicator.online {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

/* Showcase Card */
.showcase-card {
  background: linear-gradient(180deg, rgba(23, 32, 51, 0.9) 0%, rgba(17, 24, 39, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg), var(--glow-primary);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-cyan) 50%, #ec4899 100%);
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.showcase-avatar {
  position: relative;
  width: 54px;
  height: 54px;
  background: #312e81;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #6366f1;
}

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

.avatar-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: var(--accent-green);
  border: 2px solid var(--bg-primary);
  border-radius: 50%;
  z-index: 2;
}

.showcase-meta {
  flex: 1;
  margin-left: 16px;
}

.showcase-teacher {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.showcase-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.latency-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-align: right;
}

.latency-val {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #34d399;
}

.latency-lbl {
  font-size: 0.78rem;
  color: #a7f3d0;
  letter-spacing: 0.3px;
}

.audio-demo-player {
  background: rgba(11, 15, 23, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.play-btn:hover {
  transform: scale(1.05);
  background: var(--primary-light);
}

.waveform-container {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  flex-shrink: 0;
}

.waveform-container .bar {
  width: 4px;
  height: 10px;
  background: #4f46e5;
  border-radius: 2px;
  transition: height 0.1s ease;
}

.audio-playing .waveform-container .bar:nth-child(2n) {
  animation: pulseHeight 0.6s infinite ease-in-out alternate;
}

.audio-playing .waveform-container .bar:nth-child(2n+1) {
  animation: pulseHeight 0.9s infinite ease-in-out alternate;
}

@keyframes pulseHeight {
  0% { height: 6px; background: #6366f1; }
  100% { height: 32px; background: #ec4899; }
}

.demo-caption {
  font-size: 0.95rem;
  color: #e2e8f0;
  font-style: italic;
  flex: 1;
}

.showcase-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.metric-item {
  text-align: center;
}

.m-val {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
}

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

/* Features Grid */
.features-section {
  padding-top: 40px;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #3b4d6e;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Dashboard View */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.student-profile-summary {
  display: flex;
  align-items: center;
  gap: 18px;
}

.student-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1e1b4b;
  border: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}

.student-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.student-name-row h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.level-tag {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.hsk-tag {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.cname-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.cname-pill:focus-within {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
  background: rgba(234, 179, 8, 0.2);
}

.cname-pill-label {
  color: #fbbf24;
  font-weight: 700;
  white-space: nowrap;
  user-select: none;
}

.cname-inline-input {
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(251, 191, 36, 0.4);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  width: 62px;
  outline: none;
  padding: 1px 4px;
  text-align: center;
  border-radius: 3px;
  transition: all var(--transition-fast);
}

.cname-inline-input:hover {
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: #fbbf24;
}

.cname-inline-input:focus {
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid #fbbf24;
  width: 78px;
}

.cname-pill-status {
  color: #10b981;
  font-size: 0.8rem;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.7);
  transition: all var(--transition-fast);
  user-select: none;
}

.cname-pill-status.saved {
  opacity: 1;
  transform: scale(1);
}

.student-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dashboard-action-group {
  display: flex;
  gap: 12px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 20px;
}

.stat-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-number.mode-badge {
  font-size: 1.35rem;
  color: #38bdf8;
  margin-top: 6px;
}

.stat-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-bottom: 8px;
  overflow: hidden;
}

.stat-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #a855f7 100%);
  border-radius: 3px;
}

.stat-hint {
  font-size: 0.78rem;
  color: var(--text-sub);
}

/* Tabs Navigation */
.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
  gap: 8px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
}

/* Tab Panes */
.tab-pane {
  display: none;
}

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

.pane-header {
  margin-bottom: 24px;
}

.pane-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pane-header p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Calls List */
.calls-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.call-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s;
}

.call-card:hover {
  border-color: #3b4d6e;
}

.call-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.call-id-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.call-num-tag {
  background: #312e81;
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.call-date {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.call-duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Voice Memo */
.voice-memo-box {
  background: rgba(30, 27, 75, 0.45);
  border-left: 3px solid #818cf8;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
}

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

.memo-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #c7d2fe;
}

.memo-body {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Conversation Transcript */
.transcript-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.transcript-toggle-btn:hover {
  color: #fff;
  border-color: #475569;
}

.transcript-container {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.transcript-container.open {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bubble {
  max-width: 82%;
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 0.94rem;
  line-height: 1.5;
}

.bubble-assistant {
  align-self: flex-start;
  background: #1e293b;
  color: #f1f5f9;
  border-bottom-left-radius: 4px;
  border: 1px solid #334155;
}

.bubble-user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble-author {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.75;
}

.bubble-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.turn-replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  line-height: 1.2;
}

.turn-replay-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.turn-replay-btn.playing {
  background: #10b981 !important;
  color: #fff !important;
  border-color: #059669 !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.turn-replay-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

.turn-replay-btn svg {
  flex-shrink: 0;
}

/* Full Call Audio Player Bar */
.full-audio-player-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card-sub, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  padding: 8px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.btn-full-audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-color, #4f46e5);
  color: #fff;
  border: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-full-audio-toggle:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-full-audio-toggle.playing {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.btn-full-audio-toggle.loading {
  opacity: 0.6;
  pointer-events: none;
}

.full-audio-slider {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  accent-color: var(--primary-color, #4f46e5);
}

.full-audio-time {
  font-size: 0.78rem;
  color: var(--text-sub, rgba(255, 255, 255, 0.7));
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Flashcards Grid & 3D Flip */
.flashcards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.flashcard-wrap {
  perspective: 1000px;
  height: 240px;
  cursor: pointer;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.flashcard-wrap.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-front {
  background: linear-gradient(135deg, #172033 0%, #1e293b 100%);
}

.card-back {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  transform: rotateY(180deg);
  border-color: #4338ca;
}

.card-front .card-top,
.card-back .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-level-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 2px 8px;
  border-radius: 4px;
}

.card-state-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.card-state-badge.mastered {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.card-state-badge.learning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.card-word {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
}

.card-pinyin {
  font-size: 1.1rem;
  color: #38bdf8;
  font-weight: 500;
}

.card-meaning {
  font-size: 0.95rem;
  color: #e2e8f0;
  margin-top: 8px;
}

.card-zipf {
  font-size: 0.76rem;
  color: var(--text-sub);
}

.card-hint {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.card-actions button {
  flex: 1;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-mark-mastered {
  background: var(--accent-green);
  color: #064e3b;
}

.btn-mark-practice {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Telephony Guide & Settings */
.telephony-guide-card, .settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 800px;
  margin: 0 auto;
}

.guide-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.step-card {
  display: flex;
  gap: 18px;
  background: rgba(11, 15, 23, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  align-items: flex-start;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: #0b0f17;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalScale 0.25s ease;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
}

.modal-tip {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.quick-user-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.chip:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border-color: #6366f1;
}

.modal-footer {
  padding: 16px 24px;
  background: rgba(11, 15, 23, 0.5);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  background: #1e293b;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: var(--accent-green);
  background: #064e3b;
  color: #ecfdf5;
}

.toast.error {
  border-color: var(--accent-rose);
  background: #4c0519;
  color: #fff1f2;
}

.loading-spinner {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Interactive Web Telephony Call Dock */
.web-call-dock {
  background: linear-gradient(135deg, rgba(23, 32, 51, 0.95) 0%, rgba(17, 24, 39, 0.98) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.web-call-dock::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #10b981 0%, #6366f1 50%, #ec4899 100%);
}

.web-call-dock.in-call {
  border-color: #10b981;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.call-dock-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.dock-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.dock-avatar {
  position: relative;
  width: 58px;
  height: 58px;
  background: #1e1b4b;
  border: 2px solid #6366f1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent-green);
  animation: pulseStatic 2.5s infinite;
  opacity: 0.6;
  pointer-events: none;
}

.pulse-ring.active {
  border-color: var(--primary-light);
  animation: pulseFast 1s infinite;
}

.sound-wave-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent-green);
  animation: pulseFast 1.2s infinite;
  opacity: 0.7;
  pointer-events: none;
}

@keyframes pulseStatic {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes pulseFast {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.dock-avatar.incall {
  border-color: var(--accent-green);
  animation: auraGlow 2s infinite alternate;
}

@keyframes auraGlow {
  0% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
  100% { box-shadow: 0 0 24px rgba(16, 185, 129, 0.8); }
}

.dock-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dock-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  flex-wrap: wrap;
}

.dock-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Call Mode Selection & Intent Input */
.call-mode-container {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mode-pill-group {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 4px;
  width: fit-content;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.mode-pill.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(16, 185, 129, 0.3) 100%);
  border: 1px solid rgba(99, 102, 241, 0.5);
  color: #fff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}

.pill-icon {
  font-size: 0.95rem;
}

.rehearse-input-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
  animation: fadeIn 0.25s ease-out;
}

.rehearse-input-wrapper {
  position: relative;
}

.rehearse-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 8px;
  padding: 9px 14px;
  color: #f8fafc;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.rehearse-input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.rehearse-input::placeholder {
  color: rgba(148, 163, 184, 0.6);
  font-size: 0.82rem;
}

.intent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.intent-chip {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.76rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.intent-chip:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.archive-thread-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.65rem;
  margin-left: 4px;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.archive-thread-btn:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.6);
  color: #fff;
}

/* Structured Call Review */
.call-review-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.accomplishment-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 78, 59, 0.15) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left: 3px solid #10b981;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.accomplishment-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.accomplishment-summary {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 6px;
}

.accomplishment-quote {
  font-size: 0.85rem;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  font-style: italic;
}

.phrasing-tips-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #6366f1;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.phrasing-tips-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.tip-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.tip-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tip-compare {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.tip-original {
  color: #94a3b8;
  text-decoration: line-through;
  opacity: 0.85;
}

.tip-arrow {
  color: #818cf8;
  font-weight: bold;
}

.tip-better {
  color: #e0e7ff;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.tip-explanation {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 2px;
}

.status-badge-failed {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.status-badge-processing {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde047;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.sip-online-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.sip-online-badge.ringing {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fde047;
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.call-timer-badge {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: monospace;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
}

.incall-wave-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.w-bar {
  width: 3px;
  height: 12px;
  background: #10b981;
  border-radius: 2px;
  animation: inCallWave 0.8s infinite ease-in-out alternate;
}

.w-bar:nth-child(2n) { animation-duration: 0.5s; }
.w-bar:nth-child(3n) { animation-duration: 0.7s; }

@keyframes inCallWave {
  0% { height: 4px; background: #6366f1; }
  100% { height: 18px; background: #10b981; }
}

.incall-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.dock-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-call-start {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}

.btn-call-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.6);
}

.btn-call-hangup {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
  transition: all 0.2s ease;
}

.btn-call-hangup:hover {
  background: #be123c;
  transform: translateY(-1px);
}

.btn-icon.muted {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
  border-color: #f43f5e;
}

/* ========================================================
   Landing Page Extensions: Comparison, Testimonials, FAQ, CTA
   ======================================================== */

.section-badge-center {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

/* 1. Comparison Matrix (Why imTalker) */
.comparison-section {
  padding: 80px 0 50px;
  text-align: center;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  text-align: left;
  align-items: stretch;
}

.comparison-card {
  background: rgba(18, 22, 38, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.comparison-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
}

.comparison-card.featured {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.14) 0%, rgba(20, 24, 45, 0.95) 100%);
  border: 1.5px solid rgba(129, 140, 248, 0.5);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.2);
  position: relative;
}

.comparison-card.featured:hover {
  border-color: #818cf8;
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.35);
}

.comp-badge-highlight {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #6366f1, #a855f7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}

.comp-header {
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 20px;
}

.comp-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.comp-tag.traditional {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.comp-tag.premium {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.comp-price {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.comp-price span {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted, #94a3b8);
}

.comp-price.accent {
  color: #38bdf8;
}

.comp-desc {
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
  margin: 0;
}

.comp-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.comp-list.negative li {
  color: #94a3b8;
}

.comp-list.positive li {
  color: #e2e8f0;
}

.comp-icon {
  flex-shrink: 0;
  margin-top: 3px;
}

.comp-icon.red {
  color: #f87171;
}

.comp-icon.green {
  color: #10b981;
}

.comp-cta {
  margin-top: 10px;
}

/* 2. Testimonials Section */
.testimonials-section {
  padding: 80px 0 50px;
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  text-align: left;
}

.testimonial-card {
  background: rgba(18, 22, 38, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.35);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.user-name {
  font-weight: 800;
  font-size: 0.98rem;
  color: #fff;
}

.user-role {
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
}

.oral-badge {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.testimonial-text {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin: 0;
}

/* 3. FAQ Section & Accordion */
.faq-section, .pricing-faq-container {
  padding: 80px 0 50px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.faq-accordion {
  margin-top: 40px;
  text-align: left;
}

.faq-item {
  background: rgba(18, 22, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
}

.faq-item:hover {
  background: rgba(26, 32, 54, 0.6);
  border-color: rgba(99, 102, 241, 0.35);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  gap: 16px;
}

.faq-chevron {
  color: #94a3b8;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: #818cf8;
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 26px;
  color: #94a3b8;
  font-size: 0.94rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 280px;
  opacity: 1;
  padding: 0 26px 22px 26px;
}

.faq-answer p {
  margin: 0;
}

/* 4. Final CTA Banner */
.landing-cta-banner {
  margin: 70px 0 50px;
  padding: 60px 40px;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.28) 0%, rgba(15, 18, 33, 0.95) 75%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.cta-banner-content {
  max-width: 720px;
  margin: 0 auto;
}

.cta-banner-content h2 {
  font-size: 2.3rem;
  font-weight: 900;
  color: #fff;
  margin: 20px 0 14px;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.cta-banner-content p {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
}

.cta-guarantee-note {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.86rem;
  color: #34d399;
  font-weight: 600;
  flex-wrap: wrap;
}

/* 5. SaaS Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 80px;
  padding: 60px 0 30px;
  background: rgba(11, 13, 23, 0.6);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 0 24px 40px;
}

.footer-brand-col .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-slogan {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-domain {
  font-size: 0.85rem;
  color: #818cf8;
}

.footer-nav-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-nav-col a {
  display: block;
  font-size: 0.86rem;
  color: #94a3b8;
  margin-bottom: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.footer-nav-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: #64748b;
}

.footer-security-tags {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ========================================================
   DEDICATED PRICING PAGE STYLES (#view-pricing)
   ======================================================== */

.pricing-page-header {
  text-align: center;
  max-width: 820px;
  margin: 40px auto 44px;
  padding: 0 20px;
}

.pricing-page-title {
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  margin: 18px 0 14px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.pricing-page-subtitle {
  font-size: 1.08rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 24px;
}

.payment-trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0 auto 36px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
}

.trust-divider {
  color: rgba(255, 255, 255, 0.2);
}

/* Modern Segmented Pill Billing Switcher */
.billing-switcher-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.billing-switcher {
  display: inline-flex;
  padding: 6px;
  background: #121526;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
  gap: 6px;
}

.billing-switch-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.billing-switch-btn:hover {
  color: #fff;
}

.billing-switch-btn.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.45);
}

.save-badge {
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Dedicated Pricing Cards Grid */
.pricing-cards-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  margin-bottom: 40px;
}

.pricing-card-box {
  background: rgba(18, 22, 38, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-width: 0;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card-box:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.pricing-card-box.featured-card {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.15) 0%, rgba(18, 22, 38, 0.95) 100%);
  border: 2px solid #6366f1;
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.25);
}

.pricing-card-box.featured-card:hover {
  border-color: #818cf8;
  box-shadow: 0 22px 52px rgba(99, 102, 241, 0.4);
}

.featured-top-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #6366f1, #a855f7);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}

.pricing-card-box .card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 24px;
}

.plan-badge-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.plan-badge-label.accent {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.plan-badge-label.purple {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
}

.plan-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.plan-summary {
  font-size: 0.88rem;
  color: #94a3b8;
  min-height: 42px;
  line-height: 1.45;
  margin-bottom: 12px;
}

.plan-price-block {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 12px 0 6px;
}

.plan-price-block .currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e2e8f0;
}

.plan-price-block .price-figure {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}

.plan-price-block .price-duration {
  font-size: 0.92rem;
  color: #94a3b8;
  font-weight: 600;
}

.annual-effective-text {
  font-size: 0.84rem;
  color: #34d399;
  font-weight: 600;
  margin-bottom: 10px;
}

.plan-value-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 4px;
}

.plan-value-pill.muted {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
}

.plan-value-pill.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.plan-value-pill.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.card-features-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.48;
}

.check-svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-featured-glow {
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45);
}

/* Refined Add-on Fuel Pack Strip */
.fuel-pack-strip {
  background: linear-gradient(90deg, rgba(26, 31, 56, 0.85) 0%, rgba(35, 29, 64, 0.85) 100%);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 20px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 70px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.fuel-pack-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fuel-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fuel-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.fuel-title-row h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.fuel-pill {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}

.fuel-pack-info p {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.fuel-pack-right {
  flex-shrink: 0;
}

/* Feature Comparison Table Section */
.matrix-section {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 24px;
  text-align: center;
}

.matrix-table-wrapper {
  margin-top: 40px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(18, 22, 38, 0.6);
  backdrop-filter: blur(16px);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.matrix-table th, .matrix-table td {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
}

.matrix-table th {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-weight: 800;
  font-size: 0.96rem;
}

.matrix-table th.col-feature {
  width: 32%;
}

.matrix-table th.col-plan {
  width: 22.6%;
  text-align: center;
}

.matrix-table td:not(.feature-cell) {
  text-align: center;
}

.matrix-table td.highlight, .matrix-table th.highlight {
  background: rgba(99, 102, 241, 0.08);
  border-left: 1px solid rgba(99, 102, 241, 0.2);
  border-right: 1px solid rgba(99, 102, 241, 0.2);
}

.feature-cell strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 2px;
}

.feature-cell span {
  font-size: 0.8rem;
  color: #94a3b8;
}

.table-check {
  color: #10b981;
  font-weight: 900;
  font-size: 1.15rem;
}

/* Subscription Management in Dashboard */
.subscription-overview-card {
  background: var(--card-bg, #181b2e);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  padding: 30px;
}

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

.sub-plan-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sub-plan-badge .plan-crown {
  font-size: 2.2rem;
  background: rgba(99, 102, 241, 0.15);
  padding: 10px;
  border-radius: 14px;
}

.sub-plan-badge h4 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 4px;
}

.sub-plan-badge p {
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
  margin: 0;
}

.sub-status-tag {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.sub-quota-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 28px;
}

.quota-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 10px;
}

.quota-number strong {
  font-size: 1.1rem;
  color: #fff;
}

.quota-progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 12px;
}

.quota-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #6366f1);
  border-radius: 5px;
  transition: width 0.4s ease;
}

.quota-hint-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-sub, #64748b);
}

.sub-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sub-action-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 20px;
}

.sub-action-card h5 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 6px;
}

.sub-action-card p {
  font-size: 0.84rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 16px;
  min-height: 40px;
}

.nav-quota-pill {
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-quota-pill:hover {
  background: rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

/* Mobile Drawer & Hamburger Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: #cbd5e1;
  border-radius: 2px;
  transition: all 0.25s ease-in-out;
}

.mobile-menu-btn.open .hamburger-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.open .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open .hamburger-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(11, 15, 23, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px 24px;
  z-index: 99;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  flex-direction: column;
  gap: 14px;
}

.mobile-drawer.open {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer-link {
  color: #f1f5f9;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.mobile-drawer-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-lang-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-lang-chip.active {
  background: rgba(99, 102, 241, 0.25);
  border-color: #6366f1;
  color: #fff;
}



/* ==============================================================================
   i18n Multi-Language Switcher & Fixed Target Language Badge
   ============================================================================== */
.lang-switcher-wrapper {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main, #f8fafc);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #13172c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  padding: 6px;
  min-width: 170px;
  z-index: 1000;
  display: none;
  backdrop-filter: blur(12px);
}

.lang-dropdown.open {
  display: block;
  animation: fadeInDown 0.15s ease-out;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-main, #f8fafc);
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.lang-option:hover {
  background: rgba(99, 102, 241, 0.18);
  color: #fff;
}

.lang-option.active {
  background: rgba(99, 102, 241, 0.28);
  font-weight: 700;
  color: #818cf8;
}

/* Fixed Target Language Pill */
.target-lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fca5a5;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  user-select: none;
  cursor: help;
}

/* ==============================================================================
   RTL (Arabic) Layout Support
   ============================================================================== */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .hero-subtitle,
[dir="rtl"] .features-header,
[dir="rtl"] .pricing-header,
[dir="rtl"] .demo-caption,
[dir="rtl"] .showcase-meta,
[dir="rtl"] .call-caption-box {
  text-align: right;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-option {
  text-align: right;
}

[dir="rtl"] .brand-logo {
  margin-right: 0;
  margin-left: 12px;
}

[dir="rtl"] .hero-cta-group,
[dir="rtl"] .nav-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .modal-close-x {
  right: auto;
  left: 18px;
}

[dir="rtl"] .pricing-card-box .card-top {
  align-items: flex-start;
}

/* ==============================================================================
   Clean Sign-In Modal (Google Identity)
   ============================================================================== */
.login-modal-box {
  background: #111428;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  max-width: 440px;
  width: 90%;
  padding: 36px 28px;
  text-align: center;
  position: relative;
}

.login-modal-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  display: block;
}

.login-modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.login-modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 24px;
  line-height: 1.5;
}

.google-btn-slot {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  min-height: 48px;
}

.login-modal-footer {
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.4;
  margin-top: 20px;
}

.login-modal-footer a {
  color: var(--primary-light, #818cf8);
  text-decoration: underline;
}

.modal-close-x {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}

.modal-close-x:hover {
  color: #fff;
}

/* ==============================================================================
   Master Responsive Media Queries (Absolute override at end of stylesheet)
   ============================================================================== */
@media (max-width: 960px) {
  .hero-title { font-size: 2.3rem; }
  .features-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; gap: 20px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }
  .pricing-cards-grid { grid-template-columns: 1fr; gap: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-metrics { grid-template-columns: 1fr; }
  .fuel-pack-strip { flex-direction: column; text-align: center; padding: 24px 20px; }
  .fuel-pack-left { flex-direction: column; text-align: center; }
  .fuel-title-row { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .sub-actions-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-container { padding: 0 16px; }
  .nav-links { display: none !important; }
  .lang-switcher-wrapper { display: none !important; }
  .mobile-menu-btn { display: flex !important; align-items: center; justify-content: center; }
  .nav-user-name, .nav-logout-btn { display: none !important; }

  .btn, .btn-sm, .btn-lg {
    white-space: nowrap !important;
  }

  .nav-quota-pill {
    white-space: nowrap !important;
    font-size: 0.74rem;
    padding: 3px 8px;
    flex-shrink: 0;
  }

  .telephony-status-pill {
    padding: 6px 14px;
    font-size: 0.8rem;
    white-space: nowrap;
    max-width: 92vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-badge {
    padding: 5px 12px;
    font-size: 0.76rem;
    white-space: nowrap;
    max-width: 92vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 640px) {
  .brand-tag { display: none !important; }
  .pricing-page-title { font-size: 2rem; }
  .pricing-page-subtitle { font-size: 0.95rem; }
  .cta-banner-content h2 { font-size: 1.8rem; }
  .landing-cta-banner { padding: 40px 20px; }
  .cta-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.85rem; }
  .dashboard-header { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .billing-switch-btn { padding: 8px 16px; font-size: 0.88rem; }
  .payment-trust-bar { font-size: 0.78rem; gap: 8px; }
}
