/*
 * VibesNearby shared site shell
 * Single source of truth for background, nav, and base styles
 * Used by all inner pages — matches homepage exactly
 */

/* ── DESIGN TOKENS ───────────────────────────────── */
:root {
  --bg:       #050810;
  --bg2:      #090d1a;
  --bg3:      #0d1326;
  --sf:       rgba(255,255,255,.048);
  --sf2:      rgba(255,255,255,.075);
  --bd:       rgba(255,255,255,.10);
  --bd2:      rgba(255,255,255,.18);
  --text:     #eef0ff;
  --muted:    #8892b0;
  --muted2:   #b8c2dc;
  --hot:      #ff2d78;
  --violet:   #7c3fff;
  --cyan:     #00c2ff;
  --gold:     #ffb347;
  --green:    #00e187;
  --rs:       12px;
  --rm:       18px;
  --rl:       24px;
  --shadow-s: 0 4px 20px rgba(0,0,0,.4);
  --shadow-m: 0 12px 40px rgba(0,0,0,.5);
  --shadow-l: 0 24px 80px rgba(0,0,0,.6);
  --glow-hot: 0 0 40px rgba(255,45,120,.35);
  --glow-vi:  0 0 40px rgba(124,63,255,.35);
  --glow-cy:  0 0 40px rgba(0,194,255,.25);
  --max:      1240px;
  --fd:       'Syne', sans-serif;
  --fb:       'DM Sans', sans-serif;
  /* Legacy aliases so old class names still resolve */
  --vn-shell-bg:       #050810;
  --vn-shell-card:     rgba(255,255,255,.075);
  --vn-shell-line:     rgba(255,255,255,.16);
  --vn-shell-text:     #eef0ff;
  --vn-shell-muted:    #b8c2dc;
  --vn-shell-accent:   #00c2ff;
  --vn-shell-accent-2: #ff2d78;
  --vn-shell-gold:     #ffb347;
}

/* ── RESET & BASE ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ── BODY / BACKGROUND ───────────────────────────── */
body:not(.admin-body) {
  font-family: var(--fb);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    url('assets/music-bg.svg'),
    radial-gradient(ellipse 80% 60% at 10%  0%, rgba(255,45,120,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90%  5%, rgba(124,63,255,.09) 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(0,194,255,.05) 0%, transparent 50%);
  background-size: cover, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed, fixed, fixed, fixed;
  background-position: center top;
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
  line-height: 1.65;
}

/* Grain overlay */
body:not(.admin-body)::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
  opacity: .6;
}

/* ── LAYOUT ──────────────────────────────────────── */
.container,
.vn-shared-main,
.vn-unified-main,
.wrap {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── STICKY NAV SHELL ────────────────────────────── */
.vn-shared-header,
.vn-unified-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(5,8,16,.75);
  border-bottom: 1px solid var(--bd);
  /* Remove the old card-style box */
  max-width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.vn-shared-inner,
.vn-unified-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  min-width: 0;
}

/* ── BRAND LOGO ──────────────────────────────────── */
.vn-shared-logo,
.vn-unified-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.vn-shared-logo a,
.vn-unified-brand a,
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;        /* allow flex child to shrink */
  overflow: hidden;
}

/* Brand text truncates instead of overflowing */
.vn-shared-logo a span,
.vn-unified-brand a span,
.brand > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.brand-logo,
.vn-brand-note {
  width: 40px;
  height: 40px;
  min-width: 40px;   /* never shrink */
  min-height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--hot), var(--violet));
  display: grid;
  place-items: center;
  box-shadow: var(--glow-hot);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.brand-logo::after,
.vn-brand-note::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2), transparent);
  z-index: 1;
  pointer-events: none;
}

.brand-logo svg,
.vn-brand-note svg {
  width: 20px; height: 20px;
  fill: #ffffff !important;
  position: relative;
  z-index: 2;  /* always above the ::after overlay */
  display: block;
}

.vn-logo-text,
.vn-shared-logo span,
.vn-unified-brand span {
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 800;
}

.vn-tagline {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted2);
  letter-spacing: .02em;
  margin-top: 2px;
}

/* ── NAV LINKS ───────────────────────────────────── */
/* Mobile-first: hidden by default, shown on desktop */
.vn-shared-nav,
.vn-unified-nav {
  display: none;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

@media (min-width: 761px) {
  .vn-shared-nav,
  .vn-unified-nav {
    display: flex;
  }
}

.vn-shared-nav a,
.vn-unified-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted2);
  padding: 8px 14px;
  border-radius: var(--rs);
  border: none;
  background: transparent;
  transition: color .2s, background .2s;
  letter-spacing: .01em;
  text-decoration: none;
}

.vn-shared-nav a:hover,
.vn-shared-nav a:focus,
.vn-unified-nav a:hover,
.vn-unified-nav a:focus {
  color: var(--text);
  background: var(--sf);
}

.vn-shared-nav a[aria-current="page"],
.vn-unified-nav a[aria-current="page"] {
  color: var(--hot);
  background: rgba(255,45,120,.08);
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn,
.vn-btn,
.discover-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--rm);
  border: 1px solid transparent;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
}

.btn:hover, .vn-btn:hover, .discover-cta:hover { transform: translateY(-2px); }
.btn:active, .vn-btn:active { transform: translateY(0); }

.btn-primary, .discover-cta.gold, .vn-btn-primary {
  background: linear-gradient(135deg, var(--hot), var(--violet));
  box-shadow: 0 8px 30px rgba(255,45,120,.4);
  color: #fff;
}
.btn-primary:hover { box-shadow: 0 12px 40px rgba(255,45,120,.55); }

.btn-secondary, .vn-btn-secondary, .discover-cta {
  background: var(--sf);
  border-color: var(--bd);
  color: var(--text);
}
.btn-secondary:hover { background: var(--sf2); border-color: var(--bd2); }

.btn-ghost { background: transparent; border-color: var(--bd); color: var(--muted2); }
.btn-ghost:hover { color: var(--text); border-color: var(--bd2); }

.btn-sm, .vn-btn-sm { min-height: 40px; padding: 0 18px; font-size: 13px; border-radius: var(--rs); }

.btn-amazon, .vn-btn-amazon {
  background: linear-gradient(135deg, #00a8e0, #0066cc);
  box-shadow: 0 8px 30px rgba(0,168,224,.35);
  color: #fff;
}
.btn-amazon:hover { box-shadow: 0 12px 40px rgba(0,168,224,.5); }

/* Old "gold" btn used in network/discover pages */
.btn.gold, a.btn.gold {
  background: linear-gradient(135deg, var(--gold), #fff1b3);
  color: #181008;
  box-shadow: 0 8px 30px rgba(255,179,71,.35);
}
.btn.secondary { background: var(--sf); color: var(--text); border: 1px solid var(--bd); }

/* ── CARDS (legacy classes) ──────────────────────── */
.card, .panel, .vn-card, .vn-hero,
.vn-profile-card, .vn-event-card {
  background: var(--sf);
  border: 1px solid var(--bd) !important;
  border-radius: var(--rl);
  box-shadow: var(--shadow-m);
}

.card, .panel { padding: 24px; backdrop-filter: blur(12px); }

/* ── SECTION HEADERS ─────────────────────────────── */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.sec-title {
  font-family: var(--fd);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.05;
}
.sec-desc {
  font-size: 15px; line-height: 1.65; color: var(--muted2);
  margin-top: 8px; max-width: 640px; font-weight: 300;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--hot); margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--hot); border-radius: 2px; }

/* Hero headings used across inner pages */
h1 { font-family: var(--fd); font-size: clamp(36px, 5vw, 64px); font-weight: 800; line-height: 1.04; letter-spacing: -1.5px; }
h2 { font-family: var(--fd); font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -0.8px; }
h3 { font-family: var(--fd); font-size: clamp(18px, 2vw, 22px); font-weight: 800; letter-spacing: -0.3px; }

section { padding: 56px 0; position: relative; z-index: 1; }

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bd), transparent);
}

/* ── DIRECTORY / EVENTS (from dynamic CSS) ───────── */
.vn-directory-tools, .vn-events-tools {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 24px 0;
}
.vn-directory-tools input, .vn-directory-tools select,
.vn-events-tools input, .vn-events-tools select {
  width: 100%; padding: 12px 13px; border-radius: var(--rs);
  border: 1px solid var(--bd); background: rgba(0,0,0,.28); color: var(--text);
  font-family: var(--fb); font-size: 14px;
}
.vn-directory-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 22px; }
.vn-events-list { display: grid; gap: 16px; margin-top: 22px; }

.vn-profile-card, .vn-event-card {
  border-radius: 20px; padding: 20px;
}
.vn-profile-meta, .vn-event-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.vn-profile-meta span, .vn-event-meta span {
  border: 1px solid var(--bd); border-radius: 999px; padding: 6px 10px;
  color: var(--muted2); background: var(--sf); font-size: .9rem;
}
.vn-featured-badge {
  display: inline-block; background: linear-gradient(135deg, var(--gold), #ffef9a);
  color: #16120a; font-weight: 900; border-radius: 999px; padding: 5px 9px; font-size: .78rem; margin-bottom: 8px;
}
.vn-empty { padding: 20px; border: 1px dashed var(--bd2); border-radius: var(--rm); color: var(--muted2); }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tag-live { background: rgba(255,45,120,.15); border: 1px solid rgba(255,45,120,.3); color: #ff6fa0; }
.tag-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hot); animation: pulse 1.6s ease-in-out infinite; }
.tag-genre { background: var(--sf); border: 1px solid var(--bd); color: var(--muted2); }
.tag-new { background: rgba(0,225,135,.12); border: 1px solid rgba(0,225,135,.25); color: #4dffa8; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.75)} }

/* Affiliate disclosure */
.disc, .affiliate-disclosure { font-size: 11px; line-height: 1.55; color: var(--muted); margin-top: 12px; }

/* Form fields */
input, textarea, select {
  font-family: var(--fb);
}
input[type="email"], input[type="text"], textarea {
  min-height: 48px; padding: 0 16px; border-radius: var(--rm);
  border: 1px solid var(--bd); background: rgba(255,255,255,.06); color: var(--text);
  font-size: 15px; outline: none; transition: border-color .2s, background .2s;
}
input[type="email"]:focus, input[type="text"]:focus, textarea:focus {
  border-color: var(--hot); background: rgba(255,255,255,.09);
}

/* Table styles (network.html) */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px; border-bottom: 1px solid var(--bd); text-align: left; color: var(--muted2); }
.table th { background: var(--sf); color: var(--text); font-family: var(--fd); font-weight: 700; }

/* Footer */
footer:not(.admin-footer) {
  border-top: 1px solid var(--bd);
  padding: 48px 0 64px;
  color: var(--muted);
  position: relative; z-index: 1;
}
footer h4 { font-family: var(--fd); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 14px; }
footer p { font-size: 14px; line-height: 1.8; color: var(--muted); font-weight: 300; }
footer a { font-size: 14px; color: var(--muted); transition: color .2s; }
footer a:hover { color: var(--text); }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .vn-shared-inner, .vn-unified-inner { flex-wrap: wrap; gap: 12px; }
  .vn-shared-nav, .vn-unified-nav { justify-content: flex-start; }
  .vn-directory-list { grid-template-columns: 1fr; }
  .vn-directory-tools, .vn-events-tools { grid-template-columns: 1fr 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .vn-directory-tools, .vn-events-tools { grid-template-columns: 1fr; }
  .vn-directory-list { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ── DECORATIVE WAVE LAYER ── */
.vn-wave-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.vn-wave-layer svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
}


/* ── ANIMATED WAVEFORM BARS (side decorations) ── */
.vn-eq-left, .vn-eq-right {
  position: fixed;
  bottom: 80px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  z-index: 0;
  pointer-events: none;
}
.vn-eq-left  { left: 24px; }
.vn-eq-right { right: 24px; }

.vn-eq-bar {
  width: 5px;
  border-radius: 3px;
  animation: eqBounce 1.4s ease-in-out infinite;
}
.vn-eq-left .vn-eq-bar  { background: rgba(255,45,120,.55); }
.vn-eq-right .vn-eq-bar { background: rgba(124,63,255,.55); }

.vn-eq-bar:nth-child(1) { height: 20px; animation-delay: 0s;    }
.vn-eq-bar:nth-child(2) { height: 36px; animation-delay: .1s;   }
.vn-eq-bar:nth-child(3) { height: 50px; animation-delay: .2s;   }
.vn-eq-bar:nth-child(4) { height: 38px; animation-delay: .3s;   }
.vn-eq-bar:nth-child(5) { height: 56px; animation-delay: .4s;   }
.vn-eq-bar:nth-child(6) { height: 42px; animation-delay: .5s;   }
.vn-eq-bar:nth-child(7) { height: 28px; animation-delay: .6s;   }
.vn-eq-bar:nth-child(8) { height: 44px; animation-delay: .7s;   }
.vn-eq-bar:nth-child(9) { height: 60px; animation-delay: .08s;  }
.vn-eq-bar:nth-child(10){ height: 34px; animation-delay: .18s;  }

@keyframes eqBounce {
  0%, 100% { transform: scaleY(.35); opacity: .5; }
  50%       { transform: scaleY(1);  opacity: 1;  }
}

@media (max-width: 768px) {
  .vn-eq-left, .vn-eq-right { display: none; }
}

/* ═══════════════════════════════════════════════════
   MOBILE FIXES — vn-shared-header / vn-unified-header
   Hamburger menu for inner pages
   ═══════════════════════════════════════════════════ */

/* Ham button — hidden by default */
.vn-nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: var(--rs);
  border: 1px solid var(--bd);
  background: var(--sf);
  color: var(--text);
  font-size: 20px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 10;
}

/* Inner header row on mobile */
@media (max-width: 760px) {

  /* Make the inner a two-row layout */
  .vn-shared-inner,
  .vn-unified-inner {
    flex-wrap: wrap;
    gap: 0;
    padding: 12px 0;
  }

  /* Logo row takes full width */
  .vn-shared-logo,
  .vn-unified-brand {
    flex: 1;
  }

  /* Show ham toggle */
  .vn-nav-toggle {
    display: inline-flex;
  }

  /* Nav collapses under logo row */
  .vn-shared-nav,
  .vn-unified-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid var(--bd);
    margin-top: 10px;
  }

  /* Open state */
  .vn-shared-nav.is-open,
  .vn-unified-nav.is-open {
    display: flex;
  }

  .vn-shared-nav a,
  .vn-unified-nav a {
    padding: 13px 8px;
    border-bottom: 1px solid var(--bd);
    border-radius: 0;
    font-size: 15px;
  }

  .vn-shared-nav a:last-child,
  .vn-unified-nav a:last-child {
    border-bottom: none;
  }

  /* Brand logo scale */
  .brand-logo,
  .vn-brand-note {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
  }

  .brand-logo svg { width: 16px; height: 16px; }

  .vn-logo-text,
  .vn-shared-logo a span,
  .vn-unified-brand a span,
  .brand > span {
    font-size: 15px;
    max-width: calc(100vw - 120px); /* prevent overflow past toggle button */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .vn-tagline { display: none; }

  /* Hero sections on mobile */
  .vn-hero,
  .discover-hero,
  .city-hub-hero,
  .cta-page-hero,
  .program-hero {
    padding: 28px 20px !important;
    margin: 16px auto 16px !important;
  }

  /* Cards single col */
  .vn-grid,
  .vn-grid.two,
  .discover-grid,
  .city-grid,
  .program-grid {
    grid-template-columns: 1fr !important;
  }

  /* Section padding */
  section, .vn-section { padding: 32px 0 !important; }

  /* Wrap vn-top (activation pages) */
  .vn-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0 20px;
  }

  .vn-nav { flex-wrap: wrap; gap: 6px; }

  /* Tables scroll on mobile */
  .vn-table-wrap, .table-wrap { overflow-x: auto; }
  .vn-table, .table { min-width: 500px; }
}

/* ═══════════════════════════════════════════════════
   DARK PAGE FIX — .vn-body background override
   Pages with class="vn-body" get vibes-activation-assets
   background (linear-gradient, no music-bg.svg).
   We override here with full specificity.
   ═══════════════════════════════════════════════════ */

body.vn-body,
body.vn-unified-page {
  background-color: var(--bg) !important;
  background-image:
    url('assets/music-bg.svg'),
    radial-gradient(ellipse 80% 60% at 10%  0%, rgba(255,45,120,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90%  5%, rgba(124,63,255,.09) 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(0,194,255,.05) 0%, transparent 50%) !important;
  background-size: cover, 100% 100%, 100% 100%, 100% 100% !important;
  background-attachment: fixed, fixed, fixed, fixed !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  font-family: var(--fb) !important;
  color: var(--text) !important;
}

/* Kill the teal accent color from activation CSS on these pages */
body.vn-body .vn-btn:not(.secondary),
body.vn-unified-page .vn-btn:not(.secondary),
body.vn-body a.vn-btn:not(.secondary),
body.vn-unified-page a.vn-btn:not(.secondary) {
  background: linear-gradient(135deg, var(--hot), var(--violet)) !important;
  color: #fff !important;
  box-shadow: 0 8px 28px rgba(255,45,120,.38) !important;
}

/* Fix Inter font override from activation-assets on vn-body pages */
body.vn-body,
body.vn-unified-page {
  font-family: var(--fb) !important;
}

body.vn-body h1, body.vn-body h2, body.vn-body h3,
body.vn-unified-page h1, body.vn-unified-page h2, body.vn-unified-page h3 {
  font-family: var(--fd) !important;
}

/* ═══════════════════════════════════════════════════
   IMAGE RESPONSIVENESS
   ═══════════════════════════════════════════════════ */

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

/* Prevent logos from stretching */
.brand-logo img,
.vn-brand-note img,
.brand img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* OG / hero images */
.cover-art,
.hero-thumb,
.fc-thumb img,
.feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive banner images */
.banner-wrap img,
.promo-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ═══════════════════════════════════════════════════
   CONTAINER PADDING — prevent content edge bleed on mobile
   ═══════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .container,
  .vn-shared-main,
  .vn-unified-main,
  .wrap,
  .vn-wrap {
    width: min(100% - 24px, var(--max));
  }

  .vn-hero,
  .discover-hero,
  .city-hub-hero {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 18px !important;
  }

  h1 { font-size: clamp(28px, 9vw, 48px) !important; letter-spacing: -1px !important; }
  h2 { font-size: clamp(22px, 7vw, 36px) !important; }
}

/* Force logo icon fill white even if SVG fill attr missing */
.brand-logo svg path,
.brand-logo svg rect,
.brand-logo svg circle,
.vn-brand-note svg path,
.vn-brand-note svg rect {
  fill: #ffffff !important;
}

/* ── TOP SPACING TIGHTENER ── */
.vn-hero,
.discover-hero,
.city-hub-hero,
.cta-page-hero,
.program-hero {
  margin-top: 16px !important;
}

/* vn-nav-toggle open state handled inside @media (max-width: 760px) */

/* ── NAV CTA BUTTONS (desktop only) ── */
.vn-nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .vn-nav-cta { display: none; }
}

/* ── BRAND TEXT BLOCK (used on homepage) ── */
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.brand-name {
  font-family: var(--fd);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Banner Ad Zones ─────────────────────────────────────────────────────── */
.vn-banner-ad {
    width: 100%;
    max-width: 970px;
    margin: 24px auto;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    line-height: 0;
}
.vn-banner-ad img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: opacity .2s;
}
.vn-banner-ad img:hover { opacity: .92; }

/* ── Mobile Global Fixes ───────────────────────────────────────────── */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

/* Prevent horizontal scroll sitewide */
html, body { overflow-x: hidden; max-width: 100vw; }

/* Fixed nav clearance */
body { padding-top: 80px; }

/* Touch targets — min 44×44px for all interactive elements */
button, [type="button"], [type="submit"], [type="reset"],
a[href], label[for], select {
    min-height: 44px;
    min-width: 44px;
}

/* Inputs — readable font size on iOS (prevents auto-zoom) */
input, textarea, select {
    font-size: 16px !important;
    max-width: 100%;
}

/* Tables — horizontal scroll on mobile */
table { min-width: 100%; }
.table-wrap, .overflow-x-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Cards and grids — stack on mobile */
@media (max-width: 640px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr !important; }
    .md\:grid-cols-2, .md\:grid-cols-3, .md\:grid-cols-4 { grid-template-columns: 1fr !important; }
    .sm\:grid-cols-2, .sm\:grid-cols-3 { grid-template-columns: 1fr !important; }
    .hidden.sm\:block, .hidden.md\:block { display: none !important; }
    .px-10 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
    .px-8 { padding-left: 1rem !important; padding-right: 1rem !important; }
    .text-7xl { font-size: 2.5rem !important; line-height: 1.1 !important; }
    .text-6xl { font-size: 2.25rem !important; }
    .text-5xl { font-size: 2rem !important; }
}

/* Nav clearance for pages with vibes-shared-site-shell */
main, .main-content, section:first-of-type { scroll-margin-top: 80px; }

/* Banner ads responsive */
.vn-banner-ad img { max-height: 90px; object-fit: cover; }

/* Form full-width on mobile */
@media (max-width: 640px) {
    form .grid, form .grid2, form .grid3 { grid-template-columns: 1fr !important; }
    .w-full { width: 100% !important; }
}

/* ══════════════════════════════════════════════════════════════
   VIBES DESIGN TOKENS — shared across every page
   ══════════════════════════════════════════════════════════════ */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&display=swap');

/* Colour variables */
:root {
    --vn-hot:      #ff2d78;
    --vn-violet:   #7c3fff;
    --vn-cyan:     #00c2ff;
    --vn-gold:     #ffb347;
    --vn-green:    #00e187;
    --vn-ink:      #050810;
    --vn-muted:    #8892b0;
    --vn-muted2:   #b8c2dc;
    --vn-bd:       rgba(255,255,255,.1);
}

/* Base */
body {
    background: var(--vn-ink);
    color: #eef0ff;
    font-family: 'DM Sans', sans-serif;
}
.font-syne, .font-dm { font-family: 'Syne', sans-serif; }

/* ── Glass card ─────────────────────────────────────────────── */
.glass {
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
}
.glass:hover { border-color: rgba(255,255,255,.18); }

/* ── Gradient text ──────────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--vn-hot), var(--vn-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Package / feature cards ────────────────────────────────── */
.package-card {
    transition: transform .35s cubic-bezier(.34,1.56,.64,1),
                box-shadow .35s ease,
                border-color .35s ease;
    will-change: transform;
}
.package-card:hover {
    transform: translateY(-8px);
    border-color: rgba(124,63,255,.4) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(124,63,255,.2);
}

/* ── Artist / venue / event cards ───────────────────────────── */
.vn-card, .vn-artist-card, .vn-venue-card {
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 20px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.vn-card:hover, .vn-artist-card:hover, .vn-venue-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124,63,255,.35);
    box-shadow: 0 12px 32px rgba(0,0,0,.3);
}

/* ── Mesh background gradient ───────────────────────────────── */
.mesh-bg {
    position: fixed;
    top: -20%; left: -20%;
    width: 140%; height: 140%;
    background:
        radial-gradient(ellipse 60% 50% at 20% 20%, rgba(255,45,120,.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 70%, rgba(124,63,255,.12) 0%, transparent 60%),
        radial-gradient(ellipse 40% 35% at 50% 100%, rgba(0,194,255,.06) 0%, transparent 50%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
    animation: mesh-drift 25s infinite alternate ease-in-out;
}
@keyframes mesh-drift {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(3%,4%) scale(1.05); }
    100% { transform: translate(-3%,3%) scale(.97); }
}

/* ── Utility colours ────────────────────────────────────────── */
.text-vibe-hot    { color: var(--vn-hot); }
.text-vibe-violet { color: var(--vn-violet); }
.text-vibe-cyan   { color: var(--vn-cyan); }
.text-vibe-gold   { color: var(--vn-gold); }
.text-vibe-green  { color: var(--vn-green); }
.text-muted       { color: var(--vn-muted); }
.text-muted2      { color: var(--vn-muted2); }
.bg-ink           { background: var(--vn-ink); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary, .vn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s;
    min-height: 44px;
}
.btn-gradient {
    background: linear-gradient(135deg, var(--vn-hot), var(--vn-violet));
    color: white;
}
.btn-gradient:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(255,45,120,.35); }
.btn-ghost {
    background: rgba(255,255,255,.08);
    color: white;
    border: 1px solid rgba(255,255,255,.12);
}
.btn-ghost:hover { background: rgba(255,255,255,.15); }

/* ── Badge pills ────────────────────────────────────────────── */
.badge-hot    { background: rgba(255,45,120,.15);  color: var(--vn-hot);    border: 1px solid rgba(255,45,120,.3); }
.badge-violet { background: rgba(124,63,255,.15);  color: #c0a0ff;          border: 1px solid rgba(124,63,255,.3); }
.badge-cyan   { background: rgba(0,194,255,.15);   color: var(--vn-cyan);   border: 1px solid rgba(0,194,255,.3); }
.badge-green  { background: rgba(0,225,135,.15);   color: var(--vn-green);  border: 1px solid rgba(0,225,135,.3); }
.badge-gold   { background: rgba(255,179,71,.15);  color: var(--vn-gold);   border: 1px solid rgba(255,179,71,.3); }
.badge-hot, .badge-violet, .badge-cyan, .badge-green, .badge-gold {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* ── Section spacing ────────────────────────────────────────── */
.section-pad { padding: 80px 24px; }
.container   { max-width: 1180px; margin: 0 auto; }
@media (max-width: 640px) {
    .section-pad { padding: 48px 16px; }
}
