/* DOSYA YOLU: public_html/live/assets/styles.css */
/* BENİ ÇEK LIVE — Premium Light Theme */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* Light theme colors */
  --bg: #f0f2f7;
  --bg-2: #e8ebf2;
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --surface-3: rgba(255,255,255,0.7);
  --border: rgba(0,0,0,0.07);
  --border-2: rgba(0,0,0,0.12);
  --text: #0f1117;
  --text-2: #3d4358;
  --text-3: #7b82a0;
  --muted: #9198b5;

  /* Brand colors */
  --blue: #1a56ff;
  --blue-light: #4d7dff;
  --blue-bg: rgba(26,86,255,0.08);
  --blue-border: rgba(26,86,255,0.2);
  --yellow: #f5a623;
  --yellow-bg: rgba(245,166,35,0.1);
  --green: #00b87a;
  --green-bg: rgba(0,184,122,0.1);
  --green-border: rgba(0,184,122,0.25);
  --red: #f03e3e;
  --red-bg: rgba(240,62,62,0.08);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-blue: 0 8px 32px rgba(26,86,255,0.2);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
}

/* Dark theme */
[data-theme="dark"] {
  --bg: #070b14;
  --bg-2: #0d1220;
  --surface: #111827;
  --surface-2: #1a2235;
  --surface-3: rgba(17,24,39,0.8);
  --border: rgba(255,255,255,0.07);
  --border-2: rgba(255,255,255,0.12);
  --text: #f4f6ff;
  --text-2: #b8c0d8;
  --text-3: #6b7599;
  --muted: #4d5470;
  --blue: #4d7dff;
  --blue-light: #7aa3ff;
  --blue-bg: rgba(77,125,255,0.12);
  --blue-border: rgba(77,125,255,0.25);
  --yellow: #f5a623;
  --yellow-bg: rgba(245,166,35,0.12);
  --green: #00d68f;
  --green-bg: rgba(0,214,143,0.1);
  --green-border: rgba(0,214,143,0.25);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; }
button { font: inherit; }

code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--blue-bg);
  color: var(--blue);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Page layout */
.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(26,86,255,0.06), transparent),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(245,166,35,0.05), transparent);
  z-index: 0;
}

[data-theme="dark"] .page-glow {
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(26,86,255,0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(245,166,35,0.08), transparent);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 12px 12px 32px;
  box-sizing: border-box;
}

/* Navbar */
.page-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 12px;
  margin-bottom: 4px;
}

.page-navbar__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-navbar__logo {
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.page-navbar__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.page-navbar__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text-2);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.theme-toggle:hover {
  background: var(--surface-2);
  transform: scale(1.05);
}

/* Top card — hero */
.top-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.top-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--yellow), var(--blue));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.top-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* Brand pill */
.pill-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  color: var(--blue);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.pill-brand--small { font-size: 9px; padding: 4px 8px; }

.pill-brand__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 6px var(--blue);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Hero text */
.hero-title {
  margin: 12px 0 6px;
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.hero-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
}

/* Stats */
.hero-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin-top: 16px;
}

.stat-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.stat-box__label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.stat-box__value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat-box--mini { padding: 10px 12px; }
.stat-box__value--mini { font-size: 16px; margin-top: 3px; }

/* Progress */
.progress-wrap { margin-top: 16px; }

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-2);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-bar__fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: progressSheen 2.5s ease infinite;
}

@keyframes progressSheen {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Status spotlight */
.status-spotlight {
  margin-top: 16px;
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(135deg, var(--blue-bg), transparent);
  border: 1px solid var(--blue-border);
  position: relative;
  overflow: hidden;
}

.status-spotlight__glow {
  position: absolute;
  right: -20px; top: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(26,86,255,0.12), transparent 70%);
  pointer-events: none;
}

.status-spotlight__eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}

.status-spotlight__title {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.status-spotlight__text {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* Content grid */
.content-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.left-column, .right-column {
  width: 100% !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Map card */
.map-card {
  position: relative !important;
  min-height: 420px !important;
  height: 420px !important;
  overflow: hidden !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border) !important;
  background: #e8edf5 !important;
  box-shadow: var(--shadow-lg) !important;
}

[data-theme="dark"] .map-card {
  background: #0d1525 !important;
}

#leafletMap {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  right: 0 !important; bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.map-top-overlay { display: none !important; }

.map-bottom-overlay {
  position: absolute !important;
  left: 10px !important; right: 10px !important; bottom: 10px !important;
  z-index: 420 !important;
  pointer-events: auto !important;
}

.map-bottom-overlay .driver-card {
  background: var(--surface-3) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border-2) !important;
  border-radius: var(--radius) !important;
  padding: 12px !important;
  box-shadow: var(--shadow-lg) !important;
}

/* Map float button */
.map-float-btn {
  position: absolute !important;
  top: 10px !important; right: 10px !important;
  z-index: 440 !important;
  width: 40px !important; height: 40px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  background: rgba(255,255,255,0.9) !important;
  backdrop-filter: blur(10px) !important;
  color: var(--text) !important;
  font-size: 18px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: var(--shadow) !important;
  transition: transform 0.2s !important;
}

.map-float-btn:hover { transform: scale(1.05) !important; }

/* Fullscreen */
.fullscreen-close {
  position: absolute !important;
  top: 10px !important; right: 10px !important;
  z-index: 450 !important;
  width: 40px !important; height: 40px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  background: rgba(255,255,255,0.9) !important;
  backdrop-filter: blur(10px) !important;
  color: var(--text) !important;
  font-size: 22px !important;
  cursor: pointer !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: var(--shadow) !important;
}

.map-card.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  z-index: 9999 !important;
  border-radius: 0 !important;
  min-height: 100dvh !important;
}

.map-card.is-fullscreen #leafletMap {
  height: 100dvh !important;
}

.map-card.is-fullscreen .fullscreen-close {
  display: flex !important;
}

.map-card.is-fullscreen .map-float-btn {
  display: none !important;
}

/* Focus button */
#focusBtn {
  position: absolute !important;
  top: 58px !important; right: 10px !important;
  z-index: 440 !important;
  width: 40px !important; height: 40px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  background: rgba(255,255,255,0.9) !important;
  backdrop-filter: blur(10px) !important;
  color: var(--text) !important;
  font-size: 16px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: var(--shadow) !important;
}

/* Driver card */
.driver-card {
  border-radius: var(--radius) !important;
  padding: 14px !important;
}

.driver-card__head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.driver-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.driver-meta { min-width: 0; flex: 1; }

.driver-meta__top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.driver-meta__top strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.status-chip {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.driver-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 12px;
}

.driver-grid {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.driver-action {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.driver-action:hover { background: var(--bg-2); }

.driver-action--primary {
  background: var(--blue) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: var(--shadow-blue) !important;
}

.driver-action--primary:hover {
  background: var(--blue-light) !important;
}

/* Info cards */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.info-card--amber {
  background: linear-gradient(135deg, rgba(245,166,35,0.06), var(--surface));
  border-color: rgba(245,166,35,0.2);
}

.info-card--green {
  background: linear-gradient(135deg, var(--green-bg), var(--surface));
  border-color: var(--green-border);
}

.info-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-size: 20px;
  flex-shrink: 0;
}

.info-icon--amber { background: var(--yellow-bg); }
.info-icon--pink { background: rgba(244,114,182,0.1); }
.info-icon--green { background: var(--green-bg); }

.info-card__eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-card__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-top: 2px;
}

/* Notice box */
.notice-box {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 14px;
  line-height: 1.7;
  font-size: 14px;
  color: var(--text-2);
}

/* Lower grid */
.lower-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

/* Support card slider */
.support-box-text {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 12px;
}

.slide-call { margin-top: 0; }

.slide-track {
  position: relative;
  height: 56px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--green-border);
  background: var(--green-bg);
  cursor: pointer;
}

.slide-number {
  position: absolute;
  left: 72px; right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.slide-thumb {
  position: absolute;
  left: 5px; top: 5px;
  width: 46px; height: 46px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(0,184,122,0.35);
  cursor: grab;
  user-select: none;
}

/* Photo card */
.photo-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
}

.photo-module { display: grid; gap: 12px; }

.photo-intro-box {
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
}

.photo-intro-box__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.photo-intro-box__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
}

.photo-intro-box__text strong { color: var(--blue); font-weight: 800; }

.photo-gender-box {
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.photo-gender-box__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.photo-gender-box__text {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  margin-bottom: 10px;
}

.photo-gender-options { display: flex; gap: 8px; flex-wrap: wrap; }

.photo-gender-btn {
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.photo-gender-btn.active {
  background: var(--blue);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.photo-main-btn, .photo-secondary-btn, .photo-download-btn, .photo-share-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.photo-main-btn {
  width: 100%;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--blue);
  box-shadow: var(--shadow-blue);
  transition: all 0.2s;
}

.photo-main-btn:hover { background: var(--blue-light); transform: translateY(-1px); }

.photo-secondary-btn {
  flex: 1;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  transition: all 0.2s;
}

.photo-inline-preview {
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.photo-inline-preview__img {
  width: 100%;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  max-height: 260px;
}

.photo-inline-preview__actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* Photo composer modal */
.photo-composer-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.photo-composer-modal.hidden { display: none; }

.photo-composer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(12px);
}

.photo-composer-sheet {
  position: relative;
  z-index: 2;
  width: min(100vw, 560px);
  height: 100dvh;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  padding: 18px 16px 16px;
}

.photo-composer-close {
  position: absolute;
  top: 10px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-composer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 52px;
  margin-bottom: 14px;
}

.photo-composer-topbar__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.photo-download-btn {
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid var(--border-2);
  cursor: pointer;
}

.photo-composer-canvas-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 8px 0 14px;
}

.photo-canvas {
  width: 100%;
  max-width: 420px;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.photo-share-bar { display: grid; gap: 10px; }

.photo-share-btn {
  width: 100%;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  cursor: pointer;
  transition: all 0.2s;
}

.photo-share-btn--wa {
  background: #25d366;
  border-color: transparent;
  color: #fff;
}

/* Side cards */
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.side-card--blue {
  background: linear-gradient(135deg, var(--blue-bg), var(--surface));
  border-color: var(--blue-border);
}

.side-card__title {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.side-card__text {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
  margin-top: 8px;
}

/* Rating */
.rating-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.rating-star {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
  font-size: 20px;
  transition: all 0.2s;
}

.rating-star.is-active {
  border-color: rgba(245,166,35,0.3);
  background: var(--yellow-bg);
  color: var(--yellow);
  cursor: pointer;
}

.rating-star.is-clickable {
  cursor: pointer;
}

.rating-star.is-clickable:hover {
  background: var(--yellow-bg);
  color: var(--yellow);
  transform: scale(1.1);
}

/* Revision list */
.revision-list {
  margin: 12px 0 0;
  padding-left: 16px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.8;
}

/* Games card */
.games-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.games-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.games-card__title {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

.games-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--yellow-bg);
  background: var(--yellow-bg);
  color: var(--yellow);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 800;
}

/* Mobile-only game shell */
.games-mobile-shell {
  width: 100%;
  max-width: 100%;
}

/* Leaflet overrides */
.leaflet-container { background: #e8edf5; }
[data-theme="dark"] .leaflet-container { background: #0d1525; }
.leaflet-control-attribution { display: none; }
.leaflet-top, .leaflet-bottom { z-index: 200; }

.custom-marker {
  width: 20px; height: 20px;
  border-radius: 999px;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.custom-marker.passenger { background: var(--blue); }
.custom-marker.destination { background: var(--yellow); }

.custom-marker.driver {
  width: 28px; height: 28px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 3px solid var(--blue);
  box-shadow: 0 4px 12px rgba(26,86,255,0.35);
}

/* Fun card */
.fun-card {
  position: relative;
  overflow: hidden;
}

.fun-copy-box {
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.campaign-copy { display: grid; gap: 10px; }

.campaign-copy__lead {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
}

.campaign-copy__lead strong { color: var(--text); font-weight: 800; }

.campaign-scroll-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  min-height: 50px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: var(--blue);
  box-shadow: var(--shadow-blue);
  transition: all 0.2s;
}

.campaign-scroll-btn:hover { background: var(--blue-light); transform: translateY(-1px); }
.campaign-scroll-btn:active { transform: scale(0.99); }

/* Game modal overlay fix */
.bc-game-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}

.bc-game-modal[hidden] { display: none !important; }

.bc-game-modal__backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.65) !important;
  backdrop-filter: blur(12px) !important;
}

.bc-game-modal__dialog {
  position: relative !important;
  z-index: 1 !important;
  width: min(780px, calc(100vw - 24px)) !important;
  max-height: calc(100dvh - 24px) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: var(--surface) !important;
  border: 1px solid var(--border-2) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
}

.bc-game-modal__body {
  padding: 10px 20px 22px !important;
  overflow-y: auto !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

/* Lifecycle */
.lifecycle-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  opacity: 0.5;
  transition: all 0.3s;
}

.lifecycle-item.is-active {
  opacity: 1;
  border-color: var(--blue-border);
  background: var(--blue-bg);
}

.lifecycle-item__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.lifecycle-item__subtitle {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

/* Connection info */
#connectionInfo {
  margin: 0;
  padding-left: 16px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.8;
  font-family: var(--font-mono);
}

/* Utility */
.hidden { display: none !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 999px; }

/* Mobile */
@media (max-width: 768px) {
  .page-shell { max-width: 100%; padding: 10px 10px 24px; }

  .map-card {
    min-height: 380px !important;
    height: 380px !important;
  }

  .driver-grid { grid-template-columns: 1fr 1fr !important; }
}

/* Smooth theme transitions */
.top-card, .info-card, .side-card, .games-card,
.stat-box, .driver-card, .notice-box, .photo-gender-box,
.photo-intro-box, .status-spotlight {
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
#leafletMap {
  width: 100% !important;
  height: 430px !important;
  min-height: 430px !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  background: #07101f !important;
}

#mapCard,
#mapCard * {
  backface-visibility: visible !important;
}

#mapCard {
  transform: none !important;
}

.leaflet-container {
  width: 100% !important;
  height: 100% !important;
  background: #07101f !important;
}

.driver-action-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  width: 100% !important;
  align-items: center !important;
}

.driver-call-btn-fixed,
.driver-focus-btn {
  height: 38px !important;
  border-radius: 12px !important;
  border: 0 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.driver-call-btn-fixed {
  background: linear-gradient(135deg, #477cff, #3478f6) !important;
  color: #fff !important;
}

.driver-focus-btn {
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  min-width: 0 !important;
}