/* ========================================
   DASHBOARD SECTION - Redesigned
   ======================================== */

.dashboard-section {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0;
}

/* ========================================
   HEADER (Compact, Account-focused)
   ======================================== */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-greeting {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.greeting-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.greeting-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.dash-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: default;
}

.account-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.account-email-sm {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--border-light);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.account-badge.subscribed {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
}

.account-badge.canceling {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

/* ========================================
   DESKTOP ACCOUNT DROPDOWN MENU
   ======================================== */
.dash-account-desktop {
  position: relative;
}

.account-pill {
  cursor: pointer;
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.account-pill:hover {
  background: var(--bg-muted);
  border-color: #d1d5db;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  z-index: 200;
  opacity: 0;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  pointer-events: none;
}

.account-dropdown.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.account-dropdown.hidden {
  display: block !important;
}

.account-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
}

.account-dropdown-header:hover {
  background: var(--bg-hover);
}

.dropdown-profile-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: auto;
}

.account-dropdown-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-dropdown-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-dropdown-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-dropdown-email {
  font-size: 0.8rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-dropdown-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 5px 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--border-light);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.account-dropdown-badge.subscribed {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border-color: #bbf7d0;
}

.account-dropdown-badge.canceling {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border-color: #fde68a;
}

.account-dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 0 12px;
}

.account-dropdown-menu {
  padding: 8px 16px 16px;
}

.account-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.account-dropdown-item:hover {
  background: var(--bg-hover);
}

.account-dropdown-item svg {
  color: var(--brand-primary);
  flex-shrink: 0;
}

.account-dropdown-text {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
}

.account-dropdown-logout svg {
  color: var(--color-error);
}

.account-dropdown-logout .account-dropdown-text {
  color: var(--color-error);
}

/* Toggle switch in dropdown */
.account-dropdown-toggle {
  flex-shrink: 0;
}

.account-dropdown-toggle-track {
  width: 40px;
  height: 24px;
  background: var(--border-medium);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 3px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.account-dropdown-toggle-track.active {
  background: var(--brand-primary);
}

.account-dropdown-toggle-thumb {
  width: 18px;
  height: 18px;
  background: var(--bg-white);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: margin-left 0.2s cubic-bezier(0.32, 0.72, 0, 1);
  margin-left: 1px;
}

.account-dropdown-toggle-track.active .account-dropdown-toggle-thumb {
  margin-left: 16px;
}

/* Sound waves visibility based on toggle state */
#dropdownSpeakToggle:has(.account-dropdown-toggle-track:not(.active)) svg .sound-waves {
  opacity: 0.3;
}

/* Desktop Dropdown Audio Group */
.dropdown-audio-group {
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
}

.dropdown-audio-group .dropdown-speak-row {
  margin: 0;
  border-radius: 12px 12px 0 0;
}

.dropdown-speed-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0px 16px 8px 16px;
  transition: opacity 0.2s ease;
}

.dropdown-audio-group.speak-disabled .dropdown-speed-row {
  opacity: 0.4;
  pointer-events: none;
}

.dropdown-speed-slider {
  flex: 1;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: #e2e8f0;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.dropdown-speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--brand-gradient);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

.dropdown-speed-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--brand-gradient);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

.dropdown-speed-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-primary);
  min-width: 45px;
  text-align: right;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.icon-btn:hover {
  background: var(--bg-light);
  color: var(--text-muted);
  border-color: #d1d5db;
}

/* ========================================
   MAIN GRID LAYOUT
   ======================================== */
.dash-main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin-bottom: 28px;
}

/* ========================================
   HERO SECTION (Primary Action)
   ======================================== */
.dash-hero {
  background: var(--brand-gradient);
  border-radius: var(--radius-2xl);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 12px 40px rgba(102, 126, 234, 0.3),
    0 4px 12px rgba(118, 75, 162, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
}

.dash-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
}

.hero-context {
  margin-bottom: 12px;
}

.hero-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Mobile motivator - hidden on desktop, shown on mobile */
.hero-motivator {
  display: none;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 28px 0;
  font-weight: 500;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 36px;
  background: var(--bg-white);
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-primary);
  cursor: pointer;
  transition: all var(--transition-spring);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.15),
    inset 0 -2px 0 rgba(0,0,0,0.05);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 36px rgba(0,0,0,0.2),
    inset 0 -2px 0 rgba(0,0,0,0.05);
}

.hero-cta:active {
  transform: translateY(-1px);
}

.hero-cta .cta-icon {
  font-size: 1.3rem;
}

.hero-alt {
  display: inline-block;
  margin-left: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  padding: 8px 0;
}

.hero-alt:hover {
  color: #ffffff;
}

/* Plain text timer info on on-timer hero */
.dash-hero.on-timer .hero-alt {
  cursor: default;
}

.dash-hero.on-timer .hero-alt:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Hero variations */
.dash-hero.new-user {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow:
    0 12px 40px rgba(16, 185, 129, 0.3),
    0 4px 12px rgba(5, 150, 105, 0.2);
}

/* ========================================
   MOTIVATOR SECTION (Next Milestone)
   ======================================== */
.dash-motivator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  text-align: center;
  gap: 12px;
}

.motivator-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.motivator-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.motivator-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.motivator-message {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.motivator-progress {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.motivator-bar {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.motivator-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius-full);
  transition: width 0.6s ease-out;
}

.motivator-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Motivator variations */
.dash-motivator.streak-focus {
  border-color: #fbbf24;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.dash-motivator.streak-focus .motivator-bar-fill {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.dash-motivator.goal-complete {
  border-color: #10b981;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.dash-motivator.goal-complete .motivator-bar-fill {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

/* ========================================
   QUICK ACTIONS (Scenario-first)
   ======================================== */
.dash-actions {
  margin-bottom: 28px;
}

.dash-actions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}

.dash-actions-header .section-label {
  margin: 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 14px 4px;
}

/* Language Switch Button & Dropdown */
.language-switch-wrapper {
  position: relative;
}

.language-switch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  height: 36px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
}

.language-switch-btn:hover {
  background: var(--bg-muted);
  border-color: #d1d5db;
}

.language-switch-btn.open {
  background: var(--bg-muted);
  border-color: var(--brand-primary);
}

.current-lang-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.current-lang-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.switch-arrow {
  color: var(--text-light);
  transition: transform 0.2s;
}

.language-switch-btn:hover .switch-arrow {
  color: var(--text-muted);
}

.language-switch-btn.open .switch-arrow {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

/* Language Dropdown Menu */
.language-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 100;
  overflow: hidden;
  animation: dropdownFadeIn 0.15s ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-section {
  padding: 8px;
}

.dropdown-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 10px 4px;
}

.dropdown-lang-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.dropdown-lang-btn:hover {
  background: var(--bg-muted);
}

.dropdown-lang-btn.selected {
  background: #eef2ff;
  color: var(--brand-primary);
  font-weight: 600;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0;
}

.dropdown-more-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-light);
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}

.dropdown-more-btn:hover {
  background: var(--bg-muted);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 14px;
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-spring);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.action-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-4px);
  box-shadow:
    0 12px 24px rgba(102, 126, 234, 0.15),
    0 4px 8px rgba(102, 126, 234, 0.08);
}

.action-card:active {
  transform: translateY(-2px);
}

.action-emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.action-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.action-card-custom {
  border-style: dashed;
  background: #fafbff;
}

.action-card-custom:hover {
  background: var(--bg-white);
}

.action-card-random {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #fbbf24;
}

.action-card-random:hover {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
}

/* More scenarios button - matches sessions-toggle style */
.more-scenarios-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 16px;
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.04) 0%, rgba(118, 75, 162, 0.04) 100%);
  border: 1px dashed rgba(102, 126, 234, 0.2);
  border-radius: var(--radius-md);
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.more-scenarios-btn:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  border-color: rgba(102, 126, 234, 0.3);
}

.more-scenarios-btn:active {
  transform: scale(0.98);
}

.more-scenarios-btn svg {
  transition: transform var(--transition-base);
}

/* ========================================
   SCENARIO PICKER MODAL
   ======================================== */
.scenario-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.scenario-modal.show {
  opacity: 1;
  pointer-events: all;
}

.scenario-modal-content {
  background: var(--bg-white);
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scenario-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.scenario-modal-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.scenario-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.scenario-modal-lang-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.08) 100%);
  border: 1.5px solid rgba(102,126,234,0.25);
  font-weight: 600;
  color: var(--brand-primary);
  font-size: 0.85rem;
}

.lang-badge-flag {
  font-size: 1rem;
}

.lang-badge-name {
  letter-spacing: -0.01em;
}

.scenario-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg-light);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}

.scenario-modal-close:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.scenario-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px 28px;
}

.scenario-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.scenario-modal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  background: var(--bg-light);
  border: 2px solid var(--border-light);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 8px;
  text-align: center;
}

.scenario-modal-card:hover {
  border-color: var(--brand-primary);
  background: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.scenario-modal-card .card-emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.scenario-modal-card .card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Difficulty level sections */
.scenario-difficulty-section {
  margin-bottom: 24px;
}

.scenario-difficulty-section:last-child {
  margin-bottom: 0;
}

.scenario-difficulty-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.scenario-difficulty-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scenario-difficulty-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-light);
  color: var(--text-secondary);
}

.scenario-difficulty-section[data-level="1"] .scenario-difficulty-badge {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
  color: #16a34a;
}

.scenario-difficulty-section[data-level="2"] .scenario-difficulty-badge {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  color: #2563eb;
}

.scenario-difficulty-section[data-level="3"] .scenario-difficulty-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  color: #d97706;
}

.scenario-difficulty-section[data-level="4"] .scenario-difficulty-badge {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
  color: #dc2626;
}

.scenario-difficulty-section[data-level="5"] .scenario-difficulty-badge {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  color: #7c3aed;
}

.scenario-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .scenario-modal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .scenario-modal {
    padding: 0;
    align-items: flex-end;
  }

  .scenario-modal-content {
    max-height: 90vh;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    animation: drawerSlideUp 0.3s ease-out;
  }

  @keyframes drawerSlideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .scenario-modal-header {
    padding: 20px 20px 14px;
  }

  .scenario-modal-header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .scenario-modal-title {
    font-size: 1.1rem;
  }

  .scenario-modal-lang-badge {
    padding: 4px 10px;
    font-size: 0.8rem;
  }

  .lang-badge-flag {
    font-size: 0.9rem;
  }

  .scenario-modal-body {
    padding: 16px 20px 24px;
  }

  .scenario-modal-card {
    padding: 14px 10px;
  }

  .scenario-modal-card .card-emoji {
    font-size: 1.5rem;
  }

  .scenario-modal-card .card-title {
    font-size: 0.8rem;
  }

  .scenario-difficulty-section {
    margin-bottom: 20px;
  }

  .scenario-difficulty-header {
    margin-bottom: 10px;
  }

  .scenario-difficulty-label {
    font-size: 0.75rem;
  }
}

/* ========================================
   CUSTOM SCENARIO MODAL
   ======================================== */
.custom-scenario-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 20px;
}

.custom-scenario-modal.show {
  opacity: 1;
  pointer-events: all;
}

.custom-scenario-modal-content {
  background: var(--bg-white);
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform 0.2s ease;
}

.custom-scenario-modal.show .custom-scenario-modal-content {
  transform: translateY(0);
}

.custom-scenario-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border-light);
}

.custom-scenario-modal-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.custom-scenario-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.custom-scenario-lang-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.08) 100%);
  border: 1.5px solid rgba(102,126,234,0.25);
  font-weight: 600;
  color: var(--brand-primary);
  font-size: 0.85rem;
}

.custom-scenario-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.custom-scenario-modal-close:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.custom-scenario-modal-body {
  padding: 24px 28px;
}

.custom-scenario-input {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-white);
  resize: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.custom-scenario-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.custom-scenario-input::placeholder {
  color: var(--text-muted);
}

.custom-scenario-idea-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 0;
  background: none;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-primary);
  cursor: pointer;
  transition: opacity 0.15s;
}

.custom-scenario-idea-link:hover {
  opacity: 0.8;
}

.custom-scenario-idea-link:disabled {
  opacity: 0.5;
  cursor: wait;
}

.custom-scenario-modal-footer {
  padding: 0 28px 24px;
}

.custom-scenario-start {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.custom-scenario-start:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.custom-scenario-start:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile styles for custom scenario modal */
@media (max-width: 768px) {
  .custom-scenario-modal {
    padding: 0;
    align-items: flex-end;
  }

  .custom-scenario-modal-content {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
  }

  .custom-scenario-modal-header {
    padding: 20px 20px 14px;
  }

  .custom-scenario-modal-header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .custom-scenario-modal-title {
    font-size: 1.1rem;
  }

  .custom-scenario-modal-body {
    padding: 20px;
  }

  .custom-scenario-modal-footer {
    padding: 0 20px 24px;
  }
}

/* ========================================
   RECENT SESSIONS
   ======================================== */
.dash-recent {
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
}

.section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--bg-light);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.section-toggle:hover {
  background: var(--bg-muted);
}

.section-toggle .section-label {
  margin: 0;
}

.toggle-arrow {
  color: var(--text-light);
  transition: transform 0.3s ease;
}

.dash-recent.collapsed .toggle-arrow {
  transform: rotate(-90deg);
}

.dash-recent.collapsed .recent-list {
  display: none;
}

.recent-list {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.recent-list .empty-message {
  grid-column: 1 / -1;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  padding: 32px 16px;
  font-size: 0.95rem;
}

/* Session items - Premium card design */
.session-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

/* Subtle left accent bar */
.session-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.session-item:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border-color: rgba(102, 126, 234, 0.2);
  box-shadow:
    0 4px 12px rgba(102, 126, 234, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.session-item:hover::before {
  opacity: 1;
}

.session-item:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Language flag badge */
.session-flag {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.session-info {
  flex: 1;
  min-width: 0;
}

.session-language {
  display: none;
}

.session-scenario {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.session-goals {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-meta {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 65px;
}

.session-time {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
  background: var(--bg-subtle);
  padding: 4px 8px;
  border-radius: 10px;
  margin-bottom: auto;
}

.session-message-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Sessions toggle button */
.sessions-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 16px;
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.04) 0%, rgba(118, 75, 162, 0.04) 100%);
  border: 1px dashed rgba(102, 126, 234, 0.2);
  border-radius: var(--radius-md);
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  grid-column: 1 / -1; /* Span all columns in grid */
}

.sessions-toggle:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  border-color: rgba(102, 126, 234, 0.3);
}

.sessions-toggle:active {
  transform: scale(0.98);
}

.sessions-toggle-icon {
  transition: transform var(--transition-base);
}

.sessions-toggle-icon.rotated {
  transform: rotate(180deg);
}

.session-stats {
  font-size: 0.7rem;
  color: var(--brand-primary);
  font-weight: 600;
  background: rgba(102, 126, 234, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .dash-main-grid {
    grid-template-columns: 1fr;
  }

  .dash-progress {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 24px 32px;
  }

  .progress-ring-container {
    margin: 0;
  }

  .progress-details {
    flex: 1;
    padding-top: 0;
    border-top: none;
    border-left: 1px solid var(--border-light);
    padding-left: 32px;
  }

  .recent-list {
    grid-template-columns: 1fr;
  }

  .session-item {
    padding: 8px 16px;
  }

  .session-flag {
    padding: 5px 7px;
    font-size: 0.65rem;
  }
}

@media (max-width: 600px) {
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dash-account {
    width: 100%;
    justify-content: space-between;
  }

  .account-email-sm {
    max-width: 160px;
  }

  .dash-hero {
    padding: 28px 24px;
    min-height: auto;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-cta {
    width: 100%;
    padding: 16px 24px;
  }

  .hero-alt {
    display: block;
    margin: 16px 0 0 0;
    text-align: center;
  }

  .dash-progress {
    flex-direction: column;
    padding: 24px 20px;
    gap: 20px;
  }

  .progress-details {
    width: 100%;
    justify-content: space-around;
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding-left: 0;
    padding-top: 20px;
  }

  .action-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .action-card {
    padding: 20px 12px;
  }

  .action-emoji {
    font-size: 1.75rem;
  }

  .action-title {
    font-size: 0.9rem;
  }
}

/* Gradient definition for SVG */
.dashboard-section svg defs {
  display: none;
}

/* ========================================
   PROFILE SECTION
   ======================================== */
.profile-section {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0;
}

/* Profile Header */
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.profile-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-muted);
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.15s ease;
}

.profile-back-btn:hover {
  background: var(--bg-hover);
}

.profile-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

/* Profile User Card */
.profile-user-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 32px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.profile-user-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-user-email {
  font-size: 0.9rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-edit-name-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  margin-left: auto;
  flex-shrink: 0;
  font-size: 2rem;
}


.profile-edit-name-btn svg{
  width: 24px;
  height: 24px;
}

.profile-edit-name-btn:hover {
  color: var(--primary);
  background: var(--bg-hover);
}

.profile-name-edit {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.profile-name-edit.hidden {
  display: none;
}

/* When editing, hide the user info and edit button */
.profile-user-card:has(.profile-name-edit:not(.hidden)) .profile-user-info {
  display: none;
}

.profile-user-card:has(.profile-name-edit:not(.hidden)) .profile-edit-name-btn {
  display: none;
}

.profile-name-input {
  padding: 10px 14px;
  font-size: 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  flex: 1;
  min-width: 0;
  font-family: inherit;
}

.profile-name-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.profile-name-save,
.profile-name-cancel {
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.profile-name-save {
  display: inline-flex !important;
  background: #667eea;
  color: #ffffff;
  border: none;
}

.profile-name-save:hover {
  background: #5a6fd6;
}

.profile-name-cancel {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.profile-name-cancel:hover {
  background: var(--bg-hover);
}

/* Profile Section Titles */
.profile-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.profile-subsection-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px 0;
}

/* Profile Insights */
.profile-insights {
  margin-bottom: 32px;
}

/* Stats Grid */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.profile-stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Profile Motivator */
.profile-motivator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.profile-motivator .motivator-emoji {
  font-size: 1.5rem;
}

.profile-motivator .motivator-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #166534;
  line-height: 1.4;
}

/* Languages Section */
.profile-languages {
  margin-bottom: 8px;
}

.profile-language-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.language-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.language-chip-flag {
  font-size: 1rem;
}

.language-chip-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-white);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Subscription Section */
.profile-subscription {
  margin-bottom: 32px;
}

.subscription-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.subscription-status {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscription-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.subscription-badge.active {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.subscription-badge.active svg {
  color: #15803d;
}

.subscription-badge.canceling {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fde68a;
}

.subscription-badge.canceling svg {
  color: #92400e;
}

.subscription-badge.canceled {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.subscription-badge.canceled svg {
  color: #b91c1c;
}

.subscription-badge.free {
  background: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.subscription-detail {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.subscription-manage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 4px;
}

.subscription-manage-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-medium);
}

.subscription-resubscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--brand-gradient);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.subscription-resubscribe-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.subscription-upgrade-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: var(--brand-gradient);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.subscription-upgrade-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.subscription-upgrade-btn .upgrade-price {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.9;
}

/* Profile Actions */
.profile-actions {
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.profile-signout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-error);
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  justify-content: center;
}

.profile-signout-btn:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

.profile-signout-btn.sign-in-mode {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  background: rgba(102, 126, 234, 0.06);
}

.profile-signout-btn.sign-in-mode:hover {
  background: rgba(102, 126, 234, 0.12);
  border-color: var(--brand-primary);
}

.profile-signout-btn.sign-in-mode svg {
  color: var(--brand-primary);
}

.profile-signout-btn svg {
  color: var(--color-error);
}

/* Cancel Modal */
.cancel-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cancel-modal.show {
  opacity: 1;
}

.cancel-modal.hidden {
  display: none;
}

.cancel-modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.cancel-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-muted);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.cancel-modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.cancel-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.cancel-modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 24px 0;
}

.cancel-modal-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.cancel-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cancel-info-item svg {
  color: #15803d;
  flex-shrink: 0;
}

.cancel-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cancel-confirm-btn {
  padding: 14px 20px;
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.cancel-confirm-btn:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--color-error);
}

.cancel-keep-btn {
  padding: 14px 20px;
  background: var(--brand-gradient);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.cancel-keep-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

/* Google Play Cancel Modal */
.google-play-steps {
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.google-play-steps .steps-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
}

.google-play-steps .steps-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.google-play-steps .steps-list li {
  margin-bottom: 4px;
}

.google-play-steps .steps-list li:last-child {
  margin-bottom: 0;
}

.google-play-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: #01875f;
  color: white !important;
  border: none;
}

.google-play-link:hover {
  background: #017a55;
  color: white !important;
}

/* Profile Responsive */
@media (max-width: 600px) {
  .profile-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .profile-user-card {
    padding: 16px;
  }

  .profile-avatar {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
  }

  .profile-user-name {
    font-size: 1.1rem;
  }

  .cancel-modal-content {
    padding: 24px;
  }
}
