/* ═══════════════════════════════════════
   HOME SECTION
═══════════════════════════════════════ */
.home-hero {
  padding: 24px 0 6px;
  text-align: center;
}

.hero-greeting {
  font-size: clamp(15px, 3vw, 18px);
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 6px;
  direction: rtl;
}

.hero-name {
  font-family: "Baloo 2", "Noto Sans Hebrew", "Sora", sans-serif;
  font-size: clamp(44px, 11vw, 76px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(16px, 3.5vw, 22px);
  font-weight: 700;
  color: var(--text-mid);
  direction: rtl;
  margin-bottom: 24px;
}

.version-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-soft);
  opacity: 0.6;
  margin-top: 8px;
  font-family: "Baloo 2", "Noto Sans Hebrew", "Sora", sans-serif;
  letter-spacing: 0.5px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 18px 14px 16px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1.5px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.95), var(--shadow-sm);
  transition: transform 0.3s var(--spring), box-shadow 0.25s;
  cursor: default;
}

.stat-card:nth-child(1) { background: rgba(254,243,199,0.72); border-color: rgba(253,230,138,0.75); }
.stat-card:nth-child(2) { background: rgba(245,243,255,0.72); border-color: rgba(196,181,253,0.75); }
.stat-card:nth-child(3) { background: rgba(240,253,244,0.72); border-color: rgba(134,239,172,0.75); }
.stat-card:nth-child(4) { background: rgba(255,247,237,0.72); border-color: rgba(253,186,116,0.75); }

.stat-card:active {
  animation: springTap 0.35s var(--spring) both;
}

.stat-num {
  font-family: "Baloo 2", "Noto Sans Hebrew", "Sora", sans-serif;
  font-size: clamp(30px, 7vw, 40px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-mid);
  direction: rtl;
}

/* Streak card emphasis */
.stat-card:nth-child(4) .stat-num {
  background: linear-gradient(135deg, #ea580c, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.treasure-map {
  position: relative;
  height: 500px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
  background-image: radial-gradient(#e0e7ff 20%, transparent 20%), radial-gradient(#e0e7ff 20%, transparent 20%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

.map-path {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-node {
  position: absolute;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transform: translateX(-50%);
  transition: transform 0.2s var(--spring);
  z-index: 2;
}

.map-node:hover {
  transform: translateX(-50%) scale(1.1);
}

.map-node:active {
  transform: translateX(-50%) scale(0.95);
}

.mn-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--surface);
}

.mn-label {
  margin-top: 8px;
  font-family: "Baloo 2", "Noto Sans Hebrew", "Sora", sans-serif;
  font-size: 14px;
  font-weight: 800;
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  white-space: nowrap;
}

.node-1 { top: 40px; left: 50%; }
.node-2 { top: 150px; left: 72%; }
.node-3 { top: 260px; left: 28%; }
.node-4 { top: 370px; left: 50%; }

.foxy-avatar {
  position: absolute;
  top: -28px;
  right: -15px;
  font-size: 42px;
  animation: foxyFloat 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
  z-index: 3;
}

@keyframes foxyFloat {
  0%, 100% { transform: translateY(0)    scale(1)    rotate(-1.5deg); }
  50%       { transform: translateY(-10px) scale(1.04) rotate(1.5deg); }
}

/* ═══════════════════════════════════════
   JOURNEY SECTION — One UI 8.5 CARDS
═══════════════════════════════════════ */
.journey-section {
  padding-bottom: 24px;
}

.journey-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  direction: rtl;
  text-align: right;
  margin-bottom: 10px;
  padding: 0 4px;
  letter-spacing: 0.2px;
}

.journey-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
    0 4px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s var(--spring), box-shadow 0.25s;
  animation: popIn 0.35s var(--spring) both;
}

.journey-card:nth-child(1) { animation-delay: 0.00s; }
.journey-card:nth-child(2) { animation-delay: 0.04s; }
.journey-card:nth-child(3) { animation-delay: 0.08s; }
.journey-card:nth-child(4) { animation-delay: 0.12s; }
.journey-card:nth-child(5) { animation-delay: 0.16s; }
.journey-card:nth-child(6) { animation-delay: 0.20s; }
.journey-card:nth-child(7) { animation-delay: 0.24s; }
.journey-card:nth-child(8) { animation-delay: 0.28s; }

.journey-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
    0 10px 32px rgba(0, 0, 0, 0.12);
}

.journey-card:active {
  transform: scale(0.96);
  transition: transform 0.12s var(--ease), box-shadow 0.12s;
}

.jcard-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.jcard-body {
  flex: 1;
}

.jcard-title {
  font-family: "Baloo 2", "Noto Sans Hebrew", "Sora", sans-serif;
  font-weight: 900;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 3px;
  letter-spacing: -0.2px;
}

.jcard-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  direction: rtl;
}

.jcard-chev {
  font-size: 20px;
  color: var(--text-soft);
  opacity: 0.45;
  flex-shrink: 0;
  font-weight: 300;
  line-height: 1;
}

/* ═══════════════════════════════════════
   LEARNING PATH
═══════════════════════════════════════ */
.lp-section { padding-bottom: 28px; }
.lp-header { margin-bottom: 14px; }
.lp-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-soft);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  direction: rtl;
  text-align: right;
  padding: 0 4px;
  margin-bottom: 2px;
}
.lp-desc {
  font-size: 12px;
  color: var(--text-soft);
  direction: rtl;
  text-align: right;
  padding: 0 4px;
}
.lp-card {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 22px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.9), 0 4px 16px rgba(0,0,0,0.07);
  transition: transform 0.25s var(--spring), box-shadow 0.25s;
  animation: popIn 0.38s var(--spring) both;
}
.lp-card:nth-child(1) { animation-delay: 0.00s; }
.lp-card:nth-child(2) { animation-delay: 0.07s; }
.lp-card:nth-child(3) { animation-delay: 0.14s; }
.lp-card:nth-child(4) { animation-delay: 0.21s; }
.lp-card:nth-child(5) { animation-delay: 0.28s; }
.lp-card:not(.lp-locked):hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.9), 0 10px 32px rgba(0,0,0,0.11);
}
.lp-card:not(.lp-locked):active { transform: scale(0.97); }
.lp-card.lp-locked { opacity: 0.5; cursor: default; }
.lp-num {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  direction: rtl;
  text-align: right;
  margin-bottom: 8px;
}
.lp-row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.lp-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  flex-shrink: 0;
}
.lp-body { flex: 1; min-width: 0; }
.lp-title {
  font-family: "Baloo 2", "Noto Sans Hebrew", "Sora", sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 2px;
  letter-spacing: -0.2px;
}
.lp-sub {
  font-size: 11.5px;
  color: var(--text-soft);
  direction: rtl;
  margin-bottom: 8px;
}
.lp-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-bar {
  flex: 1;
  height: 6px;
  background: rgba(73,54,232,0.1);
  border-radius: 99px;
  overflow: hidden;
}
.lp-fill {
  height: 100%;
  background: linear-gradient(90deg, #4936e8, #9b6ff8);
  border-radius: 99px;
  transition: width 0.8s var(--spring);
}
.lp-pct {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  min-width: 28px;
  text-align: right;
}
.lp-chev {
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  opacity: 0.6;
}

/* ═══════════════════════════════════════
   HOME — COMPACT HERO GLASS CARD
═══════════════════════════════════════ */
.hero-glass-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1.5px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  padding: 20px 24px 18px;
  margin-bottom: 16px;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.95), var(--shadow-sm);
  text-align: center;
}

.hero-fox-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(108,79,246,0.3);
  animation: foxyFloat 3s ease-in-out infinite;
}

/* ═══════════════════════════════════════
   HOME — TILES (secondary actions)
═══════════════════════════════════════ */
.home-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.home-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1.5px solid rgba(255,255,255,0.82);
  border-radius: 22px;
  cursor: pointer;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.9), var(--shadow-sm);
  transition: transform 0.3s var(--spring), box-shadow 0.25s;
  font-family: inherit;
  color: var(--text);
}

.home-tile:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.9), var(--shadow-md);
}

.home-tile:active {
  animation: springTap 0.35s var(--spring) both;
}

.home-tile-icon {
  font-size: 32px;
  line-height: 1;
}

.home-tile-fox {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.home-tile-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  direction: rtl;
}

/* ═══════════════════════════════════════
   HOME — STRIP (streak + challenges)
═══════════════════════════════════════ */
.home-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.5);
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.7);
}

.strip-item {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  direction: rtl;
}

.strip-item.strip-done {
  color: #16a34a;
}

.strip-item.strip-learn {
  color: #7c3aed;
}

.strip-sep {
  color: var(--text-soft);
  font-size: 12px;
  opacity: 0.5;
}

/* ═══════════════════════════════════════
   ME SECTION — PROFILE HEADER
═══════════════════════════════════════ */
.me-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1.5px solid rgba(255,255,255,0.82);
  border-radius: 24px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.95), var(--shadow-sm);
}

.me-avatar-wrap {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5bf8, #4936e8);
  padding: 3px;
  box-shadow: 0 4px 16px rgba(108,79,246,0.35);
}

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

.me-info {
  flex: 1;
  min-width: 0;
}

.me-name {
  font-family: "Baloo 2", "Noto Sans Hebrew", "Sora", sans-serif;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 4px;
}

.me-level-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}

/* Top-3 preview on home */
.lb-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin: 0 16px 16px;
  cursor: pointer;
  transition: transform 0.15s;
}
.lb-preview-card:active { transform: scale(0.98); }
.lb-preview-header {
  font-size: 0.78rem; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.top3-entry { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.top3-medal { font-size: 1.1rem; width: 24px; }
.top3-name  { flex: 1; font-weight: 600; color: var(--text); font-size: 0.9rem; }
.top3-xp   { color: var(--primary); font-size: 0.85rem; font-weight: 700; }


/* Level badge on hero */
.level-badge {
  display: inline-block;
  background: rgba(124, 91, 248, .18);
  border: 1.5px solid rgba(124, 91, 248, .35);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #a78bfa;
  margin-top: 6px;
  direction: rtl;
}

/* ═══════════════════════════════════════
   HOME HERO ROW — compact greeting
═══════════════════════════════════════ */
.home-hero-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #a78bfa 0%, #ff6b8a 50%, #fbbf24 100%) border-box;
  border: 2px solid transparent;
  border-radius: 28px;
  padding: 14px 18px 14px 14px;
  margin-bottom: 14px;
  box-shadow:
    0 4px 20px rgba(124,91,248,0.10),
    0 2px 6px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

/* Soft confetti dots inside the hero card */
.home-hero-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255,196,87,0.35) 0 4px, transparent 5px),
    radial-gradient(circle at 88% 30%, rgba(255,107,138,0.32) 0 3px, transparent 4px),
    radial-gradient(circle at 30% 78%, rgba(77,212,185,0.32) 0 3px, transparent 4px),
    radial-gradient(circle at 80% 78%, rgba(124,91,248,0.30) 0 4px, transparent 5px);
  pointer-events: none;
  opacity: 0.55;
}

.home-hero-row > * { position: relative; z-index: 1; }

.hhr-left {
  position: relative;
  flex-shrink: 0;
  width: 118px;
  height: 130px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Soft pastel "stage" disc under the fox feet — anchors her in space */
.hhr-left::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 92px;
  height: 14px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    rgba(124,91,248,0.28) 0%,
    rgba(124,91,248,0.12) 50%,
    transparent 75%);
  filter: blur(2px);
  z-index: 0;
  animation: heroFoxShadow 2.8s ease-in-out infinite;
}

/* Full-body Foxy character */
.hhr-fox {
  position: relative;
  width: 118px;
  height: 130px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  cursor: pointer;
  z-index: 1;
  animation:
    heroFoxFloat   2.8s ease-in-out infinite,
    heroFoxBreathe 4.2s ease-in-out infinite,
    heroFoxSway    5.6s ease-in-out infinite;
  transform-origin: bottom center;
  filter: drop-shadow(0 6px 12px rgba(108,79,246,0.25));
  transition: opacity 0.18s ease;
}

.hhr-fox.swap-out { opacity: 0; }

.hhr-fox:active { animation-play-state: paused; }

/* Three animations on independent properties (translate / scale / rotate)
   so they compose instead of overwriting each other on `transform`. */
@keyframes heroFoxFloat {
  0%, 100% { translate: 0 0;     }
  50%      { translate: 0 -7px;  }
}

@keyframes heroFoxBreathe {
  0%, 100% { scale: 1;     }
  50%      { scale: 1.035; }
}

@keyframes heroFoxSway {
  0%, 100% { rotate: -1.5deg; }
  50%      { rotate:  1.5deg; }
}

/* Shadow puffs out slightly as fox descends, contracts as she rises */
@keyframes heroFoxShadow {
  0%, 100% { transform: translateX(-50%) scaleX(1);    opacity: 0.6; }
  50%      { transform: translateX(-50%) scaleX(0.78); opacity: 0.35; }
}

.foxy-level-badge { display: none; }

.hhr-text {
  flex: 1;
  min-width: 0;
  text-align: right;
  direction: rtl;
}

.hhr-name {
  font-family: "Baloo 2", sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #6c4ef6 0%, #b966ff 50%, #ff6b8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
}

/* Stats chips inside hero row */
.hhr-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.hhr-chip {
  border-radius: 99px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.hhr-stars {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #f59e0b, #fbbf24) border-box;
  color: #b45309;
  box-shadow: 0 2px 6px rgba(245,158,11,0.18);
}

.hhr-streak {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #ff6b35, #ff8c52) border-box;
  color: #c2410c;
  box-shadow: 0 2px 6px rgba(234,88,12,0.15);
}

.hhr-level {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #7c5bf8, #a78bfa) border-box;
  color: #6c4ef6;
  box-shadow: 0 2px 6px rgba(108,79,246,0.15);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Speech bubble with little tail pointing toward the fox */
.hhr-msg {
  font-size: 13px;
  font-weight: 700;
  color: #4a3a8a;
  direction: rtl;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #fff;
  border: 1.5px solid rgba(124,91,248,0.18);
  border-radius: 14px;
  padding: 7px 11px;
  box-shadow: 0 2px 8px rgba(108,79,246,0.10);
  position: relative;
  animation: speechPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.2s;
}

.hhr-msg::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #fff;
  border-right: 1.5px solid rgba(124,91,248,0.18);
  border-top: 1.5px solid rgba(124,91,248,0.18);
}

@keyframes speechPop {
  0%   { opacity: 0; transform: translateX(8px) scale(0.96); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* ═══════════════════════════════════════
   QUICK ACTIONS ROW
═══════════════════════════════════════ */
.quick-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.qa-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1.5px solid rgba(255,255,255,0.88);
  border-radius: 20px;
  cursor: pointer;
  min-height: 72px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
  font-family: inherit;
  color: var(--text);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.95), 0 2px 8px rgba(0,0,0,0.06);
}

.qa-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.95), 0 8px 22px rgba(0,0,0,0.11);
}

.qa-btn:active {
  animation: springTap 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.qa-icon {
  font-size: 26px;
  line-height: 1;
}

.qa-label {
  font-size: 12px;
  font-weight: 800;
  direction: rtl;
  color: var(--text);
}

.qa-fox-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(108,79,246,0.28);
}

/* Per-button color tint */
.qa-games { background: rgba(255,247,237,0.82); border-color: rgba(253,186,116,0.5); }
.qa-learn  { background: rgba(240,240,255,0.82); border-color: rgba(167,139,250,0.45); }
.qa-foxy   { background: rgba(240,253,244,0.82); border-color: rgba(134,239,172,0.45); }

/* ═══════════════════════════════════════
   HOME — SECTION DISCOVERY GRID
═══════════════════════════════════════ */
.nav-discover-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-soft);
  direction: rtl;
  text-align: right;
  margin-bottom: 8px;
  padding: 0 2px;
}

.nav-discover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.ndc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 10px 14px;
  border-radius: 22px;
  cursor: pointer;
  font-family: inherit;
  border: 2px solid transparent;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.9), 0 3px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
  animation: popIn 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  min-height: 100px;
}

.ndc-card:nth-child(1) { animation-delay: 0.00s; }
.ndc-card:nth-child(2) { animation-delay: 0.05s; }
.ndc-card:nth-child(3) { animation-delay: 0.10s; }
.ndc-card:nth-child(4) { animation-delay: 0.15s; }

.ndc-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.9), 0 10px 28px rgba(0,0,0,0.13);
}

.ndc-card:active {
  animation: springTap 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

.ndc-icon-wrap {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 2px;
}

.ndc-title {
  font-family: "Baloo 2", "Noto Sans Hebrew", "Sora", sans-serif;
  font-size: 17px;
  font-weight: 900;
  direction: rtl;
  letter-spacing: -0.2px;
}

.ndc-sub {
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.65;
  direction: rtl;
  text-align: center;
  line-height: 1.3;
}

/* Per-card gradient borders — white fill, color only on border */
.ndc-letters {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, #ff6b8a, #e11d48) border-box;
  color: var(--text);
}
.ndc-words {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, #a78bfa, #6c4ef6) border-box;
  color: var(--text);
}
.ndc-games {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, #fbbf24, #f97316) border-box;
  color: var(--text);
}
.ndc-phrases {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, #5eead4, #0d9488) border-box;
  color: var(--text);
}

/* ═══════════════════════════════════════
   HOME — ASK FOXY STRIP
═══════════════════════════════════════ */
.ask-foxy-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #4dd4b9, #0d9488) border-box;
  border: 1.5px solid transparent;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 12px;
  box-shadow: 0 3px 12px rgba(13,148,136,0.10), 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
  text-align: right;
  direction: rtl;
}

.ask-foxy-strip:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.9), 0 8px 22px rgba(0,0,0,0.1);
}

.ask-foxy-strip:active {
  animation: springTap 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.afs-fox {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
  order: 1;
}

.afs-text {
  flex: 1;
  direction: rtl;
  order: 0;
}

.afs-title {
  font-family: "Baloo 2", "Noto Sans Hebrew", "Sora", sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #0d9488;
  margin-bottom: 1px;
}

.afs-sub {
  font-size: 11px;
  font-weight: 600;
  color: #0f766e;
  opacity: 0.85;
}

.afs-arrow {
  font-size: 22px;
  color: #059669;
  opacity: 0.5;
  font-weight: 300;
  flex-shrink: 0;
  order: 2;
}

/* ═══════════════════════════════════════
   APP FOOTER + AGE AI BADGE
═══════════════════════════════════════ */
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 4px 4px;
  margin-top: 8px;
}

.footer-version {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
  opacity: 0.55;
  letter-spacing: 0.3px;
}

.footer-ageai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 4px 10px 4px 6px;
  border-radius: 20px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.07);
  transition: background 0.18s, transform 0.18s var(--spring);
}
.footer-ageai:hover {
  background: rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.footer-ageai-logo {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-ageai-label {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.1px;
}
.footer-ageai-label strong {
  font-weight: 800;
  color: #1f2937;
}
