/* ============================================================
   STITCH DESIGN SYSTEM — Sociaera (Swarm/Foursquare Edition)
   Light mode · Check-in first · Gamification prominent
   ============================================================ */

/* ── CSS VARIABLES ────────────────────────────────────────── */
:root {
  /* Brand — Swarm exact hex'ler */
  --color-primary:       #F06D1F;
  --color-primary-hover: #D95E10;
  --color-primary-light: #FFA633;
  --color-primary-bg:    #FFF3EB;
  --color-mayorship:     #7A1D47;
  --color-coin:          #FFAD43;
  --color-success:       #16A34A;
  --color-danger:        #EF4444;
  --color-streak:        #F06D1F;
  --color-streak-alert:  #FF1154;

  /* Arkaplan */
  --bg-app:              #F5F4F0;
  --bg-card:             #FFFFFF;
  --bg-section:          #F8F7F5;
  --bg-input:            #F2F1EE;
  --border:              #E8E7E3;
  --border-light:        #F0EFEc;

  /* Metin */
  --text-1:              #1A1A1A;
  --text-2:              #5C5C5C;
  --text-3:              #A0A0A0;

  /* Kategori */
  --cat-restoran:        #F06D1F;
  --cat-kafe:            #92400E;
  --cat-bar:             #7C3AED;
  --cat-eglence:         #D97706;
  --cat-spor:            #DC2626;
  --cat-alisveris:       #2563EB;
  --cat-otel:            #4F46E5;
  --cat-saglik:          #DB2777;
  --cat-kultur:          #0D9488;
  --cat-diger:           #6B7280;

  /* Yapı */
  --radius-card:         16px;
  --radius-btn:          24px;
  --radius-pill:         100px;
  --radius-input:        12px;
  --shadow-card:         0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-card-hover:   0 4px 12px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-fab:          0 4px 16px rgba(240,109,31,0.40);

  /* Font */
  --font: 'Plus Jakarta Sans', 'Inter', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
}

/* ── BASE ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-app);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #ccc; }

/* ── TOP NAV ──────────────────────────────────────────────── */
.swarm-topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 2px solid #EBEBEB;
  padding: 10px 16px;
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}

.swarm-topnav-logo {
  font-weight: 800;
  font-size: 18px;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.swarm-topnav-search {
  flex: 1;
  background: var(--bg-input);
  border: 1.5px solid transparent;
  border-radius: var(--radius-input);
  padding: 8px 14px 8px 36px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-1);
  outline: none;
  transition: border-color 0.15s;
}
.swarm-topnav-search:focus {
  border-color: var(--color-primary);
  background: #fff;
}
.swarm-topnav-search::placeholder { color: var(--text-3); }

.swarm-topnav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.swarm-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: background 0.15s;
  text-decoration: none;
  position: relative;
}
.swarm-icon-btn:hover { background: var(--bg-section); }

.swarm-avatar-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: border-color 0.15s;
  flex-shrink: 0;
}
.swarm-avatar-btn:hover { border-color: var(--color-primary); }
.swarm-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* ── DARK MODE OVERRIDE — Tailwind'in OS dark mode'unu sıfırla ── */
@media (prefers-color-scheme: dark) {
  html, body { background: #F5F4F0 !important; color: #1A1A1A !important; }
  * { border-color: inherit; }
}

/* ── MAIN LAYOUT — CSS GRID ────────────────────────────── */
.swarm-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 16px 100px;
  align-items: start;
  box-sizing: border-box;
}

/* <style> tagları grid hücresi sayılmasın, full-width span yapsın */
.swarm-layout > style {
  grid-column: 1 / -1;
  display: block; /* tarayıcılar zaten gizler ama layout'tan çıkaralım */
  height: 0;
  overflow: hidden;
}

/* Section ve div içerikleri grid'in ilk hücresine oturur */
.swarm-layout > section,
.swarm-layout > div:not(.swarm-right-panel):not([class*="swarm-right"]) {
  min-width: 0;
}

/* Sol panel */
.swarm-left-sidebar {
  display: none;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 70px;
  max-height: calc(100vh - 86px);
  overflow-y: auto;
}

/* Sağ panel */
.swarm-right-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 70px;
  max-height: calc(100vh - 86px);
  overflow-y: auto;
}

@media (min-width: 1024px) {
  .swarm-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    padding: 24px 20px 100px;
  }
  .swarm-right-panel { display: flex; }
}

@media (min-width: 1200px) {
  .swarm-layout {
    grid-template-columns: 220px minmax(0, 1fr) 280px;
    max-width: 1240px;
  }
  .swarm-left-sidebar { display: flex; }
}

/* Eski flex feed wrapper — geriye dönük uyumluluk */
.swarm-feed {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* ── CARD ─────────────────────────────────────────────────── */
.swarm-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.swarm-card:hover { box-shadow: var(--shadow-card-hover); }

.swarm-card-body { padding: 16px; }
.swarm-card-body-sm { padding: 12px; }

/* ── SECTION HEADER ───────────────────────────────────────── */
.swarm-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-3);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── VENUE CARD ───────────────────────────────────────────── */
.venue-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s;
}
.venue-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}
.venue-card:active { transform: scale(0.99); }

.venue-card-img {
  position: relative;
  overflow: hidden;
  background: var(--bg-section);
  aspect-ratio: 16/10;
}
.venue-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.venue-card:hover .venue-card-img img { transform: scale(1.04); }

.venue-card-cat-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  border: 2px solid rgba(255,255,255,0.3);
}

.venue-card-checkin-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 3px;
}

.venue-card-status {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
}
.venue-card-status.open { color: var(--color-success); }
.venue-card-status.closed { color: var(--color-danger); }

.venue-card-info { padding: 12px 14px 14px; }
.venue-card-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.venue-card-cat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.venue-card-address {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── CHECK-IN CARD (Feed) ─────────────────────────────────── */
.checkin-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.checkin-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
}

.checkin-card-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
  position: relative;
}
.checkin-card-avatar img { width: 100%; height: 100%; object-fit: cover; }

.checkin-card-cat-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkin-card-meta { flex: 1; min-width: 0; }
.checkin-card-who {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.checkin-card-who strong { color: var(--text-1); font-weight: 700; }
.checkin-card-venue {
  font-weight: 800;
  font-size: 15px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.checkin-card-time {
  font-size: 11px;
  color: var(--text-3);
  flex-shrink: 0;
}

.checkin-card-photo {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.checkin-card-note {
  margin: 0 14px 10px;
  font-size: 13px;
  color: var(--text-2);
  font-style: italic;
  background: var(--bg-section);
  border-radius: 10px;
  padding: 8px 12px;
  line-height: 1.5;
}

.checkin-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 12px;
  border-top: 1px solid var(--border-light);
}

.checkin-card-venue-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}
.checkin-card-venue-link:hover { color: var(--color-primary); }

.checkin-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.checkin-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
  font-family: var(--font);
}
.checkin-action-btn:hover { color: var(--color-danger); }
.checkin-action-btn.liked { color: var(--color-danger); }

/* ── CATEGORY PILL ────────────────────────────────────────── */
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

/* ── GAMIFICATION WIDGETS ─────────────────────────────────── */
.streak-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFF3EB 0%, #FFF9F5 100%);
  border: 1.5px solid #FFD4B0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}

.coin-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFFBEB 0%, #FFFDF5 100%);
  border: 1.5px solid #FDE68A;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #92400E;
}

.rank-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #F5F3FF 0%, #FAF9FF 100%);
  border: 1.5px solid #DDD6FE;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #5B21B6;
}

.progress-bar-track {
  background: var(--bg-section);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
  width: 100%;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transition: width 0.4s ease;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(240,109,31,0.30);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 4px 16px rgba(240,109,31,0.40);
  transform: translateY(-1px);
}
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-section); color: var(--text-1); }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ── FAB (Floating Action Button) ────────────────────────── */
.swarm-fab {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-fab);
  z-index: 90;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.swarm-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(240,109,31,0.50);
}
.swarm-fab:active { transform: scale(0.96); }
.swarm-fab .material-symbols-outlined { font-size: 26px; }

@media (min-width: 1024px) {
  .swarm-fab {
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
  }
}

/* ── BOTTOM NAV (Mobile) ──────────────────────────────────── */
.swarm-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 60px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 1024px) {
  .swarm-bottom-nav { display: none; }
  .swarm-fab { bottom: 28px; }
  body { padding-bottom: 0; }
}

.swarm-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-3);
  flex: 1;
  height: 100%;
  transition: color 0.15s;
  font-size: 10px;
  font-weight: 600;
}
.swarm-nav-item.active { color: var(--color-primary); }
.swarm-nav-item:hover { color: var(--text-2); }
.swarm-nav-item .material-symbols-outlined { font-size: 22px; }
.swarm-nav-item.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
}

.swarm-nav-fab-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.swarm-nav-fab-inner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-fab);
  text-decoration: none;
  transition: transform 0.2s;
  margin-bottom: 8px;
}
.swarm-nav-fab-inner:active { transform: scale(0.93); }
.swarm-nav-fab-inner .material-symbols-outlined { font-size: 24px; }

/* ── RIGHT PANEL WIDGETS ──────────────────────────────────── */
.right-panel-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.right-panel-card-header {
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--border-light);
}
.right-panel-card-body { padding: 12px 14px; }

/* ── LEADERBOARD ──────────────────────────────────────────── */
.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.lb-row:hover { background: var(--bg-section); }

.lb-rank {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.lb-rank-1 { background: #FFD700; color: #7a4f00; }
.lb-rank-2 { background: #C0C0C0; color: #4a4a4a; }
.lb-rank-3 { background: #CD7F32; color: #fff; }
.lb-rank-other { background: var(--bg-section); color: var(--text-2); }

.lb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.lb-count {
  font-weight: 800;
  font-size: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  text-align: right;
}

/* ── PROFILE ──────────────────────────────────────────────── */
.profile-header {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.profile-banner {
  height: 140px;
  background: linear-gradient(135deg, #FFE0CC, #FFF3EB);
  overflow: hidden;
}
.profile-banner img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { padding: 0 16px 20px; }
.profile-avatar-wrap {
  margin-top: -44px;
  margin-bottom: 12px;
  position: relative;
  width: fit-content;
}
.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.profile-name { font-size: 20px; font-weight: 800; color: var(--text-1); }
.profile-tag { font-size: 14px; color: var(--text-3); margin-top: 2px; }
.profile-bio { font-size: 14px; color: var(--text-2); margin-top: 10px; line-height: 1.5; }

.profile-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border-light);
  margin-top: 16px;
}
.profile-stat {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-right: 1px solid var(--border-light);
}
.profile-stat:last-child { border-right: none; }
.profile-stat-num { font-size: 20px; font-weight: 800; color: var(--text-1); display: block; }
.profile-stat-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-3); }

.profile-gamification {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-section);
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.gamification-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ── TAB BAR ──────────────────────────────────────────────── */
.swarm-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  background: var(--bg-card);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.swarm-tabs::-webkit-scrollbar { display: none; }

.swarm-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color 0.15s;
}
.swarm-tab:hover { color: var(--text-2); }
.swarm-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ── SEARCH INPUT ─────────────────────────────────────────── */
.swarm-search-wrap {
  position: relative;
}
.swarm-search-wrap .material-symbols-outlined {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 18px;
  pointer-events: none;
}
.swarm-search {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 11px 14px 11px 40px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-1);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.swarm-search:focus { border-color: var(--color-primary); background: #fff; }
.swarm-search::placeholder { color: var(--text-3); }

/* ── FLASH / TOAST ────────────────────────────────────────── */
.flash-message {
  position: fixed;
  top: 70px;
  right: 16px;
  z-index: 9999;
  background: var(--text-1);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.20);
  animation: slideInRight 0.3s ease forwards;
  max-width: 320px;
  font-size: 13px;
  font-weight: 600;
}
.flash-message.flash-success { background: var(--color-success); }
.flash-message.flash-error { background: var(--color-danger); }
.flash-message.flash-info { background: #2563EB; }
.flash-hide { animation: slideOutRight 0.3s ease forwards !important; }
.flash-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  padding: 0;
  margin-left: auto;
}

@keyframes slideInRight {
  from { transform: translateX(110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(110%); opacity: 0; }
}

/* ── DAY HEADER (Feed) ────────────────────────────────────── */
.feed-day-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-3);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feed-day-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* ── EMPTY STATE ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-3);
}
.empty-state-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.4;
}
.empty-state-title { font-weight: 700; font-size: 16px; color: var(--text-2); margin-bottom: 6px; }
.empty-state-text { font-size: 14px; color: var(--text-3); }

/* ── PAGINATION ───────────────────────────────────────────── */
.swarm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 0;
}
.swarm-page-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-2);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: all 0.15s;
}
.swarm-page-btn:hover { color: var(--color-primary); }
.swarm-page-btn.active { background: var(--color-primary); color: #fff; }

/* ── AD CARD ──────────────────────────────────────────────── */
.ad-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}
.ad-card-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── REPORT MODAL ─────────────────────────────────────────── */
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── UTILITIES ────────────────────────────────────────────── */
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

.liked .material-symbols-outlined { font-variation-settings: 'FILL' 1; }

/* body padding for mobile bottom nav */
@media (max-width: 1023px) {
  body { padding-bottom: 60px; }
}

/* ── VENUE PICKER (Check-in modal) ───────────────────────── */
.venue-picker-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.12s;
}
.venue-picker-item:hover { background: var(--bg-section); }
.venue-picker-name { font-weight: 600; color: var(--text-1); font-size: 14px; }
.venue-picker-cat { font-size: 12px; color: var(--text-3); }

/* ── PREMIUM BADGE ────────────────────────────────────────── */
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #DBEAFE, #EDE9FE);
  color: #4F46E5;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #C7D2FE;
}

/* ── COMMENT ──────────────────────────────────────────────── */
.comment-item { display: flex; gap: 10px; padding: 8px 0; }
.comment-body { background: var(--bg-section); padding: 8px 12px; border-radius: 10px; flex: 1; }
.comment-author { font-weight: 700; color: var(--color-primary); font-size: 13px; text-decoration: none; }
.comment-text { font-size: 13px; color: var(--text-1); }
.comment-time { font-size: 11px; color: var(--text-3); margin-top: 3px; display: block; }

/* ── SPONSOR MARQUEE ──────────────────────────────────────── */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee { animation: marquee 14s linear infinite; }
.animate-marquee:hover { animation-play-state: paused; }

/* ── BACKWARD COMPAT — Eski cyberpunk class'ları light mode'a dönüştür ── */

/* Eski body class'ı */
body.bg-obsidian, body.font-body-sm { /* noop — overridden by body {} */ }

/* Scanlines & map overlay — kaldır */
.scanlines, .map-grid { display: none !important; }

/* glass-panel → white card */
.glass-panel,
.swarm-glass-card,
.glass-effect,
.receipt-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: var(--shadow-card) !important;
  backdrop-filter: none !important;
}

/* Eski Tailwind renk class compat */
.bg-surface-container,
.bg-surface-container\/60,
.bg-surface-container\/30 { background: var(--bg-section) !important; }
.bg-surface-container-highest,
.bg-surface-container-high { background: var(--border) !important; }
.bg-surface-container-low,
.bg-surface-container-lowest { background: var(--bg-card) !important; }
.bg-surface { background: var(--bg-card) !important; }
.bg-\[#131314\], .bg-\[#0b0c10\], .bg-\[#060a13\], .bg-obsidian { background: var(--bg-section) !important; }
.bg-cyber-dark, .bg-cyber-dark\/85 { background: #fff !important; }

/* Metin renkleri */
.text-on-surface { color: var(--text-1) !important; }
.text-on-surface-variant { color: var(--text-2) !important; }
.text-on-background { color: var(--text-1) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-primary-light) !important; }
.text-tertiary { color: #7C3AED !important; }
.text-\[#ffb778\], .text-\[#ff9100\], .text-\[#ff6a00\] { color: var(--color-primary) !important; }
.text-slate-400, .text-slate-500 { color: var(--text-3) !important; }
.text-slate-300, .text-slate-200 { color: var(--text-2) !important; }
.text-white { color: var(--text-1) !important; }

/* Border renkleri */
.border-outline-variant,
.border-outline-variant\/10,
.border-outline-variant\/20,
.border-outline-variant\/30,
.border-white\/5,
.border-white\/10,
.border-white\/20 { border-color: var(--border) !important; }
.border-cyber-border { border-color: var(--border) !important; }

/* Cyber orange → primary */
.border-primary { border-color: var(--color-primary) !important; }
.text-cyber-orange, .text-cyber-green { color: var(--color-primary) !important; }
.bg-primary { background: var(--color-primary) !important; }
.bg-primary-container { background: var(--color-primary-bg) !important; }
.text-on-primary { color: #fff !important; }
.text-on-primary-container { color: var(--color-primary) !important; }
.bg-secondary-container { background: #F0F9FF !important; }

/* Glow & shadow effects → sıfırla */
.shadow-neonOrange,
.shadow-neonCyan,
.shadow-\[0_0_20px_rgba\(255\,106\,0\,0\.2\)\],
.shadow-\[0_0_30px_rgba\(255\,106\,0\,0\.2\)\] { box-shadow: var(--shadow-card) !important; }

/* Neon gradients → neutral */
.bg-gradient-to-br.from-primary { background: var(--color-primary) !important; }
.hero-pattern { background: linear-gradient(135deg, #FFF3EB, #fff8f4) !important; }

/* btn-primary redef */
.btn-primary {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}

/* Stat pill compat */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  color: var(--text-2);
}

/* Ticket/receipt card compat */
.ticket-stamp-wrapper { display: none; }
.ticket-meta-grid { display: none; }

/* Level ring compat */
.level-ring-gold { background: linear-gradient(135deg, #FFD700, #FFA500); }
.level-ring-purple { background: linear-gradient(135deg, #7C3AED, #4F46E5); }
.level-ring-bronze { background: linear-gradient(135deg, #CD7F32, #B8722A); }

/* custom-scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* radio-log-container */
.radio-log-container { display: flex; flex-direction: column; gap: 6px; }

/* Pulse animations */
.streak-pulse { animation: streakPulse 2s ease-in-out infinite; }
@keyframes streakPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}

/* Cybermap markers → hidden */
.cybermap-marker-pulse { display: none; }

/* comment-input-inline */
.comment-input-inline {
  background: var(--bg-input);
  border: 1.5px solid transparent;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  color: var(--text-1);
  width: 100%;
}
.comment-input-inline:focus { border-color: var(--color-primary); }

.comment-send-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.comment-send-btn:hover { background: var(--color-primary); color: #fff; }

/* backdrop-blur compat → off */
.backdrop-blur-xl, .backdrop-blur-sm, .backdrop-blur { backdrop-filter: none !important; }

