/* ==========================================================================
   BEBEK İSİMLERİ & ETİMOLOJİ - PREMIUM DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-main: #FFF8F0;
  --bg-card: #FFFFFF;
  --text-dark: #3B2A45;
  --text-muted: #8C7A97;
  --text-light: #C7B6CC;

  /* Ana marka rengi: mor (bulutlu tasarım tuvaliyle uyumlu) */
  --primary-indigo: #8B3AA6;
  --primary-indigo-deep: #6F2C86;
  --primary-indigo-light: #F1E4F6;
  --lav-000: #FAF3FB;
  --lav-200: #E4CCEE;
  --lav-ink: #6B3B7A;
  --lav-ink-soft: #5B2E68;

  --rose-pink: #D983B9;
  --rose-light: #FBE9F3;

  --emerald-green: #2BB693;
  --emerald-light: #E3FBF3;

  --amber-gold: #E8B84B;
  --amber-light: #FDF3D9;

  --male-blue: #4FA8D8;
  --male-blue-light: #E8F3FA;

  --lavender: #C67BC4;
  --lavender-light: #F8ECF7;

  --border-color: #F0E4EC;
  --radius-xl: 20px;
  --radius-lg: 20px;
  --radius-md: 20px;
  --radius-pill: 999px;

  /* Finn tarzı: gölge yok, ayrım kenarlık + yüzey tonuyla yapılır */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;

  --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Antonio', 'DM Sans', sans-serif;
  --font-arabic: 'Amiri', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

html {
  touch-action: pan-x pan-y;
}

body {
  font-family: var(--font-main);
  letter-spacing: 0.02em;
  background: radial-gradient(circle at 20% 10%, #3B2856 0%, #241833 55%, #1A1226 100%);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  touch-action: pan-x pan-y;
}

/* App Container (Simulating high-end mobile/web app viewport) */
.app-container {
  width: 100%;
  max-width: 480px;
  height: 920px;
  background-color: var(--bg-main);
  border-radius: 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 0 12px #2D2140;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

@media (max-width: 520px) {
  body {
    padding: 0;
  }
  .app-container {
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
}

/* ============ Açılış (Splash) Ekranı ============ */
.splash-screen {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: #8B3AA6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  cursor: pointer;
  overflow: hidden;
}

.splash-screen.is-leaving {
  animation: splashLeaveOut 0.8s ease forwards;
  pointer-events: none;
}

.splash-screen.is-hidden {
  display: none;
}

@keyframes splashLeaveOut {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}

.splash-cloud {
  width: 190px;
  height: auto;
  animation: splashCloudIn 1s cubic-bezier(.2,.8,.2,1) forwards, splashCloudFloat 3.6s ease-in-out infinite 1s;
  opacity: 0;
}

@keyframes splashCloudIn {
  0%   { opacity: 0; transform: translateY(24px) scale(0.85); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes splashCloudFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.splash-eyes-closed {
  transition: opacity 0.25s ease;
}
.splash-eyes-open {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.25s ease;
}
.splash-screen.is-awake .splash-eyes-closed { opacity: 0; }
.splash-screen.is-awake .splash-eyes-open {
  opacity: 1;
  animation: splashBlinkOpen 0.9s cubic-bezier(.2,.7,.2,1);
}

@keyframes splashBlinkOpen {
  0%   { transform: scaleY(0.05); }
  70%  { transform: scaleY(1.15); }
  100% { transform: scaleY(1); }
}

.splash-title {
  margin-top: 18px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  opacity: 0;
  animation: splashFadeUp 0.7s ease-out 0.9s forwards;
}

.splash-subtitle {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #E0B6E8;
  opacity: 0;
  animation: splashFadeUp 0.7s ease-out 1.1s forwards;
}

.splash-tap-hint {
  margin-top: 26px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #D6A6E0;
  opacity: 0;
  animation: splashFadeUp 0.6s ease-out 1.8s forwards;
}

@keyframes splashFadeUp {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.splash-spark {
  position: absolute;
  width: 14px;
  height: 14px;
  animation: splashTwinkle 2.4s ease-in-out infinite;
}
.splash-spark-1 { top: 20%; left: 18%; animation-delay: 0.2s; }
.splash-spark-2 { top: 60%; right: 16%; width: 10px; height: 10px; animation-delay: 1.2s; }
.splash-spark-3 { top: 30%; right: 26%; width: 9px; height: 9px; animation-delay: 0.7s; }

@keyframes splashTwinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50%      { opacity: 1; transform: scale(1.1); }
}

/* App Header */
.app-header {
  background: #8B3AA6;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-cloud {
  width: 60px;
  height: auto;
  flex-shrink: 0;
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.logo-cloud-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: logoBlink 5s ease-in-out infinite 2s;
}

@keyframes logoBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%           { transform: scaleY(0.1); }
}

.brand-info h1 {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.brand-info .sub-tag {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.auth-pill-btn {
  background: #FFFFFF;
  color: var(--primary-indigo);
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.auth-pill-btn:hover {
  background: #F1E4F6;
}

/* Welcome Hero — ilk açılışta gözü dolduran, sıcak/renkli karşılama alanı */
/* Keşfet: Kategori Ana Ekranı */
#exploreHome.hidden, #exploreList.hidden {
  display: none;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.category-tile {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 14px;
  border: 1.5px solid var(--hue);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  cursor: pointer;
}

.category-tile.full-width {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
}

.category-badge {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--hue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-badge i {
  color: #FFFFFF;
  font-size: 15px;
}

.category-tile span {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
  display: block;
  line-height: 1.25;
}

.category-tile small {
  font-size: 9.5px;
  color: var(--text-muted);
}

/* Keşfet: Kategori Sonuç Listesi */
.explore-list-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.explore-back-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-indigo);
  flex-shrink: 0;
  cursor: pointer;
}

.explore-list-title span {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  display: block;
}

/* Partner Sync Banner */
.partner-banner {
  background: var(--rose-pink);
  color: #FFFFFF;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.partner-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-beat {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.code-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

/* Nav Tabs */
.nav-tabs {
  background: var(--bg-card);
  display: flex;
  border-bottom: 1px solid var(--border-color);
  padding: 4px 8px;
}

.nav-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.nav-tab i {
  font-size: 16px;
}

.nav-tab.active {
  color: var(--primary-indigo);
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 20%;
  width: 60%;
  height: 3px;
  background-color: var(--primary-indigo);
  border-radius: 3px 3px 0 0;
}

.fav-count-badge {
  position: absolute;
  top: 4px;
  right: 18px;
  background-color: var(--rose-pink);
  color: white;
  font-size: 10px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content Area */
.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  position: relative;
  scrollbar-width: thin;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Search Box Container */
.search-box-container {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  font-size: 14px;
}

.search-input-wrapper input {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 12px 38px 12px 38px;
  font-size: 14px;
  font-family: var(--font-main);
  color: var(--text-dark);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.search-input-wrapper input:focus {
  border-color: var(--primary-indigo);
}

.clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 14px;
  display: none;
}

.filter-toggle-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  position: relative;
}

/* Chips Row */
.chips-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.chips-row::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn.active {
  background-color: var(--text-dark);
  color: white;
  border-color: var(--text-dark);
}

.chip-btn.female.active { background: var(--rose-pink); border-color: var(--rose-pink); }
.chip-btn.male.active { background: var(--male-blue); border-color: var(--male-blue); }
.chip-btn.unisex.active { background: var(--amber-gold); border-color: var(--amber-gold); }

/* Filter Drawer */
.filter-drawer {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 14px;
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.filter-drawer.hidden {
  display: none;
}

.filter-section {
  margin-bottom: 10px;
}

.filter-section label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.letter-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.letter-chip {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.letter-chip.active {
  background: var(--primary-indigo);
  color: white;
  border-color: var(--primary-indigo);
}

.filter-section select {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  font-size: 13px;
  font-family: var(--font-main);
}

.reset-filters-btn {
  width: 100%;
  background: none;
  border: 1px dashed var(--border-color);
  padding: 6px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

/* Meta Count */
.results-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 0 4px;
}

/* Names List & Cards */
.names-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.load-more-btn {
  background: var(--primary-indigo-light);
  color: var(--primary-indigo);
  border: 1px dashed var(--primary-indigo);
  border-radius: var(--radius-pill);
  padding: 14px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.name-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 16px;
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  cursor: pointer;
}

.name-card.gender-K { border-left-color: var(--rose-pink); }
.name-card.gender-E { border-left-color: var(--male-blue); }
.name-card.gender-U { border-left-color: var(--amber-gold); }

.name-card:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: var(--shadow-md);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

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

.name-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--text-dark);
}

.arabic-script {
  font-family: var(--font-arabic);
  font-size: 20px;
  direction: rtl;
  color: var(--amber-gold);
  background: var(--amber-light);
  padding: 2px 10px;
  border-radius: 8px;
  border: 1px solid #FDE68A;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.badge-manuscript {
  background: var(--emerald-light);
  color: var(--emerald-green);
  border: 1px solid #A7F3D0;
}

.badge-verified {
  background: var(--lavender-light);
  color: var(--lavender);
  border: 1px solid #E0D4FF;
}

.badge-basic {
  background: #F5EDE3;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* Card Meta Tags */
.card-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.tuik-rank-chip {
  background: var(--amber-light);
  color: var(--amber-gold);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 800;
}

.card-meaning {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 12px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.test-harmony-btn {
  background: #F1F5F9;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.2s ease;
}

.test-harmony-btn:hover {
  background: #E2E8F0;
}

.fav-btn {
  background: var(--rose-light);
  color: var(--rose-pink);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.fav-btn.active {
  background: var(--rose-pink);
  color: white;
}

/* TAB 2: HARMONY TESTER */
.harmony-header-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 20px;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.harmony-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-indigo-light);
  color: var(--primary-indigo);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
}

.harmony-header-card h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.harmony-header-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.surname-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.surname-input-box i {
  position: absolute;
  left: 14px;
  color: var(--text-light);
}

.surname-input-box input {
  width: 100%;
  padding: 12px 14px 12px 38px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--primary-indigo);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-main);
  outline: none;
}

.harmony-select-row {
  margin-bottom: 16px;
}

.harmony-select-row label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.harmony-select-row select {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 700;
  background: var(--bg-card);
}

/* Harmony Score Card */
.harmony-result-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

.score-display-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tested-pair-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
}

.score-circle-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--emerald-light);
  border: 3px solid var(--emerald-green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--emerald-green);
}

.score-circle-badge.score-medium {
  background: var(--amber-light);
  border-color: var(--amber-gold);
  color: var(--amber-gold);
}

.score-circle-badge.score-low {
  background: var(--rose-light);
  border-color: var(--rose-pink);
  color: var(--rose-pink);
}

.score-num {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.score-lbl {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.rule-item.pass { color: var(--emerald-green); }
.rule-item.warn { color: var(--amber-gold); font-weight: 600; }

/* TÜİK Tab */
.tuik-hero-card {
  background: #0F172A;
  color: white;
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 16px;
}

.tuik-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tuik-hero-card h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.tuik-hero-card p {
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.5;
}

.trending-section {
  margin-bottom: 20px;
}

.trending-section h3, .tuik-leaderboard-section h3 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.trend-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 12px;
  border: 1px solid var(--border-color);
}

.trend-card .t-name {
  font-size: 15px;
  font-weight: 800;
}

.trend-card .t-climb {
  font-size: 11px;
  font-weight: 800;
  color: var(--emerald-green);
  margin-top: 4px;
}

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

.gender-toggle-small {
  display: flex;
  background: #E2E8F0;
  border-radius: var(--radius-pill);
  padding: 2px;
}

.small-toggle {
  border: none;
  background: none;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.small-toggle.active {
  background: white;
  box-shadow: var(--shadow-sm);
}

.tuik-item-row {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  border: 1px solid var(--border-color);
}

.tuik-rank-num {
  font-size: 14px;
  font-weight: 900;
  width: 24px;
  color: var(--amber-gold);
}

.tuik-name-txt {
  font-size: 14px;
  font-weight: 700;
  flex: 1;
}

.tuik-count-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Modals */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  max-height: 85%;
  overflow-y: auto;
  animation: modalPopIn 0.25s ease;
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

#detailModal .modal-card {
  background: var(--lav-200);
}

/* Açılış sırası: önce tek başına bulut, sonra kart onun yerine belirir */
#detailModal .modal-card.card-pending {
  animation: none;
  opacity: 0;
  transform: scale(0.85);
}

#detailModal .modal-card.is-revealing {
  animation: modalPopIn 0.3s ease;
}

.modal-intro-cloud {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
}

.modal-intro-cloud-svg {
  width: 140px;
  height: 98px;
  transform: scale(0.5);
}

.modal-intro-cloud.is-playing {
  animation: modalIntroFade 0.85s ease forwards;
}

.modal-intro-cloud.is-playing .modal-intro-cloud-svg {
  animation: modalIntroPop 0.4s cubic-bezier(.34, 1.56, .64, 1) forwards;
}

.modal-intro-cloud.is-playing .modal-intro-cloud-eyes {
  transform-origin: center;
  animation: modalCloudBlink 0.14s ease 0.46s;
}

@keyframes modalIntroFade {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes modalIntroPop {
  0%   { transform: scale(0.5); }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #F1F5F9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

/* Detail Modal: Mor Karşılama Bandı */
.modal-hero {
  background: var(--primary-indigo);
  margin: -24px -24px 20px;
  padding: 26px 24px 20px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  text-align: center;
}

.modal-hero h2 {
  color: #FFFFFF;
}

.modal-hero .arabic-script {
  color: #FFFFFF;
}

.modal-hero .card-tags {
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
}

.modal-hero .card-tags span {
  color: rgba(255, 255, 255, 0.85);
}

.modal-content-inner {
  opacity: 0;
}

.modal-card.is-revealing .modal-content-inner {
  animation: modalContentReveal 0.35s ease 0.22s forwards;
}

@keyframes modalCloudBlink {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.08); }
}

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

/* Auth Modal */
.auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.auth-header h2 { font-size: 20px; font-weight: 800; }
.auth-header p { font-size: 12px; color: var(--text-muted); }

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

.form-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  font-size: 14px;
  font-family: var(--font-main);
}

.primary-btn {
  background: var(--primary-indigo);
  color: white;
  border: none;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 0 var(--primary-indigo-deep);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.primary-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--primary-indigo-deep);
}

.auth-divider {
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
  margin: 12px 0;
}

.guest-btn {
  width: 100%;
  background: #F1F5F9;
  border: none;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}

/* Partner Modal */
.partner-modal-header {
  text-align: center;
  margin-bottom: 16px;
}
.partner-icon { font-size: 32px; color: var(--rose-pink); margin-bottom: 4px; }
.pair-code-box {
  background: var(--amber-light);
  border: 1px solid #FDE68A;
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.pair-label { font-size: 11px; font-weight: 700; color: var(--amber-gold); }
.code-display { font-size: 28px; font-weight: 900; letter-spacing: 4px; color: var(--text-dark); margin: 4px 0 10px 0; }

.copy-code-btn {
  background: var(--amber-gold);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pair-input-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.pair-input-row input {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.pair-input-row button {
  width: auto;
  padding: 0 16px;
}

/* Confetti Canvas */
.confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 200;
}
