/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --bg:        #0C0A0E;
  --bg2:       #12101A;
  --bg3:       #181620;
  --surface:   #1c1c30;
  --surface2:  #22223a;
  --border:    #2a2a44;
  --border2:   #33335a;
  --text:      #f0f0f8;
  --text2:     #a8a8c0;
  --text3:     #6e6e8a;
  --accent:    #E4007C;
  --accent2:   #F0339A;
  --accent-bg: rgba(228,0,124,0.10);
  --gold:      #FBCA0B;
  --gold2:     #ffe04a;
  --gold-bg:   rgba(251,202,11,0.1);
  --green:     #22c55e;
  --green-bg:  rgba(34,197,94,0.12);
  --blue:      #3b82f6;
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.4);
  --nav-bg:    rgba(10,10,20,0.88);
  --card-bg:   var(--surface);
  --map-tiles: https://basemaps.cartocdn.com/dark_all/{z}/{x}/{y}@2x.png;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="light"] {
  --bg:        #f4f4f9;
  --bg2:       #ececf2;
  --bg3:       #ffffff;
  --surface:   #ffffff;
  --surface2:  #f8f8fc;
  --border:    #dddde8;
  --border2:   #ccccdd;
  --text:      #12122a;
  --text2:     #5a5a72;
  --text3:     #8888a0;
  --accent:    #C2006A;
  --accent2:   #D6007A;
  --accent-bg: rgba(194,0,106,0.08);
  --gold:      #c89a00;
  --gold2:     #b38800;
  --gold-bg:   rgba(200,154,0,0.08);
  --green:     #16a34a;
  --green-bg:  rgba(22,163,74,0.08);
  --nav-bg:    rgba(244,244,249,0.92);
  --card-bg:   #ffffff;
  --shadow:    0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.08);
  --map-tiles: https://basemaps.cartocdn.com/light_all/{z}/{x}/{y}@2x.png;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition), color var(--transition);
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent2); }

img { max-width: 100%; display: block; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection { background: var(--accent); color: #fff; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border2); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
}

.nav-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
  transition: opacity var(--transition);
}
.nav-brand:hover { opacity: 0.85; }
.nav-brand .brand-icon {
  font-size: 24px;
  line-height: 1;
}
.nav-brand .brand-dot { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--text3);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--text); background: var(--surface2); }

.city-select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236e6e8a'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  transition: all var(--transition);
}
.city-select:hover { border-color: var(--border2); }
.city-select:focus { border-color: var(--accent); }

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 18px;
  transition: all var(--transition);
  color: var(--text3);
}
.theme-toggle:hover { background: var(--surface); color: var(--gold); }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 20px;
  color: var(--text2);
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-right {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
  }
  .nav-right.open { display: flex; }
  .nav-link { width: 100%; padding: 12px 14px; }
  .city-select { width: 100%; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.page {
  display: none;
  padding-bottom: 80px;
  animation: pageIn 0.35s ease;
}
.page.active { display: block; }

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 48px 0 48px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -64px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-bg) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.hero h1 .hl { color: var(--accent); }

/* Heading font-family */
.section-title, .detail-title, .modal-title, .nav-brand,
.city-card-name, .event-card-title, .comedian-card-name, .show-card-name {
  font-family: var(--font-heading);
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text2);
  font-weight: 400;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Search bar */
.search-wrap {
  max-width: 560px;
  margin: 0 auto 40px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: all var(--transition);
}
.search-input::placeholder { color: var(--text3); }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 16px;
  pointer-events: none;
}

/* Stats bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  color: var(--text3);
}
.stat-item .stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   CATEGORY PILLS
   ============================================================ */
.pills-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 0 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.pill:hover { border-color: var(--accent); color: var(--text); }
.pill.active {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-link:hover { color: var(--accent2); }

/* ============================================================
   EVENT CARDS
   ============================================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 480px) {
  .events-grid { grid-template-columns: 1fr; }
}

.event-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.event-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.event-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--accent-bg);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.event-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}
.event-price.free {
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  background: var(--green-bg);
  border-radius: 100px;
}

.event-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.event-card-venue {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 4px;
}

.event-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text3);
  margin-top: 12px;
}
.event-card-meta span { display: flex; align-items: center; gap: 4px; }

/* Source badges — subtle, small, informational */
.source-link { text-decoration: none; }
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 8px;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.source-badge:hover { opacity: 1; }
.source-badge.oficial     { background: rgba(34,197,94,0.08); color: var(--green); }
.source-badge.boletaje    { background: rgba(59,130,246,0.08); color: var(--blue); }
.source-badge.redes       { background: rgba(251,202,11,0.06); color: var(--gold); }
.source-badge.agregador   { background: rgba(59,130,246,0.06); color: var(--blue); }
.source-badge.gob         { background: rgba(34,197,94,0.08); color: var(--green); }
.source-badge.usuario     { background: var(--surface2); color: var(--text3); }
.source-badge.verificado  { background: rgba(34,197,94,0.08); color: var(--green); }
.source-badge.scraper     { background: var(--surface2); color: var(--text3); }

/* ============================================================
   VENUE CARDS
   ============================================================ */
.foros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.venue-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
}
.venue-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.venue-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.venue-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.venue-card-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
.venue-card-loc {
  font-size: 13px;
  color: var(--text3);
  margin-top: 2px;
}

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

.rating-display {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text3);
}
.rating-display .up { color: var(--green); }
.rating-display .down { color: var(--accent); }

.rating-bar {
  width: 48px;
  height: 4px;
  background: var(--accent-bg);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.rating-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.venue-event-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-bg);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ============================================================
   HORIZONTAL SCROLL ROW
   ============================================================ */
.hscroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin-bottom: 32px;
  scrollbar-width: none;
}
.hscroll-row::-webkit-scrollbar { display: none; }
.hscroll-row > * {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 280px;
}

/* ============================================================
   CITY CARDS
   ============================================================ */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.city-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.city-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.city-card-emoji { font-size: 36px; margin-bottom: 12px; }
.city-card-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.city-card-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text3);
}
.city-card-stats strong { color: var(--text); }

/* ============================================================
   CITY TABS
   ============================================================ */
.city-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 32px;
  scrollbar-width: none;
}
.city-tabs::-webkit-scrollbar { display: none; }

.city-tab {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.city-tab:hover { border-color: var(--accent); color: var(--text); }
.city-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============================================================
   DETAIL PAGES
   ============================================================ */
.detail-page { padding-top: 32px; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text3);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  transition: all var(--transition);
}
.back-btn:hover { color: var(--text); border-color: var(--border2); }

.detail-hero { margin-bottom: 36px; }

.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--accent-bg);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.detail-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.detail-venue-link {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text2);
  font-size: 15px;
  margin-top: 16px;
}
.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-meta-item .meta-icon { color: var(--text3); font-size: 16px; }

.detail-price-box {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 28px 0;
}
.detail-price-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
}
.detail-price-amount.free { color: var(--green); }
.detail-price-currency {
  font-size: 14px;
  font-weight: 500;
  color: var(--text3);
}

.detail-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text2);
  max-width: 700px;
  margin-bottom: 32px;
}

.info-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--gold-bg);
  border: 1px solid rgba(251,202,11,0.15);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 36px;
}

.detail-map {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 40px;
}

/* Venue detail specifics */
.venue-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 32px;
}
.venue-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  transition: all var(--transition);
}
.venue-link-btn:hover { border-color: var(--accent); color: var(--accent); }

.claim-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  transition: all var(--transition);
  margin-top: 24px;
}
.claim-btn:hover { border-color: var(--gold); color: var(--gold); }

.claim-msg {
  display: none;
  margin-top: 12px;
  padding: 14px 20px;
  background: var(--gold-bg);
  border: 1px solid rgba(251,202,11,0.15);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gold);
}
.claim-msg.show { display: block; }

/* ============================================================
   MAP
   ============================================================ */
.map-container {
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 40px;
}

.maplibregl-popup-content {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 16px !important;
  box-shadow: var(--shadow) !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
}
.maplibregl-popup-tip { border-top-color: var(--surface) !important; }
.maplibregl-popup-close-button { color: var(--text3) !important; font-size: 18px !important; }

.popup-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.popup-cat { font-size: 12px; color: var(--text3); }
.popup-rating { font-size: 12px; color: var(--text3); margin-top: 4px; }

/* ============================================================
   LOADING & EMPTY STATES
   ============================================================ */
.loading-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text3);
}

.loader {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text3);
}
.empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state-title { font-size: 18px; font-weight: 600; color: var(--text2); margin-bottom: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text3);
  font-size: 13px;
  margin-top: 40px;
}
.footer a { color: var(--text3); }
.footer a:hover { color: var(--accent); }

/* ============================================================
   UTILITIES
   ============================================================ */
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-32 { margin-bottom: 32px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .hero { padding: 48px 0 32px; }
  .hero-sub { margin-bottom: 28px; }
  .stats-bar { gap: 20px; }
  .stat-item .stat-num { font-size: 18px; }
  .events-grid { grid-template-columns: 1fr; gap: 12px; }
  .foros-grid { grid-template-columns: 1fr; gap: 12px; }
  .cities-grid { grid-template-columns: 1fr; gap: 12px; }
  .comedians-grid { grid-template-columns: 1fr; gap: 12px; }
  .shows-grid { grid-template-columns: 1fr; gap: 12px; }
  .detail-title { margin-bottom: 8px; }
  .detail-meta { gap: 12px; }
  .map-container { height: 300px; }
  .detail-map { height: 220px; }
}

/* ============================================================
   COMEDIAN CARDS
   ============================================================ */
.comedians-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.comedian-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
}
.comedian-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.comedian-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.comedian-card-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.comedian-card-city {
  font-size: 13px;
  color: var(--text3);
  margin-top: 2px;
}

.comedian-card-desc {
  font-size: 13px;
  color: var(--text2);
  margin-top: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comedian-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tier-badge.mega { background: var(--gold-bg); color: var(--gold); border: 1px solid rgba(251,202,11,0.2); }
.tier-badge.large { background: rgba(192,192,192,0.1); color: #c0c0c0; border: 1px solid rgba(192,192,192,0.2); }
.tier-badge.medium { background: rgba(205,127,50,0.1); color: #cd7f32; border: 1px solid rgba(205,127,50,0.2); }
.tier-badge.small { background: var(--surface2); color: var(--text3); border: 1px solid var(--border); }

/* Profile status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.status-badge.public { background: var(--surface2); color: var(--text3); border: 1px solid var(--border); }
.status-badge.member { background: var(--accent-bg); color: var(--accent); border: 1px solid rgba(228,0,124,0.2); }
.status-badge.verified { background: var(--green-bg); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }

.comedian-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.ig-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text3);
  transition: color var(--transition);
}
.ig-link:hover { color: var(--accent); }

/* ============================================================
   COMEDIAN DETAIL -- SOCIAL LINKS
   ============================================================ */
.social-links-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 24px;
}
.social-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  transition: all var(--transition);
}
.social-link-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   ROAST WALL
   ============================================================ */
.roast-wall {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.roast-wall-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
}

.roast-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.roast-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.roast-form input,
.roast-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.roast-form input:focus,
.roast-form textarea:focus { border-color: var(--accent); }

.roast-form textarea {
  min-height: 80px;
  resize: vertical;
}

.roast-form input::placeholder,
.roast-form textarea::placeholder { color: var(--text3); }

.roast-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}
.roast-submit-btn:hover { background: var(--accent2); }

.roast-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: border-color var(--transition);
}
.roast-post:hover { border-color: var(--border2); }

.roast-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.roast-post-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.roast-post-date {
  font-size: 12px;
  color: var(--text3);
}

.roast-post-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text2);
  margin-bottom: 10px;
}

.roast-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text3);
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--surface2);
  transition: all var(--transition);
}
.roast-like-btn:hover { color: var(--accent); background: var(--accent-bg); }

/* ============================================================
   SHOWS CARDS
   ============================================================ */
.shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.show-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
}
.show-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.show-card-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.show-card-meta {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.6;
}
.show-card-meta span { display: flex; align-items: center; gap: 4px; }

.show-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-title {
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 20px;
  color: var(--text3);
  transition: all var(--transition);
}
.modal-close:hover { background: var(--surface); color: var(--text); }

.modal-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
  margin-top: 16px;
}
.modal-form label:first-child { margin-top: 0; }

.modal-form input,
.modal-form textarea,
.modal-form select {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus { border-color: var(--accent); }

.modal-form textarea {
  min-height: 80px;
  resize: vertical;
}

.modal-form input::placeholder,
.modal-form textarea::placeholder { color: var(--text3); }

.modal-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236e6e8a'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.modal-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-top: 24px;
  transition: all var(--transition);
}
.modal-submit-btn:hover { background: var(--accent2); }

.modal-success {
  text-align: center;
  padding: 24px 0;
}
.modal-success-icon { font-size: 48px; margin-bottom: 12px; }
.modal-success-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.modal-success-msg { font-size: 14px; color: var(--text2); }

/* ============================================================
   ADD EVENT BUTTON (FAB)
   ============================================================ */
.fab-add-event {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(228,0,124,0.4);
  transition: all var(--transition);
}
.fab-add-event:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(228,0,124,0.5); }

/* ============================================================
   WHATSAPP SHARE BUTTON
   ============================================================ */
.whatsapp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: #25d366;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  margin-top: 16px;
}
.whatsapp-share-btn:hover { background: #1fb855; }

/* ============================================================
   EXTERNAL LINK BUTTON
   ============================================================ */
.ext-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--gold-bg);
  border: 1px solid rgba(251,202,11,0.2);
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  margin-top: 12px;
}
.ext-link-btn:hover { background: rgba(251,202,11,0.18); }

/* ============================================================
   FILTER ROW (comedians page) -- pill-based filters
   ============================================================ */
/* Filter bar -- compact horizontal layout */
.comedian-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.filter-group-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 2px;
  white-space: nowrap;
}

.filter-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

.filter-pills {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-pills::-webkit-scrollbar { display: none; }

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-pill:hover { color: var(--text); background: var(--surface2); }
.filter-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.05);
}

/* Active count badge on filter groups */
.filter-count {
  font-size: 10px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}

@media (max-width: 768px) {
  .comedian-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 16px;
  }
  .filter-group { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filter-group::-webkit-scrollbar { display: none; }
  .filter-divider { display: none; }
}

/* Legacy filter-select kept for compatibility */
.filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236e6e8a'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  transition: all var(--transition);
}
.filter-select:hover { border-color: var(--border2); }
.filter-select:focus { border-color: var(--accent); }

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton { background: var(--surface); border-radius: var(--radius); position: relative; overflow: hidden; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.skeleton-card { height: 200px; border: 1px solid var(--border); }
.skeleton-line { height: 14px; background: var(--surface2); border-radius: 4px; margin: 12px 16px 0; }
.skeleton-line.short { width: 60%; }

/* ============================================================
   MICROINTERACTIONS
   ============================================================ */
.event-card:active, .venue-card:active, .comedian-card:active, .show-card:active { transform: scale(0.97); transition-duration: 0.1s; }
.pill { transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.pill.active { transform: scale(1.05); }
@keyframes fabBounce { 0% { transform: scale(0) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.1) rotate(2deg); opacity: 1; } 80% { transform: scale(0.95) rotate(-1deg); } 100% { transform: scale(1) rotate(0); } }
.fab-add-event { animation: fabBounce 0.5s ease 1s both; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   VIEW TRANSITIONS
   ============================================================ */
::view-transition-old(root) { animation: 0.25s ease both vt-fade-out; }
::view-transition-new(root) { animation: 0.25s ease both vt-fade-in; }
@keyframes vt-fade-out { to { opacity: 0; transform: scale(0.98); } }
@keyframes vt-fade-in { from { opacity: 0; transform: scale(1.02); } }

/* ============================================================
   TIME PILLS
   ============================================================ */
.time-pills { margin-bottom: 12px; }
.time-pills .pill { font-size: 13px; padding: 6px 14px; }

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: var(--nav-bg); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); border-top: 1px solid var(--border); padding: 6px 0 env(safe-area-inset-bottom, 8px); }
@media (max-width: 768px) {
  .bottom-nav { display: flex; justify-content: space-around; align-items: flex-end; }
  .nav-hamburger { display: none !important; }
  .nav-right { display: none !important; }
  .page { padding-bottom: 100px; }
  .fab-add-event { bottom: 80px; }
}
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 12px; font-size: 10px; font-weight: 600; color: var(--text3); text-decoration: none; transition: color var(--transition); -webkit-tap-highlight-color: transparent; }
.bottom-nav-item.active { color: var(--accent); }
.bottom-nav-item.active svg { stroke: var(--accent); }
.bottom-nav-icon { font-size: 22px; line-height: 1; }

/* ============================================================
   WHATSAPP SHARE FULL WIDTH
   ============================================================ */
.whatsapp-share-full { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 24px; border-radius: var(--radius); background: #25d366; color: #fff; font-size: 16px; font-weight: 700; transition: all var(--transition); margin-bottom: 16px; text-decoration: none; }
.whatsapp-share-full:hover { background: #1fb855; color: #fff; }

/* ============================================================
   CALENDAR BUTTON
   ============================================================ */
.calendar-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text2); font-size: 14px; font-weight: 600; transition: all var(--transition); margin-bottom: 16px; text-decoration: none; }
.calendar-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   FORM-SPECIFIC STYLES
   ============================================================ */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-height: 220px;
  overflow-y: auto;
  z-index: 2100;
  display: none;
}
.autocomplete-dropdown.open { display: block; }

.autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: background var(--transition);
}
.autocomplete-item:hover { background: var(--surface2); }
.autocomplete-item.highlighted { background: var(--accent-bg); color: var(--accent); }
.autocomplete-item .ac-sublabel { font-size: 12px; color: var(--text3); display: block; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid rgba(228,0,124,0.2);
}
.chip-remove {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.chip-remove:hover { opacity: 1; }

.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.form-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.form-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}
.form-pill:hover { border-color: var(--accent); color: var(--text); }
.form-pill.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.05);
}

.quick-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  background: var(--surface2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.quick-btn:hover { border-color: var(--accent); color: var(--text); }

.form-helper {
  font-size: 12px;
  color: var(--text3);
  margin-top: 4px;
}

.form-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}
.form-error.show { display: block; }

.modal-form input.error,
.modal-form textarea.error,
.modal-form select.error {
  border-color: #ef4444;
}

.modal-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Card links — transparent wrapper, doesn't affect grid layout */
.event-card-link,
.venue-card-link,
.comedian-card-link,
.foro-card-link {
  text-decoration: none;
  color: inherit;
  display: contents;
}

.event-card-link:hover,
.venue-card-link:hover,
.comedian-card-link:hover,
.foro-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.autocomplete-wrap {
  position: relative;
}

/* ============================================================
   INLINE EDIT SYSTEM — Modern tap-to-edit fields
   ============================================================ */

/* Editable field wrapper */
.field-editable {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, box-shadow 0.2s ease;
  padding: 4px 8px;
  margin: -4px -8px;
}

.field-editable::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.field-editable:hover {
  background: var(--surface2);
}

.field-editable:hover::after {
  opacity: 0.6;
}

/* Field in editing mode */
.field-editing {
  background: transparent !important;
  cursor: text;
  padding: 0;
  margin: 0;
}

.field-editing::after {
  display: none;
}

.field-editing .field-display {
  display: none;
}

.field-editing .field-input {
  display: block;
}

.field-input {
  display: none;
  width: 100%;
  padding: 8px 12px;
  background: var(--surface2);
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}

.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.field-input-textarea {
  min-height: 80px;
  resize: vertical;
}

/* Save indicator */
.field-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  position: absolute;
  right: 0;
  top: -20px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.field-status.visible {
  opacity: 1;
  transform: translateY(0);
}

.field-status.saving {
  color: var(--text3);
  background: var(--surface2);
}

.field-status.saved {
  color: var(--green);
  background: var(--green-bg);
}

.field-status.error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Pulse animation for saving state */
@keyframes fieldPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.field-saving .field-input {
  animation: fieldPulse 1.2s ease infinite;
}

/* ============================================================
   PROFILE HERO — Instagram-style cover + card
   ============================================================ */
.profile-hero {
  position: relative;
  margin: -32px -24px 0;
  margin-bottom: 0;
}

.profile-cover {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--accent) 0%, #6B0AC9 50%, #1a0a2e 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}

.profile-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
}

.profile-cover-upload {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
}

.profile-hero:hover .profile-cover-upload,
.profile-hero .profile-cover-upload.always-show {
  opacity: 1;
}

.profile-cover-upload:hover {
  background: rgba(0,0,0,0.8);
}

.profile-cover-upload svg {
  width: 14px;
  height: 14px;
}

.profile-card {
  position: relative;
  margin: -48px 16px 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) {
  .profile-card {
    margin: -48px 24px 0;
    padding: 32px;
  }
  .profile-cover {
    height: 260px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

.profile-avatar-area {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: -56px;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  background: var(--accent-bg);
  border: 3px solid var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  flex-shrink: 0;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-header-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.profile-subtitle {
  font-size: 14px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.profile-section-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  margin-bottom: 12px;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 480px) {
  .profile-info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.profile-info-item {
  position: relative;
}

.profile-info-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  margin-bottom: 4px;
}

.profile-info-value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}

.profile-info-value.empty {
  color: var(--text3);
  font-style: italic;
}

/* Social links row */
.profile-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.profile-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  transition: all 0.2s ease;
  text-decoration: none;
}

.profile-social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

.profile-social-btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   PROFILE COMPLETENESS — Gamification bar
   ============================================================ */
.profile-completeness {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

.completeness-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.completeness-pct {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.completeness-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 10px;
}

.completeness-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #F0339A 100%);
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.completeness-tips {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
}

.completeness-tip-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 12px;
}

.completeness-tip-item svg {
  width: 12px;
  height: 12px;
  color: var(--text3);
}

/* ============================================================
   EDIT BUTTON — Always visible (wiki-style)
   ============================================================ */
.edit-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 16px;
}

.edit-info-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

.edit-info-btn svg {
  width: 16px;
  height: 16px;
}

/* Suggest edit notice */
.suggest-edit-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--gold-bg);
  border: 1px solid rgba(251,202,11,0.15);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--gold);
  margin-top: 12px;
}

.suggest-edit-notice svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Source URL field for wiki edits */
.source-url-field {
  margin-top: 16px;
  padding: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.source-url-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text3);
  margin-bottom: 6px;
}

.source-url-field input {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.source-url-field input:focus {
  border-color: var(--accent);
}

/* ============================================================
   WIZARD EDIT — Step-by-step Airbnb-style
   ============================================================ */
.wizard-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.wizard-overlay.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.wizard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.wizard-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  color: var(--text3);
  background: var(--surface2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-close:hover {
  color: var(--text);
  border-color: var(--text3);
}

.wizard-step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}

.wizard-progress {
  height: 3px;
  background: var(--border);
  flex-shrink: 0;
}

.wizard-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 0 100px 100px 0;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px 20px 120px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.wizard-step {
  display: none;
  animation: wizardStepIn 0.3s ease;
}

.wizard-step.active {
  display: block;
}

@keyframes wizardStepIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.wizard-step-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.wizard-step-subtitle {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 28px;
  line-height: 1.5;
}

.wizard-field {
  margin-bottom: 20px;
}

.wizard-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
}

.wizard-field input,
.wizard-field textarea,
.wizard-field select {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.wizard-field input:focus,
.wizard-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.wizard-field textarea {
  min-height: 120px;
  resize: vertical;
}

.wizard-field input::placeholder,
.wizard-field textarea::placeholder {
  color: var(--text3);
}

/* Photo upload area */
.wizard-photo-upload {
  width: 100%;
  min-height: 200px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--surface);
}

.wizard-photo-upload:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.wizard-photo-upload svg {
  width: 48px;
  height: 48px;
  color: var(--text3);
}

.wizard-photo-upload:hover svg {
  color: var(--accent);
}

.wizard-photo-upload-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text2);
}

.wizard-photo-upload-hint {
  font-size: 13px;
  color: var(--text3);
}

.wizard-photo-preview {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}

.wizard-photo-preview img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

.wizard-photo-preview .remove-photo {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.wizard-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 10001;
}

.wizard-btn-back {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-btn-back:hover {
  border-color: var(--text3);
  color: var(--text);
}

.wizard-btn-next {
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: white;
  background: var(--accent);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-btn-next:hover {
  background: var(--accent2);
}

.wizard-autosave {
  font-size: 12px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 4px;
}

.wizard-autosave svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   SVG BOTTOM NAV — Modern icon nav
   ============================================================ */
.bottom-nav-svg-icon {
  width: 22px;
  height: 22px;
  display: block;
  margin: 0 auto;
}

.bottom-nav-item.add-btn {
  position: relative;
}

.bottom-nav-add-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -24px;
  box-shadow: 0 4px 16px rgba(228,0,124,0.4);
  transition: all 0.2s ease;
}

.bottom-nav-item.add-btn:hover .bottom-nav-add-circle,
.bottom-nav-item.add-btn:active .bottom-nav-add-circle {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(228,0,124,0.5);
}

.bottom-nav-add-circle svg {
  width: 24px;
  height: 24px;
  color: white;
}

.bottom-nav-item .bottom-nav-label {
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
}

.bottom-nav-item.add-btn .bottom-nav-label {
  margin-top: 4px;
  color: var(--accent);
}

/* Floating save bar for inline edits */
.inline-save-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}

.inline-save-bar.visible {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .inline-save-bar {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
}

.inline-save-bar .save-count {
  font-size: 13px;
  color: var(--text2);
}

.inline-save-bar .save-btn {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.inline-save-bar .save-btn:hover {
  background: var(--accent2);
}

.inline-save-bar .discard-btn {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text3);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
}

/* ============================================================
   DUPLICATE DETECTION WARNING
   ============================================================ */

.duplicate-warning {
  background: rgba(251, 202, 11, 0.08);
  border: 1px solid rgba(251, 202, 11, 0.2);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 0;
}

.dupe-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text1);
  margin-bottom: 10px;
}

.dupe-icon {
  font-size: 18px;
}

.dupe-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dupe-card strong {
  font-size: 14px;
  color: var(--text1);
}

.dupe-card-meta {
  font-size: 12px;
  color: var(--text3);
}

.dupe-card-lineup {
  font-size: 12px;
  color: var(--text2);
  font-style: italic;
}

.dupe-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.dupe-join-btn {
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.dupe-join-btn:hover {
  background: var(--accent2);
}

.dupe-new-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s;
}

.dupe-new-btn:hover {
  border-color: var(--text3);
}

/* ============================================================
   TRUST CHAIN / NETWORK GRAPH
   ============================================================ */
.network-graph { width: 100%; height: 500px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.network-node { cursor: pointer; }
.network-node text { font-size: 11px; fill: var(--text2); pointer-events: none; }
.network-node circle { transition: r 0.2s; }
.network-node:hover circle { r: 10; }
.network-link { stroke: var(--border2); stroke-width: 1.5; }

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts-section { margin-top: 32px; padding: 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
.contacts-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.contacts-list { display: flex; flex-direction: column; gap: 8px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bg2); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.contact-info { display: flex; flex-direction: column; gap: 2px; }
.contact-name { font-weight: 600; font-size: 14px; }
.contact-meta { font-size: 12px; color: var(--text3); }
.contact-actions { display: flex; gap: 6px; }
.contact-actions button { padding: 6px 12px; font-size: 12px; border-radius: var(--radius-sm); border: none; cursor: pointer; font-weight: 500; }
.contact-invite-btn { background: var(--accent); color: white; }
.contact-delete-btn { background: var(--surface2); color: var(--text3); border: 1px solid var(--border) !important; }
.contact-add-btn { margin-top: 12px; padding: 10px 18px; background: var(--accent); color: white; border: none; border-radius: var(--radius-sm); font-weight: 600; font-size: 13px; cursor: pointer; }

/* ============================================================
   FEEDBACK EMPTY STATE BUTTON
   ============================================================ */
.feedback-cta { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text2); font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.feedback-cta:hover { border-color: var(--accent); color: var(--accent); }
