@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --bg-dark: #0b0f19;
  --bg-card: rgba(22, 31, 48, 0.75);
  --border-card: rgba(255, 255, 255, 0.08);
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --accent: #10b981;
  --gold: #f59e0b;
  --star-gold: #fbbf24;
  --danger: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-family: 'Rubik', system-ui, -apple-system, sans-serif;
}

/* Base Mobile Reset - Zero Scrollbars */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

*::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden; /* App feel: no browser page scrollbar */
  background-color: var(--bg-dark);
  color: var(--text-main);
  direction: rtl;
  user-select: none;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

#app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background: radial-gradient(circle at top, #1e1b4b 0%, #0b0f19 70%);
  overflow: hidden;
  box-sizing: border-box;
}

/* Header Bar */
.app-header {
  min-height: 62px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 14px 4px 14px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
  z-index: 100;
  gap: 2px;
  box-sizing: border-box;
}

.app-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  direction: ltr;
  min-height: 36px;
}

.header-left-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}

/* Header Action Buttons (Burger & Notification Bell) */
.header-icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-main, #f8fafc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.header-icon-btn:active {
  transform: scale(0.94);
}

.burger-btn {
  font-size: 1.25rem;
  line-height: 1;
}

.notif-bell-btn .bell-icon {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-block;
}

.notif-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 10px;
  min-width: 17px;
  height: 17px;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid #0f172a;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  pointer-events: none;
  line-height: 1;
}

/* User Profile Badge */
.user-badge {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 10px 0 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-main, #f8fafc);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.user-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.user-badge:active {
  transform: scale(0.96);
}

#user-display-name {
  max-width: 75px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.8rem;
}

.user-badge-arrow {
  font-size: 0.6rem;
  opacity: 0.65;
  margin-right: 2px;
  transition: transform 0.2s ease;
}

.user-avatar-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: inline-block;
  vertical-align: middle;
}

#user-role-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* App Version Badge */
.version-badge {
  font-size: 0.68rem;
  background: rgba(99, 102, 241, 0.16);
  color: #a5b4fc;
  border: 1px solid rgba(165, 180, 252, 0.35);
  padding: 2px 7px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.4px;
  -webkit-text-fill-color: initial;
  display: inline-flex;
  align-items: center;
  height: 22px;
}

/* Centered Family Bank Name Row */
.app-header-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #a5b4fc, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-brand-centered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.90rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.2;
}

.app-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-text-fill-color: initial;
}

.app-brand-logo-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 6px;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: block;
}

.auth-brand-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 12px;
}

.auth-brand-logo-img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 22px rgba(245, 158, 11, 0.28);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-brand-logo-img:hover {
  transform: scale(1.06) rotate(-2deg);
}

/* PWA Native Install Banner */
.pwa-install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(245, 158, 11, 0.14));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 12px 0 16px 0;
  text-align: right;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  animation: pwaBannerFadeIn 0.3s ease;
}

@keyframes pwaBannerFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pwa-install-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pwa-install-icon {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.4));
}

.pwa-install-text {
  display: flex;
  flex-direction: column;
}

.pwa-install-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f8fafc;
}

.pwa-install-subtitle {
  font-size: 0.73rem;
  color: #94a3b8;
}

.btn-pwa-install {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 6px 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-pwa-install:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}

.btn-pwa-install:active {
  transform: scale(0.96);
}

/* WhatsApp / In-App Browser Warning Banner */
.inapp-browser-banner {
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

.inapp-browser-close {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  color: #0f172a;
  padding: 0 4px;
}

.btn-header-logout {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-header-logout:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #ffffff;
}

/* Scrollable Viewport (App Content Area) */
.app-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 16px calc(95px + env(safe-area-inset-bottom, 20px)) 16px !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
  .card, .list-item, .balance-hero {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

html.budget-gpu .card,
html.budget-gpu .list-item,
html.budget-gpu .balance-hero {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.budget-gpu .theme-particle {
  display: none !important;
}

@media (max-width: 480px) {
  .app-viewport {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .card {
    padding: 14px 12px !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 360px) {
  .app-viewport {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  .card {
    padding: 12px 8px !important;
    border-radius: 14px !important;
  }
}

section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 95px !important;
}

/* End of List Visual Divider Marker */
.end-of-list-marker {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.85;
  padding: 16px 0 35px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  user-select: none;
  width: 100%;
}

.end-of-list-marker::before,
.end-of-list-marker::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  max-width: 65px;
}

/* Cards & Glassmorphism */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f1f5f9;
}

/* Financial Balance Display */
.balance-hero {
  text-align: center;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.balance-amount {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0;
  text-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.balance-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 3D Character Stage & Viewport Container */
.stage-3d-viewport {
  position: relative;
  width: 100%;
  height: clamp(430px, 51vh, 500px);
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 0 24px rgba(56, 189, 248, 0.12);
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

/* 3D Axes HUD Badge Overlay */
.axis-hud-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: monospace, monospace;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.axis-tag {
  font-weight: 700;
}
.axis-x { color: #ef4444; }
.axis-y { color: #22c55e; }
.axis-z { color: #38bdf8; }
.axis-divider { opacity: 0.4; color: #fff; }
.axis-hint { font-size: 0.68rem; color: #94a3b8; margin-right: 4px; font-family: sans-serif; }

.btn-reset-3d {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 20;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}
.btn-reset-3d:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #fff;
}

/* Stats Pill Strip */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.stat-pill:hover {
  transform: translateY(-3px);
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.stat-value.points { color: #38bdf8; }
.stat-value.coins { color: var(--gold); }
.stat-value.stars { color: var(--star-gold); }

.stat-name {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Bottom Nav Bar */
.app-navbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 65px;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
  z-index: 99;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 6px 12px;
  border-radius: 12px;
}

.nav-item.active {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  font-weight: 600;
}

.nav-icon {
  font-size: 1.25rem;
}

/* Buttons & Inputs */
.btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-accent {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
}

.btn-allowance-gold {
  background: linear-gradient(135deg, #1e293b, #0f172a) !important;
  color: #fbbf24 !important;
  border: 1px solid #f59e0b !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25) !important;
}

.btn-allowance-gold:hover {
  background: linear-gradient(135deg, #334155, #1e293b) !important;
  color: #fef08a !important;
  border-color: #fbbf24 !important;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-card);
  color: var(--text-main);
}

.btn:active {
  transform: scale(0.97);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-input, .form-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-card);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Modals */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  overflow-y: auto;
  background: #1e293b;
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 22px;
  padding-bottom: 35px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  -webkit-overflow-scrolling: touch;
}

/* Lists & Items */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  contain: layout paint;
}

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge-danger-solid {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid #fca5a5 !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4) !important;
}

.hidden { display: none !important; }

/* Avatar & Profile Photo Selector */
.avatar-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0;
}

.avatar-option {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.avatar-option.selected {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.25);
  transform: scale(1.1);
}

.avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-card);
}

.user-avatar-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  object-fit: cover;
}

/* ==========================================================================
   DYNAMIC GAMING THEMES & ANIMATION SYSTEM
   ========================================================================== */

#theme-particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.theme-particle {
  position: absolute;
  pointer-events: none;
  animation: floatParticle 9s linear infinite;
  opacity: 0.75;
}

@keyframes floatParticle {
  0% { transform: translateY(105vh) rotate(0deg) scale(0.5); opacity: 0; }
  20% { opacity: 0.85; }
  80% { opacity: 0.85; }
  100% { transform: translateY(-120px) rotate(360deg) scale(1.2); opacity: 0; }
}

/* ==========================================================================
   5 CHILD ACCOUNT COLOR THEMES (High Foreground/Background Contrast & Vivid Tile Outlines)
   CABO 3D Robot is the exclusive companion across all 5 color themes
   ========================================================================== */

/* 1. NEON ARCADE VIOLET & CYAN (סגול-טורקיז ארקייד) */
[data-theme="roblox"] #app-container {
  background: radial-gradient(circle at top, #4c1d95 0%, #1e1b4b 52%, #090d16 92%);
  color: #f8fafc;
}
[data-theme="roblox"] .card,
[data-theme="roblox"] .modal-content {
  background: rgba(24, 14, 52, 0.90);
  border: 2px solid #c084fc;
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.32);
  color: #f8fafc;
}
[data-theme="roblox"] .stat-card,
[data-theme="roblox"] .list-item,
[data-theme="roblox"] .task-card,
[data-theme="roblox"] .gamification-goals-card,
[data-theme="roblox"] .stage-3d-viewport {
  border: 1.5px solid rgba(192, 132, 252, 0.65);
}
[data-theme="roblox"] .balance-hero {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.35), rgba(6, 182, 212, 0.30));
  border: 2px solid #38bdf8;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.45);
}
[data-theme="roblox"] .balance-amount {
  color: #38bdf8;
  text-shadow: 0 0 15px #06b6d4, 0 0 30px #c084fc;
}

/* 2. EMERALD FOREST (אמרלד יער זוהר) */
[data-theme="minecraft"] #app-container {
  background: radial-gradient(circle at top, #14532d 0%, #064e3b 52%, #022c22 92%);
  color: #f0fdf4;
}
[data-theme="minecraft"] .card,
[data-theme="minecraft"] .modal-content {
  background: rgba(6, 62, 48, 0.92);
  border: 2.5px solid #22c55e;
  box-shadow: inset 0 0 12px rgba(34, 197, 94, 0.22), 0 8px 24px rgba(0, 0, 0, 0.6);
  border-radius: 14px;
  color: #f0fdf4;
}
[data-theme="minecraft"] .stat-card,
[data-theme="minecraft"] .list-item,
[data-theme="minecraft"] .task-card,
[data-theme="minecraft"] .gamification-goals-card,
[data-theme="minecraft"] .stage-3d-viewport {
  border: 1.5px solid rgba(74, 222, 128, 0.68);
}
[data-theme="minecraft"] .balance-hero {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(16, 185, 129, 0.25));
  border: 2.5px solid #4ade80;
  border-radius: 14px;
}
[data-theme="minecraft"] .balance-amount {
  color: #4ade80;
  text-shadow: 0 0 15px #22c55e;
}

/* 3. COSMIC OCEAN BLUE (כחול גלקסיה) */
[data-theme="stitch"] #app-container {
  background: radial-gradient(circle at top, #0284c7 0%, #1e1b4b 60%, #070a13 92%);
  color: #f8fafc;
}
[data-theme="stitch"] .card,
[data-theme="stitch"] .modal-content {
  background: rgba(15, 23, 42, 0.90);
  border: 2px solid #38bdf8;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.38);
  border-radius: 20px;
  color: #f8fafc;
}
[data-theme="stitch"] .stat-card,
[data-theme="stitch"] .list-item,
[data-theme="stitch"] .task-card,
[data-theme="stitch"] .gamification-goals-card,
[data-theme="stitch"] .stage-3d-viewport {
  border: 1.5px solid rgba(56, 189, 248, 0.65);
}
[data-theme="stitch"] .balance-hero {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(168, 85, 247, 0.35));
  border: 2px solid #c084fc;
  box-shadow: 0 0 30px rgba(192, 132, 252, 0.48);
}
[data-theme="stitch"] .balance-amount {
  color: #7dd3fc;
  text-shadow: 0 0 20px #38bdf8;
}

/* 4. CYBER MAGENTA & CYAN (ניאון מג׳נטה סייבר) */
[data-theme="cyberpunk"] #app-container {
  background: radial-gradient(circle at top, #831843 0%, #111827 76%, #090d16 95%);
  color: #f8fafc;
}
[data-theme="cyberpunk"] .card,
[data-theme="cyberpunk"] .modal-content {
  background: rgba(17, 24, 39, 0.92);
  border: 2px solid #f472b6;
  box-shadow: 0 0 24px rgba(244, 114, 182, 0.42);
  border-radius: 14px;
  color: #f8fafc;
}
[data-theme="cyberpunk"] .stat-card,
[data-theme="cyberpunk"] .list-item,
[data-theme="cyberpunk"] .task-card,
[data-theme="cyberpunk"] .gamification-goals-card,
[data-theme="cyberpunk"] .stage-3d-viewport {
  border: 1.5px solid rgba(244, 114, 182, 0.65);
}
[data-theme="cyberpunk"] .balance-hero {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.35), rgba(14, 165, 233, 0.35));
  border: 2px solid #06b6d4;
  box-shadow: 0 0 32px rgba(244, 114, 182, 0.52);
}
[data-theme="cyberpunk"] .balance-amount {
  color: #f472b6;
  text-shadow: 0 0 20px #ec4899, 0 0 40px #06b6d4;
}

/* 5. ROYAL INDIGO & GOLD (אינדיגו וזהב מלכותי) */
[data-theme="default"] #app-container {
  background: radial-gradient(circle at top, #1e1b4b 0%, #0f172a 58%, #090d16 92%);
  color: #f8fafc;
}
[data-theme="default"] .card,
[data-theme="default"] .modal-content {
  background: rgba(15, 23, 42, 0.90);
  border: 2px solid #f59e0b;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.28);
  color: #f8fafc;
}
[data-theme="default"] .stat-card,
[data-theme="default"] .list-item,
[data-theme="default"] .task-card,
[data-theme="default"] .gamification-goals-card,
[data-theme="default"] .stage-3d-viewport {
  border: 1.5px solid rgba(245, 158, 11, 0.62);
}
[data-theme="default"] .balance-hero {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(99, 102, 241, 0.32));
  border: 2px solid #fbbf24;
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.42);
}
[data-theme="default"] .balance-amount {
  color: #fbbf24;
  text-shadow: 0 0 18px rgba(245, 158, 11, 0.65);
}

/* ==========================================================================
   PARENT SPECIFIC THEMES (Professional, Modern & High Contrast)
   ========================================================================== */

/* 1. EXECUTIVE LIGHT THEME (פלטינום לייט - Light Theme) */
html[data-theme="parent-light-executive"],
[data-theme="parent-light-executive"] {
  color-scheme: only light !important;
  supported-color-schemes: light !important;
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --border-card: #cbd5e1;
  --primary: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.2);
  --accent: #059669;
  --gold: #d97706;
  --star-gold: #d97706;
  --danger: #dc2626;
  --text-main: #0f172a;
  --text-muted: #475569;
}

[data-theme="parent-light-executive"] * {
  color-scheme: only light !important;
}

html[data-theme="parent-light-executive"] body,
[data-theme="parent-light-executive"] body {
  color-scheme: only light !important;
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

[data-theme="parent-light-executive"] #app-container {
  background: #f8fafc !important;
  color: #0f172a !important;
}

[data-theme="parent-light-executive"] .main-content {
  background: #f8fafc !important;
  color: #0f172a !important;
}

[data-theme="parent-light-executive"] .app-header {
  background: #ffffff !important;
  border-bottom: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="parent-light-executive"] .app-brand {
  color: #1d4ed8 !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

[data-theme="parent-light-executive"] .user-badge {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="parent-light-executive"] .header-icon-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
}

[data-theme="parent-light-executive"] .header-icon-btn:hover {
  background: #e2e8f0 !important;
}

[data-theme="parent-light-executive"] .version-badge {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #1d4ed8 !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
}

[data-theme="parent-light-executive"] .notif-badge {
  border-color: #ffffff !important;
}

[data-theme="parent-light-executive"] .card,
[data-theme="parent-light-executive"] .modal-content,
[data-theme="parent-light-executive"] .list-item,
[data-theme="parent-light-executive"] .stat-card,
[data-theme="parent-light-executive"] .activity-item,
[data-theme="parent-light-executive"] .task-card,
[data-theme="parent-light-executive"] .toggle-switch-row {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}

/* Light Theme overrides for sub-containers with inline dark styles */
[data-theme="parent-light-executive"] div[style*="background: rgba(30, 41, 59"],
[data-theme="parent-light-executive"] div[style*="background:rgba(30, 41, 59"],
[data-theme="parent-light-executive"] div[style*="background: rgba(15, 23, 42"],
[data-theme="parent-light-executive"] div[style*="background:rgba(15, 23, 42"],
[data-theme="parent-light-executive"] div[style*="background: rgba(255, 255, 255, 0.05)"],
[data-theme="parent-light-executive"] div[style*="background:rgba(255,255,255,0.05)"],
[data-theme="parent-light-executive"] div[style*="background: rgba(255, 255, 255, 0.03)"],
[data-theme="parent-light-executive"] div[style*="background:rgba(255,255,255,0.03)"],
[data-theme="parent-light-executive"] div[style*="background: rgba(255, 255, 255, 0.04)"],
[data-theme="parent-light-executive"] div[style*="background:rgba(255,255,255,0.04)"],
[data-theme="parent-light-executive"] div[style*="background: rgba(255, 255, 255, 0.06)"],
[data-theme="parent-light-executive"] div[style*="background:rgba(255,255,255,0.06)"],
[data-theme="parent-light-executive"] div[style*="background: rgba(0, 0, 0, 0.25)"],
[data-theme="parent-light-executive"] div[style*="background:rgba(0,0,0,0.25)"],
[data-theme="parent-light-executive"] div[style*="background: rgba(0,0,0,0.25)"] {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="parent-light-executive"] .card-title,
[data-theme="parent-light-executive"] .card-title span,
[data-theme="parent-light-executive"] #view-parent-dashboard .card-title,
[data-theme="parent-light-executive"] #view-parent-transactions .card-title,
[data-theme="parent-light-executive"] #parent-tasks-section h2,
[data-theme="parent-light-executive"] h1,
[data-theme="parent-light-executive"] h2,
[data-theme="parent-light-executive"] h3,
[data-theme="parent-light-executive"] h4,
[data-theme="parent-light-executive"] h5,
[data-theme="parent-light-executive"] h6 {
  color: #0f172a !important;
}

[data-theme="parent-light-executive"] span[style*="color: #fff"],
[data-theme="parent-light-executive"] span[style*="color:#fff"],
[data-theme="parent-light-executive"] span[style*="color: #f8fafc"],
[data-theme="parent-light-executive"] span[style*="color:#f8fafc"],
[data-theme="parent-light-executive"] strong[style*="color: #fff"],
[data-theme="parent-light-executive"] strong[style*="color:#fff"],
[data-theme="parent-light-executive"] h3[style*="color: #f8fafc"],
[data-theme="parent-light-executive"] h3[style*="color:#f8fafc"] {
  color: #0f172a !important;
}

[data-theme="parent-light-executive"] .text-muted,
[data-theme="parent-light-executive"] div[style*="color: var(--text-muted)"],
[data-theme="parent-light-executive"] span[style*="color: var(--text-muted)"] {
  color: #475569 !important;
}

[data-theme="parent-light-executive"] .form-input,
[data-theme="parent-light-executive"] .form-select,
[data-theme="parent-light-executive"] input,
[data-theme="parent-light-executive"] select,
[data-theme="parent-light-executive"] textarea {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: none !important;
}

[data-theme="parent-light-executive"] input::placeholder,
[data-theme="parent-light-executive"] textarea::placeholder {
  color: #94a3b8 !important;
}

[data-theme="parent-light-executive"] .form-label {
  color: #1e293b !important;
}

[data-theme="parent-light-executive"] .btn-outline {
  border: 1px solid #2563eb !important;
  color: #1d4ed8 !important;
  background: #ffffff !important;
}

[data-theme="parent-light-executive"] .btn-outline:hover {
  background: #eff6ff !important;
}

[data-theme="parent-light-executive"] .quick-chip {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="parent-light-executive"] .quick-chip:hover {
  background: #e2e8f0 !important;
}

/* Bottom Navigation Bar (app-navbar) */
[data-theme="parent-light-executive"] .app-navbar,
[data-theme="parent-light-executive"] .bottom-nav {
  background: rgba(255, 255, 255, 0.98) !important;
  border-top: 1px solid #cbd5e1 !important;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="parent-light-executive"] .app-navbar .nav-item,
[data-theme="parent-light-executive"] .nav-item {
  color: #64748b !important;
}

[data-theme="parent-light-executive"] .app-navbar .nav-item span,
[data-theme="parent-light-executive"] .nav-item span {
  color: #64748b !important;
}

[data-theme="parent-light-executive"] .app-navbar .nav-item.active,
[data-theme="parent-light-executive"] .app-navbar .nav-item.active span,
[data-theme="parent-light-executive"] .nav-item.active {
  color: #2563eb !important;
  font-weight: 700 !important;
}

/* Child Overview Cards on Parent Home */
[data-theme="parent-light-executive"] .child-card-item {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}

[data-theme="parent-light-executive"] .child-card-item strong {
  color: #0f172a !important;
}

[data-theme="parent-light-executive"] .child-card-item div[style*="background: rgba(15, 23, 42"] {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-theme="parent-light-executive"] .child-card-item div[style*="background: rgba(255,255,255,0.04)"] {
  background: #ffffff !important;
  border-color: #bfdbfe !important;
}

[data-theme="parent-light-executive"] .child-balance-pill {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}

[data-theme="parent-light-executive"] .child-balance-pill .pill-label {
  color: #475569 !important;
}

/* 2. MIDNIGHT GOLD THEME (זהב לילה - Dark Luxury) */
[data-theme="parent-midnight-gold"] {
  --bg-dark: #0b0f19;
  --bg-card: rgba(17, 24, 39, 0.9);
  --border-card: rgba(245, 158, 11, 0.3);
  --primary: #f59e0b;
  --primary-glow: rgba(245, 158, 11, 0.35);
  --gold: #fbbf24;
  --star-gold: #fbbf24;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

[data-theme="parent-midnight-gold"] #app-container {
  background: radial-gradient(circle at top, #1e1b4b 0%, #0f1422 60%, #07090e 100%);
}

[data-theme="parent-midnight-gold"] .app-header {
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

[data-theme="parent-midnight-gold"] .app-brand {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="parent-midnight-gold"] .card {
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12);
}

/* 3. EMERALD FINANCE THEME (אמרלד פיננסי - Pro Dark) */
[data-theme="parent-emerald-slate"] {
  --bg-dark: #061816;
  --bg-card: rgba(6, 40, 35, 0.88);
  --border-card: rgba(16, 185, 129, 0.3);
  --primary: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.35);
  --gold: #fbbf24;
  --star-gold: #fbbf24;
  --text-main: #f0fdf4;
  --text-muted: #94a3b8;
}

[data-theme="parent-emerald-slate"] #app-container {
  background: radial-gradient(circle at top, #064e3b 0%, #061816 70%, #030c0b 100%);
}

[data-theme="parent-emerald-slate"] .app-header {
  background: rgba(6, 40, 35, 0.9);
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
}

[data-theme="parent-emerald-slate"] .app-brand {
  background: linear-gradient(135deg, #34d399, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="parent-emerald-slate"] .card {
  background: rgba(6, 40, 35, 0.88);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

/* 4. NORDIC NAVY THEME (נורדי נקי - Clean Dark Navy) */
[data-theme="parent-nordic-navy"] {
  --bg-dark: #0b1320;
  --bg-card: rgba(17, 27, 45, 0.88);
  --border-card: rgba(56, 189, 248, 0.25);
  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.35);
  --gold: #f59e0b;
  --star-gold: #fbbf24;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

[data-theme="parent-nordic-navy"] #app-container {
  background: radial-gradient(circle at top, #1e293b 0%, #0b1320 70%, #050910 100%);
}

[data-theme="parent-nordic-navy"] .app-header {
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
}

[data-theme="parent-nordic-navy"] .app-brand {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="parent-nordic-navy"] .card {
  background: rgba(17, 27, 45, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.12);
}

/* Theme Option Cards in Picker Modal */
.theme-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 18px;
  border: 2px solid var(--border-card);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-option-card:hover, .theme-option-card.selected {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.18);
  transform: scale(1.02);
}

/* ==========================================================================
   PARENT THEME PICKER MODAL ENHANCEMENTS (RTL & Mobile Protected)
   ========================================================================== */
.parent-theme-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  width: 100%;
  position: relative;
}

.parent-theme-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.parent-theme-card.active {
  border: 2px solid #fbbf24 !important;
  background: rgba(245, 158, 11, 0.09) !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.22) !important;
}

[data-theme="parent-light-executive"] .parent-theme-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="parent-light-executive"] .parent-theme-card:hover {
  border-color: #2563eb;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.12);
}

[data-theme="parent-light-executive"] .parent-theme-card.active {
  border: 2px solid #2563eb !important;
  background: #eff6ff !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.18) !important;
}

.parent-theme-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.parent-theme-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.parent-theme-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.parent-theme-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  text-align: right;
}

.parent-theme-title-primary {
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

[data-theme="parent-light-executive"] .parent-theme-title-primary {
  color: #0f172a !important;
}

.parent-theme-sub-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.parent-theme-name-en {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.2px;
}

[data-theme="parent-light-executive"] .parent-theme-name-en {
  color: #64748b !important;
}

.parent-theme-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.4;
  white-space: nowrap;
}

.parent-theme-action {
  flex-shrink: 0;
}

.parent-theme-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  white-space: nowrap;
}

[data-theme="parent-light-executive"] .parent-theme-active-pill {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.parent-theme-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.parent-theme-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

[data-theme="parent-light-executive"] .parent-theme-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}

[data-theme="parent-light-executive"] .parent-theme-btn:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
}

.parent-theme-desc {
  font-size: 0.81rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
  text-align: right;
}

[data-theme="parent-light-executive"] .parent-theme-desc {
  color: #475569 !important;
}

.parent-theme-preview-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 10px;
  box-sizing: border-box;
  width: 100%;
}

.parent-theme-swatches {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.parent-theme-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

[data-theme="parent-light-executive"] #theme-modal-title {
  color: #1e293b !important;
}

[data-theme="parent-light-executive"] #theme-modal-subtitle {
  color: #64748b !important;
}

.hidden {
  display: none !important;
}

/* Real Gaming Level Map Viewport & Board */
.game-map-viewport {
  position: relative;
  width: 100%;
  max-height: 520px;
  overflow: auto;
  border-radius: 20px;
  border: 3px solid rgba(245, 158, 11, 0.6);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 8px 24px rgba(0, 0, 0, 0.6);
  background: #0f172a;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  touch-action: pan-x pan-y;
  margin: 0 auto;
}

.game-map-viewport::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.game-map-viewport.grabbing {
  cursor: grabbing;
}

.game-map-board {
  position: relative;
  width: 700px;
  height: 933px;
  background: url('/images/game_map_bg.jpg') no-repeat center center;
  background-size: cover;
  user-select: none;
  margin: 0 auto;
}

.game-map-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.45) 100%);
  pointer-events: none;
}

.map-svg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.map-path-line {
  fill: none;
  stroke: #fbbf24;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 10, 10;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.9));
  animation: pathDash 20s linear infinite;
}

@keyframes pathDash {
  to { stroke-dashoffset: -200; }
}

.map-node-wrapper {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 5;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.map-node-wrapper:hover {
  transform: translate(-50%, -55%) scale(1.18);
  z-index: 10;
}

.map-node {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  position: relative;
}

/* Completed Station Node (Green 3D Pill) */
.map-node.completed {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  border-color: #a7f3d0;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.6), inset 0 2px 6px rgba(255, 255, 255, 0.6);
}

/* Current Station Node (Gold Pulsing 3D Coin) */
.map-node.current {
  width: 54px;
  height: 54px;
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  border-color: #fef08a;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.95), inset 0 3px 6px rgba(255, 255, 255, 0.8);
  animation: currentPulse 1.8s infinite ease-in-out;
}

@keyframes currentPulse {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(245, 158, 11, 0.7); }
  50% { transform: scale(1.08); box-shadow: 0 0 28px rgba(253, 224, 71, 0.95); }
  100% { transform: scale(1); box-shadow: 0 0 15px rgba(245, 158, 11, 0.7); }
}

/* Next Target Node (Cyber Blue) */
.map-node.next {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  border-color: #bae6fd;
  box-shadow: 0 6px 14px rgba(56, 189, 248, 0.6), inset 0 2px 6px rgba(255, 255, 255, 0.6);
}

/* Locked Node (Dark Stone) */
.map-node.locked {
  background: linear-gradient(180deg, #475569 0%, #1e293b 100%);
  border-color: #94a3b8;
  opacity: 0.85;
}

.map-node-label {
  position: absolute;
  bottom: -22px;
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  pointer-events: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.map-node-standing-badge {
  position: absolute;
  top: -26px;
  background: #f59e0b;
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  border: 2px solid #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  animation: bounceBadge 1.5s infinite ease-in-out;
}

@keyframes bounceBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* 3D Avatar Stage & Speech Bubble Styles */
.avatar-3d-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.avatar-pedestal {
  position: absolute;
  bottom: 12px;
  width: 170px;
  height: 38px;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.5) 0%, rgba(245, 158, 11, 0.05) 75%);
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.8);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6), inset 0 0 10px rgba(253, 224, 71, 0.8);
  transform: rotateX(60deg);
  animation: pedestalGlow 3s infinite ease-in-out;
}

@keyframes pedestalGlow {
  0%, 100% { box-shadow: 0 0 16px rgba(245, 158, 11, 0.5); }
  50% { box-shadow: 0 0 32px rgba(253, 224, 71, 0.9); }
}

.speech-bubble {
  position: relative;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid #38bdf8;
  border-radius: 18px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
  cursor: pointer;
  animation: bubbleFloat 3s infinite ease-in-out;
  margin-bottom: 6px;
  user-select: none;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 8px 0;
  border-style: solid;
  border-color: #38bdf8 transparent;
  display: block;
  width: 0;
}

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.character-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.25s ease;
}

.character-option-card:hover, .character-option-card.selected {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.18);
  transform: scale(1.02);
}

/* Parent Task Approval Traffic Light Buttons Layout - Compact Horizontal Row */
.approval-traffic-light-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
  width: 100% !important;
  margin-top: 10px !important;
  box-sizing: border-box !important;
}

.approval-traffic-btn {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 8px 4px !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  border-radius: 8px !important;
  gap: 4px !important;
  white-space: nowrap !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.approval-traffic-btn:hover {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35) !important;
}

/* Photo Proof Lightbox Modal */
.photo-lightbox-overlay {
  z-index: 30000 !important;
  background: rgba(0, 0, 0, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.photo-lightbox-overlay.active {
  display: flex !important;
}

.photo-lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-lightbox-close-btn {
  position: absolute;
  top: -42px;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.photo-lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.photo-lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(251, 191, 36, 0.6);
}

.photo-lightbox-caption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: #fbbf24;
  font-weight: 700;
  text-align: center;
}

/* Toggle Switch Slider Controls */
.toggle-switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  margin-bottom: 12px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: .3s;
  border-radius: 28px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

input:checked + .slider {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

input:focus + .slider {
  box-shadow: 0 0 1px #22c55e;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* Target Saving Goal Liquid Filling Bottle Styles */
.target-goal-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.target-goal-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #a855f7, #ec4899, #3b82f6);
}

.target-goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.group-bottles-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  padding: 16px 10px 10px 10px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.single-bottle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.bottle-glass-container {
  position: relative;
  width: 70px;
  height: 150px;
  background: rgba(255, 255, 255, 0.04);
  border: 3px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px 12px 24px 24px;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.1), 0 8px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bottle-glass-container::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 10px;
  background: #d97706;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 5;
}

.bottle-glass-container::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 8px;
  width: 8px;
  height: 110px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  pointer-events: none;
  z-index: 4;
}

.bottle-liquid-fill {
  width: 100%;
  background: linear-gradient(180deg, #ec4899 0%, #a855f7 50%, #6366f1 100%);
  transition: height 1s ease-in-out;
  position: relative;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.4);
}

.bottle-liquid-fill.completed {
  background: linear-gradient(180deg, #10b981 0%, #059669 50%, #047857 100%);
}

.bottle-wave {
  position: absolute;
  top: -6px;
  left: 0;
  width: 200%;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C150,90 350,-40 500,40 C650,120 900,-20 1200,40 L1200,120 L0,120 Z' fill='rgba(255,255,255,0.45)'%3E%3C/path%3E%3C/svg%3E") repeat-x;
  animation: liquidWave 3s linear infinite;
  z-index: 3;
}

@keyframes liquidWave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.bottle-percentage-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.9);
  z-index: 6;
  white-space: nowrap;
}

.bottle-child-info {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
}

/* Minimal Quick Balance Adjust Buttons */
.btn-mini-op {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  border: none;
  font-size: 0.85rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.btn-mini-add {
  background: rgba(16, 185, 129, 0.25);
  color: #10b981;
  border: 1px solid #10b981;
}

.btn-mini-add:hover {
  background: #10b981;
  color: #ffffff;
  transform: scale(1.15);
}

.btn-mini-deduct {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
  border: 1px solid #ef4444;
}

.btn-mini-deduct:hover {
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.15);
}

.quick-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-chip:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
}

/* Modern Range Slider for Quick Balance Adjustments */
.custom-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
  margin: 8px 0 4px 0;
  transition: background 0.15s ease-in-out;
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #6366f1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.custom-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #f8fafc;
}

.custom-range-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #6366f1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.custom-range-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  background: #f8fafc;
}

/* Quick Slider Ratio Buttons */
.btn-slider-quick {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text, #e2e8f0);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-slider-quick:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: #6366f1;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-slider-quick:active {
  transform: translateY(0);
}

.btn-slider-quick.btn-slider-max {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.btn-slider-quick.btn-slider-max:hover {
  background: rgba(56, 189, 248, 0.3);
  border-color: #38bdf8;
  color: #ffffff;
}

.savings-slider-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.savings-slider-card:focus-within {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

/* Horizontal Children Cards Carousel */
.children-carousel-container {
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 10px 2px;
  margin-top: 10px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.children-carousel-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.child-card-item {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  box-sizing: border-box;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.children-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.children-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}

.children-carousel-dot.active {
  width: 22px;
  border-radius: 10px;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* Inviting Large Add-Child Button & Empty State */
.empty-children-state {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 2px dashed rgba(245, 158, 11, 0.45);
  border-radius: 18px;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.empty-children-state:hover {
  border-color: rgba(245, 158, 11, 0.7);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.btn-large-add-child-pulse {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  border: 3px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6), 0 8px 24px rgba(245, 158, 11, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: addChildPulse 2.2s infinite;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.btn-large-add-child-pulse .plus-icon {
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1;
  margin-top: -4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}

.btn-large-add-child-pulse:hover,
.btn-large-add-child-pulse:focus {
  transform: scale(1.1);
  box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.2), 0 12px 28px rgba(245, 158, 11, 0.5);
}

.btn-large-add-child-pulse:hover .plus-icon {
  transform: rotate(90deg);
}

.btn-large-add-child-pulse:active {
  transform: scale(0.95);
}

@keyframes addChildPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7), 0 6px 20px rgba(245, 158, 11, 0.35);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(245, 158, 11, 0), 0 10px 28px rgba(245, 158, 11, 0.45);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0), 0 6px 20px rgba(245, 158, 11, 0.35);
  }
}


/* 2D Interactive Gamification Map - 2-Way Scrolling & Sleek Scrollbars */
#gamification-map-container {
  overflow: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(168, 85, 247, 0.75) rgba(15, 23, 42, 0.6) !important;
  -ms-overflow-style: auto !important;
  touch-action: pan-x pan-y !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

#gamification-map-container::-webkit-scrollbar {
  display: block !important;
  width: 8px !important;
  height: 8px !important;
}

#gamification-map-container::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.65) !important;
  border-radius: 4px !important;
}

#gamification-map-container::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.8) !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

#gamification-map-container::-webkit-scrollbar-thumb:hover {
  background: rgba(192, 132, 252, 1) !important;
}

/* ==========================================================================
   ENLARGED REALISTIC SAVINGS PLAN CARDS & SCENIC MOTION THEMES
   ========================================================================== */

.savings-plan-card-enlarged {
  position: relative;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.savings-plan-card-enlarged:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Header */
.savings-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
}

.savings-card-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.savings-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.savings-card-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
}

.savings-card-time-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.savings-time-pill {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: #cbd5e1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Panoramic Scene Viewport */
.savings-plan-scene {
  position: relative;
  width: 100%;
  height: 175px;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 6px 20px rgba(0, 0, 0, 0.4);
  user-select: none;
}

@media (max-width: 480px) {
  .savings-plan-scene {
    height: 160px;
  }
}

.savings-scene-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.05) 40%, rgba(15, 23, 42, 0.8) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Top scene badges */
.savings-scene-top-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  pointer-events: none;
}

.savings-scene-chip {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.74rem;
  color: #f1f5f9;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.savings-scene-chip-gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

/* Scene Markers (Start & Goal) */
.savings-scene-marker {
  position: absolute;
  z-index: 3;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 3px 8px;
  font-size: 0.68rem;
  color: #f8fafc;
  backdrop-filter: blur(6px);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.savings-scene-marker-start {
  right: 10px;
  bottom: 8px;
}

.savings-scene-marker-goal {
  left: 10px;
  bottom: 8px;
}

.savings-scene-marker-top {
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
}

.savings-scene-marker-bottom {
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.savings-scene-marker-everest-summit {
  top: 36px;
  left: 10px;
}

.savings-scene-marker-everest-base {
  bottom: 8px;
  right: 10px;
}

/* Specific Scene Theme Overlays */
/* Ladder Guide for Quarterly */
.savings-ladder-guide {
  position: absolute;
  top: 26px;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  border-left: 3px solid rgba(245, 158, 11, 0.45);
  border-right: 3px solid rgba(245, 158, 11, 0.45);
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 14px,
    rgba(245, 158, 11, 0.5) 14px,
    rgba(245, 158, 11, 0.5) 17px
  );
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

/* Finish Ribbon for Monthly Sprint */
.savings-finish-ribbon {
  position: absolute;
  left: 10px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.savings-ribbon-tape {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: ribbonWave 2s ease-in-out infinite alternate;
}

@keyframes ribbonWave {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(3deg); }
}

/* Character Sprites & Animations - 3D Cute Game Style */

/* 1. Daily Kart: Cute 3D hovering neon kart */
.sprite-game-kart,
.savings-sprite-racer {
  position: absolute;
  height: 52px;
  width: auto;
  z-index: 4;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 12px rgba(56, 189, 248, 0.65));
  transition: right 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: kartHover 1.4s ease-in-out infinite alternate;
}

@keyframes kartHover {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* 2. Weekly Runner: Cheerful bouncing chibi runner kid */
.sprite-game-runner,
.savings-sprite-runner {
  position: absolute;
  height: 64px;
  width: auto;
  z-index: 4;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.65));
  transition: right 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: runnerJoyBounce 0.65s ease-in-out infinite alternate;
}

@keyframes runnerJoyBounce {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-7px) scale(1.04) rotate(-3deg); }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}

/* 3. Monthly Sprinter: Sprinting kid bursting forward */
.sprite-game-sprinter,
.savings-sprite-sprinter {
  position: absolute;
  height: 66px;
  width: auto;
  z-index: 4;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
  transition: right 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: sprintBurst 0.5s ease-in-out infinite alternate;
}

@keyframes sprintBurst {
  0% { transform: translateY(0) rotate(-6deg) scale(1); }
  100% { transform: translateY(-6px) rotate(-2deg) scale(1.03); }
}

/* 4. Quarterly Climber: Alternating ladder climbing step */
.sprite-game-climber,
.savings-sprite-climber {
  position: absolute;
  height: 72px;
  width: auto;
  z-index: 4;
  left: 50%;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7));
  transition: bottom 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: ladderClimbingCycle 0.85s ease-in-out infinite alternate;
}

@keyframes ladderClimbingCycle {
  0% { transform: translateX(-50%) rotate(-3.5deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(0deg) translateY(-4px); }
  100% { transform: translateX(-50%) rotate(3.5deg) translateY(-8px); }
}

/* 5. Yearly Everest Mountaineer: Determined uphill hike */
.sprite-game-mountaineer,
.savings-sprite-everest {
  position: absolute;
  height: 68px;
  width: auto;
  z-index: 4;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 10px rgba(192, 132, 252, 0.5));
  transition: right 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), bottom 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: mountaineerHike 1.1s ease-in-out infinite alternate;
}

@keyframes mountaineerHike {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-5px) scale(1.03) rotate(-2deg); }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}

/* Golden Star Trophy Glow on Ladder */
.star-trophy-glow {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.6rem;
  z-index: 3;
  filter: drop-shadow(0 0 12px #fbbf24);
  animation: starPulse 1.8s ease-in-out infinite alternate;
}

@keyframes starPulse {
  0% { transform: translateX(-50%) scale(1); filter: drop-shadow(0 0 8px #fbbf24); }
  100% { transform: translateX(-50%) scale(1.2); filter: drop-shadow(0 0 18px #f59e0b) drop-shadow(0 0 25px #fbbf24); }
}

/* Finish Line Ribbon Banner for Monthly Sprint */
.finish-banner-3d {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: ribbonWave 1.8s ease-in-out infinite alternate;
}

/* Floor track styling beneath horizontal runners */
.savings-track-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.7));
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
  pointer-events: none;
  z-index: 2;
}

/* Bottom Progress Track & Financial Details */
.savings-details-box {
  margin-top: 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.savings-mini-progress-track {
  position: relative;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.savings-mini-progress-fill {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: 6px;
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.savings-financial-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.76rem;
  direction: rtl;
}

.savings-meta-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.savings-meta-col.text-start {
  text-align: right;
}

.savings-meta-col.text-end {
  text-align: left;
}

/* ========================================================
   Parent Burger Collapsible Left Panel (Side Drawer)
   ======================================================== */
#modal-burger-menu.parent-left-panel {
  display: flex !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  direction: ltr !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 1050 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.28s ease !important;
}

#modal-burger-menu.parent-left-panel.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

#modal-burger-menu.parent-left-panel .modal-content {
  position: relative !important;
  width: 320px !important;
  max-width: 85% !important;
  height: 100% !important;
  max-height: 100% !important;
  direction: rtl !important;
  text-align: right !important;
  border-radius: 0 22px 22px 0 !important;
  margin: 0 !important;
  border-left: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-right: 1px solid rgba(56, 189, 248, 0.35) !important;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
  box-shadow: 15px 0 45px rgba(0, 0, 0, 0.75) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  padding: 22px 18px 32px !important;
  transform: translateX(-105%) !important;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
  -webkit-overflow-scrolling: touch !important;
}

#modal-burger-menu.parent-left-panel.active .modal-content {
  transform: translateX(0) !important;
}

/* ========================================================
   3D Character Playground & Launch Button
   ======================================================== */

.playground-launch-section {
  margin: 8px 0 14px 0;
  width: 100%;
}

.btn-playground-launch {
  width: 100%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  padding: 12px 16px;
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  text-align: right;
  direction: rtl;
}

.btn-playground-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-playground-launch:active {
  transform: scale(0.98);
}

.playground-btn-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.playground-btn-icon-bubble {
  font-size: 1.65rem;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.playground-btn-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.playground-btn-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.playground-btn-subtitle {
  font-size: 0.76rem;
  opacity: 0.92;
  color: #f1f5f9;
  font-weight: 400;
}

.playground-btn-action-badge {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Full-Screen Playground View */
.figure-playground-view {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at 50% 25%, #1e1b4b 0%, #080c14 85%);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: env(safe-area-inset-top, 8px) 14px env(safe-area-inset-bottom, 12px) 14px;
  user-select: none;
  -webkit-user-select: none;
}

.figure-playground-view.hidden {
  display: none !important;
}

/* Playground Top HUD */
.playground-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  z-index: 25;
  direction: rtl;
  gap: 8px;
}

.playground-home-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 22px;
  color: #38bdf8;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), inset 0 0 10px rgba(56, 189, 248, 0.15);
  transition: all 0.2s ease;
}

.playground-home-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.playground-home-btn:active {
  transform: scale(0.95);
}

.playground-home-icon {
  font-size: 1.15rem;
}

.playground-hud-badge {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.playground-hud-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.playground-hud-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.playground-hud-btn:hover {
  border-color: #38bdf8;
  transform: scale(1.08);
}

.playground-hud-btn:active {
  transform: scale(0.92);
}

/* Playground Speech Bubble */
.playground-speech-container {
  display: flex;
  justify-content: center;
  padding: 4px 12px;
  z-index: 22;
}

.playground-speech-bubble {
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(139, 92, 246, 0.4);
  padding: 8px 16px;
  border-radius: 18px;
  color: #f1f5f9;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  max-width: 90%;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  animation: floatBubble 3s ease-in-out infinite alternate;
  transition: transform 0.2s ease;
}

.playground-speech-bubble:active {
  transform: scale(0.97);
}

@keyframes floatBubble {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

/* Playground 3D Viewport Stage */
.playground-3d-viewport {
  flex: 1;
  width: calc(100% + 28px);
  margin-left: -14px;
  margin-right: -14px;
  min-height: 380px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.playground-drag-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.7rem;
  color: #94a3b8;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

/* Playground Bottom Controls Bar */
.playground-bottom-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 4px 12px 4px;
  z-index: 25;
}

.playground-action-buttons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.btn-playground-action {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 8px 4px;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-playground-action:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3);
}

.btn-playground-action:active {
  transform: scale(0.92);
}

.action-icon {
  font-size: 1.4rem;
}

.action-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.action-dance { border-color: rgba(236, 72, 153, 0.35); }
.action-jump { border-color: rgba(16, 185, 129, 0.35); }
.action-spin { border-color: rgba(56, 189, 248, 0.35); }
.action-flip { border-color: rgba(168, 85, 247, 0.40); }
.action-victory { border-color: rgba(250, 204, 21, 0.40); }
.action-wave { border-color: rgba(245, 158, 11, 0.35); }
.action-talk { border-color: rgba(168, 85, 247, 0.35); }

/* Upcoming Game Hub Card */
.playground-games-hub-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 10px 14px;
  text-align: center;
  direction: rtl;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.playground-games-hub-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.playground-game-pill {
  font-size: 0.85rem;
  font-weight: 800;
  color: #38bdf8;
}

.playground-game-tag {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.playground-games-hub-desc {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.35;
}

/* ========================================================
   DAILY TASKS WHEEL OF FORTUNE (גלגל המזל היומי)
   ======================================================== */
.wheel-progress-card {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.92) 0%, rgba(49, 46, 129, 0.88) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  direction: rtl;
}

.wheel-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.wheel-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wheel-spin-icon {
  font-size: 1.9rem;
  filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.45));
}

.wheel-title-text {
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
}

.wheel-subtext {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.3;
}

.wheel-badge {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.wheel-badge.has-spins {
  background: linear-gradient(135deg, #f59e0b, #eab308);
  color: #1e1b4b;
  font-weight: 800;
  border: 1px solid #fef08a;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.6);
  animation: pulseGlow 1.8s infinite;
}

.wheel-progress-bar-container {
  margin: 8px 0 12px 0;
}

.wheel-progress-bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.wheel-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6);
  border-radius: 6px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wheel-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 5px;
  font-weight: 500;
}

.wheel-action-btn {
  width: 100%;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.wheel-action-btn.has-spins-glow {
  background: linear-gradient(135deg, #f59e0b, #eab308) !important;
  color: #1e1b4b !important;
  border: 1px solid #fef08a !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.5) !important;
  animation: pulseGlow 2s infinite;
}

/* 1st Task Encouragement Modal */
.first-task-modal-content {
  max-width: 400px;
  width: 92%;
  padding: 22px 18px;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 15%, #2e1065 0%, #0f172a 90%);
  border: 2px solid rgba(251, 191, 36, 0.6);
  box-shadow: 0 0 35px rgba(251, 191, 36, 0.3);
  text-align: center;
  direction: rtl;
}

.first-task-burst {
  font-size: 1.8rem;
  margin-bottom: 2px;
}

.first-task-wheel-illustration {
  margin: 6px auto 12px auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.wheel-svg-graphic {
  display: block;
  margin: 0 auto;
}

.first-task-header-badge {
  display: inline-block;
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.first-task-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.first-task-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 14px;
}

.first-task-progress-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.first-task-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.first-task-btn {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

/* Wheel of Fortune Main Modal */
.wheel-modal-content {
  max-width: 420px;
  width: 92%;
  padding: 18px 14px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 20%, #1e1b4b 0%, #0a0e1a 95%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  text-align: center;
  direction: rtl;
}

.wheel-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 4px;
}

.wheel-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0;
  text-align: right;
}

.wheel-modal-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2px;
  text-align: right;
}

.close-wheel-btn {
  width: auto !important;
  padding: 4px 8px !important;
  border-radius: 8px;
}

.wheel-status-banner {
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 10px;
  padding: 6px 12px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c084fc;
}

.wheel-canvas-container {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 4px auto 12px auto;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#wheel-canvas {
  width: 320px;
  height: 320px;
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.65));
}

.wheel-pointer-pin {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  pointer-events: none;
}

.wheel-pointer-arrow {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid #ef4444;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}

.wheel-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fef08a 0%, #eab308 60%, #b45309 100%);
  border: 3.5px solid #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  color: #1e1b4b;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.wheel-center-btn:hover {
  filter: brightness(1.08);
  transform: translate(-50%, -50%) scale(1.04);
}

.wheel-center-btn:active {
  transform: translate(-50%, -50%) scale(0.93);
}

.wheel-center-btn:disabled,
.wheel-big-spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.5);
  pointer-events: none;
}

.wheel-center-text {
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.2px;
}

.wheel-center-emoji {
  font-size: 1.05rem;
  line-height: 1.1;
}

.wheel-modal-footer {
  margin-top: 4px;
}

.wheel-big-spin-btn {
  width: 100%;
  padding: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 14px;
  margin-bottom: 8px;
}

.wheel-respin-info {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
  padding: 0 4px;
}

/* Prize Celebration Modal */
.prize-celebration-content {
  max-width: 380px;
  width: 92%;
  padding: 22px 18px;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 15%, #1e1b4b 0%, #0b0f19 90%);
  border: 2px solid #eab308;
  box-shadow: 0 0 35px rgba(234, 179, 8, 0.4);
  text-align: center;
  direction: rtl;
}

.prize-confetti-icon {
  font-size: 2.8rem;
  margin-bottom: 2px;
}

.prize-sparkles {
  font-size: 1.1rem;
  color: #facc15;
  margin-bottom: 6px;
}

.prize-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.prize-won-card {
  background: rgba(234, 179, 8, 0.12);
  border: 1.5px solid rgba(234, 179, 8, 0.4);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
}

.prize-won-icon {
  font-size: 2.4rem;
  margin-bottom: 4px;
}

.prize-won-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: #facc15;
}

.prize-won-subtext {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-top: 2px;
}

.prize-next-goal-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 18px;
}

.prize-next-goal-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 3px;
}

.prize-next-goal-desc {
  font-size: 0.8rem;
  color: #94a3b8;
}

.prize-btn {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 14px;
}

/* ========================================================
   WHEEL OF FORTUNE PARENT SETTINGS MODAL
   ======================================================== */
.wheel-settings-modal-content {
  max-width: 620px;
  width: 94%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 10%, #1e1b4b 0%, #0b0f19 100%);
  border: 1.5px solid rgba(234, 179, 8, 0.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  padding: 18px 20px;
  direction: rtl;
  text-align: right;
}

.wheel-settings-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.wheel-settings-scroll {
  overflow-y: auto;
  flex: 1;
  max-height: 58vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 6px;
  margin-bottom: 14px;
}

.wheel-settings-scroll::-webkit-scrollbar {
  width: 6px;
}
.wheel-settings-scroll::-webkit-scrollbar-thumb {
  background: rgba(234, 179, 8, 0.3);
  border-radius: 4px;
}

.wheel-slice-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.wheel-slice-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(234, 179, 8, 0.35);
}

.wheel-slice-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.wheel-slice-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wheel-slice-num-badge {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.wheel-slice-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.wheel-slice-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
}

.wheel-slice-select {
  height: 38px;
  border-radius: 10px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.88rem;
  width: 100%;
}

.wheel-amount-stepper {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
  height: 38px;
}

.wheel-stepper-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  width: 40px;
  height: 100%;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  user-select: none;
}

.wheel-stepper-btn:hover {
  background: rgba(234, 179, 8, 0.25);
  color: #facc15;
}

.wheel-stepper-input {
  flex: 1;
  border: none;
  background: transparent;
  color: #ffffff;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  height: 100%;
  width: 100%;
  outline: none;
}

.wheel-settings-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  flex-wrap: wrap;
}

@media (max-width: 500px) {
  .wheel-slice-inputs-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .wheel-settings-modal-footer {
    flex-direction: column;
  }
  .wheel-settings-modal-footer > div {
    width: 100%;
  }
}

/* ========================================================
   WHEEL OF FORTUNE - CALCULATOR, GUIDANCE & THRESHOLDS
   ======================================================== */
.wheel-thresholds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.wheel-threshold-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wheel-threshold-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #f1f5f9;
  font-weight: 600;
}

.wheel-threshold-hint {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 400;
}

.wheel-guidance-box {
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.wheel-guidance-title {
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.wheel-guidance-list {
  margin: 0;
  padding-right: 18px;
  list-style-type: disc;
  font-size: 0.78rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wheel-calc-card {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.08), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.wheel-calc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.wheel-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.wheel-calc-col {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wheel-calc-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #facc15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
  margin-bottom: 2px;
}

.wheel-calc-stat {
  font-size: 0.76rem;
  color: #cbd5e1;
}

.wheel-calc-highlight {
  font-weight: 700;
  color: #34d399;
}

.wheel-calc-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 6px;
}

.wheel-calc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
}

@media (max-width: 600px) {
  .wheel-thresholds-grid {
    grid-template-columns: 1fr;
  }
  .wheel-calc-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   PARENT PERIODIC REPORTS MODAL & STYLING
   ======================================================== */
.parent-reports-modal-content {
  max-width: 780px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 15% 15%, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  border: 1px solid rgba(14, 165, 233, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  border-radius: 16px;
  direction: rtl;
  text-align: right;
  overflow: hidden;
  padding: 0;
}

.parent-reports-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.parent-reports-scroll {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.parent-reports-modal-footer {
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
}

.report-config-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.report-pill-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.report-pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.report-pill-btn.active {
  background: rgba(14, 165, 233, 0.18);
  border-color: #0ea5e9;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.25);
}

.report-checkboxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.report-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.report-checkbox-label:hover {
  background: rgba(255, 255, 255, 0.06);
}

.report-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: #0ea5e9;
  cursor: pointer;
}

.report-checkbox-label strong {
  display: block;
  font-size: 0.85rem;
  color: #f1f5f9;
  margin-bottom: 2px;
}

.report-checkbox-label span {
  display: block;
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.3;
}

.report-item-disabled {
  opacity: 0.55;
  cursor: not-allowed !important;
  background: rgba(255, 255, 255, 0.01) !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
}

.report-item-disabled input[type="checkbox"] {
  cursor: not-allowed;
}

.badge-disabled {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.68rem;
  font-weight: 700;
}

.report-child-preview-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.report-preview-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.report-preview-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}

.report-table-wrapper {
  overflow-x: auto;
  margin-top: 8px;
  margin-bottom: 8px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.report-table th {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  padding: 6px 8px;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.report-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

/* ========================================================
   ENHANCED PARENT HOME PAGE & MODERN TRANSACTIONS STYLES
   ======================================================== */

/* Larger Typography Scale for Parent Dashboard Cards */
#view-parent-dashboard .card-title,
#view-parent-transactions .card-title {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}

/* 2-Column Responsive Tiles Grid for Analytics Actions */
.parent-analytics-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
}

@media (max-width: 480px) {
  .parent-analytics-tiles-grid {
    gap: 8px;
  }
}

.analytics-action-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 12px;
  min-height: 84px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  text-align: right;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  min-width: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 480px) {
  .analytics-action-tile {
    padding: 12px 10px;
    gap: 10px;
    min-height: 80px;
    border-radius: 14px;
  }
}

.analytics-action-tile:active {
  transform: scale(0.97);
}

.tile-stats {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(15, 23, 42, 0.85) 100%);
  border-color: rgba(56, 189, 248, 0.45);
  color: #fff;
}

.tile-stats:hover {
  border-color: #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.tile-rules {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.20) 0%, rgba(15, 23, 42, 0.85) 100%);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fff;
}

.tile-rules:hover {
  border-color: #fbbf24;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

.tile-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 480px) {
  .tile-icon {
    font-size: 1.65rem;
    margin-top: 2px;
  }
}

.tile-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.tile-title {
  font-size: clamp(0.85rem, 2.8vw, 1.05rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
  min-height: 2.5em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tile-subtitle {
  font-size: clamp(0.68rem, 2vw, 0.8rem);
  color: var(--text-muted);
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
  min-height: 2.5em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* ========================================================
   GAMIFICATION GOALS & PRIZE CARD (BELOW THE 2 TILES)
   ======================================================== */
.gamification-goals-card {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(15, 23, 42, 0.88) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.42);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 12px;
  cursor: default;
  user-select: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

@media (max-width: 480px) {
  .gamification-goals-card {
    padding: 12px 10px;
    border-radius: 16px;
  }
}

.goals-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 8px;
}

.goals-card-subject {
  font-size: clamp(1.02rem, 3.2vw, 1.25rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.goals-card-hint {
  font-size: clamp(0.70rem, 2vw, 0.76rem);
  color: var(--text-muted);
  margin-top: 2px;
}

.goals-edit-btn,
.goals-edit-badge {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.48);
  font-size: 0.80rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.goals-edit-btn:hover,
.goals-edit-badge:hover {
  background: rgba(245, 158, 11, 0.38);
  border-color: #fbbf24;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.goals-edit-btn:active,
.goals-edit-badge:active {
  transform: scale(0.96);
}

.goals-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .goals-metrics-grid {
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .goals-metrics-grid {
    gap: 4px;
  }
}

.goal-metric-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  box-sizing: border-box;
  min-width: 0 !important;
  overflow: hidden !important;
  width: 100%;
  position: relative;
}

@media (max-width: 380px) {
  .goal-metric-box {
    padding: 6px 3px;
    min-height: 68px;
    border-radius: 10px;
  }
}

.goal-metric-label {
  font-size: clamp(0.62rem, 2vw, 0.74rem);
  font-weight: 700;
  color: var(--text-muted);
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  line-height: 1.18;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 2.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  overflow: hidden;
}

.goal-metric-value {
  font-size: clamp(0.85rem, 2.7vw, 1.05rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.goal-metric-value.gold-text {
  color: #fbbf24;
  direction: ltr !important;
  unicode-bidi: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  gap: 3px;
}

.goal-metric-value.gold-text .metric-val {
  direction: ltr !important;
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.goal-metric-value.gold-text .metric-unit {
  direction: rtl !important;
  display: inline-block;
  font-size: 0.85em;
}

.goal-metric-value.leader-text {
  color: #38bdf8;
}

.goal-metric-sub {
  font-size: clamp(0.58rem, 1.8vw, 0.68rem);
  color: var(--text-muted);
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  line-height: 1.15;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  overflow: hidden;
}

/* Child Task Metrics Grid (Shared inside Carousel Cards) */
.child-task-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .child-task-metrics-grid {
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .child-task-metrics-grid {
    gap: 4px;
  }
}

.child-task-metric-tile {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  padding: 8px 4px;
  box-sizing: border-box;
  min-width: 0 !important;
  overflow: hidden !important;
  width: 100%;
  position: relative;
}

@media (max-width: 380px) {
  .child-task-metric-tile {
    padding: 6px 2px;
    min-height: 74px;
    border-radius: 10px;
  }
}

.child-task-metric-tile .metric-title {
  color: var(--text-muted);
  font-size: clamp(0.68rem, 2vw, 0.78rem);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.child-task-metric-tile .metric-num {
  font-size: clamp(0.95rem, 3vw, 1.22rem);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  direction: ltr !important;
  unicode-bidi: isolate;
  display: inline-block;
}

/* Universal BiDi Safe Ratio & Fraction Display (e.g. 6 / 10, 703 / 1,000, 0 / 40) */
.ratio-val {
  direction: ltr !important;
  unicode-bidi: isolate;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bottle-points-progress {
  direction: ltr !important;
  unicode-bidi: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.child-task-metric-tile .badge {
  max-width: 100% !important;
  box-sizing: border-box !important;
  font-size: clamp(0.58rem, 1.8vw, 0.68rem) !important;
  padding: 2px 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: inline-block !important;
}

/* Child Card Dedicated Quick Actions Bar */
.child-card-actions-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 2px;
}

@media (max-width: 380px) {
  .child-card-actions-bar {
    gap: 6px;
  }
}

.child-card-actions-bar .btn {
  width: 100% !important;
  padding: 7px 6px !important;
  font-size: clamp(0.76rem, 2.3vw, 0.86rem) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
}

/* Child Balances 2x2 Fintech Grid (Cash & Points, Stars & Coins) */
.child-balances-2x2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 420px) {
  .child-balances-2x2-grid {
    gap: 8px;
  }
}

.child-balance-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 94px;
  min-width: 0 !important;
  box-sizing: border-box;
  position: relative;
  transition: all 0.2s ease;
  gap: 4px;
}

.child-balance-card.cash-card {
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.06);
}

.child-balance-card.points-card {
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.05);
}

.child-balance-card.stars-card {
  border: 1px solid rgba(253, 224, 71, 0.3);
  background: rgba(253, 224, 71, 0.05);
}

.child-balance-card.coins-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.child-balance-card .balance-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.child-balance-card .balance-card-label {
  font-size: clamp(0.72rem, 2.2vw, 0.82rem);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.child-balance-card .balance-card-body {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.child-balance-card .balance-card-value {
  font-size: clamp(1.15rem, 3.8vw, 1.35rem);
  font-weight: 800;
  white-space: nowrap;
  direction: ltr !important;
  unicode-bidi: isolate;
  display: block;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.child-balance-card .balance-card-actions {
  display: flex;
  gap: 6px;
  width: 100%;
  margin-top: 2px;
}

.child-balance-card .btn-mini-op {
  flex: 1 !important;
  width: auto !important;
  min-width: 0 !important;
  height: 28px !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  padding: 0 !important;
  line-height: 1 !important;
  border: none !important;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.2s ease;
}

.child-balance-card .btn-mini-op:active {
  transform: scale(0.94);
}

.child-balance-card .btn-mini-add {
  background: #10b981 !important;
  color: #ffffff !important;
}

.child-balance-card .btn-mini-add:hover {
  background: #059669 !important;
  color: #ffffff !important;
}

.child-balance-card .btn-mini-deduct {
  background: #ef4444 !important;
  color: #ffffff !important;
}

.child-balance-card .btn-mini-deduct:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}

.child-balance-card .balance-card-actions-spacer {
  height: 28px;
  width: 100%;
  margin-top: 2px;
}

@media (max-width: 380px) {
  .child-balance-card {
    padding: 8px 10px;
    min-height: 90px;
  }
  .child-balance-card .btn-mini-op {
    height: 26px !important;
    font-size: 1.05rem !important;
  }
  .child-balance-card .balance-card-actions-spacer {
    height: 26px;
  }
}

/* Child Allowance Status Strip */
.child-allowance-status-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed rgba(52, 211, 153, 0.35);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.84rem;
  color: #a7f3d0;
  box-sizing: border-box;
}

.child-allowance-status-strip .allowance-strip-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Legacy Sub-Grid compatibility */
.child-balances-subgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.child-balance-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 8px;
  border-radius: 10px;
  min-width: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box;
}

.child-balance-pill .pill-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.child-balance-pill .pill-label {
  font-size: clamp(0.68rem, 2vw, 0.8rem);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.child-balance-pill .pill-value {
  font-size: clamp(0.9rem, 2.8vw, 1.08rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.child-balance-pill .pill-actions {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-shrink: 0;
}

/* Parent Interactive Hub Card */
.parent-hub-card {
  transition: all 0.22s ease;
  cursor: pointer;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
}

.parent-hub-card:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.2) !important;
  transform: translateY(-2px);
}

.parent-hub-card:active {
  transform: scale(0.99);
}

/* Modern Fintech Transaction Cards Layout */
.tx-card {
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 41, 59, 0.75);
}

/* Category 1: כספים (Emerald / Mint Green) */
.tx-card.tx-cat-money {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(15, 23, 42, 0.92) 100%);
  border-color: rgba(52, 211, 153, 0.38);
  border-right: 4px solid #10b981;
}
.tx-card.tx-cat-money:hover {
  border-color: #34d399;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

/* Category 2: מטלות (Sky Blue / Cyan) */
.tx-card.tx-cat-task {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14) 0%, rgba(15, 23, 42, 0.92) 100%);
  border-color: rgba(56, 189, 248, 0.38);
  border-right: 4px solid #0ea5e9;
}
.tx-card.tx-cat-task:hover {
  border-color: #38bdf8;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.25);
  transform: translateY(-1px);
}

/* Category 3: שדרוגים (Purple / Violet) */
.tx-card.tx-cat-upgrade {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.14) 0%, rgba(15, 23, 42, 0.92) 100%);
  border-color: rgba(192, 132, 252, 0.38);
  border-right: 4px solid #a855f7;
}
.tx-card.tx-cat-upgrade:hover {
  border-color: #c084fc;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.25);
  transform: translateY(-1px);
}

/* Category 4: נקודות וכוכבים (Amber / Gold) */
.tx-card.tx-cat-points-stars,
.tx-card.tx-cat-points,
.tx-card.tx-cat-stars,
.tx-card.tx-cat-prize,
.tx-card.tx-cat-wheel {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(15, 23, 42, 0.92) 100%);
  border-color: rgba(251, 191, 36, 0.38);
  border-right: 4px solid #f59e0b;
}
.tx-card.tx-cat-points-stars:hover,
.tx-card.tx-cat-points:hover,
.tx-card.tx-cat-stars:hover,
.tx-card.tx-cat-prize:hover,
.tx-card.tx-cat-wheel:hover {
  border-color: #fbbf24;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

.tx-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 10px;
}

/* Top-Left Date/Time Badge */
.tx-date-badge {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 3px 9px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
  direction: ltr !important;
  unicode-bidi: isolate;
}

/* Top-Right Category/Action Pill */
.tx-category-pill {
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tx-category-pill.credit {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.tx-category-pill.debit {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.tx-category-pill.task {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.tx-category-pill.upgrade {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.tx-category-pill.points {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.tx-category-pill.stars {
  background: rgba(251, 191, 36, 0.18);
  color: #fde047;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.tx-category-pill.prize,
.tx-category-pill.wheel {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.tx-category-pill.warning {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Category Quick-Filter Cards (1 Wide + 4 Square Cards) */
.tx-filter-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  width: 100%;
}

@media (min-width: 600px) {
  .tx-filter-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

.tx-filter-card {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease-in-out;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  user-select: none;
  font-family: inherit;
  outline: none;
}

.tx-filter-card:hover {
  background: rgba(51, 65, 85, 0.85);
  border-color: rgba(56, 189, 248, 0.4);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.tx-filter-card:active {
  transform: scale(0.97);
}

/* Wide Card: Everything (Indigo / Blue Theme) */
.tx-filter-card-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  min-height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.16) 0%, rgba(30, 58, 138, 0.4) 100%);
  border: 1.5px solid rgba(96, 165, 250, 0.35);
  color: #bfdbfe;
}

.tx-filter-card-wide .tx-filter-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.tx-filter-card-wide .tx-filter-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.tx-filter-card-wide:hover {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.26) 0%, rgba(30, 58, 138, 0.55) 100%);
  border-color: #60a5fa;
  color: #fff;
}

.tx-filter-card-wide.active {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.5) 0%, rgba(29, 78, 216, 0.7) 100%) !important;
  border: 2px solid #60a5fa !important;
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.45) !important;
  color: #fff !important;
}

/* Square Cards (4 distinct category themes for instant visual recognition) */
.tx-filter-card-square {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  text-align: center;
  min-height: 82px;
  border-radius: 14px;
  gap: 6px;
}

.tx-filter-card-square .tx-filter-icon {
  font-size: 1.75rem;
  line-height: 1;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.tx-filter-card:hover .tx-filter-icon {
  transform: scale(1.12);
}

.tx-filter-card-square .tx-filter-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Category 1: כספים (Emerald / Mint Green) */
.tx-filter-card.card-money {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.16) 0%, rgba(6, 78, 59, 0.45) 100%);
  border: 1.5px solid rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
}
.tx-filter-card.card-money:hover {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.26) 0%, rgba(6, 78, 59, 0.58) 100%);
  border-color: #34d399;
  color: #fff;
}
.tx-filter-card.card-money.active {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.45) 0%, rgba(5, 150, 105, 0.68) 100%) !important;
  border: 2px solid #34d399 !important;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.45) !important;
  color: #fff !important;
}

/* Category 2: מטלות (Sky Blue / Cyan) */
.tx-filter-card.card-task {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.16) 0%, rgba(3, 105, 161, 0.45) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  color: #bae6fd;
}
.tx-filter-card.card-task:hover {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.26) 0%, rgba(3, 105, 161, 0.58) 100%);
  border-color: #38bdf8;
  color: #fff;
}
.tx-filter-card.card-task.active {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.45) 0%, rgba(2, 132, 199, 0.68) 100%) !important;
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45) !important;
  color: #fff !important;
}

/* Category 3: שדרוגים (Purple / Violet) */
.tx-filter-card.card-upgrade {
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.16) 0%, rgba(107, 33, 168, 0.45) 100%);
  border: 1.5px solid rgba(192, 132, 252, 0.4);
  color: #e9d5ff;
}
.tx-filter-card.card-upgrade:hover {
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.26) 0%, rgba(107, 33, 168, 0.58) 100%);
  border-color: #c084fc;
  color: #fff;
}
.tx-filter-card.card-upgrade.active {
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.45) 0%, rgba(126, 34, 206, 0.68) 100%) !important;
  border: 2px solid #c084fc !important;
  box-shadow: 0 0 18px rgba(192, 132, 252, 0.45) !important;
  color: #fff !important;
}

/* Category 4: נקודות וכוכבים (Amber / Gold) */
.tx-filter-card.card-points-stars {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.16) 0%, rgba(180, 83, 9, 0.45) 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.4);
  color: #fef08a;
}
.tx-filter-card.card-points-stars:hover {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.26) 0%, rgba(180, 83, 9, 0.58) 100%);
  border-color: #fbbf24;
  color: #fff;
}
.tx-filter-card.card-points-stars.active {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.45) 0%, rgba(217, 119, 6, 0.68) 100%) !important;
  border: 2px solid #fbbf24 !important;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.45) !important;
  color: #fff !important;
}

/* Middle: What + Amount Row */
.tx-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tx-what-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.tx-amount-badge {
  font-size: 1.25rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 10px;
  letter-spacing: 0.3px;
  direction: ltr !important;
  unicode-bidi: isolate;
  flex-direction: row;
}

.tx-amount-val {
  direction: ltr !important;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  line-height: 1;
}

.tx-amount-unit {
  font-size: 0.9em;
  opacity: 0.9;
  display: inline-block;
  line-height: 1;
  direction: rtl !important;
  unicode-bidi: isolate;
}

.tx-amount-text {
  font-size: 0.95rem;
  font-weight: 700;
}

/* Universal BiDi Safe Amount Badges & Signs (+ / -) across all Children & Parent views */
.badge-amount-num {
  direction: ltr !important;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

.badge-amount-unit {
  direction: rtl !important;
  unicode-bidi: isolate;
  display: inline-block;
}

.tx-amount-badge.positive {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tx-amount-badge.negative {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.tx-amount-badge.points {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.tx-amount-badge.stars {
  color: #fde047;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.tx-amount-badge.upgrade {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-size: 1.05rem;
}

.tx-amount-badge.warning {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 0.95rem;
}

/* Extra Details / Notes Box */
.tx-details-row {
  font-size: 0.82rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 2px;
  line-height: 1.4;
  word-break: break-word;
}

/* Bottom: Separate Lines for From & To */
.tx-parties-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(0, 0, 0, 0.22);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.tx-party-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.tx-party-label {
  color: var(--text-muted);
  font-size: 0.88rem;
  min-width: 52px;
}

.tx-party-name {
  font-weight: 600;
  color: #fff;
}

/* Light Executive Theme Overrides */
[data-theme="parent-light-executive"] .tx-card {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}
[data-theme="parent-light-executive"] .tx-card.tx-cat-money {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
  border-color: #a7f3d0 !important;
  border-right: 4px solid #10b981 !important;
}
[data-theme="parent-light-executive"] .tx-card.tx-cat-task {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%) !important;
  border-color: #bae6fd !important;
  border-right: 4px solid #0ea5e9 !important;
}
[data-theme="parent-light-executive"] .tx-card.tx-cat-upgrade {
  background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%) !important;
  border-color: #e9d5ff !important;
  border-right: 4px solid #a855f7 !important;
}
[data-theme="parent-light-executive"] .tx-card.tx-cat-points-stars,
[data-theme="parent-light-executive"] .tx-card.tx-cat-points,
[data-theme="parent-light-executive"] .tx-card.tx-cat-stars,
[data-theme="parent-light-executive"] .tx-card.tx-cat-prize,
[data-theme="parent-light-executive"] .tx-card.tx-cat-wheel {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%) !important;
  border-color: #fde68a !important;
  border-right: 4px solid #f59e0b !important;
}

[data-theme="parent-light-executive"] .tx-what-title,
[data-theme="parent-light-executive"] .tx-party-name,
[data-theme="parent-light-executive"] .tile-title {
  color: #0f172a !important;
}

[data-theme="parent-light-executive"] .tx-parties-box {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-theme="parent-light-executive"] .tx-date-badge {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

[data-theme="parent-light-executive"] .tile-stats {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.9) 0%, #ffffff 100%) !important;
  border-color: #38bdf8 !important;
}

[data-theme="parent-light-executive"] .tile-rules {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.9) 0%, #ffffff 100%) !important;
  border-color: #f59e0b !important;
}

/* ========================================================
   PARENTS TASK ANALYTICS DASHBOARD - EXECUTIVE REDESIGN
   ======================================================== */

.task-stats-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
}

.task-stats-hero-card {
  position: relative;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-sizing: border-box;
}

.task-stats-hero-card:hover {
  transform: translateY(-2px);
}

.task-stats-hero-card:active {
  transform: translateY(0);
}

/* Row 1: Square Cards (Most Wanted & Less Wanted) */
.hero-card-square {
  aspect-ratio: 1 / 1;
  min-height: 130px;
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  overflow: hidden;
}

.hero-card-square .hero-header-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.hero-card-square .hero-main-title {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: auto 0;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* Row 2: Wide Card (Top Performer Child / King of Tasks) */
.hero-card-wide {
  width: 100%;
  min-height: 58px;
  border-radius: 16px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-wide-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-wide-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.hero-wide-info {
  display: flex;
  flex-direction: column;
}

.hero-wide-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #c084fc;
  letter-spacing: 0.2px;
}

.hero-wide-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.hero-wide-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-wide-badge {
  background: rgba(168, 85, 247, 0.22);
  color: #f3e8ff;
  border: 1px solid rgba(168, 85, 247, 0.4);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Card 1: Popular Tasks (Emerald Green - High Activity/Success) */
.hero-card-popular {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.16) 0%, rgba(6, 78, 59, 0.24) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
}

.hero-card-popular:hover,
.hero-card-popular.active-drawer-card {
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

/* Card 2: Neglected Tasks (Sunset Amber - Encouragement/Attention) */
.hero-card-neglected {
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.16) 0%, rgba(124, 45, 18, 0.24) 100%);
  border: 1.5px solid rgba(249, 115, 22, 0.4);
}

.hero-card-neglected:hover,
.hero-card-neglected.active-drawer-card {
  border-color: #f97316;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.35);
}

/* Card 3: Top Performer Child (Royal Violet & Gold - Personal Achievement) */
.hero-card-champion {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.18) 0%, rgba(79, 70, 229, 0.24) 100%);
  border: 1.5px solid rgba(139, 92, 246, 0.45);
}

.hero-card-champion:hover,
.hero-card-champion.active-drawer-card {
  border-color: #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.hero-card-popular .hero-header-label { color: #34d399; }
.hero-card-neglected .hero-header-label { color: #fb923c; }
.hero-card-champion .hero-header-label { color: #c084fc; }

/* Drill-Down Details Drawer */
.task-stats-drawer {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 16px;
  animation: drawerFadeIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@keyframes drawerFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.task-stats-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-detail-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.stats-detail-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.stats-detail-card:last-child {
  margin-bottom: 0;
}

/* Light Theme Executive Overrides */
[data-theme="parent-light-executive"] .hero-card-popular {
  background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%) !important;
  border-color: #86efac !important;
}
[data-theme="parent-light-executive"] .hero-card-popular .hero-main-title {
  color: #065f46 !important;
}
[data-theme="parent-light-executive"] .hero-card-popular .hero-header-label {
  color: #047857 !important;
}
[data-theme="parent-light-executive"] .hero-card-popular .hero-tap-hint {
  border-top-color: rgba(16, 185, 129, 0.2) !important;
  color: #059669 !important;
}

[data-theme="parent-light-executive"] .hero-card-neglected {
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%) !important;
  border-color: #fdba74 !important;
}
[data-theme="parent-light-executive"] .hero-card-neglected .hero-main-title {
  color: #9a3412 !important;
}
[data-theme="parent-light-executive"] .hero-card-neglected .hero-header-label {
  color: #c2410c !important;
}
[data-theme="parent-light-executive"] .hero-card-neglected .hero-tap-hint {
  border-top-color: rgba(249, 115, 22, 0.2) !important;
  color: #d97706 !important;
}

[data-theme="parent-light-executive"] .hero-card-champion {
  background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 100%) !important;
  border-color: #d8b4fe !important;
}
[data-theme="parent-light-executive"] .hero-card-champion .hero-wide-name,
[data-theme="parent-light-executive"] .hero-card-champion .hero-main-title {
  color: #581c87 !important;
}
[data-theme="parent-light-executive"] .hero-card-champion .hero-wide-label,
[data-theme="parent-light-executive"] .hero-card-champion .hero-header-label {
  color: #7e22ce !important;
}
[data-theme="parent-light-executive"] .hero-card-champion .hero-wide-badge {
  background: rgba(168, 85, 247, 0.15) !important;
  color: #6b21a8 !important;
  border-color: #c084fc !important;
}

[data-theme="parent-light-executive"] .task-stats-drawer {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="parent-light-executive"] .task-stats-drawer-header {
  border-bottom-color: #e2e8f0 !important;
}

[data-theme="parent-light-executive"] .stats-detail-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-theme="parent-light-executive"] .stats-detail-card strong {
  color: #0f172a !important;
}

/* In-App Dialog Overrides */
[data-theme="parent-light-executive"] #modal-evaluate-rules-result .modal-content,
[data-theme="parent-light-executive"] #modal-app-alert .modal-content,
[data-theme="parent-light-executive"] #modal-app-confirm .modal-content {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12) !important;
}

[data-theme="parent-light-executive"] #modal-evaluate-rules-result h3 {
  color: #d97706 !important;
}

[data-theme="parent-light-executive"] #modal-app-alert h3 {
  color: #0f172a !important;
}

[data-theme="parent-light-executive"] #modal-app-confirm h3 {
  color: #b91c1c !important;
}

[data-theme="parent-light-executive"] #eval-rules-weekly-outcome,
[data-theme="parent-light-executive"] #eval-rules-monthly-outcome,
[data-theme="parent-light-executive"] #app-alert-message,
[data-theme="parent-light-executive"] #app-confirm-message {
  color: #334155 !important;
}

[data-theme="parent-light-executive"] .gamification-goals-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  border-color: #fcd34d !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12) !important;
}

[data-theme="parent-light-executive"] .goals-card-subject {
  color: #92400e !important;
}

[data-theme="parent-light-executive"] .goals-card-hint {
  color: #78350f !important;
}

[data-theme="parent-light-executive"] .goals-edit-btn,
[data-theme="parent-light-executive"] .goals-edit-badge {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #b45309 !important;
  border-color: #f59e0b !important;
}

[data-theme="parent-light-executive"] .goal-metric-box {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}

[data-theme="parent-light-executive"] .goal-metric-label {
  color: #64748b !important;
}

[data-theme="parent-light-executive"] .goal-metric-value {
  color: #0f172a !important;
}

[data-theme="parent-light-executive"] .goal-metric-value.gold-text {
  color: #b45309 !important;
}

[data-theme="parent-light-executive"] .goal-metric-value.leader-text {
  color: #0369a1 !important;
}

[data-theme="parent-light-executive"] .goal-metric-sub {
  color: #94a3b8 !important;
}

/* In-App Confirmation Dialog for Task Approvals & Rejections */
#modal-task-approval-result .modal-content {
  background: #0f172a;
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  transition: all 0.25s ease;
}

[data-theme="parent-light-executive"] #modal-task-approval-result .modal-content {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

[data-theme="parent-light-executive"] #task-approval-result-message {
  color: #1e293b !important;
}

[data-theme="parent-light-executive"] #modal-app-alert .modal-content {
  background: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

[data-theme="parent-light-executive"] #app-alert-title {
  color: #0f172a !important;
}

[data-theme="parent-light-executive"] #app-alert-message {
  color: #334155 !important;
}

/* ==========================================================================
   PARENT SUBSCRIPTION (FREE / PRO) & CROWN PRO BADGES
   ========================================================================== */

/* Header User Column & Subscription Pill Button */
.header-user-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  direction: ltr;
}

.header-sub-btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.header-sub-btn:hover {
  transform: translateY(-1px);
}

.header-sub-btn:active {
  transform: scale(0.95);
}

/* Free Plan Pill in Header */
.header-sub-btn.sub-free {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
}

.header-sub-btn.sub-free:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #f8fafc;
}

/* Pro Plan Pill in Header (Golden Crown Gradient) */
.header-sub-btn.sub-pro {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  animation: pulse-pro-glow 2.5s infinite ease-in-out;
}

@keyframes pulse-pro-glow {
  0%, 100% { box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35); }
  50% { box-shadow: 0 2px 16px rgba(236, 72, 153, 0.55); }
}

/* Ultimate Plan Pill in Header (Vibrant Purple/Indigo Lightning Gradient) */
.header-sub-btn.sub-ultimate {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  border: 1px solid rgba(168, 85, 247, 0.6);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(168, 85, 247, 0.45);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: pulse-ultimate-glow 2.5s infinite ease-in-out;
}

.header-sub-btn.sub-ultimate:hover {
  background: linear-gradient(135deg, #9333ea, #4f46e5);
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.6);
  transform: translateY(-1px) scale(1.02);
}

@keyframes pulse-ultimate-glow {
  0%, 100% { box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4); }
  50% { box-shadow: 0 2px 18px rgba(99, 102, 241, 0.65); }
}

/* Pro Tag Badge in Burger Menu */
.pro-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  margin-right: auto;
}

.burger-pro-btn:hover .pro-tag-badge {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.5);
}

/* Sub-Pill Badge (inside user menu) */
.sub-pill-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
}

.sub-pill-badge.sub-free {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.sub-pill-badge.sub-pro {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.sub-pill-badge.sub-ultimate {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

/* Unsubscribe Button */
.btn-unsubscribe {
  background: transparent;
  border: none;
  font-size: 0.76rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

/* Grayed out / disabled when on Free */
.btn-unsubscribe.disabled {
  color: #64748b;
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
}

/* Active and clickable when on Pro */
.btn-unsubscribe.active {
  color: #f87171;
  cursor: pointer;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-unsubscribe.active:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.sub-unsubscribe-container {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sub-unsubscribe-hint {
  font-size: 0.72rem;
  color: #64748b;
}

/* Subscription Modal Components */
.sub-pricing-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(236, 72, 153, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.sub-pricing-plan-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.sub-price-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
}

.sub-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fbbf24;
}

.sub-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.sub-period {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-right: 4px;
}

.sub-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  text-align: right;
}

.sub-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
}

.sub-check-icon {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.sub-btn-upgrade {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  border: none;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  letter-spacing: 0.3px;
}

.sub-btn-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
}

.sub-btn-trial {
  width: 100%;
  padding: 10px;
  font-size: 0.88rem;
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  border-radius: 12px;
}

.sub-btn-trial:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: #38bdf8;
}

.sub-pro-active-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 20px 16px;
}

/* Light Theme Support */
[data-theme="parent-light-executive"] .header-sub-btn.sub-free {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="parent-light-executive"] .header-sub-btn.sub-ultimate {
  background: linear-gradient(135deg, #9333ea, #4f46e5);
  border-color: rgba(147, 51, 234, 0.7);
  color: #ffffff;
}

[data-theme="parent-light-executive"] .sub-pricing-card {
  background: #f8fafc;
  border-color: #cbd5e1;
}

[data-theme="parent-light-executive"] .sub-amount {
  color: #0f172a;
}

[data-theme="parent-light-executive"] .sub-feature-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="parent-light-executive"] .sub-feature-item div div {
  color: #0f172a !important;
}

[data-theme="parent-light-executive"] .sub-feature-item div div + div {
  color: #475569 !important;
}

/* ===================================================
   CHILD SAVINGS PAGE - HIGH-LEVEL CARDS & ACCORDION
   =================================================== */
.savings-accordion-card {
  border-radius: 18px !important;
  margin-bottom: 14px !important;
  padding: 14px 16px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.savings-accordion-card.expanded {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.savings-accordion-header {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.savings-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.savings-header-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.savings-accordion-chevron {
  font-size: 1.2rem;
  color: #94a3b8;
  transition: transform 0.25s ease, color 0.25s ease;
  display: inline-block;
  line-height: 1;
}

.savings-accordion-card.expanded .savings-accordion-chevron {
  transform: rotate(180deg);
  color: #38bdf8;
}

/* High level summary metrics grid (Always visible at a glance) */
.savings-high-level-metrics {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
}

.savings-metric-pill {
  flex: 1;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
}

.savings-metric-pill .metric-label {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-bottom: 2px;
  white-space: nowrap;
}

.savings-metric-pill .metric-value {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.savings-tap-hint {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 6px;
  text-align: center;
  transition: opacity 0.2s ease;
}

.savings-accordion-card.expanded .savings-tap-hint {
  opacity: 0.6;
}

/* Large + Button */
.savings-large-plus-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.savings-accordion-header:hover .savings-large-plus-btn,
.savings-large-plus-btn:active {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.65);
}

.savings-large-plus-icon {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin-top: -2px;
}

/* Collapsible Detailed Body */
.savings-accordion-body {
  overflow: hidden;
  transition: all 0.3s ease;
}

.savings-accordion-body.collapsed {
  display: none !important;
}

/* Barnaby The Owl Mascot Animation & Styling */
@keyframes mascotSway {
  0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(-6px) rotate(0.8deg) scale(1.01); }
}
.mascot-sway {
  animation: mascotSway 3.6s ease-in-out infinite;
}
@keyframes soundwaveAnim {
  0%, 100% { height: 5px; }
  50% { height: 26px; }
}
.owl-wave-bar {
  width: 4px;
  background: #10b981;
  border-radius: 4px;
  animation: soundwaveAnim 0.85s ease-in-out infinite;
}
.owl-wave-bar:nth-child(2) { animation-delay: 0.15s; background: #34d399; }
.owl-wave-bar:nth-child(3) { animation-delay: 0.3s; background: #f59e0b; }
.owl-wave-bar:nth-child(4) { animation-delay: 0.45s; background: #fbbf24; }
.owl-wave-bar:nth-child(5) { animation-delay: 0.2s; background: #10b981; }
.glow-gold-box {
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.28), 0 0 15px rgba(16, 185, 129, 0.35);
}

/* Barnaby The Owl Mascot Peeking Overlay */
@keyframes owlPeekIn {
  0% {
    transform: translate3d(130%, -15px, 0) rotate(18deg) scale(0.9);
    opacity: 0;
  }
  65% {
    transform: translate3d(-10px, 4px, 0) rotate(-6deg) scale(1.02);
    opacity: 1;
  }
  85% {
    transform: translate3d(3px, -1px, 0) rotate(-3deg) scale(0.99);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(-4deg) scale(1);
    opacity: 1;
  }
}

@keyframes owlFloatingSway {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-4deg);
  }
  50% {
    transform: translate3d(-4px, -6px, 0) rotate(-2deg);
  }
}

.owl-peeker {
  position: absolute;
  right: -10px;
  top: 10px;
  width: 230px;
  height: 315px;
  z-index: 110;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(-10px 14px 26px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 20px rgba(245, 158, 11, 0.35));
  transform-origin: top right;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.owl-peeker.peeking-in {
  animation: owlPeekIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards, owlFloatingSway 4.2s ease-in-out 0.9s infinite;
}

.owl-peeker.peeking-out {
  transform: translate3d(140%, -30px, 0) rotate(22deg) scale(0.85) !important;
  opacity: 0 !important;
  transition: all 0.5s ease-in;
}

.owl-peeker.pulse-cue {
  filter: drop-shadow(-10px 14px 26px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 28px rgba(245, 158, 11, 0.85));
}
.owl-peeker.pulse-cue .owl-speech-bubble {
  border-color: #fbbf24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.55);
  animation: bubblePop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards, owlAudioPulse 1.8s ease-in-out infinite;
}
@keyframes owlAudioPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Comic Speech Bubble next to Beak */
@keyframes bubblePop {
  0% {
    transform: scale(0.7) translate3d(15px, -10px, 0);
    opacity: 0;
  }
  100% {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 1;
  }
}

.owl-speech-bubble {
  position: absolute;
  top: 25px;
  left: 8px;
  width: 185px;
  max-width: calc(100% - 200px);
  background: rgba(9, 19, 29, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid #f59e0b;
  border-radius: 18px;
  padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 16px rgba(245, 158, 11, 0.25);
  z-index: 120;
  animation: bubblePop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.35s backwards;
}

.speech-pointer-arrow {
  position: absolute;
  right: -12px;
  top: 30px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 12px solid #f59e0b;
}
.speech-pointer-arrow-inner {
  position: absolute;
  right: -10px;
  top: 31px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 11px solid #09131d;
}

@keyframes waveAnimMini {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}
.wave-bar-mini {
  width: 3px;
  background: #10b981;
  border-radius: 3px;
  animation: waveAnimMini 0.75s ease-in-out infinite;
}
.wave-bar-mini:nth-child(2) { animation-delay: 0.15s; background: #34d399; }
.wave-bar-mini:nth-child(3) { animation-delay: 0.3s; background: #fbbf24; }

/* Savings Plan Visual Selection Cards */
.savings-plan-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 12px;
}

@media (max-width: 330px) {
  .savings-plan-cards-grid {
    grid-template-columns: 1fr;
  }
}

.savings-plan-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 11px;
  cursor: pointer;
  position: relative;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 84px;
  text-align: right;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.savings-plan-card:hover:not(.locked) {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(30, 41, 59, 0.85);
  transform: translateY(-2px);
}

.savings-plan-card:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

.savings-plan-card.selected {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 78, 59, 0.35));
  border: 2px solid #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.32), inset 0 0 10px rgba(16, 185, 129, 0.12);
  transform: translateY(-1px);
}

.savings-plan-card.selected .card-check-badge {
  display: flex;
}

.card-check-badge {
  display: none;
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  background: #10b981;
  color: #020617;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.savings-plan-card.locked {
  background: rgba(15, 23, 42, 0.3);
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  opacity: 0.52;
  filter: grayscale(0.85);
  cursor: not-allowed;
}

.savings-plan-card.span-full {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  min-height: auto;
  padding: 10px 14px;
}

@keyframes cardShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.savings-plan-card.shake {
  animation: cardShake 0.4s ease-in-out;
}

.card-badge-rate {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  width: fit-content;
}

.card-badge-lock {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  width: fit-content;
}

/* ========================================================
   🏆 CHILD MONTHLY LEADER WIDGETS (HOME & TASKS)
   ======================================================== */

/* Compact Banner on Home */
.child-home-leader-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(217, 119, 6, 0.22) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 14px;
  padding: 8px 14px;
  margin: 10px 0 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
  direction: rtl;
}

.child-home-leader-banner:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.75);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.3) 100%);
}

.leader-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.leader-banner-trophy {
  font-size: 1.45rem;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.5));
  flex-shrink: 0;
}

.leader-banner-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.leader-banner-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fbbf24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader-banner-subtitle {
  font-size: 0.74rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader-banner-action {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.leader-banner-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

.leader-banner-arrow {
  font-size: 1.25rem;
  color: #fbbf24;
  font-weight: bold;
  line-height: 1;
}

/* Full Leader Card in Tasks Tab */
.child-monthly-leader-card {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.95) 0%, rgba(49, 46, 129, 0.92) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35), 0 0 16px rgba(245, 158, 11, 0.15);
  direction: rtl;
  position: relative;
  overflow: hidden;
}

.child-monthly-leader-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.leader-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.leader-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.leader-trophy-icon {
  font-size: 2.1rem;
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.6));
}

.leader-card-main-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

.leader-card-sub-info {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-top: 1px;
}

.leader-prize-tag {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.6);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
  white-space: nowrap;
}

.leader-performer-display {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.leader-avatar-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.leader-medal-badge {
  font-size: 1.3rem;
}

.leader-names-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fbbf24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader-task-count-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.child-personal-status-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #a7f3d0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.child-personal-status-box.leader-status-tied,
.child-personal-status-box.leader-status-first {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fde047;
}

.child-personal-status-box.leader-status-behind {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

.leader-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.leader-progress-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.leader-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 6px;
  transition: width 0.4s ease;
}

.leader-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--text-muted);
  direction: rtl;
}

@keyframes leaderCardPulse {
  0% { transform: scale(1); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35), 0 0 16px rgba(245, 158, 11, 0.15); }
  50% { transform: scale(1.02); box-shadow: 0 12px 32px rgba(245, 158, 11, 0.4), 0 0 25px rgba(245, 158, 11, 0.6); }
  100% { transform: scale(1); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35), 0 0 16px rgba(245, 158, 11, 0.15); }
}

.child-monthly-leader-card.highlight-pulse {
  animation: leaderCardPulse 1.2s ease-in-out 2;
}

/* ========================================================
   AUTHENTICATION & LOGIN THEME (MID-DARK SLATE / NEUTRAL GLASS)
   Dedicated independent theme unaffected by user theme settings
   ======================================================== */
#app-container.auth-mode,
#app-container:has(#view-auth:not(.hidden)) {
  background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 60%, #080c14 100%) !important;
  color: #f1f5f9 !important;
}

#app-container.auth-mode .app-header,
#app-container:has(#view-auth:not(.hidden)) .app-header {
  background: rgba(15, 23, 42, 0.92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

#app-container.auth-mode .brand-text,
#app-container:has(#view-auth:not(.hidden)) .brand-text {
  color: #ffffff !important;
  text-shadow: 0 0 16px rgba(99, 102, 241, 0.45) !important;
}

#app-container.auth-mode .brand-subtitle,
#app-container:has(#view-auth:not(.hidden)) .brand-subtitle {
  color: #94a3b8 !important;
}

#app-container.auth-mode #header-subscription-btn,
#app-container:has(#view-auth:not(.hidden)) #header-subscription-btn {
  display: none !important;
}

#view-auth {
  padding-bottom: 30px;
  overflow-y: auto;
}

#view-auth .card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.94) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 35px rgba(99, 102, 241, 0.12) !important;
  border-radius: 24px !important;
  color: #f8fafc !important;
  margin-top: 10px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#view-auth h2 {
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}

#view-auth p {
  color: #94a3b8 !important;
}

#auth-subtitle-badge {
  background: rgba(99, 102, 241, 0.2) !important;
  color: #a5b4fc !important;
  border: 1px solid rgba(129, 140, 248, 0.4) !important;
  font-weight: 700;
}

/* Auth Form Labels & Inputs */
#view-auth .form-label {
  color: #e2e8f0 !important;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  text-align: right;
  display: block;
}

#view-auth .form-input,
#view-auth .form-select {
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  transition: all 0.2s ease;
  font-size: 0.92rem;
}

#view-auth .form-input:focus,
#view-auth .form-select:focus {
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.25) !important;
  outline: none;
  background: rgba(15, 23, 42, 0.92) !important;
  color: #ffffff !important;
}

#view-auth .form-input::placeholder {
  color: #64748b !important;
}

/* Auth Buttons */
#view-auth .btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.45) !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  transition: all 0.2s ease;
}

#view-auth .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(79, 70, 229, 0.55) !important;
}

#view-auth .btn-outline {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  color: #e2e8f0 !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

#view-auth .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #818cf8 !important;
  color: #ffffff !important;
}

#view-auth .btn-accent {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35) !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
}

#view-auth .btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45) !important;
}

/* PWA Banner */
#view-auth .pwa-install-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

#view-auth .pwa-install-title {
  color: #ffffff !important;
  font-weight: 700;
}

#view-auth .pwa-install-subtitle {
  color: #94a3b8 !important;
}

/* Guidance & Alert boxes inside Auth */
#view-auth .auth-guidance-tip {
  background: rgba(30, 41, 59, 0.6) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  color: #cbd5e1 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

#view-auth .auth-guidance-tip span {
  color: #cbd5e1 !important;
}

#view-auth .auth-guidance-tip strong {
  color: #ffffff !important;
}

/* Form Dividers & Links */
#view-auth hr,
#view-auth div[style*="border-top: 1px solid rgba(255,255,255,0.1)"] {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

#view-auth a[onclick*="openForgotPasswordModal"] {
  color: #38bdf8 !important;
  font-weight: 600;
}

/* First parent banner and invite banner */
#view-auth #form-reg-parent > div[style*="background: rgba(245, 158, 11"] {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  color: #fde68a !important;
}

#view-auth #form-reg-sec > div[style*="background: rgba(56, 189, 248"] {
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  color: #bae6fd !important;
}

#view-auth #reg-country-display-tz {
  background: rgba(99, 102, 241, 0.25) !important;
  color: #a5b4fc !important;
}

/* Country Selector Component */
.country-selector-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  color: #ffffff;
}

.country-selector-trigger:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.88);
}

.country-selector-trigger:focus-within {
  border-color: #818cf8;
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.25);
}

.country-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #0f172a;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  z-index: 999;
  overflow: hidden;
  animation: countryDropdownFade 0.2s ease;
}

@keyframes countryDropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.country-search-box {
  padding: 8px 10px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.country-search-box input {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.88rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0f172a;
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
}

.country-search-box input:focus {
  border-color: #818cf8;
}

.country-options-list {
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.country-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease;
  font-size: 0.88rem;
  color: #e2e8f0;
}

.country-option-item:hover,
.country-option-item.selected {
  background: rgba(99, 102, 241, 0.25);
  color: #ffffff;
}

.country-option-item .country-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.country-option-item .country-tz {
  font-size: 0.72rem;
  color: #94a3b8;
  direction: ltr;
}

/* Autonomous Connection Status Banner (Non-blocking Floating Pill) */
.connection-status-banner {
  position: fixed;
  top: 112px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  max-width: 95vw;
}

.connection-status-banner.hidden {
  display: none !important;
}

.connection-status-banner.fade-out {
  opacity: 0;
  transform: translateX(-50%) translateY(-15px);
  pointer-events: none;
}

.connection-status-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  direction: rtl;
  user-select: none;
}

/* Reconnecting State (Warning Amber / Coral Glow) */
.connection-status-banner.reconnecting .connection-status-content {
  background: rgba(24, 24, 38, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fef3c7;
}

.connection-status-banner.reconnecting .connection-status-icon {
  display: inline-block;
  animation: connectionPulseSpin 1.8s linear infinite;
}

/* Offline State (Subtle red) */
.connection-status-banner.offline .connection-status-content {
  background: rgba(30, 20, 25, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
}

.connection-status-banner.offline .connection-status-icon {
  display: inline-block;
}

/* Restored State (Vibrant Green Glow) */
.connection-status-banner.restored .connection-status-content {
  background: rgba(20, 35, 25, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #bbf7d0;
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.25);
}

.btn-connection-retry {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 4px;
}

.btn-connection-retry:hover {
  background: rgba(245, 158, 11, 0.35);
  transform: scale(1.04);
}

.connection-status-banner.restored .btn-connection-retry {
  display: none;
}

@keyframes connectionPulseSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ==========================================================================
   TASK ICONS & AVATAR BADGE SUITE
   Large, vivid task icons with 3-column flex layout (Icon - Content - Actions)
   Never breaks or wraps text lines.
   ========================================================================== */

.task-avatar-badge {
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  border-radius: 16px;
  background: radial-gradient(circle at 35% 35%, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 0.9));
  border: 2px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  line-height: 1;
  flex-shrink: 0;
  margin-inline-end: 14px;
  overflow: hidden;
  user-select: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.task-avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.task-avatar-badge.interactive {
  cursor: pointer;
  border-color: #38bdf8;
}

.task-avatar-badge.interactive:hover {
  transform: scale(1.06);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
}

.task-avatar-badge.interactive:active {
  transform: scale(0.96);
}

/* Light Theme support for task avatar badge */
[data-theme="parent-light-executive"] .task-avatar-badge {
  background: radial-gradient(circle at 35% 35%, rgba(37, 99, 235, 0.12), #f8fafc);
  border-color: #93c5fd;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

/* Responsive adjustments for mobile screens */
@media (max-width: 480px) {
  .task-avatar-badge {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    border-radius: 14px;
    font-size: 1.85rem;
    margin-inline-end: 10px;
  }
}

/* Task Icon Picker Modal & Gallery */
.task-icon-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.task-icon-gallery-btn {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  padding: 0;
}

.task-icon-gallery-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  transform: scale(1.15);
}

.task-icon-gallery-btn.selected {
  background: rgba(56, 189, 248, 0.35);
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.task-icon-cat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
  scrollbar-width: thin;
}

.task-icon-cat-tab {
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.task-icon-cat-tab.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* ========================================================
   PARTIAL APPROVAL 4-TIER TRAFFIC LIGHT SYSTEM
   ======================================================== */
.partial-approval-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.partial-tier-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  border-radius: 14px;
  cursor: pointer;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  user-select: none;
  font-family: inherit;
  outline: none;
}

.partial-tier-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.partial-tier-btn:active {
  transform: translateY(1px);
  filter: brightness(0.95);
}

.partial-tier-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 6px;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.partial-tier-pct {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.15;
}

.partial-tier-label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 3px;
  line-height: 1.2;
}

/* Tier 100%: Green */
.partial-tier-100 {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.partial-tier-100 .partial-tier-icon-circle {
  background: rgba(0, 0, 0, 0.2);
}

/* Tier 75%: Bright Sunny Yellow */
.partial-tier-75 {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: #0f172a;
  border-color: rgba(234, 179, 8, 0.6);
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.3);
}
.partial-tier-75 .partial-tier-icon-circle {
  background: rgba(15, 23, 42, 0.12);
}

/* Tier 50%: Warm Amber / Orange-Yellow */
.partial-tier-50 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}
.partial-tier-50 .partial-tier-icon-circle {
  background: rgba(0, 0, 0, 0.2);
}

/* Tier 25%: Light Red */
.partial-tier-25 {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  color: #ffffff;
  border-color: rgba(248, 113, 113, 0.6);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}
.partial-tier-25 .partial-tier-icon-circle {
  background: rgba(0, 0, 0, 0.2);
}

/* ========================================================
   REJECT & RETURN TASK MODAL - ALIGNED THEME
   ======================================================== */
.reject-task-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  cursor: pointer;
  border: 1.5px solid rgba(248, 113, 113, 0.5);
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  user-select: none;
  font-family: inherit;
  outline: none;
}

.reject-task-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
}

.reject-task-btn:active {
  transform: translateY(1px);
  filter: brightness(0.95);
}

.reject-task-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

/* ========================================================
   UNIFORM NOTIFICATION TILES & STRUCTURE
   ======================================================== */
.notification-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  transition: background 0.15s ease, border-color 0.15s ease;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  flex-shrink: 0;
}

/* Unread Notifications: prominent, luminous, stands out immediately */
.notification-tile.unread {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(15, 23, 42, 0.7));
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.12);
  cursor: pointer;
}

.notification-tile.unread:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(15, 23, 42, 0.85));
  border-color: rgba(14, 165, 233, 0.6);
  transform: translateY(-1px);
}

/* Pending Task Approval: urgent amber glow */
.notification-tile.unread.pending-attention {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(24, 18, 12, 0.75));
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.18);
}

.notification-tile.unread.pending-attention:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.20), rgba(24, 18, 12, 0.9));
  border-color: rgba(245, 158, 11, 0.65);
}

/* Read Notifications: muted, de-emphasized */
.notification-tile.read {
  opacity: 0.72;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.07);
}

.notification-tile.read:hover {
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.04);
}

/* Badges: Read vs Unread */
.notif-read-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.2;
  flex-shrink: 0;
}

.notif-read-badge.unread {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.45);
}

.notif-read-badge.unread .unread-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
  display: inline-block;
}

.notif-read-badge.read {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-weight: 500;
}

/* Badges: Task Approval Status */
.notif-task-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  line-height: 1.25;
}

.notif-task-badge.pending {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.notif-task-badge.approved {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.notif-task-badge.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Filter pills bar */
.notif-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.notif-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.notif-filter-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.notif-filter-btn.active {
  background: rgba(14, 165, 233, 0.18);
  border-color: #0ea5e9;
  color: #38bdf8;
  font-weight: 700;
}

.notif-filter-btn.active[data-filter="pending"] {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fbbf24;
}

.notif-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.notif-count-pill.alert {
  background: #f59e0b;
  color: #000;
}

.notif-count-pill.unread-pill {
  background: #0ea5e9;
  color: #fff;
}

/* Urgent Attention Banner */
.notif-urgent-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(180, 83, 9, 0.35));
  border: 1px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
  margin-bottom: 12px;
}

.notif-photos-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.notif-photo-wrapper {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.notif-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
  display: block;
}

.notif-photo-wrapper:hover img {
  transform: scale(1.08);
}

/* ==========================================================================
   IN-APP NOTIFICATIONS CENTER MODAL STABILITY & EMPTY STATES (BF-32)
   ========================================================================== */
#modal-notifications .modal-content {
  max-width: 440px;
  width: 100%;
  height: 82vh;
  max-height: min(680px, calc(100vh - 28px));
  min-height: min(460px, calc(100vh - 28px));
  box-sizing: border-box;
  padding: 18px 14px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

#modal-notifications #notifications-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#modal-notifications .notif-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  padding: 30px 16px;
  text-align: center;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
}

#modal-notifications .notif-empty-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
  line-height: 1;
}

#modal-notifications .notif-empty-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

[data-theme="parent-light-executive"] #modal-notifications .notif-empty-title {
  color: #0f172a;
}

#modal-notifications .notif-empty-desc {
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
}

/* ==========================================================================
   CHILD ACCOUNT NIKUD VOCALIZATION & SECTION BOUNDARY DEFENSE
   ========================================================================== */
body.child-nikud-mode {
  /* System font stack with robust OpenType Hebrew diacritics */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: normal !important;
}

/* Ensure diacritics above and below letters don't clip while preventing visual inflation */
body.child-nikud-mode p,
body.child-nikud-mode span,
body.child-nikud-mode div,
body.child-nikud-mode strong,
body.child-nikud-mode label,
body.child-nikud-mode h1,
body.child-nikud-mode h2,
body.child-nikud-mode h3,
body.child-nikud-mode h4,
body.child-nikud-mode h5,
body.child-nikud-mode h6,
body.child-nikud-mode button {
  overflow-wrap: break-word;
}

/* Maintain comfortable line-height for diacritic marks without blowing up card heights */
body.child-nikud-mode .balance-label,
body.child-nikud-mode .stat-name,
body.child-nikud-mode .card-title,
body.child-nikud-mode .nav-item span,
body.child-nikud-mode .wheel-title-text,
body.child-nikud-mode .leader-card-main-title {
  line-height: 1.35;
}

/* Text containers & Cards must never clip text vertically or leak horizontally */
body.child-nikud-mode .card,
body.child-nikud-mode .stat-pill,
body.child-nikud-mode .balance-hero,
body.child-nikud-mode .notification-tile,
body.child-nikud-mode .wheel-progress-card,
body.child-nikud-mode .child-monthly-leader-card,
body.child-nikud-mode .child-task-card,
body.child-nikud-mode .modal-content,
body.child-nikud-mode .modal-body,
body.child-nikud-mode .badge,
body.child-nikud-mode .btn {
  box-sizing: border-box;
}

/* Prevent stat-pill from overflowing on small devices when vocalized */
body.child-nikud-mode .stat-pill {
  min-height: 64px;
  height: auto;
  padding: 6px 4px;
}

/* Ellipsis protection for single-line titles and pills */
body.child-nikud-mode .leader-banner-title,
body.child-nikud-mode .leader-banner-subtitle,
body.child-nikud-mode .playground-btn-title,
body.child-nikud-mode .playground-btn-subtitle,
body.child-nikud-mode .wheel-subtext {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Protect bottom navigation text from wrapping to two lines */
body.child-nikud-mode .nav-item span {
  font-size: 0.72rem;
  white-space: nowrap;
}

/* Ensure ratios remain strictly LTR with zero BiDi distortion */
body.child-nikud-mode .ratio-val {
  direction: ltr !important;
  unicode-bidi: isolate;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ========================================================
   CHILD TASKS 4-CARD HUB & MODULAR PANELS (v4.74)
   ======================================================== */
.child-tasks-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
  direction: rtl;
}

.child-tasks-hub-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 94px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.child-tasks-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.child-tasks-hub-card:active {
  transform: translateY(0);
}

.child-tasks-hub-card .hub-card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.child-tasks-hub-card .hub-card-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.child-tasks-hub-card .hub-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  line-height: 1.3;
  white-space: nowrap;
}

.child-tasks-hub-card .hub-card-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.child-tasks-hub-card .hub-card-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.child-tasks-hub-card .hub-card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

/* Individual Card Themes & Active Highlights */
.child-tasks-hub-card.theme-assigned.active {
  border-color: #10b981;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(16, 185, 129, 0.18));
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3), inset 0 0 12px rgba(16, 185, 129, 0.1);
}
.child-tasks-hub-card.theme-assigned.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 15%;
  left: 15%;
  height: 3px;
  background: #10b981;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 8px #10b981;
}

.child-tasks-hub-card.theme-pool.active {
  border-color: #06b6d4;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(6, 182, 212, 0.18));
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.3), inset 0 0 12px rgba(6, 182, 212, 0.1);
}
.child-tasks-hub-card.theme-pool.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 15%;
  left: 15%;
  height: 3px;
  background: #06b6d4;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 8px #06b6d4;
}

.child-tasks-hub-card.theme-wheel.active {
  border-color: #a855f7;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(168, 85, 247, 0.18));
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.3), inset 0 0 12px rgba(168, 85, 247, 0.1);
}
.child-tasks-hub-card.theme-wheel.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 15%;
  left: 15%;
  height: 3px;
  background: #a855f7;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 8px #a855f7;
}

.child-tasks-hub-card.theme-leader.active {
  border-color: #f59e0b;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(245, 158, 11, 0.18));
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.3), inset 0 0 12px rgba(245, 158, 11, 0.1);
}
.child-tasks-hub-card.theme-leader.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 15%;
  left: 15%;
  height: 3px;
  background: #f59e0b;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 8px #f59e0b;
}

/* Tab Panels */
.child-tasks-tab-panel {
  display: none !important;
}
.child-tasks-tab-panel.active {
  display: block !important;
  animation: childTaskPanelFade 0.22s ease-out;
}

@keyframes childTaskPanelFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Badge colors */
.child-tasks-hub-card .badge-green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.child-tasks-hub-card .badge-cyan {
  background: rgba(6, 182, 212, 0.2);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.35);
}
.child-tasks-hub-card .badge-purple {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}
.child-tasks-hub-card .badge-purple.has-spins {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  border-color: #ec4899;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.5);
}
.child-tasks-hub-card .badge-gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

body.child-nikud-mode .child-tasks-hub-card {
  box-sizing: border-box;
}

/* ========================================================
   BARNY THE OWL IN TASKS & SAVINGS (Focus Backdrop & Blur)
   ======================================================== */

/* 1. Backdrop with gentle frosted blur & non-touchable background */
.owl-focus-backdrop,
.tasks-owl-backdrop,
.savings-owl-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 30, 0.22);
  backdrop-filter: blur(1.8px);
  -webkit-backdrop-filter: blur(1.8px);
  z-index: 105;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.owl-focus-backdrop.active,
.tasks-owl-backdrop.active,
.savings-owl-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Touch-locking on tasks and savings content when owl is focused (clean see-through) */
#child-tasks-section.tasks-owl-focused,
#parent-tasks-section.tasks-owl-focused,
#savings-cards-section.savings-owl-focused {
  pointer-events: none !important;
  user-select: none !important;
}

/* 2. Left-Peeking Owl Mascot (Tasks Tab - Same larger size 230x315) */
.owl-peeker-left {
  position: absolute;
  left: -10px;
  top: 10px;
  width: 230px;
  height: 315px;
  z-index: 110;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(10px 14px 26px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 20px rgba(245, 158, 11, 0.35));
  transform-origin: top left;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes owlPeekInLeft {
  0% {
    transform: translate3d(-120%, -15px, 0) rotate(-15deg) scale(0.9);
    opacity: 0;
  }
  65% {
    transform: translate3d(8px, 4px, 0) rotate(4deg) scale(1.02);
    opacity: 1;
  }
  85% {
    transform: translate3d(-3px, -1px, 0) rotate(1deg) scale(0.99);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(2deg) scale(1);
    opacity: 1;
  }
}

@keyframes owlFloatingSwayLeft {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(2deg);
  }
  50% {
    transform: translate3d(-2px, -6px, 0) rotate(0deg);
  }
}

.owl-peeker-left.peeking-in {
  animation: owlPeekInLeft 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards, owlFloatingSwayLeft 4.2s ease-in-out 0.9s infinite;
}

.owl-peeker-left.peeking-out {
  transform: translate3d(-130%, -30px, 0) rotate(-20deg) scale(0.85) !important;
  opacity: 0 !important;
  transition: all 0.5s ease-in;
}

/* 3. Comic Speech Bubble for Left Owl (Placed to the right) */
@keyframes bubblePopRight {
  0% {
    transform: scale(0.7) translate3d(-15px, -10px, 0);
    opacity: 0;
  }
  100% {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 1;
  }
}

.owl-speech-bubble-right {
  position: absolute;
  top: 25px;
  right: 8px;
  width: 185px;
  max-width: calc(100% - 215px);
  background: rgba(9, 19, 29, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid #f59e0b;
  border-radius: 18px;
  padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 16px rgba(245, 158, 11, 0.25);
  z-index: 120;
  animation: bubblePopRight 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.35s backwards;
}

.speech-pointer-arrow-left {
  position: absolute;
  left: -12px;
  top: 30px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 12px solid #f59e0b;
}

.speech-pointer-arrow-inner-left {
  position: absolute;
  left: -10px;
  top: 31px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 11px solid #09131d;
}

@media (max-width: 360px) {
  .owl-peeker,
  .owl-peeker-left {
    width: 180px;
    height: 250px;
  }
  .owl-speech-bubble,
  .owl-speech-bubble-right {
    width: calc(100% - 165px);
    padding: 8px 10px;
  }
}







/* ========================================================
   Terms & Conditions Document & Viewer Styles
   ======================================================== */
.terms-document-wrapper {
  max-width: 820px;
  margin: 0 auto;
  font-family: 'Heebo', sans-serif;
  line-height: 1.8;
  direction: rtl;
  color: #e2e8f0;
}
.terms-header-block {
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 18px;
  margin-bottom: 22px;
}
.terms-brand-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #38bdf8;
  background-color: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.terms-doc-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
}
.terms-last-updated {
  font-size: 13px;
  color: #94a3b8;
}
.terms-disclaimer-box {
  background-color: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.terms-disclaimer-title {
  font-size: 16px;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 8px;
}
.terms-disclaimer-text {
  font-size: 14.5px;
  color: #fde68a;
  margin: 0;
  line-height: 1.65;
}
.terms-section {
  margin-bottom: 24px;
}
.terms-section-title {
  font-size: 17px;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 10px;
}
.terms-section p {
  font-size: 15px;
  color: #cbd5e1;
  margin-bottom: 12px;
  line-height: 1.7;
}
.terms-section ul, .terms-section ol {
  margin-right: 22px;
  margin-bottom: 12px;
}
.terms-section li {
  font-size: 14.5px;
  color: #e2e8f0;
  margin-bottom: 8px;
}
.terms-section li strong {
  color: #ffffff;
}
.terms-highlight-text {
  background-color: rgba(30, 41, 59, 0.85);
  padding: 12px 16px;
  border-radius: 8px;
  border-right: 4px solid #38bdf8;
  font-size: 14px;
  color: #bae6fd;
  margin: 14px 0;
}
.terms-footer-block {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

/* ========================================================
   v4.79: ONBOARDING WIZARD, QUEST CHECKLIST & QR CONNECT
   ======================================================== */

.wizard-steps-track {
  display: flex;
  gap: 6px;
  width: 100%;
}

.wizard-step-dot {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  transition: all 0.3s ease;
}

.wizard-step-dot.active {
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.lifestyle-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: #e2e8f0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

.lifestyle-chip:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
}

.lifestyle-chip.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.wizard-connect-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wizard-connect-card:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.child-picker-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(30, 41, 59, 0.75);
  border: 1.5px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: right;
  direction: rtl;
}

.child-picker-card:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: #38bdf8;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

.onboarding-quest-card {
  animation: fadeIn 0.4s ease;
}

.quest-step-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quest-step-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(56, 189, 248, 0.3);
}

.quest-step-pill.done {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.06);
  color: #34d399;
  font-weight: 600;
}

.profile-switch-btn {
  background: rgba(52, 211, 153, 0.12) !important;
  border-color: rgba(52, 211, 153, 0.4) !important;
  color: #34d399 !important;
}

.profile-switch-btn:hover {
  background: rgba(52, 211, 153, 0.25) !important;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

@keyframes floatMascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes bouncePrize {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* Child Switcher Tabs inside QR Modal */
.child-qr-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.child-qr-tab-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.child-qr-tab-btn.active {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

/* ==========================================================================
   PER-CHILD ALLOWANCE MODAL & TIER 3 LADDER ROADMAP UX
   ========================================================================== */

.allowance-modal-container {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.08) !important;
}

.allowance-child-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  direction: rtl;
}

.modal-close-btn {
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.95rem !important;
  color: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  flex-shrink: 0 !important;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

.allowance-child-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
  flex-shrink: 0;
}

.allowance-child-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.allowance-child-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-age {
  background: rgba(168, 85, 247, 0.18);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.allowance-child-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Frequency Tabs */
.allowance-freq-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0 14px;
}

.freq-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  background: rgba(30, 41, 59, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.freq-tab-btn:hover {
  background: rgba(51, 65, 85, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  transform: translateY(-1px);
}

.freq-tab-btn.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: #f59e0b;
  color: #fef08a;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}

.freq-tab-btn .tab-icon {
  font-size: 1.3rem;
}

.freq-tab-btn .tab-title {
  font-weight: 700;
  font-size: 0.88rem;
}

.freq-tab-btn .tab-sub {
  font-size: 0.68rem;
  opacity: 0.8;
  text-align: center;
}

/* Smart Presets Block */
.allowance-section-block {
  margin: 14px 0 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px 14px;
}

.section-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.section-icon {
  font-size: 1rem;
}

.section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}

.allowance-presets-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(30, 41, 59, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.preset-chip-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.preset-chip-btn.recommended {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}

.preset-chip-btn.active {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35);
}

/* Dual Amount Inputs */
.allowance-inputs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 14px 0 16px;
}

.allowance-input-arrow {
  font-size: 1.4rem;
  color: #64748b;
  text-align: center;
}

.allowance-input-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  transition: border-color 0.2s ease;
}

.allowance-input-card:focus-within {
  border-color: #38bdf8;
}

.allowance-input-card.highlight-card {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(15, 23, 42, 0.85));
}

.allowance-input-card.highlight-card:focus-within {
  border-color: #f59e0b;
}

.input-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.base-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.max-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.card-hint {
  font-size: 0.7rem;
  color: #64748b;
}

.input-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.currency-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.custom-num-input {
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  padding: 8px 40px 8px 12px !important;
  text-align: left !important;
  direction: ltr !important;
  background: rgba(30, 41, 59, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
  width: 100% !important;
}

.currency-suffix {
  position: absolute;
  right: 14px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #94a3b8;
  pointer-events: none;
}

.card-helper-text {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 6px;
  line-height: 1.3;
}

/* Ladder Roadmap Container */
.allowance-ladder-container {
  background: rgba(15, 23, 42, 0.8);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: 16px;
  padding: 14px;
  margin: 16px 0;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ladder-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ladder-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ladder-icon {
  font-size: 1.2rem;
}

.ladder-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fef08a;
}

.ladder-summary-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.ladder-explainer {
  font-size: 0.76rem;
  color: #94a3b8;
  margin: 4px 0 12px;
}

.ladder-steps-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.ladder-step-card {
  background: rgba(30, 41, 59, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease;
}

.ladder-step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.ladder-step-card.active-current {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.ladder-step-card.is-max-step {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.15), rgba(30, 41, 59, 0.8));
}

.ladder-badge-current {
  position: absolute;
  top: -8px;
  right: 50%;
  transform: translateX(50%);
  background: #10b981;
  color: #0f172a;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.step-header-tag {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
}

.step-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 3px 0 1px;
}

.step-cost {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  padding: 1px 6px;
  border-radius: 999px;
  display: inline-block;
}

.step-label {
  font-size: 0.66rem;
  color: #cbd5e1;
  margin-top: 4px;
  line-height: 1.15;
}

/* Bottom Grid */
.allowance-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
}

.allowance-budget-protection-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
}

.prot-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.prot-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.74rem;
  color: #93c5fd;
  line-height: 1.3;
}

.prot-content strong {
  color: #e0f2fe;
}

/* Modal Actions Footer */
.modal-actions-footer {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.allowance-modal-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.allowance-modal-footer button.btn {
  width: auto;
  margin: 0;
  box-sizing: border-box;
}

.allowance-modal-footer #allowance-save-btn {
  flex: 1;
  min-width: 160px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
}

.allowance-modal-footer button.btn-outline {
  flex: 0 0 auto;
  min-width: 85px;
  padding: 10px 18px;
  font-size: 0.9rem;
  border-radius: 12px;
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.15);
}

.allowance-modal-footer button.btn-outline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 600px) {
  .allowance-inputs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .allowance-input-arrow {
    display: none;
  }
  .allowance-bottom-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ladder-steps-track {
    gap: 4px;
  }
  .step-amount {
    font-size: 0.95rem;
  }
  .step-label {
    display: none;
  }
}

/* Steppers for Allowance Inputs */
.currency-input-wrapper.with-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 4px 8px;
  transition: border-color 0.2s ease;
}

.currency-input-wrapper.with-stepper:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.currency-input-wrapper.with-stepper .custom-num-input {
  border: none !important;
  background: transparent !important;
  padding: 6px 4px !important;
  text-align: center;
  box-shadow: none !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  width: 100% !important;
  margin: 0 !important;
}

.amount-step-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
  flex-shrink: 0;
}

.amount-step-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: scale(1.06);
}

.amount-step-btn:active {
  transform: scale(0.94);
}

/* Multi-Child Sliding Cards Carousel */
.allowance-slider-modal {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 158, 11, 0.1) !important;
}

.allowance-slider-tabs-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
  margin-bottom: 12px;
  scrollbar-width: thin;
}

.slider-child-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
}

.slider-child-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.slider-child-tab.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.1));
  border-color: #fbbf24;
  color: #fbbf24;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}

.allowance-slider-scroll-body {
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 12px;
  box-sizing: border-box;
}

.allowance-slider-track {
  width: 100%;
}

.allowance-child-slide {
  width: 100%;
  box-sizing: border-box;
  direction: rtl;
  display: none !important;
  flex-direction: column;
  gap: 12px;
}

.allowance-child-slide.active {
  display: flex !important;
  animation: slideCardFade 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideCardFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.allowance-slider-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Pending Tier 3 & On-Hold Status Strips */
.child-allowance-status-strip.pending-tier3 {
  animation: pulse-border-red 2s infinite ease-in-out;
}

@keyframes pulse-border-red {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Allowance Cross-Path Sync Reminder Card */
.allowance-sync-card {
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0;
  box-sizing: border-box;
  text-align: right;
  direction: rtl;
  transition: all 0.25s ease;
}

.allowance-sync-card.is-alert {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

.allowance-sync-card.is-synced {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.sync-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.sync-badge-icon {
  font-size: 1.15rem;
}

.sync-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.sync-status-badge.badge-amber {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.sync-status-badge.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sync-card-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.sync-recommendation-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  margin: 8px 0;
}

.sync-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-gold-outline {
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px solid #fbbf24 !important;
  color: #fef08a !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

.btn-gold-outline:hover {
  background: #fbbf24 !important;
  color: #0f172a !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4) !important;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

@media (max-width: 600px) {
  .sync-actions-row {
    flex-direction: column;
  }
  .sync-actions-row .btn {
    width: 100%;
  }
}

/* =========================================================
   SaaS SUBSCRIPTION 3-TIER & GATING SYSTEM STYLES
   ========================================================= */

.sub-billing-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 18px;
}

.sub-switch-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 7px 18px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sub-switch-btn.active {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.sub-discount-tag {
  background: rgba(52, 211, 153, 0.25);
  color: #34d399;
  border: 1px solid #34d399;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
}

.sub-switch-btn.active .sub-discount-tag {
  background: #fff;
  color: #d97706;
  border-color: #fff;
}

/* =========================================================
   SWIPEABLE PRICING CAROUSEL (Mobile & Desktop)
   ========================================================= */

.sub-carousel-wrapper {
  position: relative;
  width: 100%;
  margin: 10px 0 6px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.sub-carousel-viewport {
  width: 100%;
  overflow: hidden; /* Hide off-screen slides cleanly, NO scroll-snap bugs */
  position: relative;
  padding: 10px 0;
  box-sizing: border-box;
  touch-action: pan-y; /* Allow vertical modal scroll, horizontal handled by JS swipe */
}

.sub-carousel-track {
  display: flex;
  width: 100%;
  direction: ltr; /* CRITICAL: Normalize coordinate system for translateX across all browsers */
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
  will-change: transform;
}

/* Card sizing in Carousel */
.sub-tier-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  direction: rtl; /* Proper Hebrew RTL text layout */
  background: rgba(30, 41, 59, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 480px;
  text-align: center;
}

.sub-tier-card:hover {
  transform: translateY(-2px);
}

.sub-tier-card.featured {
  border: 2px solid rgba(245, 158, 11, 0.65);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.14) 0%, rgba(30, 41, 59, 0.92) 100%);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.22);
}

.sub-tier-card.sub-tier-ultimate {
  border: 2px solid rgba(168, 85, 247, 0.55);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.14) 0%, rgba(30, 41, 59, 0.92) 100%);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

/* Navigation Arrow Buttons */
.sub-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  user-select: none;
}

.sub-carousel-arrow:hover {
  background: rgba(6, 182, 212, 0.5);
  border-color: var(--cyan);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.sub-carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.sub-arrow-prev {
  right: -10px;
}

.sub-arrow-next {
  left: -10px;
}

@media (max-width: 480px) {
  .sub-arrow-prev {
    right: 2px;
  }
  .sub-arrow-next {
    left: 2px;
  }
}

/* Carousel Plan Selector Dots */
.sub-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 6px 0 16px;
  flex-wrap: wrap;
}

.sub-dot {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.sub-dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  display: inline-block;
  transition: all 0.25s ease;
}

.sub-dot:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.sub-dot.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.65);
  color: #fef08a;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.sub-dot.active .sub-dot-indicator {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
  transform: scale(1.3);
}

/* Annual Sub-calculation Pill */
.sub-price-subcalc {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  padding: 4px 10px;
  margin-top: 6px;
  display: inline-block;
  white-space: nowrap;
}

.sub-featured-ribbon {
  position: absolute;
  top: -11px;
  right: 50%;
  transform: translateX(50%);
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 12px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  white-space: nowrap;
}

.sub-tier-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.sub-tier-badge.pro-badge {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}

.sub-tier-badge.ultimate-badge {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
}

.sub-tier-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px 0;
}

.sub-tier-price-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
}

.sub-price-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.sub-tier-card.featured .sub-price-num {
  color: #fbbf24;
}

.sub-tier-card.sub-tier-ultimate .sub-price-num {
  color: #c084fc;
}

.sub-price-currency {
  font-size: 1.15rem;
  font-weight: 700;
  color: #cbd5e1;
}

.sub-price-period {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-right: 4px;
}

.sub-tier-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 4px;
}

.sub-trial-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 8px;
  padding: 3px 6px;
  margin-top: 6px;
  display: inline-block;
}

.sub-tier-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  margin: 14px 0;
  padding: 0 32px 0 20px; /* Shift text slightly left to clear navigation arrow */
  flex: 1;
}

.sub-feature-bullet {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.sub-bullet-icon {
  color: #94a3b8;
  font-weight: bold;
}

.sub-bullet-icon.pro {
  color: #fbbf24;
}

.sub-bullet-icon.ultimate {
  color: #c084fc;
}

.sub-plan-btn {
  margin-top: auto;
  width: 100%;
  padding: 10px;
  font-weight: 800;
  font-size: 0.88rem;
  border-radius: 12px;
}

.sub-plan-btn.pro-btn {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.sub-plan-btn.ultimate-btn {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
}

.sub-plan-btn.current {
  background: rgba(52, 211, 153, 0.15) !important;
  border: 1px solid #10b981 !important;
  color: #34d399 !important;
  cursor: default !important;
}

/* Promo Code Box */
.sub-promo-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  margin-top: 14px;
}

/* 🦉 Child Dormant Banner */
.child-dormant-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: right;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12);
}

.child-dormant-banner .dormant-owl-icon {
  font-size: 2.4rem;
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.45));
  flex-shrink: 0;
}

.child-dormant-banner .dormant-content {
  flex: 1;
}

.child-dormant-banner .dormant-title {
  font-weight: 800;
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 3px;
}

.child-dormant-banner .dormant-desc {
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.4;
}

.child-dormant-banner .dormant-points-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #fbbf24;
  color: #fef08a;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 12px;
  padding: 6px 12px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .child-dormant-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* Smart Queue Bottle Badges */
.bottle-smart-queue-badge {
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed rgba(245, 158, 11, 0.5);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 10px;
  color: #fef08a;
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.45;
}

.bottle-group-paused-badge {
  background: rgba(168, 85, 247, 0.12);
  border: 1px dashed rgba(168, 85, 247, 0.5);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 10px;
  color: #e9d5ff;
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.45;
}

/* Child Dormant Tag in Parent Management */
.child-dormant-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ========================================================
   REWARDS / STORE: 3-CARD CONVERSIONS HUB GRID (v4.81)
   ======================================================== */
.conversion-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
  direction: rtl;
}

.conversion-hub-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.96));
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 10px 6px;
  cursor: pointer;
  position: relative;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  min-height: 108px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.conversion-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.38);
}

.conversion-hub-card:active {
  transform: translateY(0);
}

.conversion-hub-card .conv-card-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.conversion-hub-card .conv-card-icon {
  font-size: 1.55rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  transition: transform 0.2s ease;
}

.conversion-hub-card:hover .conv-card-icon {
  transform: scale(1.12);
}

.conversion-hub-card .conv-card-title {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
}

.conversion-hub-card .conv-card-badge {
  font-size: 0.67rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 8px;
  line-height: 1.25;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.conversion-hub-card .conv-card-action {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  opacity: 0.85;
}

.conversion-hub-card .savings-accordion-chevron {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

/* Themes: Coins (Cyan) */
.conversion-hub-card.theme-coins {
  border-color: rgba(56, 189, 248, 0.25);
}
.conversion-hub-card.theme-coins .conv-card-title {
  color: #38bdf8;
}
.conversion-hub-card.theme-coins .conv-card-badge {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.conversion-hub-card.theme-coins:hover {
  border-color: rgba(56, 189, 248, 0.55);
}
.conversion-hub-card.theme-coins.active {
  border-color: #38bdf8;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(56, 189, 248, 0.18));
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35), inset 0 0 12px rgba(56, 189, 248, 0.12);
}
.conversion-hub-card.theme-coins.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 15%;
  left: 15%;
  height: 3px;
  background: #38bdf8;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 8px #38bdf8;
}

/* Themes: Stars (Purple) */
.conversion-hub-card.theme-stars {
  border-color: rgba(192, 132, 252, 0.25);
}
.conversion-hub-card.theme-stars .conv-card-title {
  color: #c084fc;
}
.conversion-hub-card.theme-stars .conv-card-badge {
  background: rgba(192, 132, 252, 0.12);
  color: #d8b4fe;
  border: 1px solid rgba(192, 132, 252, 0.25);
}
.conversion-hub-card.theme-stars:hover {
  border-color: rgba(192, 132, 252, 0.55);
}
.conversion-hub-card.theme-stars.active {
  border-color: #a855f7;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(168, 85, 247, 0.18));
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35), inset 0 0 12px rgba(168, 85, 247, 0.12);
}
.conversion-hub-card.theme-stars.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 15%;
  left: 15%;
  height: 3px;
  background: #a855f7;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 8px #a855f7;
}

/* Themes: Cash (Gold) */
.conversion-hub-card.theme-cash {
  border-color: rgba(245, 158, 11, 0.25);
}
.conversion-hub-card.theme-cash .conv-card-title {
  color: #fbbf24;
}
.conversion-hub-card.theme-cash .conv-card-badge {
  background: rgba(245, 158, 11, 0.12);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.conversion-hub-card.theme-cash:hover {
  border-color: rgba(245, 158, 11, 0.55);
}
.conversion-hub-card.theme-cash.active {
  border-color: #f59e0b;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(245, 158, 11, 0.18));
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35), inset 0 0 12px rgba(245, 158, 11, 0.12);
}
.conversion-hub-card.theme-cash.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 15%;
  left: 15%;
  height: 3px;
  background: #f59e0b;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 8px #f59e0b;
}

/* Expandable Action Panel Styling */
.conversion-action-panel {
  border-radius: 16px;
  margin-bottom: 12px;
  padding: 14px 16px;
  animation: convFadeInDown 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.conversion-action-panel.theme-coins {
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
}

.conversion-action-panel.theme-stars {
  border: 1.5px solid rgba(192, 132, 252, 0.4);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
}

.conversion-action-panel.theme-cash {
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
}

.conv-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.conv-panel-title {
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.conv-panel-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.conv-panel-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fca5a5;
}

.conv-panel-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.conv-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.conv-preview-pill {
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

@keyframes convFadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================================================================
   Release Notes & Version History Modal Styles (EF-47 / BF-38)
   ========================================================================== */
.release-history-modal-content {
  max-width: 520px;
  width: 100%;
  height: min(650px, 88vh);
  border-radius: 24px;
  padding: 20px 18px;
  text-align: right;
  box-sizing: border-box;
  background: linear-gradient(180deg, #0f172a 0%, #090e1a 100%);
  border: 2px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
}

.release-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.release-history-feed {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-left: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.release-history-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  margin-top: 10px;
  flex-shrink: 0;
}

.release-card {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: right;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.release-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
}

.release-card.latest {
  border-color: rgba(52, 211, 153, 0.5);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(6, 78, 59, 0.3));
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.release-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.release-card-badge {
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.release-card-badge.badge-latest {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
  border: 1px solid #34d399;
}

.release-card-badge.badge-older {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.release-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}

.release-card-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.release-card-highlight-item {
  font-size: 0.82rem;
  color: #e2e8f0;
  display: flex;
  gap: 6px;
  line-height: 1.45;
  align-items: flex-start;
}

.release-card.latest .release-card-highlight-item {
  color: #f1f5f9;
}

.release-card-check {
  color: #38bdf8;
  font-weight: 800;
  flex-shrink: 0;
}

.release-card.latest .release-card-check {
  color: #34d399;
}

