/* ==========================================================================
   prizmcards.com — Game Theme (Pokémon TCG / Holographic)
   Trainer profile feel, XP-bar progress, holographic card shine, neon edges.
   Load AFTER binder.css. Remove the <link> to revert.
   ========================================================================== */

/* ===== Battle-arena background ===== */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%,   rgba(56, 189, 248, 0.28), transparent 65%),
    radial-gradient(ellipse 60% 45% at 90% 15%,  rgba(168,  85, 247, 0.32), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(236,  72, 153, 0.25), transparent 70%),
    radial-gradient(ellipse 50% 40% at 0%  80%,  rgba(253, 224,  71, 0.18), transparent 70%),
    linear-gradient(180deg, #060417 0%, #0a0721 50%, #0d0a2a 100%);
  background-attachment: fixed;
}
/* Hex / scanline overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(0, 217, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, #000 30%, transparent 100%);
}

html, body { background: transparent !important; }
body {
  font-size: 15px !important;
  color: #e8efff !important;
}
.home-app, .catalog-app, .pack-app, .dex-app, .new-app, .binder-app {
  background: transparent !important;
}

/* ===== Color tokens (override binder.css CSS variables) =====
   Neon Vault palette — D1+D3 hybrid (May 2026).
   --accent olgunlaşmış mavi (#3B82F6), --gold amber-holo (#F59E0B).
   Tek nokta override — binder.css'i geçersiz kılar. */
:root {
  /* --- Brand tokens (Neon Vault palette) --- */
  --accent:       #3B82F6;             /* mavi — primary interactive, "klikleyebilir" */
  --accent-deep:  #2563EB;
  --accent-glow:  rgba(59, 130, 246, 0.25);   /* glow azaltıldı — disiplin */
  --gold:         #F59E0B;             /* amber — holo foil çağrışımı, nadir CTA */
  --gold-deep:    #D97706;
  --gold-soft:    rgba(245, 158, 11, 0.14);
  --accent-soft:  rgba(59, 130, 246, 0.14);

  /* --- Game theme inner tokens --- */
  --xp-blue:   #3B82F6;
  --xp-cyan:   #67E8F9;
  --xp-purple: #A855F7;
  --xp-pink:   #EC4899;
  --xp-gold:   #F59E0B;
  --neon-edge: rgba(59, 130, 246, 0.45);
  --rarity-glow-L: 0 0 18px rgba(245, 158, 11, 0.55);
  --rarity-glow-S: 0 0 18px rgba(168, 85, 247, 0.55);
  --rarity-glow-R: 0 0 18px rgba(59, 130, 246, 0.55);

  /* --- Typography scale (Faz 2.2) --- */
  --text-display:  30px;   /* hero rakamları */
  --text-h1:       28px;
  --text-h2:       20px;
  --text-h3:       16px;
  --text-body:     14px;
  --text-small:    12px;
  --text-caption:  11px;
  --fw-bold:       800;
  --fw-semi:       600;
  --fw-reg:        400;
  --tracking-cap:  0.12em;
}

/* ===== Statik elementlerde glow YOK (Brief 2.1 kuralı) ===== */
.stat-value,
.stat-value.total,
.stat-value.owned,
.stat-value.pct {
  text-shadow: none !important;
}

/* ===== Stat renkleri — düşük saturasyon, yumuşak ===== */
.stat-value.total { color: #e5edfb !important; }     /* off-white */
.stat-value.owned { color: #67e8f9 !important; }     /* cyan-light */
.stat-value.pct   { color: #c4b5fd !important; }     /* mor-light */

/* ===== TYPOGRAPHY — trainer-card feel ===== */
h1 {
  font-size: 32px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase !important;
  background: linear-gradient(135deg, #fff 0%, var(--xp-cyan) 50%, var(--xp-purple) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.35));
}
.title-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--xp-cyan) 40%, var(--xp-purple) 80%) !important;
}

.section-label {
  font-size: 11px !important;
  font-weight: 900 !important;
  color: var(--xp-cyan) !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  margin-bottom: 14px !important;
}
.section-label::before {
  content: '▰▰ ';
  color: var(--xp-cyan);
  opacity: 0.7;
}

.label-tiny {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: rgba(0, 217, 255, 0.55) !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}
.label-tiny::before { content: '◆ '; opacity: 0.7; }

/* ===== HOME HEADER ===== */
.home-header { padding-top: max(28px, env(safe-area-inset-top)) !important; }
.home-header-row { margin-bottom: 24px !important; }

/* ===== STATS STRIP → XP CARD ===== */
.stats-strip {
  position: relative;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%),
    rgba(7, 12, 32, 0.7) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1.5px solid var(--neon-edge) !important;
  border-radius: 18px !important;
  box-shadow:
    0 12px 36px rgba(0, 217, 255, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 30px rgba(168, 85, 247, 0.12) inset;
  padding: 18px 0 !important;
  margin-bottom: 28px !important;
  overflow: hidden;
}
/* Animated corner accents */
.stats-strip::before,
.stats-strip::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  border: 2px solid var(--xp-cyan);
}
.stats-strip::before {
  top: -2px; left: -2px;
  border-right: none; border-bottom: none;
  border-top-left-radius: 18px;
}
.stats-strip::after {
  bottom: -2px; right: -2px;
  border-left: none; border-top: none;
  border-bottom-right-radius: 18px;
}
.stat-col {
  border-right: 1px solid rgba(56, 189, 248, 0.18) !important;
  gap: 4px !important;
}
.stat-value {
  font-size: 32px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  font-family: 'JetBrains Mono', monospace !important;
}
.stat-value.total { color: #fff !important; text-shadow: 0 0 14px rgba(255, 255, 255, 0.5); }
.stat-value.owned {
  color: var(--xp-cyan) !important;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.7);
}
.stat-value.pct {
  color: var(--xp-gold) !important;
  text-shadow: 0 0 18px rgba(253, 224, 71, 0.7);
}
.stat-label-text {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: rgba(255, 255, 255, 0.55) !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}

/* ===== BINDER GRID ===== */
.binder-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
  gap: 18px !important;
}

/* ===== BINDER TILE → HOLOGRAPHIC CARD ===== */
.binder-tile {
  position: relative;
  background:
    linear-gradient(155deg, rgba(56, 189, 248, 0.08) 0%, rgba(15, 12, 38, 0.7) 100%) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1.5px solid rgba(56, 189, 248, 0.32) !important;
  border-radius: 14px !important;
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(56, 189, 248, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.25s, border-color 0.25s !important;
}
/* Holographic shine sweep */
.binder-tile::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(168, 85, 247, 0.18) 50%,
    rgba(56, 189, 248, 0.18) 55%,
    transparent 70%
  );
  background-size: 300% 300%;
  background-position: 100% 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s, background-position 0.8s ease-out;
  z-index: 2;
  mix-blend-mode: overlay;
}
.binder-tile:hover {
  transform: translateY(-6px) scale(1.02) !important;
  border-color: var(--xp-cyan) !important;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(56, 189, 248, 0.35),
    0 0 80px rgba(168, 85, 247, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
.binder-tile:hover::before {
  opacity: 1;
  background-position: 0% 0%;
}
/* Corner accents on tile */
.binder-tile::after {
  content: '';
  position: absolute;
  top: 6px; left: 6px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--xp-cyan);
  border-left: 2px solid var(--xp-cyan);
  opacity: 0.6;
  pointer-events: none;
  z-index: 3;
}

/* Cover area */
.tile-cover {
  height: 230px !important;
  background: linear-gradient(175deg, rgba(56, 189, 248, 0.06), rgba(7, 12, 32, 0.9)) !important;
}
.tile-cover-accent {
  height: 3px !important;
  background: linear-gradient(90deg,
    var(--xp-cyan) 0%,
    var(--xp-purple) 50%,
    var(--xp-pink) 100%) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}
.tile-cover-fade {
  height: 60px !important;
  background: linear-gradient(transparent, rgba(7, 12, 32, 0.85)) !important;
}

/* Progress ring (do not touch SVG geometry) */
.tile-ring {
  width: 44px !important; height: 44px !important;
  top: 12px !important; right: 12px !important;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}
.tile-ring svg { width: 44px !important; height: 44px !important; }
.tile-ring-text {
  font-size: 11px !important;
  font-weight: 900 !important;
  color: #fff !important;
  font-family: 'JetBrains Mono', monospace !important;
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.8);
}

.tile-body { padding: 14px 16px 16px !important; }
.tile-name {
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  margin-bottom: 4px !important;
}
.tile-name::before { content: '✦ '; color: var(--xp-cyan); opacity: 0.9; }
.tile-code {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  color: var(--xp-cyan) !important;
  font-family: 'JetBrains Mono', monospace !important;
  margin-bottom: 10px !important;
}

/* XP-bar progress */
.tile-bar {
  height: 8px !important;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)) !important;
  border-radius: 4px !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  margin-bottom: 10px !important;
  overflow: hidden;
  position: relative;
}
.tile-bar-fill {
  background: linear-gradient(90deg,
    var(--xp-cyan) 0%,
    var(--xp-purple) 100%) !important;
  border-radius: 3px !important;
  box-shadow:
    0 0 12px var(--xp-cyan),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
}
.tile-bar-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%);
  background-size: 50% 100%;
  animation: xpShine 2.2s linear infinite;
}
@keyframes xpShine {
  from { background-position: -50% 0; }
  to   { background-position: 150% 0; }
}

.tile-count {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-family: 'JetBrains Mono', monospace !important;
}
.tile-count strong {
  color: var(--xp-cyan) !important;
  font-weight: 900 !important;
  font-size: 12px !important;
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
}
.rarity-dot {
  width: 7px !important; height: 7px !important;
  box-shadow: 0 0 8px currentColor !important;
}

/* Tile delete × */
.binder-tile-delete {
  width: 30px !important; height: 30px !important;
  background: rgba(7, 12, 32, 0.75) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(236, 72, 153, 0.5) !important;
  color: rgba(236, 72, 153, 0.9) !important;
  font-weight: 800 !important;
  z-index: 5;
}

/* ===== SCAN FAB → "Battle" button ===== */
.scan-fab {
  width: 52px !important; height: 52px !important;
  background:
    linear-gradient(135deg, var(--xp-cyan) 0%, var(--xp-purple) 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 14px !important;
  box-shadow:
    0 10px 28px rgba(56, 189, 248, 0.5),
    0 0 24px rgba(168, 85, 247, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  color: #fff !important;
  animation: fabPulse 2.5s ease-in-out infinite;
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(56, 189, 248, 0.5), 0 0 24px rgba(168, 85, 247, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
  50%      { box-shadow: 0 10px 28px rgba(56, 189, 248, 0.7), 0 0 40px rgba(168, 85, 247, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
}
.scan-fab:active {
  transform: scale(0.92) !important;
  animation: none;
}
.scan-fab svg { width: 22px !important; height: 22px !important; }

/* ===== BUTTONS — game-style CTAs ===== */
.btn {
  padding: 14px 22px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  border-radius: 12px !important;
  min-height: 48px !important;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  box-shadow:
    0 4px 12px rgba(59, 130, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover {
  background: var(--accent-deep) !important;
  transform: translateY(-1px);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: -100% 0;
  transition: background-position 0.6s;
  pointer-events: none;
}
.btn-primary:hover::before { background-position: 200% 0; }
.btn-secondary {
  background: transparent !important;
  border: 1.5px solid var(--border-strong) !important;
  color: var(--text-muted) !important;
  transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover {
  border-color: var(--accent) !important;
  color: var(--text) !important;
}

/* ===== FORM INPUTS ===== */
.input, input[type="text"], input[type="search"], input[type="password"],
input[type="email"], input[type="number"], select, textarea {
  background: rgba(7, 12, 32, 0.6) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 12px !important;
  padding: 14px 14px !important;
  font-size: 15px !important;
  min-height: 48px !important;
  color: #fff !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--xp-cyan) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18), 0 0 20px rgba(56, 189, 248, 0.25) !important;
}
select option { background: #0a0721; color: #fff; }
input::placeholder, textarea::placeholder { color: rgba(56, 189, 248, 0.35) !important; }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  background: rgba(7, 12, 32, 0.85) !important;
  backdrop-filter: blur(30px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
  border-top: 1.5px solid rgba(56, 189, 248, 0.32) !important;
  box-shadow: 0 -8px 24px rgba(56, 189, 248, 0.1);
  padding: 10px 0 max(12px, env(safe-area-inset-bottom)) !important;
}
.nav-tab {
  min-height: 52px !important;
  padding: 10px 0 !important;
  color: rgba(255, 255, 255, 0.35) !important;
}
.nav-tab span {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}
.nav-tab svg { width: 22px !important; height: 22px !important; }
.nav-tab.active {
  color: var(--xp-cyan) !important;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}
.nav-tab.active::after {
  width: 22px !important;
  height: 3px !important;
  background: linear-gradient(90deg, var(--xp-cyan), var(--xp-purple)) !important;
  box-shadow: 0 0 12px var(--xp-cyan) !important;
  border-radius: 3px !important;
}

/* ===== EMPTY STATE → "Yeni görev" feel ===== */
.empty-state { padding: 60px 24px !important; }
.empty-icon {
  font-size: 72px !important;
  opacity: 0.45 !important;
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.5));
}
.empty-state h2 {
  font-size: 22px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}
.empty-state p {
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  line-height: 1.6 !important;
}

/* ===== MODALS ===== */
.card-modal {
  background: rgba(3, 5, 18, 0.75) !important;
  backdrop-filter: blur(22px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
}
.card-modal-content {
  background:
    linear-gradient(155deg, rgba(56, 189, 248, 0.06) 0%, rgba(15, 12, 38, 0.95) 100%) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: 18px !important;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(56, 189, 248, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.picker-overlay {
  background: rgba(3, 5, 18, 0.75) !important;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}
.picker-content, .new-card, section, .pack-set-card {
  background:
    linear-gradient(155deg, rgba(56, 189, 248, 0.07) 0%, rgba(7, 12, 32, 0.85) 100%) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1.5px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 16px !important;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ===== TABS / CHIPS ===== */
.chip, .tab, .rarity-chip {
  background: rgba(7, 12, 32, 0.6) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(56, 189, 248, 0.25) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 9px 16px !important;
  min-height: 36px !important;
  border-radius: 22px !important;
  color: rgba(255, 255, 255, 0.55) !important;
}
.chip.active, .tab.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(168, 85, 247, 0.25)) !important;
  border-color: var(--xp-cyan) !important;
  color: #fff !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35) !important;
}

/* ===== CATALOG / DEX TILES ===== */
.holo-card {
  background: rgba(7, 12, 32, 0.55) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(56, 189, 248, 0.22) !important;
  border-radius: 10px !important;
}
.holo-card:hover {
  border-color: var(--xp-cyan) !important;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3) !important;
}
.dex-tile {
  background: rgba(7, 12, 32, 0.6) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 14px !important;
  min-height: 88px !important;
}

/* ===== Secondary text contrast ===== */
.binder-subtitle, .dex-stats {
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 13px !important;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--xp-cyan), var(--xp-purple));
  border-radius: 3px;
}

/* ===== Mobile-only ===== */
@media (max-width: 600px) {
  h1 { font-size: 26px !important; }
  .binder-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .tile-cover { height: 195px !important; }
  .tile-name { font-size: 13px !important; }
  .stat-value { font-size: 26px !important; }
  .stats-strip { padding: 14px 0 !important; margin-bottom: 22px !important; }
  .home-header { padding-left: 18px !important; padding-right: 18px !important; }
  .home-main { padding: 0 18px !important; }
  .scan-fab { width: 48px !important; height: 48px !important; }
}

/* ==========================================================================
   POKÉDEX — Progress card (Faz 3.3)
   Header altında: X/151, tahmini değer, progress bar.
   ========================================================================== */
.dex-progress-card {
  margin: 14px 0 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(168, 85, 247, 0.06)),
              rgba(7, 12, 32, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(56, 189, 248, 0.22);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}
.dex-progress-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 12px;
  gap: 12px;
}
.dex-progress-stat {
  display: flex; flex-direction: column;
}
.dex-progress-stat.right { text-align: right; }
.dex-progress-value {
  font-size: 22px; font-weight: 900;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
  letter-spacing: -0.02em;
}
.dex-progress-value-alt {
  color: var(--xp-cyan);
}
.dex-progress-sep, .dex-progress-total {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
}
.dex-progress-label {
  font-size: 10px; font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 5px;
}
.dex-progress-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.16);
  margin-bottom: 6px;
}
.dex-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--xp-cyan) 0%, var(--xp-purple) 100%);
  border-radius: 4px;
  transition: width 0.6s ease;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}
.dex-progress-pct {
  text-align: right;
  font-size: 11px; font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}
.dex-progress-pct span {
  color: var(--xp-cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

/* ==========================================================================
   POKÉDEX — Skeleton shimmer + fade-in
   has-cards: shimmer animation görünür, image render edildikten + load
   eventi geldikten sonra .img-loaded → image fade-in, shimmer durur.
   empty/has-cards-img-pending boyutu aynı → CLS = 0.
   ========================================================================== */
.dex-tile { position: relative; overflow: hidden; }

/* Shimmer placeholder (sadece has-cards ama image henüz gelmemiş tile'larda) */
.dex-tile.has-cards:not(.img-loaded) .dex-bg-img {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0%,
      rgba(56, 189, 248, 0.10) 50%,
      rgba(255, 255, 255, 0.03) 100%
    );
  background-size: 200% 100%;
  animation: dexShimmer 1.6s infinite linear;
}
@keyframes dexShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Image fade-in (load eventinde .img-loaded eklenince) */
.dex-tile.has-cards .dex-bg-img img {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.dex-tile.has-cards.img-loaded .dex-bg-img {
  background: transparent;
  animation: none;
}
.dex-tile.has-cards.img-loaded .dex-bg-img img {
  opacity: 1;
}

/* ==========================================================================
   CATALOG — Filtre bar (Faz 3.2)
   ========================================================================== */
.cat-filter-section {
  margin-bottom: 14px;
}
.cat-filter-label {
  font-size: 10px; font-weight: 800;
  color: rgba(56, 189, 248, 0.7);
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 8px;
}
.cat-pill-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.cat-pill {
  padding: 7px 14px;
  background: rgba(7, 12, 32, 0.55) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  white-space: nowrap;
}
.cat-pill:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: #fff;
}
.cat-pill.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.30), rgba(168, 85, 247, 0.25)) !important;
  border-color: var(--xp-cyan);
  color: #fff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.30);
}

.cat-filter-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px;
}
.cat-input-sm {
  flex: 1; min-width: 96px;
  padding: 9px 12px !important;
  font-size: 13px !important;
  min-height: auto !important;
}
.cat-toggle-row {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-top: 6px;
}
.cat-reset-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  cursor: pointer; font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.cat-reset-btn:hover {
  color: var(--xp-pink);
  border-color: rgba(236, 72, 153, 0.45);
}

/* ===== Holo-card label — isim yoksa kod büyük ortada ===== */
.holo-code.holo-code-solo {
  font-size: 12px !important;
  font-weight: 800 !important;
  text-align: center;
  margin: 0 !important;
}
.holo-bottom:has(.holo-code-solo) {
  padding: 8px 8px 7px !important;
}

/* ==========================================================================
   CATALOG — Kompakt filtre satırı + advanced panel (sadeleştirme)
   ========================================================================== */
.cat-main-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.cat-main-filters .cat-set-picker {
  flex: 1 1 100%;
  min-width: 0;
}
@media (min-width: 560px) {
  .cat-main-filters .cat-set-picker { flex: 2 1 200px; }
}
.cat-main-filters .cat-input-sm {
  flex: 1 1 calc(50% - 4px);
  min-width: 110px;
  padding: 11px 12px !important;
  background: rgba(7, 12, 32, 0.6);
  border: 1.5px solid rgba(56, 189, 248, 0.25);
  border-radius: 11px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
}
.cat-main-filters .cat-input-sm:focus {
  outline: none;
  border-color: var(--xp-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}
.cat-more-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-width: 56px;
  height: 42px;
  padding: 0 14px;
  background: rgba(7, 12, 32, 0.6);
  border: 1.5px solid rgba(56, 189, 248, 0.25);
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  gap: 7px;
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.cat-more-btn:hover {
  border-color: var(--xp-cyan);
  color: #fff;
}
.cat-more-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(168, 85, 247, 0.20));
  border-color: var(--xp-cyan);
  color: #fff;
}
.cat-more-label {
  display: inline;
}
@media (max-width: 380px) {
  .cat-more-label { display: none; }   /* çok dar ekranda sadece icon */
  .cat-more-btn { min-width: 42px; padding: 0; }
}
.cat-more-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: linear-gradient(135deg, var(--xp-cyan), var(--xp-purple));
  color: #fff;
  font-size: 10px; font-weight: 900;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #0a0e22;
}

.cat-utility-row {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 0 2px;
}

.cat-advanced {
  display: none;
  background: rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 12px;
  padding: 14px 14px 6px;
  margin-bottom: 14px;
  animation: catAdvIn 0.18s ease-out;
}
.cat-advanced.open { display: block; }
@keyframes catAdvIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cat-adv-section {
  margin-bottom: 12px;
}
.cat-adv-section:last-child { margin-bottom: 4px; }
.cat-adv-label {
  font-size: 10px; font-weight: 800;
  color: rgba(56, 189, 248, 0.75);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 8px;
}

/* ==========================================================================
   CATALOG — Singles/Sealed mode tabs + sealed card grid (Proje 5)
   ========================================================================== */
.cat-mode-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 12px;
}
.cat-mode-tab {
  flex: 1;
  padding: 11px 14px;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cat-mode-tab:hover { color: #fff; }
.cat-mode-tab.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.20), rgba(168, 85, 247, 0.20));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.32);
}

/* ===== Sealed grid (cat-grid override) ===== */
.cat-grid.sealed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.sealed-card {
  position: relative;
  background: rgba(7, 12, 32, 0.55);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1.5px solid rgba(168, 85, 247, 0.22);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}
.sealed-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.25);
}
.sealed-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(56, 189, 248, 0.05));
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.sealed-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.sealed-no-img {
  font-size: 48px;
  opacity: 0.35;
}
.sealed-price-badge {
  position: absolute; top: 8px; right: 8px;
  background: linear-gradient(135deg, #67e8f9, #a855f7);
  color: #050a1c;
  font-size: 12px; font-weight: 900;
  padding: 4px 9px; border-radius: 6px;
  letter-spacing: 0.02em;
  font-family: 'JetBrains Mono', monospace;
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 3px 10px rgba(168, 85, 247, 0.4);
  line-height: 1.15;
}
.sealed-price-badge-out,
.cat-price-badge-out {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: none !important;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Kart modal — Tab sistemi (Mağazalar | Geçmiş) */
.cm-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 11px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cm-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}
.cm-tab:hover { color: #fff; }
.cm-tab.on {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(168, 85, 247, 0.16));
  color: #67e8f9;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.2);
}
.cm-tab-count {
  font-size: 11px;
  opacity: 0.7;
  font-family: 'JetBrains Mono', monospace;
}
.cm-tab-content {
  /* Slim entry animation */
  animation: tabFadeIn 0.18s ease-out;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mağazalar listesi — scroll + sticky header */
.cm-listings-rows {
  max-height: 380px !important;
  overflow-y: auto;
  scrollbar-gutter: stable;
  border-radius: 8px;
}
.cm-listings-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(10, 14, 34, 0.95);
  backdrop-filter: blur(8px);
}

@media (max-width: 600px) {
  .cm-listings-rows { max-height: 320px !important; }
  .cm-tab-label { display: none; }   /* Mobilde sadece emoji + count */
}

/* Kart modal — Fiyat analizi (chart + range tabs) */
.cm-price-analysis {
  margin-top: 14px;
  padding: 14px;
  background: rgba(7, 12, 32, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 12px;
}
.cm-pa-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 10px; flex-wrap: wrap;
}
.cm-pa-title {
  font-size: 12px; font-weight: 800; color: #fff;
  letter-spacing: 0.04em;
}
.cm-pa-ranges {
  display: flex; gap: 4px;
}
.cm-pa-range {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.1s, color 0.1s;
}
.cm-pa-range:hover { color: #fff; }
.cm-pa-range.on {
  background: linear-gradient(135deg, rgba(56,189,248,0.25), rgba(168,85,247,0.18));
  border-color: rgba(56,189,248,0.45);
  color: #67e8f9;
}
.cm-pa-chart {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 8px;
}
.cm-pa-stats {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: rgba(255, 255, 255, 0.6);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.cm-pa-sep { color: rgba(255, 255, 255, 0.2); }
.cm-pa-analysis {
  font-size: 12px; color: #fde047;
  padding: 8px 10px;
  background: rgba(253, 224, 71, 0.06);
  border: 1px solid rgba(253, 224, 71, 0.18);
  border-radius: 7px;
  margin-top: 6px;
}
.cm-pa-empty {
  padding: 14px; text-align: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

/* Kart modal — action row (Binder + Alarm) */
.cm-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.cm-actions-row .cm-collection-btn,
.cm-actions-row .cm-alert-btn {
  margin-top: 0;
  width: 100%;
}
.cm-alert-btn {
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(253,224,71,0.15), rgba(249,115,22,0.12));
  border: 1.5px solid rgba(253,224,71,0.4);
  border-radius: 11px;
  color: #fde047;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}
.cm-alert-btn:hover {
  background: linear-gradient(135deg, rgba(253,224,71,0.25), rgba(249,115,22,0.18));
  transform: translateY(-1px);
}
@media (max-width: 380px) {
  .cm-actions-row { grid-template-columns: 1fr; }
}

/* Binder header'da Pricecharting toplam değer */
.binder-value-strip {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: linear-gradient(90deg, rgba(253, 224, 71, 0.10), rgba(249, 115, 22, 0.06));
  border: 1px solid rgba(253, 224, 71, 0.18);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
}
.binder-value-strip strong { color: #fde047; font-weight: 800; }

/* ===== Pricecharting referans bar ===== */
.pc-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(56,189,248,0.06), rgba(168,85,247,0.04));
  border-top: 1px solid rgba(56,189,248,0.18);
  border-bottom: 1px solid rgba(56,189,248,0.18);
  margin: 0;
}
.pc-bar .pc-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: rgba(56,189,248,0.85);
  text-transform: uppercase;
  line-height: 1.4;
}
.pc-bar .pc-date {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}
.pc-bar .pc-prices {
  display: flex; align-items: baseline; gap: 8px;
  justify-content: center;
}
.pc-bar .pc-usd {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}
.pc-bar .pc-try {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-family: 'JetBrains Mono', monospace;
}
.pc-bar .pc-empty {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}
.pc-bar .pc-link {
  font-size: 11px;
  font-weight: 800;
  color: #67e8f9;
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 6px 10px;
  border: 1px solid rgba(56,189,248,0.32);
  border-radius: 7px;
  transition: background 0.15s;
}
.pc-bar .pc-link:hover {
  background: rgba(56,189,248,0.12);
  color: #fff;
}
@media (max-width: 480px) {
  .pc-bar {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
  }
  .pc-bar .pc-prices {
    justify-content: flex-start;
    grid-column: 1 / -1;
  }
}
.sealed-stock-dot {
  position: absolute; top: 8px; left: 8px;
  width: 10px; height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(7, 12, 32, 0.85), 0 0 8px rgba(34, 197, 94, 0.7);
  z-index: 4;
  pointer-events: none;
}
.sealed-info {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sealed-type-tag {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(168, 85, 247, 0.16);
  color: #c4b5fd;
  font-size: 9px; font-weight: 900;
  padding: 3px 7px; border-radius: 4px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(168, 85, 247, 0.32);
  line-height: 1.3;
}
.sealed-name {
  font-size: 13px; font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 35px;
  word-break: break-word;
}
.sealed-set {
  font-size: 10px;
  color: rgba(168, 85, 247, 0.85);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sealed-store-count {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  margin-top: 2px;
}

/* Sealed modal — daha geniş image alanı */
.sealed-showcase {
  padding: 32px 24px;
  display: flex; align-items: center; justify-content: center;
}
.sealed-modal-img {
  width: 240px; height: 240px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(168, 85, 247, 0.2);
  display: flex; align-items: center; justify-content: center;
}
.sealed-modal-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.sealed-modal-type {
  font-size: 11px; font-weight: 900;
  color: #c4b5fd;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}

/* ===== Custom Set Picker (catalog) ===== */
.cat-set-picker {
  position: relative;
  width: 100%;
}
.cat-set-trigger {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  background: rgba(7, 12, 32, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(56, 189, 248, 0.30);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cat-set-trigger:hover { border-color: var(--xp-cyan); }
.cat-set-picker.open .cat-set-trigger {
  border-color: var(--xp-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}
.cat-set-trigger-label {
  flex: 1; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.cat-set-trigger-arrow {
  color: var(--xp-cyan);
  font-size: 12px;
  transition: transform 0.2s;
}
.cat-set-picker.open .cat-set-trigger-arrow {
  transform: rotate(180deg);
}

.cat-set-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  margin-top: 6px;
  background: rgba(7, 12, 32, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  z-index: 90;
  max-height: 60vh;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.cat-set-picker.open .cat-set-panel {
  display: flex;
  animation: setPanelIn 0.18s ease-out;
}
@keyframes setPanelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cat-set-search-input {
  width: 100%;
  padding: 12px 14px !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border: none !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18) !important;
  border-radius: 0 !important;
  color: #fff !important;
  font-size: 14px !important;
  min-height: 0 !important;
  outline: none;
  flex-shrink: 0;
}
.cat-set-search-input::placeholder {
  color: rgba(56, 189, 248, 0.4) !important;
}

.cat-set-list {
  overflow-y: auto;
  padding: 6px;
  flex: 1;
}
.cat-set-group {
  margin-bottom: 6px;
}
.cat-set-group-label {
  padding: 8px 10px 4px;
  font-size: 10px; font-weight: 800;
  color: rgba(56, 189, 248, 0.7);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.cat-set-option {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.cat-set-option:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #fff;
}
.cat-set-option > span:first-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1; min-width: 0;
}
.cat-set-option-count {
  font-size: 10px; font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'JetBrains Mono', monospace;
  margin-left: 8px;
  flex-shrink: 0;
}
.cat-set-option-all {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  margin-bottom: 4px;
  color: var(--xp-cyan);
  font-weight: 700;
}

/* ===== Card grid badge'leri (catalog) ===== */
.cat-price-badge {
  position: absolute; top: 6px; left: 6px;
  background: linear-gradient(135deg, var(--xp-cyan), var(--xp-purple));
  color: #fff;
  font-size: 11px; font-weight: 900;
  padding: 3px 8px; border-radius: 6px;
  letter-spacing: 0.02em;
  font-family: 'JetBrains Mono', monospace;
  z-index: 4;
  box-shadow: 0 3px 10px rgba(56, 189, 248, 0.35);
  pointer-events: none;
  line-height: 1.15;
}
.cat-price-from {
  font-size: 8px;
  opacity: 0.8;
  margin-left: 1px;
  font-weight: 700;
}
.cat-store-badge {
  position: absolute; top: 30px; left: 6px;
  background: rgba(7, 12, 32, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.30);
  color: rgba(255, 255, 255, 0.85);
  font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 5px;
  letter-spacing: 0.04em;
  z-index: 4;
  pointer-events: none;
}

/* ==========================================================================
   CARD MODAL — Çoklu mağaza listings (Faz 3.1c)
   Fiyat karşılaştırma katmanı. Modal içinde .cm-listings altında render edilir.
   ========================================================================== */
.cm-listings {
  margin: 16px 0;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.18);
  overflow: hidden;
}
.cm-listings-loading {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 24px 16px;
  font-size: 13px; color: rgba(255, 255, 255, 0.55);
}
.cm-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(56, 189, 248, 0.18);
  border-top-color: var(--xp-cyan);
  border-radius: 50%;
  animation: cmSpin 0.8s linear infinite;
}
@keyframes cmSpin { to { transform: rotate(360deg); } }

.cm-listings-empty {
  padding: 20px 16px;
  text-align: center;
}

.cm-listings-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.10), rgba(168, 85, 247, 0.08));
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}
.cm-listings-label {
  font-size: 10px; font-weight: 800;
  color: rgba(56, 189, 248, 0.85);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.cm-listings-min {
  font-size: 22px; font-weight: 900; color: #fff;
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}
.cm-listings-summary {
  font-size: 12px; color: rgba(255, 255, 255, 0.6);
  text-align: right;
}
.cm-listings-summary strong { color: #fff; font-weight: 800; }

.cm-listings-rows {
  max-height: 340px;
  overflow-y: auto;
}
.cm-listing-row {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px; align-items: center;
  padding: 11px 14px;
  text-decoration: none; color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s, transform 0.1s;
}
.cm-listing-row:last-child { border-bottom: none; }
.cm-listing-row:hover {
  background: rgba(56, 189, 248, 0.06);
}
.cm-listing-row:active { transform: scale(0.99); }
.cm-listing-row.best {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.10), transparent 60%);
}
.cm-listing-row.out { opacity: 0.55; }

.cm-best-badge {
  display: inline-block;
  font-size: 8px; font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #050a1c;
  background: linear-gradient(135deg, #67e8f9, #a855f7);
  padding: 2px 6px; border-radius: 5px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4);
  flex-shrink: 0;
}
.cm-store-name { flex-wrap: wrap; }

.cm-store-logo {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.cm-store-logo img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain; display: block;
}
.cm-store-logo:has(.cm-store-initial) {
  background: transparent;
  padding: 0;
}
.cm-store-initial {
  font-size: 16px; font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--xp-cyan), var(--xp-purple));
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

.cm-listing-mid {
  min-width: 0;
}
.cm-store-name {
  font-size: 13px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cm-store-rating {
  font-size: 10px; color: var(--xp-gold);
  letter-spacing: -0.06em;
}
.cm-listing-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}
.cm-listing-meta > span {
  display: inline-flex; align-items: center; gap: 4px;
}
.cm-stock-pill {
  padding: 1px 6px; border-radius: 999px;
  font-weight: 700; font-size: 9px;
}
.cm-stock-pill.in {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}
.cm-stock-pill.out {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.35);
}

.cm-listing-right {
  text-align: right;
}
.cm-listing-price {
  font-size: 16px; font-weight: 900;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.1;
}
.cm-listing-cta {
  font-size: 10px; font-weight: 700;
  color: var(--xp-cyan);
  letter-spacing: 0.04em;
  margin-top: 3px;
}
.cm-listing-row.out .cm-listing-cta {
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   POKÉDEX — Boş slot hover "+ Ekle" CTA (Faz 2.3)
   Empty tile'a hover edildiğinde "?" yumuşar, "+ Ekle" çıkar — kullanıcı
   eksik kartı tıklayıp katalog araması açabilsin (akış zaten var).
   ========================================================================== */
.dex-tile.empty {
  transition: border-color 0.2s, background 0.2s, transform 0.2s !important;
}
.dex-tile.empty::after {
  transition: opacity 0.2s, transform 0.2s !important;
}
.dex-tile.empty:hover {
  border-color: rgba(56, 189, 248, 0.5) !important;
  background: linear-gradient(155deg, rgba(56, 189, 248, 0.08), rgba(168, 85, 247, 0.04)) !important;
}
.dex-tile.empty:hover::after {
  opacity: 0.2;
  transform: translate(-50%, -85%) scale(0.7);
}
.dex-tile.empty::before {
  content: '+ Ekle';
  position: absolute;
  bottom: 38px; left: 50%;
  transform: translate(-50%, 0) scale(0.85);
  padding: 5px 12px;
  background: linear-gradient(135deg, var(--xp-cyan), var(--xp-purple));
  color: #fff;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.25s var(--ease, ease-out);
  z-index: 3;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}
.dex-tile.empty:hover::before {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* ===== PACK CARD FACE — kart tam görünsün (contain, kırpılma yok) ===== */
.pack-card-face {
  background: #0a1740 !important;
}
.pack-card-face img {
  object-fit: contain !important;
}

/* ===== PACK CARD BACK — gerçek Pokémon kart arkası resmi ===== */
.pack-card-back img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
  .stats-strip, .binder-tile, .card-modal-content, .picker-content,
  .new-card, section, .pack-set-card, .scan-fab, .holo-card, .dex-tile,
  .btn-secondary, .bottom-nav, .chip, .tab, .input {
    background: rgba(10, 15, 35, 0.92) !important;
  }
}

/* =============================================================
   MOBILE PERFORMANCE — D1+D3 redesign Faz 3
   Touch-only cihazlarda (mobile, tablet) backdrop-filter aşırı
   kullanımı 60 FPS'i 30'a düşürüyor. Opt-out: blur'u solid'e çevir,
   glow'u azalt, gereksiz transition'ları kapat.
   ============================================================= */
@media (hover: none) and (pointer: coarse) {
  /* backdrop-filter purge — replace blur with solid backgrounds */
  .stats-strip, .binder-tile, .card-modal-content, .picker-content,
  .pack-set-card, .scan-fab, .holo-card, .dex-tile,
  .bottom-nav, .chip, .tab, .input,
  .input, input[type="text"], input[type="search"], input[type="password"],
  input[type="email"], input[type="number"], select, textarea,
  .pl-topbar, .alm-overlay, .add-listing-modal .alm-panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .pl-topbar { background: rgba(11, 13, 23, 0.96) !important; }
  .stats-strip, .binder-tile, .pack-set-card, .dex-tile { background: rgba(20, 24, 38, 0.95) !important; }
  .input, input[type="text"], input[type="search"], input[type="password"],
  input[type="email"], input[type="number"], select, textarea {
    background: rgba(11, 13, 23, 0.85) !important;
  }

  /* Glow disiplini — text-shadow ve heavy box-shadow azalt */
  .stat-value, .holo-card, .pack-card-front, .scan-fab {
    text-shadow: none !important;
  }
  .btn-primary {
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.22), inset 0 1px 0 rgba(255,255,255,0.15) !important;
  }

  /* Smooth 60 FPS scroll için */
  body { -webkit-overflow-scrolling: touch; }
}

/* =============================================================
   D1 — Card hover glow disiplini (gereksiz parlama yok)
   Mevcut card hover'ı agressif. Sade transform-only.
   ============================================================= */
@media (hover: hover) and (pointer: fine) {
  .holo-card:hover { transform: translateY(-3px); transition: transform 0.18s var(--ease-out); }
}

/* =============================================================
   Touch target minimum 44px (Apple HIG)
   ============================================================= */
.btn, button.btn, a.btn, .pl-btn,
.auth-buttons a, .pl-topbar .auth-buttons a,
.cat-mode-tab, .cat-pill, .pager-btn {
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =============================================================
   D1 modal — Anonim kullanıcı tek primary CTA
   "Binder'a Ekle" + "Takip Et" yarışını kaldır → kayıt davetiyesi.
   ============================================================= */
.cm-actions-row.cm-anon {
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(168,85,247,0.05));
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: 12px;
}
.cm-anon-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(59,130,246,0.28), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: background 0.15s, transform 0.1s;
}
.cm-anon-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
.cm-anon-sub {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
  text-decoration: none;
  padding: 6px 4px;
  transition: color 0.15s;
}
.cm-anon-sub:hover { color: var(--text); text-decoration: underline; }
