/* WoodStock Bar theme — стиль из woodstock-config.json */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;500;600;700&family=Permanent+Marker&display=swap');

:root {
  --ink: #F0EDE0;
  --muted: rgba(240, 237, 224, 0.5);
  --primary: #3DBE3D;
  --primary-strong: #5EE05E;
  --heading: #F0EDE0;
  --accent: #F5C518;
  --accent-strong: #FFD93D;
  --warning: #F5C518;
  --danger: #D42B2B;
  --bg: #080808;
  --surface: #111111;
  --card-bg: #161616;
  --glass: rgba(22, 22, 22, 0.9);
  --glass-border: rgba(245, 197, 24, 0.15);
  --glass-border-strong: rgba(245, 197, 24, 0.25);
  --shadow-soft: 6px 6px 0 rgba(212, 43, 43, 0.35);
  --shadow-tight: 4px 4px 0 rgba(212, 43, 43, 0.3);
  --shadow-float: 6px 6px 0 rgba(212, 43, 43, 0.5);
  --shadow-btn-green: 3px 3px 0 #1a7a1a;
  --shadow-btn-yellow: 3px 3px 0 #a08010;
  --radius-xl: 0;
  --radius-lg: 0;
  --radius-md: 0;
  --radius-sm: 0;
  --font-display: "Bebas Neue", "Trebuchet MS", sans-serif;
  --font-body: "Barlow Condensed", "Segoe UI", sans-serif;
  --font-accent: "Permanent Marker", cursive;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  font-size: 16px;
  letter-spacing: 0.02em;
}

body::before,
body::after {
  display: none;
}

h1, h2, h3, .brand-title {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 { font-size: 2.2rem; line-height: 1.1; }
h2 { font-size: 1.5rem; }

/* Splash — один стиль: регги-цвета, одна полоса с градиентом */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #080808;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.5s ease;
}

.splash-screen.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.splash-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 12vw, 4rem);
  letter-spacing: 0.2em;
  margin: 0 0 4px;
  text-align: center;
}
.splash-title .splash-wood { color: #3DBE3D; }
.splash-title .splash-sto,
.splash-title .splash-ck { color: #F5C518; }

.splash-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 5vw, 1.5rem);
  letter-spacing: 0.4em;
  margin: 0 0 8px;
  text-align: center;
}
.splash-subtitle .splash-b,
.splash-subtitle .splash-a,
.splash-subtitle .splash-r { color: #D42B2B; }

.splash-tagline,
.splash-loading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.splash-tagline {
  margin: 0 0 1rem;
}
.splash-loading {
  margin: 0 0 0.75rem;
}

.splash-bar {
  width: min(240px, 80%);
  height: 6px;
  background: #2a2a2a;
  overflow: hidden;
  border: none;
}

.splash-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3DBE3D, #F5C518, #D42B2B);
  transition: width 2.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-screen.loaded .splash-bar-fill {
  width: 100%;
}

/* Welcome screen (after loading) */
.app-shell.app-shell--hidden {
  visibility: hidden;
  pointer-events: none;
}

.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #060808;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5rem 1.25rem 2rem;
  overflow: hidden;
  transition: opacity 0.4s ease;
}

.welcome-screen.is-hidden {
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.welcome-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 2px,
    rgba(61, 190, 61, 0.03) 2px,
    rgba(61, 190, 61, 0.03) 4px
  );
  pointer-events: none;
  animation: welcome-scan 12s linear infinite;
}

@keyframes welcome-scan {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.welcome-city {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(to bottom, transparent 0%, rgba(10, 30, 15, 0.95) 60%);
  clip-path: polygon(0 40%, 5% 35%, 10% 45%, 18% 30%, 25% 50%, 32% 25%, 40% 42%, 50% 20%, 58% 38%, 65% 28%, 72% 45%, 80% 32%, 88% 48%, 95% 35%, 100% 42%, 100% 100%, 0 100%);
  pointer-events: none;
}

.welcome-city::before,
.welcome-city::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #F5C518;
  border-radius: 1px;
  bottom: 15%;
  opacity: 0.6;
}
.welcome-city::before { left: 20%; }
.welcome-city::after { left: 75%; background: #9B30FF; }

.welcome-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 360px;
  margin-top: 2rem;
}

.welcome-logo-wrap {
  position: relative;
  margin-bottom: 0.75rem;
}

.welcome-logo {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.welcome-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.welcome-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 10vw, 2.5rem);
  letter-spacing: 0.15em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.welcome-title .welcome-wood { color: #3DBE3D; }
.welcome-title .welcome-stock { color: #F5C518; }
.welcome-title .welcome-bar { color: #D42B2B; }

.welcome-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.welcome-enter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 280px;
  padding: 0.9rem 1.5rem;
  background: var(--accent);
  color: #080808;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  box-shadow: 0 4px 0 #a08010;
  transition: transform 0.1s, box-shadow 0.1s;
}

.welcome-enter-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #a08010;
}

.welcome-enter-icon {
  font-size: 0.75rem;
}

.welcome-lang {
  margin-top: 1.25rem;
  text-align: center;
}

.welcome-lang-title {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--ink);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.welcome-lang-globe {
  font-size: 0.85rem;
}

.welcome-lang-btns {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.welcome-lang-btn {
  padding: 0.35rem 0.9rem;
  background: transparent;
  border: 2px solid rgba(212, 43, 43, 0.4);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.welcome-lang-btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.welcome-version {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0;
}

/* Sticky wrapper — holds header + ticker together */
.app-sticky-head {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
}

/* Header bar style */
.topbar {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(212, 43, 43, 0.25);
}

.topbar::after { display: none; }

.brand-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}

@media (max-width: 380px) {
  .brand-title { font-size: 1rem; }
}

.brand-wood { color: #F0EDE0; }
.brand-stock { color: #3DBE3D; }
.brand-bar { color: rgba(240,237,224,0.8); }

.brand-mark {
  background: var(--card-bg);
  border-color: var(--glass-border);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.header-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.topbar-location {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 2px;
}

.wanted-stars {
  display: none;
  gap: 4px;
  align-items: center;
}

.wanted-star {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
  transition: background 0.2s;
}

.wanted-star.is-active {
  background: #F5C518;
  box-shadow: 0 0 8px rgba(245, 197, 24, 0.6);
}

/* Ticker — below header, full width */
.ticker-bar {
  background: #D42B2B;
  color: #fff;
  padding: 0.5rem 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  border-bottom: 2px solid rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.ticker-inner {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  animation: ticker-scroll 25s linear infinite;
}

.ticker-item { padding: 0 0.25rem; }
.ticker-sep { color: rgba(255,255,255,0.6); margin: 0 0.25rem; }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero card — жёсткая тень, тёмный фон, отступы */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}

.hero-card::after { display: none; }

.hero-card > div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-card .eyebrow {
  margin: 0 0 0.25rem;
}

.hero-card h1 {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  color: #F0EDE0;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-card #hero-subtext,
.hero-card p.muted {
  margin: 0;
  line-height: 1.45;
}

.hero-card .hero-actions {
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: #F5C518;
}

.hero-card h1 .hero-accent {
  color: #F5C518;
  text-shadow: 2px 2px 0 #D42B2B;
}

/* Кнопки в стиле конфига */
.primary {
  background: #3DBE3D !important;
  color: #080808 !important;
  border: none !important;
  border-radius: 10px !important;
  font-family: var(--font-display) !important;
  letter-spacing: 0.15em !important;
  box-shadow: var(--shadow-btn-green) !important;
}

.primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #1a7a1a !important; }

.secondary {
  background: #F5C518 !important;
  color: #080808 !important;
  border: none !important;
  border-radius: 10px !important;
  font-family: var(--font-display) !important;
  letter-spacing: 0.15em !important;
  box-shadow: var(--shadow-btn-yellow) !important;
}

.secondary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #a08010 !important; }

/* Bonus card (legacy, e.g. bonuses view) */
.bonus-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 4px 4px 0 rgba(212, 43, 43, 0.3);
  border-radius: 8px;
}

.bonus-value { font-family: var(--font-display); color: #F5C518; }

/* Bonus view: sections (streak, missions, heist, slot, leaderboard, badges) */
.bonus-section {
  margin-top: 1.25rem;
}
.bonus-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
.bonus-section .muted.small { margin-bottom: 0.5rem; }

/* ========== Серия входов (как на скрине) ========== */
.bonus-section--streak { margin-bottom: 1.5rem; }
.streak-header { margin-bottom: 0.75rem; }
.streak-header-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.streak-prefix { color: #3DBE3D; }
.streak-title-glitch {
  color: #F23D3D;
  text-shadow: 1px 1px 0 #FFD700, -1px -1px 0 #FFD700, 2px 0 0 #FFD700, -2px 0 0 rgba(255,215,0,0.5);
  letter-spacing: 0.05em;
}

.streak-card {
  position: relative;
  background: #6B21A8;
  border: 1px solid rgba(139, 92, 246, 0.6);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(107, 33, 168, 0.4);
}
.streak-card-pattern {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(0,0,0,0.08) 4px,
    rgba(0,0,0,0.08) 8px
  );
  pointer-events: none;
}
.streak-card-inner { position: relative; z-index: 1; padding: 1rem 1rem 1.25rem; }
.streak-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.streak-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #F0EDE0;
  text-transform: uppercase;
}
.streak-card-flame { display: flex; align-items: center; }
.streak-flame-icon { width: 1.25rem; height: 1.25rem; color: #FF4500; }
.streak-card-desc {
  font-size: 0.8rem;
  color: rgba(240, 237, 224, 0.85);
  line-height: 1.35;
  margin: 0 0 1rem;
}

.streak-days {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 1rem;
  flex-wrap: nowrap;
  justify-content: space-between;
}
.streak-day {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(240, 237, 224, 0.9);
}
.streak-day-label { margin-bottom: 0.35rem; letter-spacing: 0.05em; }
.streak-day-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 2.75rem;
  margin: 0 auto 0.35rem;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(240, 237, 224, 0.25);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.streak-day.claimed .streak-day-box {
  border-color: #3DBE3D;
  box-shadow: 0 0 8px rgba(61, 190, 61, 0.2);
}
.streak-day.claimed .streak-day-reward,
.streak-day.claimed .streak-day-label { color: #3DBE3D; }
.streak-day.today .streak-day-box {
  border-color: rgba(240, 237, 224, 0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.streak-day.today .streak-day-reward,
.streak-day.today .streak-day-label { color: rgba(240, 237, 224, 0.95); }
.streak-day-icon { font-size: 1.1rem; display: block; }
.streak-day-icon--svg { display: flex !important; align-items: center; justify-content: center; }
.streak-day-icon--svg svg { width: 1.1rem; height: 1.1rem; }
.streak-day-check {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1rem;
  height: 1rem;
  background: #3DBE3D;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #080808;
  font-weight: bold;
}
.streak-day-reward { font-size: 0.65rem; }
.streak-day:not(.claimed):not(.today) .streak-day-reward { color: rgba(240, 237, 224, 0.5); }

.streak-claim-btn {
  position: relative;
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #7C3AED 0%, #5B21B6 100%);
  border: 1px solid rgba(139, 92, 246, 0.5);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: #F0EDE0;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
}
.streak-claim-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: skewX(-15deg);
  pointer-events: none;
}
.streak-claim-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.streak-claim-icon { display: flex; align-items: center; }
.streak-claim-icon svg { width: 1.25rem; height: 1.25rem; color: #F0EDE0; }
.streak-claim-text { white-space: nowrap; }

.mission-timer {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}
.mission-timer--refreshed { color: var(--primary); }
.missions-list { display: flex; flex-direction: column; gap: 0.5rem; }
.mission-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--card-bg);
  border: 2px solid rgba(240, 237, 224, 0.15);
  border-left-width: 4px;
}
.mission-row { position: relative; overflow: hidden; }
.mission-row.done { opacity: 0.85; }
.mission-row-icon { font-size: 1.5rem; }
.mission-row-body { flex: 1; }
.mission-row-eyebrow { font-size: 0.65rem; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 0.2rem; }
.mission-row-title { font-family: var(--font-display); font-size: 0.9rem; margin: 0 0 0.2rem; }
.mission-row-reward { font-size: 0.8rem; color: var(--primary); }
.mission-row-progress { font-size: 0.75rem; color: var(--muted); }
/* GTA-style stamp overlay (done_green / used_grey) */
.mission-row__stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 2px 12px;
  border: 2px solid;
  z-index: 1;
}
.mission-row__stamp--done {
  color: #3DBE3D;
  border-color: #3DBE3D;
  opacity: 0.22;
}
.mission-row__stamp--spent {
  color: rgba(240, 237, 224, 0.4);
  border-color: rgba(240, 237, 224, 0.4);
  opacity: 0.18;
}
/* Premium GTA: иконка миссии в рамке */
.mission-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  border: 2px solid rgba(61, 190, 61, 0.5);
  background: rgba(61, 190, 61, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  font-size: 1.1rem;
}
.mission-row-icon svg { width: 1.25rem; height: 1.25rem; }

.heist-list { display: flex; flex-direction: column; gap: 0.5rem; }
.heist-card {
  padding: 1rem;
  background: var(--card-bg);
  border: 2px solid rgba(245, 197, 24, 0.25);
  position: relative;
}
.heist-card-eyebrow { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--accent); margin: 0 0 0.35rem; }
.heist-card-name { font-family: var(--font-display); font-size: 1rem; margin: 0 0 0.35rem; }
.heist-card-desc { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.5rem; }
.heist-card-join { margin-top: 0.5rem; }
.heist-card-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.35rem; }
.heist-card-header-row .heist-card-eyebrow { margin: 0; }
.heist-badge-active { font-size: 0.7rem; font-family: var(--font-display); background: #F5C518; color: #080808; padding: 2px 7px; border-radius: 4px; white-space: nowrap; animation: pulseBadge 1.5s ease-in-out infinite; }
.heist-badge-next { font-size: 0.65rem; color: var(--muted); white-space: nowrap; }
@keyframes pulseBadge { 0%,100%{opacity:1} 50%{opacity:0.65} }
.heist-card--active { box-shadow: 0 0 18px rgba(245,197,24,0.25); }
.heist-multiplier-banner { margin-top: 0.5rem; background: rgba(245,197,24,0.12); border: 1px solid rgba(245,197,24,0.3); border-radius: 6px; padding: 6px 12px; font-size: 0.85rem; font-family: var(--font-display); color: #F5C518; text-align: center; letter-spacing: 0.05em; }

/* Top Race standings */
.race-standings { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 4px; }
.race-row { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.race-medal { font-size: 1rem; width: 1.4rem; }
.race-name { color: var(--text); }

/* Premium heist card — как на скрине: рамка, таймер, награды, прогресс */
.heist-card--premium {
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.98), rgba(8, 8, 8, 0.98));
  border: none;
  border-left: 4px solid var(--heist-accent, #F5C518);
  border-bottom: 4px solid var(--heist-accent, #F5C518);
  border-top: 2px dashed var(--heist-stripe, #D42B2B);
  border-right: 1px solid rgba(240, 237, 224, 0.1);
  position: relative;
}
.heist-premium-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.35rem 1rem;
  align-items: start;
  margin-bottom: 0.75rem;
}
.heist-card-eyebrow--premium {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #F0EDE0;
  margin: 0;
}
.heist-eyebrow-icon { width: 14px; height: 14px; color: var(--heist-stripe, #D42B2B); flex-shrink: 0; }
.heist-premium-title { grid-column: 1 / -1; }
.heist-title-line1 { font-family: var(--font-display); font-size: clamp(1.4rem, 5.5vw, 1.85rem); font-weight: 700; text-transform: uppercase; display: block; line-height: 1.2; }
.heist-title-line2 { font-family: var(--font-display); font-size: clamp(1.4rem, 5.5vw, 1.85rem); font-weight: 700; text-transform: uppercase; }
.heist-premium-timer {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
  padding: 0.35rem 0.5rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--heist-stripe, #D42B2B);
  align-self: start;
}
.heist-timer-label { display: block; font-size: 0.6rem; letter-spacing: 0.1em; color: var(--muted); }
.heist-timer-value { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: #D42B2B; }
.heist-card-desc--premium { font-size: 0.8rem; color: rgba(240, 237, 224, 0.85); margin: 0 0 1rem; line-height: 1.45; }
.heist-reward-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.heist-reward-box {
  padding: 0.6rem;
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(240, 237, 224, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}
.heist-reward-icon { color: #F5C518; }
.heist-reward-icon .ui-icon { width: 24px; height: 24px; filter: drop-shadow(0 0 4px rgba(245, 197, 24, 0.4)); }
.heist-reward-value { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: #F0EDE0; }
.heist-reward-sublabel { font-size: 0.6rem; letter-spacing: 0.05em; color: var(--muted); }
.heist-premium-progress { margin-bottom: 1rem; }
.heist-progress-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem; }
.heist-progress-label { font-size: 0.7rem; letter-spacing: 0.08em; color: #F0EDE0; }
.heist-progress-value { font-size: 0.8rem; color: #F0EDE0; }
.heist-progress-bar { height: 8px; background: rgba(0,0,0,0.5); overflow: hidden; }
.heist-progress-fill { height: 100%; background: linear-gradient(90deg, #F5C518, #D42B2B); transition: width 0.3s ease; }
.heist-card-join--premium {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #F5C518 !important;
  color: #080808 !important;
  border: 2px solid #080808 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.heist-card-join--premium .ui-icon { width: 20px; height: 20px; color: #080808; filter: none; }
.heist-card-join--premium:disabled { opacity: 0.8; cursor: default; }

.heist-modal-choice { display: flex; flex-direction: column; gap: 0.75rem; }
.heist-modal-choice .primary { width: 100%; }
.heist-modal-choice .secondary { width: 100%; }
.heist-modal-join label, .heist-modal-create label { display: block; font-size: 0.8rem; margin-bottom: 0.35rem; }
.heist-modal-join input, .heist-modal-create input { width: 100%; padding: 0.6rem; margin-bottom: 0.75rem; box-sizing: border-box; }
.heist-modal-code-result { margin-top: 0.5rem; }
.heist-card--gang { border-left: 4px solid var(--heist-accent); }
.heist-gang-members { margin: 0.5rem 0; font-size: 0.85rem; }
.heist-gang-member { padding: 0.25rem 0; display: flex; align-items: center; gap: 0.35rem; }
.heist-gang-role { flex-shrink: 0; }

.slot-card { padding: 1rem; text-align: center; }
.slot-spins { font-family: var(--font-display); margin: 0 0 0.75rem; }
.slot-spin-btn { width: 100%; }

.leaderboard-list { display: flex; flex-direction: column; gap: 0.25rem; }
.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--card-bg);
  border: 1px solid rgba(240, 237, 224, 0.1);
}
.leaderboard-row.rank-1 { border-left: 3px solid #F5C518; }
.leaderboard-row.rank-2 { border-left: 3px solid #c0c0c0; }
.leaderboard-row.rank-3 { border-left: 3px solid #cd7f32; }
.leaderboard-rank { font-family: var(--font-display); min-width: 1.5rem; color: var(--muted); }
.leaderboard-name { flex: 1; font-size: 0.9rem; }
.leaderboard-value { font-family: var(--font-display); color: var(--accent); }

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4rem, 1fr));
  gap: 0.5rem;
}
.badge-item {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: var(--card-bg);
  border: 2px solid rgba(240, 237, 224, 0.15);
  text-align: center;
}
.badge-item.unlocked { border-color: var(--accent); }
.badge-item-icon { font-size: 1.5rem; margin-bottom: 0.2rem; }
.badge-item-title { font-size: 0.6rem; line-height: 1.2; color: var(--muted); }

/* Home: // БОНУС СЧЁТ section */
.home-bonus-section {
  margin-top: 1rem;
}

.home-bonus-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.home-bonus-title .slash-first { color: #D42B2B; }
.home-bonus-title .slash-second { color: #3DBE3D; }

.home-bonus-section .home-bonus-title {
  border-bottom: 1px solid rgba(240, 237, 224, 0.2);
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
}

/* WANTED • BONUS card */
.home-wanted-card {
  position: relative;
  border: 2px solid var(--accent);
  background: var(--card-bg);
  overflow: hidden;
}

.home-wanted-bar {
  background: var(--accent);
  color: #161616;
  padding: 0.4rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.home-wanted-stars {
  display: flex;
  gap: 2px;
}
.home-wanted-stars .star {
  color: #161616;
  opacity: 0.35;
  font-size: 0.9rem;
}
.home-wanted-stars .star.filled {
  opacity: 1;
  color: #161616;
}

.home-wanted-body {
  padding: 1rem 0.75rem;
  position: relative;
}

.home-wanted-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 0.25rem;
}

.home-wanted-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.home-wanted-value .home-currency { color: #3DBE3D; }

/* DBL — премиальная иконка в стиле GTA (монета с черепом) */
.dbl-currency-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  vertical-align: middle;
}
.dbl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dbl-icon {
  width: 1.1em;
  height: 1.1em;
  color: #F5C518;
  filter: drop-shadow(0 0 2px rgba(245, 197, 24, 0.6));
}
.dbl-code {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #3DBE3D;
}
.home-currency .dbl-icon { color: #F5C518; }
.home-currency .dbl-code { color: #3DBE3D; }
.profile-bonus-balance .dbl-icon,
.profile-bonus-stat-value .dbl-icon { color: #F5C518; }
.profile-bonus-balance .dbl-code,
.profile-bonus-stat-value .dbl-code { color: #3DBE3D; }

.home-wanted-body > .home-wanted-stats-row {
  border-top: 1px solid rgba(240, 237, 224, 0.15);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.home-wanted-stats-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-wanted-stats {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.home-wanted-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.home-wanted-stat-top {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.home-wanted-dot {
  color: #3DBE3D;
  font-size: 0.5rem;
  line-height: 1;
}

.home-wanted-stat-value {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1rem;
}

.home-wanted-stat-value .home-currency { color: #3DBE3D; }

.home-wanted-stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.home-wanted-qr {
  background: var(--card-bg);
  border: 2px solid var(--accent);
  color: var(--ink);
  padding: 0.4rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.home-wanted-qr:hover { background: rgba(245, 197, 24, 0.15); }

.home-wanted-bg-icon {
  position: absolute;
  right: 0.75rem;
  bottom: 0.5rem;
  font-size: 3rem;
  opacity: 0.08;
  pointer-events: none;
}

/* Mission card */
.mission-card {
  background: var(--card-bg);
  border: 2px solid rgba(245, 197, 24, 0.3);
  box-shadow: 4px 4px 0 rgba(212, 43, 43, 0.4);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.mission-card--red {
  background: #5c1a1a;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(0, 0, 0, 0.15) 6px,
    rgba(0, 0, 0, 0.15) 12px
  );
  border: none;
  border-top: 3px solid #8b2a2a;
  border-bottom: 3px solid #8b2a2a;
  box-shadow: none;
  padding: 1rem 1rem 1rem 1.25rem;
  position: relative;
}

.mission-card--red::before,
.mission-card--red::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #8b2a2a 0,
    #8b2a2a 4px,
    transparent 4px,
    transparent 8px
  );
}
.mission-card--red::before { top: 0; }
.mission-card--red::after { bottom: 0; }

.mission-card--red .mission-icon { font-size: 2.5rem; }
.mission-card--red .mission-text { flex: 1; }
.mission-card--red .mission-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.9);
  margin: 0 0 0.25rem;
  text-transform: uppercase;
}
.mission-card--red .mission-title {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}
.mission-card--red .mission-desc { color: rgba(255,255,255,0.85); margin: 0; }
.mission-card--red .mission-arrow {
  color: #b84a4a;
  font-size: 1.25rem;
  font-weight: bold;
}

.mission-icon { font-size: 2rem; }
.mission-title { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.1em; color: #F0EDE0; margin: 0 0 4px; }
.mission-desc { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Cards общие */
.card, .list-card, .product-card {
  background: var(--card-bg) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--shadow-tight) !important;
  border-radius: 8px !important;
}

.quick-tile {
  background: var(--surface) !important;
  border: 2px solid rgba(212, 43, 43, 0.4) !important;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.04) !important;
  border-radius: 8px !important;
}

.quick-label { font-family: var(--font-body); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
/* Premium GTA: иконки — чёткий контур, зелёный акцент, лёгкое свечение */
.quick-icon {
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(61, 190, 61, 0.25), rgba(61, 190, 61, 0.08)) !important;
  border: 2px solid #3DBE3D !important;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.12) !important;
  color: #3DBE3D !important;
}
.quick-icon .ui-icon {
  filter: drop-shadow(0 0 3px rgba(61, 190, 61, 0.5));
}

/* Tabbar — GTA style (dark bar, yellow top border, active trapezoid) */
.tabbar--gta.tabbar,
.tabbar.tabbar--gta {
  background: rgba(6, 6, 6, 0.97) !important;
  border: none !important;
  border-top: 2px solid #F5C518 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  padding: 0 4px 0 8px !important;
  padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  gap: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}

.tabbar--gta .tab {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  font-size: 11px !important;
  color: rgba(240, 237, 224, 0.3) !important;
  background: transparent !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 6px 10px !important;
  position: relative !important;
  clip-path: none !important;
  box-shadow: none !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.tabbar--gta .tab.is-active {
  color: #F5C518 !important;
  background: rgba(245, 197, 24, 0.12) !important;
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%) !important;
  border-top: 2px solid #F5C518 !important;
  margin-top: -2px !important;
  padding-top: 6px !important;
}

.tabbar--gta .tab-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tabbar--gta .tab-icon--gta {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
}

.tabbar--gta .tab.is-active .tab-icon--gta {
  filter: drop-shadow(0 0 8px rgba(245, 197, 24, 0.7));
}
.tabbar--gta .tab:not(.is-active) .tab-icon--gta {
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}

.tabbar--gta .tab-label {
  display: block;
}

/* Badge pip on catalog tab */
.tabbar--gta .tab-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D42B2B;
  box-shadow: 0 0 8px #D42B2B, 0 0 12px rgba(212, 43, 43, 0.5);
  animation: tab-badge-pulse 1.5s ease-in-out infinite;
}

.tabbar--gta .tab[data-tab-badge="true"] .tab-badge {
  display: block;
}

@keyframes tab-badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.1); }
}

/* Rules banner */
.rules-banner {
  background: var(--surface) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: 4px 4px 0 rgba(212, 43, 43, 0.3) !important;
  border-radius: 8px !important;
}

.rules-badge {
  background: #D42B2B !important;
  color: #fff !important;
}

/* Lang selector */
.lang-select {
  font-family: var(--font-display) !important;
  letter-spacing: 0.1em !important;
}

/* ========== ВСЕ ОСТАЛЬНЫЕ ЭЛЕМЕНТЫ В ТОЙ ЖЕ СТИЛИСТИКЕ ========== */

/* Main, section */
.main {
  position: relative;
  z-index: 1;
  background: var(--bg);
}
.section-title h1,
.section-title h2,
.section-title h3 {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  color: var(--ink);
}
.section-title p,
.section-title .muted {
  font-family: var(--font-body);
  color: var(--muted);
}
.text-button {
  color: var(--primary) !important;
  font-family: var(--font-display) !important;
  letter-spacing: 0.08em;
}

/* Inputs, select, textarea */
input[type="search"],
input[type="tel"],
select,
textarea,
.field input,
.field select,
.field textarea {
  background: var(--card-bg) !important;
  border: 2px solid var(--glass-border) !important;
  border-radius: 8px !important;
  color: var(--ink) !important;
  font-family: var(--font-body) !important;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: rgba(245, 197, 24, 0.5) !important;
}

/* Pill, icon-button */
.pill {
  background: var(--surface) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3) !important;
}
.icon-button {
  background: var(--surface) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px !important;
  box-shadow: 3px 3px 0 rgba(212, 43, 43, 0.2) !important;
}
.icon-button:active {
  transform: translate(2px, 2px) !important;
  box-shadow: 1px 1px 0 rgba(212, 43, 43, 0.2) !important;
}

/* Scroll row, card list */
.scroll-row > * {
  background: var(--card-bg) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--shadow-tight) !important;
  border-radius: 8px !important;
}
.card-list .card {
  border-radius: 8px !important;
}

/* Chips, filters */
.chip {
  background: var(--surface) !important;
  border: 2px solid var(--glass-border) !important;
  border-radius: 8px !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25) !important;
}
.chip.is-active {
  background: var(--primary) !important;
  color: #080808 !important;
  border-color: var(--primary) !important;
  box-shadow: 3px 3px 0 #1a7a1a !important;
}
.filter-row .chip {
  border-radius: 8px !important;
}
.filters select {
  border-radius: 8px !important;
}
.filter-option {
  background: var(--card-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px !important;
  box-shadow: 2px 2px 0 rgba(212, 43, 43, 0.2) !important;
  font-family: var(--font-body) !important;
}
.filter-option:hover {
  border-color: rgba(245, 197, 24, 0.4) !important;
}

/* Product card & detail */
.product-card {
  border-radius: 8px !important;
}
.product-card .product-image,
.product-card .product-image--template {
  border-radius: 8px !important;
  border: 1px solid var(--glass-border) !important;
}
.product-title,
.product-card .product-price {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
}
.meta-pill,
.meta-pill--price,
.meta-pill--tone {
  background: var(--surface) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px !important;
  font-family: var(--font-body) !important;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2) !important;
}
.tag {
  background: var(--surface) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
}
.product-detail,
.product-info,
.product-gallery .gallery-main,
.gallery-thumbs .thumb {
  border-radius: 8px !important;
}
.gallery-main {
  border: 1px solid var(--glass-border) !important;
}
.thumb {
  border-radius: 8px !important;
  border: 1px solid var(--glass-border) !important;
}
.product-actions .primary,
.product-actions .secondary {
  border-radius: 8px !important;
}
.icon-heart,
.icon-mini {
  background: var(--card-bg) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px !important;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2) !important;
}
.icon-heart.active,
.icon-mini.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #080808 !important;
  box-shadow: 3px 3px 0 #1a7a1a !important;
}

/* Карточка товара — эталонный стиль (type-bar, img-zone, body, potency, footer) */
#product-detail {
  padding: 0 12px 80px;
  max-width: 380px;
  margin: 0 auto;
}
#product-detail .product-detail-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  animation: product-card-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes product-card-rise {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
#product-detail .product-detail-card .type-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #e8a800 100%);
}
#product-detail .product-detail-card .type-bar.sativa { background: linear-gradient(90deg, #F5C518, #e8a800); }
#product-detail .product-detail-card .type-bar.indica { background: linear-gradient(90deg, #3DBE3D, #2a9030); }
#product-detail .product-detail-card .type-bar.hybrid { background: linear-gradient(90deg, #D42B2B, #b02020); }
#product-detail .product-detail-card .img-zone {
  position: relative;
  background: radial-gradient(ellipse at 50% 30%, #1c2a14 0%, #0d0d0d 70%);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#product-detail .product-detail-card .img-zone::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  background: radial-gradient(ellipse, rgba(80, 160, 40, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
}
#product-detail .product-detail-card .img-zone .bud-img,
#product-detail .product-detail-card .img-zone .bud-placeholder {
  height: 240px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.9)) drop-shadow(0 0 20px rgba(60,120,20,0.25));
  position: relative;
  z-index: 1;
}
#product-detail .product-detail-card .img-zone .bud-placeholder {
  display: block;
  margin: 0 auto;
  line-height: 0;
}
#product-detail .product-detail-card .img-zone .bud-placeholder svg,
#product-detail .product-detail-card .img-zone .bud-placeholder img {
  height: 240px;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}
#product-detail .product-detail-card .badge-top {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
#product-detail .product-detail-card .badge-pill {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 2px;
  display: inline-block;
}
#product-detail .product-detail-card .badge-pill--hot { background: var(--danger); color: #fff; }
#product-detail .product-detail-card .badge-pill--type { background: var(--accent); color: #000; }
#product-detail .product-detail-card .thc-pill {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0,0,0,0.75);
  border: 1px solid #2e2e2e;
  backdrop-filter: blur(4px);
  border-radius: 3px;
  padding: 5px 10px;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  z-index: 2;
}
#product-detail .product-detail-card .thc-pill b { color: var(--accent); font-size: 16px; }
#product-detail .product-detail-card .weight-row {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 5px;
  z-index: 2;
}
#product-detail .product-detail-card .w-btn {
  background: rgba(0,0,0,0.7);
  border: 1px solid #333;
  border-radius: 2px;
  padding: 4px 8px;
  font-family: var(--font-display);
  font-size: 11px;
  color: #777;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.5px;
}
#product-detail .product-detail-card .w-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
#product-detail .product-detail-card .card-body { padding: 16px 18px 0; }
#product-detail .product-detail-card .meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
#product-detail .product-detail-card .strain-type {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
}
#product-detail .product-detail-card .detail-stars { display: flex; gap: 2px; }
#product-detail .product-detail-card .detail-stars .star { font-size: 12px; color: var(--accent); }
#product-detail .product-detail-card .detail-stars .star.e { color: #2a2a2a; }
#product-detail .product-detail-card .card-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 4px;
  text-transform: uppercase;
}
#product-detail .product-detail-card .card-sub {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
#product-detail .product-detail-card .divider {
  border: none;
  border-top: 1px solid #1e1e1e;
  margin-bottom: 14px;
}
#product-detail .product-detail-card .section-label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #444;
  margin-bottom: 8px;
  text-transform: uppercase;
}
#product-detail .product-detail-card .effects-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
#product-detail .product-detail-card .fx-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #161616;
  border: 1px solid #272727;
  border-radius: 2px;
  padding: 5px 10px;
  font-size: 12px;
  color: #aaa;
  letter-spacing: 0.5px;
  transition: border-color 0.15s;
}
#product-detail .product-detail-card .fx-tag:hover { border-color: var(--accent); color: var(--ink); }
#product-detail .product-detail-card .fx-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
#product-detail .product-detail-card .potency-row { display: flex; gap: 12px; margin-bottom: 16px; }
#product-detail .product-detail-card .potency-item { flex: 1; }
#product-detail .product-detail-card .potency-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
  color: #555;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}
#product-detail .product-detail-card .potency-label b { color: var(--ink); }
#product-detail .product-detail-card .pot-track {
  height: 3px;
  background: #1e1e1e;
  border-radius: 2px;
  overflow: hidden;
}
#product-detail .product-detail-card .pot-fill {
  height: 100%;
  border-radius: 2px;
  animation: product-pot-fill 1s ease 0.5s both;
}
#product-detail .product-detail-card .pot-fill.thc { background: linear-gradient(90deg, var(--accent), #e8a800); }
#product-detail .product-detail-card .pot-fill.cbd { background: linear-gradient(90deg, #3DBE3D, #2a9030); }
@keyframes product-pot-fill {
  from { width: 0 !important; }
}
#product-detail .product-detail-card .avail-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px 14px;
  margin-top: -4px;
}
#product-detail .product-detail-card .avail-dot {
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: product-avail-pulse 2s ease infinite;
}
@keyframes product-avail-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
#product-detail .product-detail-card .avail-text { font-size: 12px; color: #555; letter-spacing: 0.5px; }
#product-detail .product-detail-card .avail-text b { color: var(--primary); }
#product-detail .product-detail-card .card-footer {
  border-top: 1px solid #1e1e1e;
  padding: 14px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#product-detail .product-detail-card .price-caption {
  font-size: 11px; color: #444; letter-spacing: 1px; margin-bottom: 2px;
}
#product-detail .product-detail-card .price-main {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.5px;
}
#product-detail .product-detail-card .price-main sup { font-size: 15px; vertical-align: super; color: #c8a000; }
#product-detail .product-detail-card .price-main sub { font-size: 13px; color: var(--muted); font-weight: 400; }
#product-detail .product-detail-card .btn-row { display: flex; gap: 8px; align-items: center; }
#product-detail .product-detail-card .btn-fav {
  width: 42px; height: 42px;
  border: 1.5px solid #2a2a2a;
  background: transparent;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #555;
  transition: all 0.15s;
}
#product-detail .product-detail-card .btn-fav:hover { border-color: var(--danger); color: var(--danger); }
#product-detail .product-detail-card .btn-fav.active { border-color: var(--danger); color: var(--danger); }
#product-detail .product-detail-card .btn-add {
  background: var(--accent);
  border: none;
  border-radius: 3px;
  padding: 0 22px;
  height: 42px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #000;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: background 0.15s, transform 0.1s;
}
#product-detail .product-detail-card .btn-add:hover { background: #ffd900; }
#product-detail .product-detail-card .btn-add:active { transform: scale(0.96); }
#product-detail .product-detail-card .btn-add .ui-icon { width: 14px; height: 14px; }

/* Request form, status */
.request-summary,
.request-success,
.request-form .field {
  border-radius: 8px !important;
}
.request-summary,
.request-success {
  background: var(--card-bg) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--shadow-tight) !important;
}
.status-step {
  background: var(--surface) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px !important;
  font-family: var(--font-body) !important;
}
.status-step.active {
  border-color: var(--primary) !important;
  background: rgba(61, 190, 61, 0.15) !important;
}

/* Bonus panel, progress */
.bonus-panel {
  background: var(--surface) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--shadow-tight) !important;
  border-radius: 8px !important;
}
.bonus-panel h3 {
  font-family: var(--font-display) !important;
  color: var(--accent) !important;
}
.progress {
  background: #333 !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px !important;
}
.progress span {
  background: linear-gradient(90deg, var(--primary), var(--accent)) !important;
}
.bonus-qr {
  border-radius: 8px !important;
  border: 1px solid var(--glass-border) !important;
  font-family: var(--font-display) !important;
  letter-spacing: 0.08em !important;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25) !important;
}

/* Profile, list rows */
.profile-card {
  background: var(--card-bg) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--shadow-tight) !important;
  border-radius: 8px !important;
}
.profile-card h3 {
  font-family: var(--font-display) !important;
  color: var(--ink) !important;
}
.list-row,
.list-row--link {
  border-radius: 8px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
}
.list-row--link:hover {
  background: rgba(245, 197, 24, 0.08) !important;
}
.list-icon {
  background: rgba(61, 190, 61, 0.2) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px !important;
  color: var(--primary) !important;
}

/* Contact card */
.contact-row {
  border-radius: 8px !important;
  font-family: var(--font-body) !important;
}
.contact-row:hover {
  background: rgba(245, 197, 24, 0.06) !important;
}
.contact-icon {
  background: rgba(61, 190, 61, 0.15) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px !important;
  color: var(--primary) !important;
}

/* Referral card */
.referral-card,
.referral-code {
  font-family: var(--font-body) !important;
}
.ref-row .secondary {
  border-radius: 8px !important;
}

/* Modals */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.75) !important;
}
.modal-sheet {
  background: var(--surface) !important;
  border: 2px solid var(--glass-border) !important;
  box-shadow: 6px 6px 0 rgba(212, 43, 43, 0.4) !important;
  border-radius: 8px !important;
}
.modal-header h3 {
  font-family: var(--font-display) !important;
  letter-spacing: 0.05em !important;
  color: var(--ink) !important;
}

/* Cart */
.cart-fab {
  background: var(--surface) !important;
  border: 2px solid var(--glass-border) !important;
  border-radius: 8px !important;
  box-shadow: 6px 6px 0 rgba(212, 43, 43, 0.35) !important;
}
.cart-fab:hover {
  border-color: var(--primary) !important;
  box-shadow: 6px 6px 0 rgba(61, 190, 61, 0.4) !important;
}
.cart-badge {
  background: var(--danger) !important;
  color: #fff !important;
  border-radius: 8px !important;
}
.cart-row {
  background: var(--card-bg) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: 2px 2px 0 rgba(212, 43, 43, 0.2) !important;
  border-radius: 8px !important;
}
.cart-thumb {
  border-radius: 8px !important;
  border: 1px solid var(--glass-border) !important;
}
.qty-stepper {
  background: var(--surface) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px !important;
}

/* Корзина — эталонный стиль: тёмный фон, жёлтые рамки, белый текст */
#cart-modal .modal-sheet {
  background: var(--surface) !important;
  border: 2px solid var(--accent) !important;
  box-shadow: 6px 6px 0 rgba(245, 197, 24, 0.25) !important;
}
#cart-modal .modal-header {
  border-bottom: 1px solid var(--glass-border) !important;
  padding: 12px 16px !important;
}
#cart-modal #cart-title {
  font-family: var(--font-display) !important;
  font-size: 1.25rem !important;
  letter-spacing: 0.08em !important;
  color: var(--ink) !important;
  margin: 0 !important;
}
#cart-modal .modal-header .icon-button {
  background: var(--card-bg) !important;
  border: 1.5px solid var(--accent) !important;
  color: var(--ink) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 4px !important;
}
#cart-modal .modal-body {
  padding: 16px !important;
  background: var(--bg) !important;
}
#cart-modal .cart-row {
  background: var(--card-bg) !important;
  border: 1.5px solid var(--glass-border) !important;
  padding: 12px !important;
  border-radius: 4px !important;
}
#cart-modal .cart-meta strong,
#cart-modal .cart-meta p.muted {
  color: var(--ink) !important;
}
#cart-modal .cart-meta p.muted { opacity: 0.9; font-size: 0.9rem; }
#cart-modal .qty-stepper {
  background: var(--surface) !important;
  border: 1.5px solid var(--accent) !important;
  border-radius: 4px !important;
  padding: 6px 8px !important;
}
#cart-modal .qty-stepper .icon-mini {
  background: var(--card-bg) !important;
  border: 1.5px solid var(--accent) !important;
  color: var(--ink) !important;
  border-radius: 4px !important;
  min-width: 32px !important;
  height: 32px !important;
}
#cart-modal .qty-value {
  color: var(--ink) !important;
  font-weight: 700 !important;
}
#cart-modal .icon-mini--danger {
  border-color: var(--accent) !important;
  color: var(--ink) !important;
  background: var(--card-bg) !important;
}
#cart-modal .cart-total {
  color: var(--ink) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
}
#cart-modal .request-form .field input,
#cart-modal .request-form .field select,
#cart-modal .request-form .field textarea {
  background: var(--card-bg) !important;
  border: 1.5px solid var(--accent) !important;
  color: var(--ink) !important;
  border-radius: 4px !important;
  padding: 10px 12px !important;
}
#cart-modal .request-form .field span {
  color: var(--muted) !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.03em !important;
}
#cart-modal .cart-actions .secondary {
  background: var(--card-bg) !important;
  border: 1.5px solid var(--accent) !important;
  color: var(--ink) !important;
  border-radius: 4px !important;
}
#cart-modal .cart-actions .primary {
  background: var(--accent) !important;
  color: #080808 !important;
  border: none !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  box-shadow: 2px 2px 0 rgba(168, 128, 16, 0.5) !important;
}
#cart-modal .toggle {
  color: var(--muted) !important;
}

/* Filter modal */
.filter-list .filter-option {
  border-radius: 8px !important;
}

/* QR modal */
.qr-frame {
  background: var(--card-bg) !important;
  border: 2px solid var(--glass-border) !important;
  box-shadow: 4px 4px 0 rgba(212, 43, 43, 0.3) !important;
  border-radius: 8px !important;
}
.qr-code {
  font-family: var(--font-body) !important;
  color: var(--ink) !important;
}

/* Notice, FAQ */
.notice {
  background: var(--card-bg) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--shadow-tight) !important;
  border-radius: 8px !important;
}
.notice h3 {
  font-family: var(--font-display) !important;
  color: var(--accent) !important;
}
.faq details {
  background: var(--card-bg) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: 2px 2px 0 rgba(212, 43, 43, 0.2) !important;
  border-radius: 8px !important;
}
.faq summary {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
}

/* Sticky bar (product detail) */
.sticky-bar {
  background: var(--surface) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: 6px 6px 0 rgba(212, 43, 43, 0.35) !important;
  border-radius: 8px !important;
}
.sticky-price {
  font-family: var(--font-display) !important;
  color: var(--accent) !important;
}

/* Promo, event cards */
.promo-card,
.event-card,
.event-featured {
  background: var(--card-bg) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--shadow-tight) !important;
  border-radius: 8px !important;
}
.promo-link,
.event-meta {
  font-family: var(--font-body) !important;
}
.badge,
.badge-soft {
  border-radius: 8px !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
}
.badge {
  background: var(--danger) !important;
  color: #fff !important;
  border: none !important;
}
.status.in,
.status.low,
.status.out {
  border-radius: 8px !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
}

/* Map */
.map-shell {
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--shadow-tight) !important;
  border-radius: 8px !important;
}
.map-overlay {
  background: rgba(8, 8, 8, 0.85) !important;
  color: var(--muted) !important;
  font-family: var(--font-body) !important;
}
.leaflet-control-zoom a,
.leaflet-control-layers {
  background: var(--surface) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--ink) !important;
}
.leaflet-popup-content-wrapper {
  background: var(--card-bg) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--ink) !important;
  box-shadow: 4px 4px 0 rgba(212, 43, 43, 0.3) !important;
}

/* View header */
.view-header {
  font-family: var(--font-body) !important;
}
.view-header .icon-button {
  border-radius: 8px !important;
}

/* Toggle (checkbox label) */
.toggle {
  font-family: var(--font-body) !important;
}

/* Field labels */
.field {
  font-family: var(--font-body) !important;
}
.field span {
  color: var(--muted) !important;
}

/* Cart form, request form inside modals */
.cart-form .field input,
.cart-form .field select,
.cart-form .field textarea,
#request-form input,
#request-form select,
#request-form textarea {
  border-radius: 8px !important;
}

/* Details/summary (accordion) */
details.card > summary {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
}
details.card > summary::after {
  color: var(--accent) !important;
}

/* Profile avatar */
.profile-avatar {
  border-radius: 8px !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2) !important;
}
.meta-pill--tier {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  background: rgba(61, 190, 61, 0.15) !important;
}

/* Product card overlays — убираем цветные градиенты под тёмную тему */
.product-card::after,
.product-card .product-image::before,
.gallery-main::before {
  opacity: 0.15 !important;
}
.spec-row {
  border-bottom-color: var(--glass-border) !important;
  font-family: var(--font-body) !important;
}
.product-effect,
.product-desc {
  font-family: var(--font-body) !important;
  color: var(--muted) !important;
}

/* Promo/event inner */
.promo-head,
.promo-benefit,
.promo-footer,
.event-top,
.event-meta {
  font-family: var(--font-body) !important;
}
.event-actions .primary {
  border-radius: 8px !important;
}

/* Lang switch container */
.lang-switch,
.lang-switch--header {
  background: var(--surface) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px !important;
}
.lang-globe {
  border-radius: 8px !important;
}

/* Scrollbar */
.scroll-row::-webkit-scrollbar-thumb,
.chip-row::-webkit-scrollbar-thumb {
  background: rgba(245, 197, 24, 0.3) !important;
  border-radius: 8px !important;
}

/* Selection */
::selection {
  background: rgba(245, 197, 24, 0.35) !important;
  color: #080808 !important;
}

/* Focus outline */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline-color: var(--accent) !important;
}

/* Hover: единый стиль — сдвиг тени вместо скруглений */
@media (hover: hover) {
  .card:hover,
  .product-card:hover,
  .quick-tile:hover,
  .bonus-card:hover,
  .rules-banner:hover,
  .list-row--link:hover,
  .mission-card:hover {
    transform: translate(2px, 2px) !important;
    box-shadow: 2px 2px 0 rgba(212, 43, 43, 0.25) !important;
  }
  .chip:hover {
    transform: translate(2px, 2px) !important;
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2) !important;
  }
  .primary:hover {
    transform: translate(2px, 2px) !important;
    box-shadow: 1px 1px 0 #1a7a1a !important;
  }
  .secondary:hover,
  .icon-button:hover {
    transform: translate(2px, 2px) !important;
    box-shadow: 1px 1px 0 #a08010 !important;
  }
  .tab:hover {
    background: rgba(255, 255, 255, 0.06) !important;
  }
}

/* ========== КАТАЛОГ В СТИЛЕ МАКЕТА ========== */
.catalog-view {
  padding-bottom: 1rem;
}
.catalog-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 12px;
}
.catalog-view-title {
  flex: 1;
  margin: 0;
  font-family: var(--font-display) !important;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  color: #D42B2B;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
  text-align: center;
}
.catalog-cart-btn {
  position: relative;
}
.catalog-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  background: #D42B2B;
  color: #fff;
  border-radius: 8px;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}
.catalog-search-wrap {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-left: 4px solid #F5C518;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
  margin-bottom: 14px;
}
.catalog-search-input {
  flex: 1;
  border: none !important;
  border-left: none !important;
  box-shadow: none !important;
  padding: 12px 12px 12px 10px;
}
.catalog-search-input::placeholder {
  color: var(--muted);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}
.catalog-search-icon {
  padding: 0 12px;
  color: var(--muted);
  font-size: 1.1rem;
}
.catalog-category-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 0 0 8px;
}
.catalog-type-chips {
  margin-bottom: 14px;
}
.catalog-type-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}
.catalog-type-chips .chip::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--chip-dot, #F5C518);
  flex-shrink: 0;
}
.catalog-type-chips .chip.is-active {
  background: #F5C518 !important;
  color: #080808 !important;
  box-shadow: 3px 3px 0 #a08010 !important;
}
.catalog-type-chips .chip.is-active::before {
  background: #080808;
}
.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
}
.catalog-view-toggle {
  display: flex;
  gap: 4px;
}
.catalog-view-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}
.catalog-view-btn.is-active {
  background: #F5C518;
  color: #080808;
  border-color: #F5C518;
  box-shadow: 3px 3px 0 #a08010;
}
.catalog-all-title {
  font-family: var(--font-display) !important;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: #3DBE3D;
  margin: 12px 0 10px;
  padding: 0;
}
.catalog-featured {
  margin-bottom: 4px;
}
/* Крупная карточка (featured) */
.product-card--featured {
  display: block;
  position: relative;
  padding-left: 0;
  border-left: 4px solid var(--card-accent, #F5C518);
  overflow: hidden;
}
.product-card--featured .product-featured-body {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px;
}
.product-card--featured .product-featured-left {
  flex: 0 0 80px;
  width: 80px;
  max-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  max-height: 80px;
  overflow: hidden;
  background: rgba(61, 190, 61, 0.15);
  border: 1px solid var(--glass-border);
}
.product-card--featured .product-featured-left .leaf-icon {
  font-size: 2.5rem;
  opacity: 0.9;
}
.product-card--featured .product-featured-left .featured-bud-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
}
.product-card--featured .product-featured-right {
  flex: 1;
  min-width: 0;
}
.product-card--featured .product-featured-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0 0 6px;
  text-transform: uppercase;
}
.product-card--featured .product-featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.product-card--featured .product-featured-badge {
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: 8px;
  background: #3DBE3D;
  color: #080808;
}
.product-card--featured .product-featured-type {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
}
.product-card--featured .product-featured-hit {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #D42B2B;
  color: #fff;
  border-radius: 8px;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}
.product-card--featured .product-featured-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.35;
}
.product-card--featured .product-featured-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.product-card--featured .product-featured-old-price {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: line-through;
}
.product-card--featured .product-featured-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #3DBE3D;
  letter-spacing: 0.05em;
}
.product-card--featured .product-featured-cta {
  width: 100%;
  padding: 12px;
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  background: #F5C518;
  color: #080808;
  border: none;
  border-radius: 8px;
  box-shadow: 3px 3px 0 #a08010;
  cursor: pointer;
}
.product-card--featured .product-featured-cta:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #a08010;
}
/* Сетка карточек — стиль как в макете (бар, изображение, бейджи, тип, имя, звёзды, эффекты, цена) */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 12px;
}
.catalog-grid.catalog-grid--list {
  grid-template-columns: 1fr;
}
.catalog-grid .product-card--grid {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 0;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.18s, border-color 0.18s;
  animation: catalog-card-fade 0.4s ease both;
}
.catalog-grid .product-card--grid:nth-child(1) { animation-delay: 0s; }
.catalog-grid .product-card--grid:nth-child(2) { animation-delay: 0.06s; }
.catalog-grid .product-card--grid:nth-child(3) { animation-delay: 0.12s; }
.catalog-grid .product-card--grid:nth-child(4) { animation-delay: 0.18s; }
.catalog-grid .product-card--grid:nth-child(5) { animation-delay: 0.24s; }
.catalog-grid .product-card--grid:nth-child(6) { animation-delay: 0.3s; }
@keyframes catalog-card-fade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.catalog-grid .product-card--grid:hover { border-color: rgba(245, 197, 24, 0.5); }
.catalog-grid .product-card--grid:active { transform: scale(0.97); }
.catalog-grid .product-card--grid[data-action="open-product"] { cursor: pointer; }
.catalog-grid .product-card--grid .product-card-add { cursor: pointer; }

.catalog-grid .product-card-bar {
  height: 3px;
  width: 100%;
}
.catalog-grid .product-card-bar.sativa { background: #F5C518; }
.catalog-grid .product-card-bar.indica { background: #3DBE3D; }
.catalog-grid .product-card-bar.hybrid { background: #D42B2B; }
.catalog-grid .product-card-bar.preroll { background: #FFD93D; }
.catalog-grid .product-card-bar.edibles { background: #5EE05E; }

.catalog-grid .product-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #161616;
}
.catalog-grid .product-card-img svg,
.catalog-grid .product-card-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.catalog-grid .product-card-thc {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  padding: 3px 7px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}
.catalog-grid .product-card-thc b { color: var(--accent); }
.catalog-grid .product-card-badge--new {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  border-radius: 2px;
  padding: 2px 6px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #000;
  font-weight: 700;
}
.catalog-grid .product-card-badge--hot,
.catalog-grid .product-card-badge--top {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--danger);
  border-radius: 2px;
  padding: 2px 6px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #fff;
  font-weight: 600;
}
.catalog-grid .product-card-badge--top { background: var(--danger); }

.catalog-grid .product-card-body {
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.catalog-grid .product-card-type {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 3px;
  text-transform: uppercase;
}
.catalog-grid .product-card-type.sativa { color: #F5C518; }
.catalog-grid .product-card-type.indica { color: #3DBE3D; }
.catalog-grid .product-card-type.hybrid { color: #D42B2B; }
.catalog-grid .product-card-type.preroll { color: #FFD93D; }
.catalog-grid .product-card-type.edibles { color: #5EE05E; }
.catalog-grid .product-card-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.catalog-grid .product-card-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}
.catalog-grid .product-card-stars .star { color: var(--accent); font-size: 10px; }
.catalog-grid .product-card-stars .star.empty { color: var(--glass-border); }
.catalog-grid .product-card-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.catalog-grid .product-card-effect-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  padding: 2px 6px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.catalog-grid .product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--glass-border);
  padding-top: 8px;
  margin-top: auto;
}
.catalog-grid .product-card-price {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.catalog-grid .product-card-price span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 2px;
}
.catalog-grid .product-card-add {
  background: var(--accent);
  border: none;
  border-radius: 2px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.15s;
}
.catalog-grid .product-card-add:hover { background: #ffd900; }
.catalog-grid .product-card-add .ui-icon { width: 16px; height: 16px; }
.catalog-filters-collapsed,
.catalog-filter-chips {
  display: none !important;
}

/* ========== КАРТА (MAP VIEW) ========== */
.map-view { padding-bottom: 1rem; }
.map-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 0;
}
.map-view-title {
  flex: 1;
  margin: 0;
  font-family: var(--font-display) !important;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  color: #F0EDE0;
  text-shadow: 1px 1px 0 #F5C518, 2px 2px 0 #D42B2B;
  text-align: center;
}
.map-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #5EE05E;
}
.map-status-dot {
  width: 8px;
  height: 8px;
  background: #3DBE3D;
  border-radius: 50%;
  flex-shrink: 0;
}
.map-ticker-wrap {
  background: #D42B2B;
  padding: 8px 0;
  overflow: hidden;
  margin-bottom: 12px;
}
.map-view .map-ticker-wrap {
  display: none;
}
.map-ticker-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  white-space: nowrap;
  animation: map-ticker-scroll 25s linear infinite;
}
@keyframes map-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.map-hero {
  position: relative;
  min-height: 220px;
  background: #080808;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 4px 4px 0 rgba(212, 43, 43, 0.3);
  margin-bottom: 12px;
  overflow: hidden;
}
.map-hero-realtime {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
}
.map-hero-realtime.leaflet-container {
  font-family: var(--font-body);
  border-radius: 8px;
  background: #080808;
}
.map-hero-popup .leaflet-popup-content-wrapper {
  background: #161616 !important;
  border: 1px solid #F5C518 !important;
  box-shadow: 4px 4px 0 rgba(212,43,43,0.3) !important;
}
.map-hero-leaflet-marker { border: none !important; background: none !important; }
.map-hero.map-hero--realtime .map-hero-realtime { display: block; }
.map-hero.map-hero--realtime .map-radar-layer { display: none; }
.map-radar-layer { position: absolute; inset: 0; pointer-events: none; }
.map-radar-layer .map-pin-wrap { pointer-events: auto; }
.map-radar-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61,190,61,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,190,61,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.map-radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3DBE3D 50%, transparent);
  opacity: 0.6;
  transform-origin: center center;
  animation: map-sweep 3s linear infinite;
}
@keyframes map-sweep {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.map-radar-pings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.map-radar-pings .ping {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid #3DBE3D;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: map-ping 2.4s ease-out infinite;
}
.map-radar-pings .ping:nth-child(2) { animation-delay: 0.8s; }
.map-radar-pings .ping:nth-child(3) { animation-delay: 1.6s; }
@keyframes map-ping {
  0% { width: 20px; height: 20px; opacity: 0.5; }
  100% { width: 180px; height: 180px; opacity: 0; }
}
.map-roads { position: absolute; inset: 0; pointer-events: none; }
.map-roads .road {
  position: absolute;
  background: rgba(245, 197, 24, 0.4);
  transform-origin: left center;
}
.map-roads .road.h { height: 2px; }
.map-roads .road.v { width: 2px; height: 80px; }
.map-markers { position: absolute; inset: 0; pointer-events: none; }
.map-markers .marker {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.map-coord {
  position: absolute;
  font-size: 0.65rem;
  color: var(--muted);
  font-family: var(--font-body);
  z-index: 2;
}
.map-coord-tl { top: 6px; left: 8px; }
.map-coord-br { bottom: 6px; right: 8px; }
.map-zoom-btns {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 3;
}
.map-zoom-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  background: #F5C518;
  color: #080808;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 #a08010;
  cursor: pointer;
}
.map-pin-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
}
.map-pin {
  position: relative;
  width: 28px;
  height: 36px;
  margin: 0 auto 4px;
  background: #F5C518;
  clip-path: polygon(50% 0%, 100% 38%, 100% 100%, 50% 85%, 0 100%, 0 38%);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
}
.map-pin::after {
  content: "★";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.9rem;
  color: #080808;
}
.map-pin-label {
  font-size: 0.65rem;
  color: #F0EDE0;
  font-family: var(--font-body);
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-info-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--glass-border);
  border-top: 1px solid var(--glass-border);
  padding: 8px;
  background: var(--card-bg);
}
.map-info-strip .cell {
  padding: 4px 6px;
}
.map-info-strip .cell-label {
  font-size: 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.map-info-strip .cell-value { font-size: 0.75rem; color: #F0EDE0; }
.map-info-strip .cell-value.status { color: #5EE05E; }
.map-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.map-actions .map-action-btn {
  padding: 12px;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.map-actions .map-action-btn.primary {
  background: #F5C518;
  color: #080808;
  box-shadow: 3px 3px 0 #a08010;
}
.map-actions .map-action-btn.secondary {
  background: var(--card-bg);
  color: #F0EDE0;
  border: 1px solid var(--glass-border);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}
.map-section-title {
  font-family: var(--font-display) !important;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: #D42B2B;
  margin: 12px 0 8px;
  padding: 0;
}
/* GTA HUD contact list */
.map-contact-card.contact-gta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@keyframes contact-gta-slide-in {
  from { transform: translateX(-18px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.map-contact-card.contact-gta .contact-gta-item {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  width: 100%;
  background: #141a10;
  border: 1px solid rgba(61,190,61,0.18);
  border-left-width: 3px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  text-align: left;
  font-family: var(--font-body);
  position: relative;
  transition: opacity 0.2s ease, transform 0.2s ease;
  animation: contact-gta-slide-in 0.4s ease forwards;
}
.map-contact-card.contact-gta .contact-gta-item:nth-child(1) { animation-delay: 0s; }
.map-contact-card.contact-gta .contact-gta-item:nth-child(2) { animation-delay: 0.07s; }
.map-contact-card.contact-gta .contact-gta-item:nth-child(3) { animation-delay: 0.14s; }
.map-contact-card.contact-gta .contact-gta-item:nth-child(4) { animation-delay: 0.21s; }
.map-contact-card.contact-gta .contact-gta-item:nth-child(5) { animation-delay: 0.28s; }
.map-contact-card.contact-gta .contact-gta-item:nth-child(6) { animation-delay: 0.35s; }
.map-contact-card.contact-gta .contact-gta-item:active {
  transform: scale(0.975) translateX(2px);
}
.map-contact-card.contact-gta .contact-gta-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(61,190,61,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.map-contact-card.contact-gta .contact-gta-item:active::after {
  opacity: 1;
}
.contact-gta-item .contact-gta-icon-box {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d3b0d;
  border-right: 1px solid rgba(61,190,61,0.22);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  transition: transform 0.25s ease, filter 0.25s ease, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.contact-gta-item:hover .contact-gta-icon-box {
  transform: scale(1.12);
  background: var(--contact-hover-bg, #163d16) !important;
  border-color: var(--contact-hover-border, rgba(61,190,61,0.28)) !important;
  box-shadow: var(--contact-hover-glow, 0 0 12px rgba(61,190,61,0.3));
  color: var(--contact-accent, #3DBE3D);
}
.contact-gta-item .contact-gta-icon-box span {
  color: inherit;
  filter: drop-shadow(0 0 2px currentColor);
}
.contact-gta-item:hover .contact-gta-icon-box span {
  filter: drop-shadow(0 0 4px currentColor);
}
.contact-gta-item .contact-gta-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(61,190,61,0.18), transparent);
  flex-shrink: 0;
}
.contact-gta-item .contact-gta-text {
  flex: 1;
  min-width: 0;
  padding: 12px 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-gta-item .contact-gta-name {
  font-weight: 700;
  color: #F0EDE0;
  font-size: 0.95rem;
}
.contact-gta-item .contact-gta-value {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.contact-gta-item .contact-gta-arrow {
  font-family: var(--font-display);
  font-size: 20px;
  color: rgba(61,190,61,0.3);
  padding: 0 16px 0 8px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.contact-gta-item:hover .contact-gta-arrow {
  color: var(--accent);
}
.contact-gta-item .contact-gta-badge {
  position: absolute;
  top: 8px;
  right: 28px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 2px;
  padding: 2px 6px;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
  background: rgba(61,190,61,0.2);
  color: rgba(240,237,224,0.9);
  opacity: 0;
  transition: opacity 0.2s;
}
.contact-gta-item:hover .contact-gta-badge {
  opacity: 1;
}

.map-contact-card .map-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  border-radius: 8px;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.15);
}
.map-contact-row .map-contact-icon-wrap {
  flex: 0 0 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  border-radius: 8px;
}
.map-contact-row .map-contact-text { flex: 1; min-width: 0; }
.map-contact-row .map-contact-name { font-weight: 700; color: #F0EDE0; font-size: 0.9rem; }
.map-contact-row .map-contact-value { font-size: 0.8rem; color: var(--muted); }
.map-contact-row .map-contact-arrow { color: var(--muted); flex-shrink: 0; }
.map-locations-list { display: flex; flex-direction: column; gap: 12px; }
.map-location-card {
  position: relative;
  padding: 14px;
  padding-left: 14px;
  border-left: 4px solid;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-left-width: 4px;
  box-shadow: 4px 4px 0 rgba(212, 43, 43, 0.25);
}
.map-location-card.muted { opacity: 0.65; }
.map-location-card[data-action="map-location"] { cursor: pointer; }
.map-location-card .loc-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61,190,61,0.15);
  border: 1px solid var(--glass-border);
  margin-bottom: 10px;
  font-size: 1.4rem;
}
.map-location-card .loc-name { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.05em; color: #F0EDE0; margin: 0 0 4px; text-transform: uppercase; }
.map-location-card .loc-address { font-size: 0.8rem; color: var(--muted); margin: 0 0 10px; white-space: pre-line; }
.map-location-card .loc-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 8px;
}
.map-location-card .loc-status-badge.primary { background: #3DBE3D; color: #080808; }
.map-location-card .loc-status-badge.secondary { background: #3DBE3D; color: #080808; }
.map-location-card .loc-status-badge.muted { background: #333; color: var(--muted); }
.map-location-card .loc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--glass-border);
}
.map-location-card .loc-stat-value { font-size: 0.85rem; font-weight: 700; color: #F0EDE0; }
.map-location-card .loc-stat-value.has-color { color: inherit; }
.map-location-card .loc-stat-label { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.map-hours-wrap { margin-bottom: 1rem; }
.map-hours-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #F5C518;
  color: #080808;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 0;
}
.map-hours-schedule { border: 1px solid var(--glass-border); border-top: none; }
.map-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.9rem;
}
.map-hours-row:last-child { border-bottom: none; }
.map-hours-row.today { background: rgba(245, 197, 24, 0.1); color: #F5C518; }
.map-hours-row.today .map-hours-time { color: #3DBE3D; }
.map-hours-row .map-hours-time .open-dot { color: #3DBE3D; margin-right: 4px; }
.map-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 10px 20px;
  background: #3DBE3D;
  color: #080808;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.map-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ========== ПРОФИЛЬ (PROFILE VIEW) ========== */
.profile-view { padding-bottom: 1rem; }
.profile-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 12px;
}
.profile-view-title {
  margin: 0;
  font-family: var(--font-display) !important;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  color: #F5C518;
  text-shadow: 1px 1px 0 #D42B2B, 2px 2px 0 rgba(0,0,0,0.4);
}
.profile-view-title .prefix { color: #D42B2B; }
.profile-settings-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.25);
  cursor: pointer;
}
.profile-level-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: #D42B2B;
  border-top: 2px solid #F5C518;
  border-bottom: 2px solid #F5C518;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #F0EDE0;
}
.profile-level-sep { color: #F5C518; margin: 0 4px; }
.profile-xp-next { margin-left: auto; }
.profile-player-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--card-bg);
  border: 2px solid var(--glass-border);
  border-left: 5px solid #3DBE3D;
  box-shadow: 6px 6px 0 rgba(212,43,43,0.3);
  margin-bottom: 12px;
}
.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.profile-avatar.profile-avatar-hex {
  width: 80px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61,190,61,0.15);
  border: 3px solid #3DBE3D;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  font-size: 2rem;
  color: #3DBE3D;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}
.profile-avatar.has-image {
  background-size: cover;
  background-position: center;
  color: transparent;
}
.profile-level-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  background: #D42B2B;
  color: #fff;
  border-radius: 8px;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
}
.profile-details { flex: 1; min-width: 0; }
.profile-identified {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0 0 4px;
}
.profile-identified::before { color: #3DBE3D; }
.profile-name {
  font-family: var(--font-display) !important;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: #F0EDE0;
  margin: 0 0 4px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.4);
}
.profile-id-line { font-size: 0.75rem; color: var(--muted); margin: 0 0 8px; }
.profile-tier-pill {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 10px;
  background: #333;
  border: 1px solid #F5C518;
  color: #F5C518;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}
.profile-progress-block { margin-bottom: 10px; }
.profile-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  font-size: 0.75rem;
}
.profile-progress-label { color: var(--muted); }
.profile-progress-value { color: #F0EDE0; font-weight: 700; }
.profile-progress-bar {
  height: 8px;
  background: #333;
  border: 1px solid var(--glass-border);
  overflow: hidden;
}
.profile-progress-fill {
  height: 100%;
  background: #3DBE3D;
  width: 0%;
  transition: width 0.3s ease;
}
.profile-wanted-block { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-wanted-label { font-size: 0.75rem; color: var(--muted); }
.profile-wanted-stars {
  display: flex;
  gap: 2px;
  font-size: 1rem;
  color: #333;
}
.profile-wanted-stars .star.filled { color: #F5C518; }
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.profile-stat {
  padding: 12px 8px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-top: 4px solid;
  text-align: center;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}
.profile-stat--red { border-top-color: #D42B2B; }
.profile-stat--green { border-top-color: #3DBE3D; }
.profile-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #F0EDE0;
  margin-bottom: 4px;
}
.profile-stat-value .currency { color: #3DBE3D; }
.profile-stat-label { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; }
.profile-section-title {
  font-family: var(--font-display) !important;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: #3DBE3D;
  margin: 12px 0 8px;
  padding: 0;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}
.profile-section-title .prefix { color: #D42B2B; }
.profile-bonus-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #F5C518;
  color: #080808;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  box-shadow: 3px 3px 0 #a08010;
}
.profile-bonus-banner .profile-bonus-wanted-stars {
  display: flex;
  gap: 2px;
  font-size: 1rem;
  color: #333;
}
.profile-bonus-banner .profile-bonus-wanted-stars .star.filled { color: #080808; }
.profile-bonus-main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  margin-bottom: 10px;
  box-shadow: 4px 4px 0 rgba(212,43,43,0.25);
}
.profile-bonus-balance-wrap { flex: 1; text-align: center; }
.profile-bonus-available-label { font-size: 0.7rem; color: var(--muted); margin: 0 0 4px; text-transform: uppercase; }
.profile-bonus-balance {
  font-family: var(--font-display) !important;
  font-size: 1.75rem;
  color: #F0EDE0;
  margin: 0;
}
.profile-bonus-balance .currency { color: #3DBE3D; }
.profile-bonus-qr-btn {
  padding: 12px 16px;
  background: transparent;
  border: 2px solid #F5C518;
  color: #F0EDE0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
  cursor: pointer;
}
.profile-bonus-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.profile-bonus-stat {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  text-align: center;
  font-size: 0.8rem;
}
.profile-bonus-stat-dot { color: #3DBE3D; margin-right: 4px; }
.profile-bonus-stat-value { display: block; font-weight: 700; color: #F0EDE0; margin-bottom: 2px; }
.profile-bonus-stat-value.profile-bonus-currency .currency { color: #3DBE3D; }
.profile-bonus-stat-label { font-size: 0.65rem; color: var(--muted); }
/* Profile gang section */
.profile-gang-card {
  background: var(--card);
  border: 1px solid rgba(245,197,24,0.2);
  border-left: 3px solid #F5C518;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.profile-gang-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.profile-gang-gang-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #F5C518;
  letter-spacing: 0.06em;
}
.profile-gang-code {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.profile-gang-members-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.profile-gang-member {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}
.profile-gang-role { width: 1.2rem; text-align: center; }
.profile-gang-name { flex: 1; color: var(--ink); }
.profile-gang-stats { font-size: 0.75rem; color: var(--muted); }
.profile-gang-footer {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--glass-border);
  padding-top: 8px;
}
.profile-gang-footer strong { color: var(--ink); }

.profile-section { margin-bottom: 16px; }
.profile-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.profile-section-head h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  margin: 0;
}
