/* ============================================================
   Evently – Stylesheet completo
   ============================================================ */

/* ─── Reset & Custom Properties ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #6366f1;
  --primary-dark: #4f46e5;
  --secondary:    #8b5cf6;
  --accent:       #c084fc;
  --bg:           #f8f7ff;
  --bg-dark:      #0f0f1a;
  --surface:      #ffffff;
  --surface-alt:  #f1f0fa;
  --border:       #e4e2f5;
  --text:         #1e1b4b;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;
  --success:      #22c55e;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --radius:       12px;
  --radius-lg:    18px;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
  --transition:   0.2s ease;
  font-size: 16px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── Layout ────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Typography helpers ────────────────────────────────────── */
.text-muted   { color: var(--text-muted); }
.text-sm      { font-size: .85rem; }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.text-center  { text-align: center; }
.fw-600       { font-weight: 600; }
.mt-2         { margin-top: .75rem; }
.mt-3         { margin-top: 1.25rem; }
.mt-4         { margin-top: 2rem; }
.mb-3         { margin-bottom: 1.25rem; }
.inline       { display: inline; }
.w-full       { width: 100%; }

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.nav-inner {
  display: flex; align-items: center; gap: 1.5rem;
  height: 64px;
}
.nav-logo {
  font-size: 1.3rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  white-space: nowrap; flex-shrink: 0;
}
.nav-search { flex: 1; max-width: 360px; }
.search-wrap { position: relative; }
.search-wrap input {
  width: 100%; padding: .5rem 2.5rem .5rem 1rem;
  border: 1px solid var(--border); border-radius: 50px;
  background: var(--bg); font-size: .9rem; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-wrap input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.search-wrap button {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 1rem; color: var(--text-muted);
}
.nav-links { display: flex; align-items: center; gap: 1rem; margin-left: auto; flex-shrink: 0; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text); }
.notif-btn { position: relative; font-size: .9rem; font-weight: 500; color: var(--text-muted); }
.badge-notif {
  position: absolute; top: -6px; right: -8px;
  background: var(--danger); color: #fff;
  border-radius: 50%; width: 16px; height: 16px;
  font-size: .6rem; display: flex; align-items: center; justify-content: center;
}

/* ─── Dropdown ──────────────────────────────────────────────── */
.nav-user { position: relative; }
.dropdown { position: relative; display: inline-block; }
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none; overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + .5rem);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 200px; padding: .5rem 0; display: none; z-index: 200;
}
.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu { display: block; }
.dropdown-header { padding: .75rem 1rem; font-weight: 700; font-size: .85rem; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.dropdown-menu a {
  display: block; padding: .55rem 1rem;
  font-size: .88rem; color: var(--text); transition: background var(--transition);
}
.dropdown-menu a:hover { background: var(--bg); color: var(--primary); }
.dropdown-divider { height: 1px; background: var(--border); margin: .25rem 0; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .6rem 1.25rem;
  border-radius: var(--radius); font-weight: 600; font-size: .9rem;
  border: none; cursor: pointer; transition: all var(--transition);
  white-space: nowrap; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,.3);
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: .9; color: #fff; }
.btn-danger-outline { background: transparent; border: 1.5px solid var(--danger); color: var(--danger); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: .9; color: #fff; }
.btn-disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }
.btn-sm { padding: .4rem .9rem; font-size: .82rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-xs { padding: .25rem .6rem; font-size: .75rem; border-radius: 6px; }
.btn-icon { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: .85rem; padding: .4rem .6rem; border-radius: 8px; }
.btn-icon:hover { background: var(--bg); color: var(--primary); }
.btn-geo {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; padding: .7rem 1.5rem; border-radius: 50px; font-weight: 600;
  box-shadow: 0 3px 12px rgba(16,185,129,.3);
}

/* ─── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-muted); margin-bottom: .4rem; text-transform: uppercase; letter-spacing: .04em; }
.form-control {
  width: 100%; padding: .65rem .9rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.form-control-lg { padding: .85rem 1.1rem; font-size: 1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.form-layout-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1.5rem; }
.form-card h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.form-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-select-xs { font-size: .78rem; padding: .2rem .4rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); }
.search-bar { display: flex; gap: .75rem; }
.input-eye { position: relative; }
.input-eye input { padding-right: 2.5rem; }
.eye-toggle { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: .9rem; color: var(--text-muted); }
.checkbox-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .9rem; color: var(--text); font-weight: 500; text-transform: none; letter-spacing: 0; }
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--primary); }
.link-sm { font-size: .85rem; }
.upload-drop { border: 2px dashed var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; position: relative; cursor: pointer; }
.upload-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-hint span { font-size: 2rem; }
.upload-hint p { font-size: .9rem; color: var(--text-muted); margin: .5rem 0 .25rem; }
.upload-hint small { color: var(--text-light); font-size: .78rem; }
.role-selector { display: flex; cursor: pointer; }
.role-selector input { display: none; }
.role-box {
  display: flex; flex-direction: column; gap: .25rem;
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; transition: border-color var(--transition);
  flex: 1;
}
.role-selector input:checked + .role-box { border-color: var(--primary); background: rgba(99,102,241,.05); }
.role-box strong { font-size: .95rem; }
.role-box span { font-size: .82rem; color: var(--text-muted); }

/* ─── Flash messages ────────────────────────────────────────── */
.flash {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.25rem; border-radius: var(--radius); margin: .75rem auto;
  font-size: .9rem; font-weight: 500;
}
.flash button { background: none; border: none; cursor: pointer; opacity: .6; font-size: 1rem; }
.flash-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.flash-error   { background: #fff5f5; border: 1px solid #fecaca; color: #b91c1c; }

/* ─── Badges ────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: .2rem .6rem; border-radius: 50px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.badge-green  { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-gray   { background: #f1f5f9; color: #475569; }
.badge-purple { background: #f5f3ff; color: #6d28d9; }
.badge-free   { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.badge-featured { position: absolute; top: .75rem; left: .75rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; padding: .25rem .75rem; border-radius: 50px; font-size: .72rem; font-weight: 700; }
.badge-free-img { position: absolute; top: .75rem; right: .75rem; background: linear-gradient(135deg, #10b981, #059669); color: #fff; padding: .25rem .75rem; border-radius: 50px; font-size: .72rem; font-weight: 700; }
.badge-distance { position: absolute; bottom: .75rem; right: .75rem; background: rgba(0,0,0,.65); color: #fff; padding: .2rem .6rem; border-radius: 50px; font-size: .72rem; font-weight: 700; backdrop-filter: blur(4px); }
.cat-tag { display: inline-flex; align-items: center; padding: .2rem .65rem; border-radius: 50px; font-size: .75rem; font-weight: 700; }
.cat-count { display: inline-block; background: rgba(255,255,255,.4); border-radius: 50px; padding: 0 .4rem; font-size: .7rem; margin-left: .3rem; }

/* ─── Section helpers ───────────────────────────────────────── */
.section { padding: 3rem 0; }
.section.bg-light { background: var(--surface-alt); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.75rem; }
.section-header h2 { font-size: 1.4rem; font-weight: 800; }
.link-more { font-size: .88rem; font-weight: 600; color: var(--primary); }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  padding: 5rem 0 4rem; color: #fff; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 1rem; }
.hero-title span { background: linear-gradient(135deg, #c084fc, #60a5fa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.75); margin-bottom: 2.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-search { background: rgba(255,255,255,.1); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.5rem; }
.hero-search-grid { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: .75rem; align-items: end; }
.search-field { display: flex; flex-direction: column; gap: .35rem; position: relative; }
.search-field label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.7); }
.search-field input { padding: .7rem 1rem; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.12); color: #fff; font-size: .95rem; }
.search-field input::placeholder { color: rgba(255,255,255,.5); }
.search-field input:focus { outline: none; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.2); }
.hero-search-btn { padding: .7rem 1.5rem; align-self: flex-end; }
.hero-cta-geo { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.hero-cta-geo span { color: rgba(255,255,255,.6); font-size: .9rem; }

/* Autocomplete */
.autocomplete-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 50; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); overflow: hidden; margin-top: .25rem; }
.autocomplete-item { padding: .65rem 1rem; cursor: pointer; font-size: .9rem; color: var(--text); }
.autocomplete-item:hover { background: var(--bg); color: var(--primary); }

/* ─── Category pills ────────────────────────────────────────── */
.category-pills { display: flex; gap: .65rem; flex-wrap: wrap; }
.cat-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem 1rem; border-radius: 50px;
  background: color-mix(in srgb, var(--cat-color) 15%, white);
  color: var(--cat-color); font-weight: 700; font-size: .875rem;
  border: 1.5px solid color-mix(in srgb, var(--cat-color) 30%, transparent);
  transition: all var(--transition);
}
.cat-pill:hover { background: var(--cat-color); color: #fff; transform: translateY(-2px); }

/* ─── Events grid ───────────────────────────────────────────── */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.events-grid-featured { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

/* ─── Event card ────────────────────────────────────────────── */
.event-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img-link { display: block; }
.card-img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.event-card:hover .card-img img { transform: scale(1.05); }
.card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.card-sold-out { position: absolute; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: .1em; }
.card-body { padding: 1.1rem; }
.card-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.event-city { font-size: .75rem; color: var(--text-muted); }
.card-title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: .4rem; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-excerpt { font-size: .82rem; color: var(--text-muted); margin-bottom: .75rem; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: .75rem; }
.card-date { font-size: .8rem; color: var(--text-muted); }
.card-time { color: var(--text-light); }
.price { font-weight: 700; color: var(--primary); }
.price-free { font-weight: 700; color: var(--success); }
.card-seats { margin-top: .75rem; }
.seats-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: .25rem; }
.seats-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 2px; transition: width .3s; }
.seats-label { font-size: .72rem; color: var(--text-muted); }

/* ─── Cities grid ───────────────────────────────────────────── */
.cities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.city-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; display: flex; flex-direction: column; gap: .2rem;
  transition: all var(--transition); color: var(--text);
}
.city-card:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--primary); }
.city-count { font-size: .75rem; color: var(--text-muted); margin-top: .25rem; }

/* ─── CTA section ───────────────────────────────────────────── */
.section-cta { padding: 4rem 0; }
.cta-box {
  background: linear-gradient(135deg, #1e1b4b, #4c1d95);
  border-radius: var(--radius-lg); padding: 3rem;
  display: flex; justify-content: space-between; align-items: center;
  color: #fff; gap: 2rem;
}
.cta-content h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: .75rem; }
.cta-content p { color: rgba(255,255,255,.75); margin-bottom: 1.5rem; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-visual { font-size: 5rem; opacity: .5; }

/* ─── Auth pages ────────────────────────────────────────────── */
.auth-page { display: flex; justify-content: center; align-items: center; padding: 3rem 1rem; min-height: calc(100vh - 130px); }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow); }
.auth-card-wide { max-width: 580px; }
.auth-logo { font-size: 1.5rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1.25rem; text-align: center; }
.auth-card h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: .25rem; }
.auth-sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.75rem; }
.auth-divider { text-align: center; position: relative; margin: 1.5rem 0; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { background: var(--surface); padding: 0 .75rem; position: relative; color: var(--text-muted); font-size: .85rem; }
.auth-switch { text-align: center; font-size: .9rem; color: var(--text-muted); }

/* ─── Event detail ──────────────────────────────────────────── */
.event-detail { padding-bottom: 4rem; }
.event-cover { height: 400px; overflow: hidden; position: relative; margin-bottom: -80px; }
.event-cover img { width: 100%; height: 100%; object-fit: cover; }
.event-cover-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,15,26,.8) 0%, transparent 60%); }
.event-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; padding-top: 2rem; }
.event-main { min-width: 0; }
.event-header { margin-bottom: 1.75rem; }
.event-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 900; line-height: 1.15; margin: .6rem 0; }
.event-meta-row { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; color: var(--text-muted); font-size: .88rem; margin-top: .75rem; }
.event-rating { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; font-size: .9rem; }
.stars { color: #f59e0b; letter-spacing: .05em; }

.event-gallery { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.gallery-thumb { width: 120px; height: 80px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-thumb:hover img { transform: scale(1.08); }

.event-tabs { margin-top: 2rem; }
.tabs-nav { display: flex; gap: .25rem; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.tab-btn { background: none; border: none; padding: .75rem 1.25rem; font-size: .9rem; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--transition); }
.tab-btn.active, .tab-btn:hover { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.prose { color: var(--text); line-height: 1.8; font-size: .95rem; }
.prose p, .prose br + * { margin-top: .75rem; }

.reviews-list { display: flex; flex-direction: column; gap: 1.25rem; }
.review-item { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); }
.review-header { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .5rem; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-date { margin-left: auto; }
.review-text { font-size: .9rem; color: var(--text-muted); }

/* ─── Sidebar booking card ──────────────────────────────────── */
.event-sidebar { position: relative; }
.sticky-card { position: sticky; top: 80px; }
.booking-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.booking-price { display: flex; align-items: baseline; gap: .5rem; margin-bottom: 1rem; }
.price-big { font-size: 2rem; font-weight: 900; color: var(--primary); }
.price-big.price-free { color: var(--success); }
.booking-seats { margin-bottom: 1rem; }
.booking-info { display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.booking-extra-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.booking-existing { text-align: center; }

.organizer-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-top: 1rem; }
.organizer-card h3 { font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .75rem; }
.organizer-info { display: flex; gap: .75rem; }
.organizer-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.organizer-avatar img { width: 100%; height: 100%; object-fit: cover; }

.event-map-section { margin-top: 3rem; }
.event-map-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.event-map { height: 300px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-top: 1rem; }

.breadcrumb { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .82rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--primary); }

/* ─── Modal ─────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1.5rem; backdrop-filter: blur(4px); }
.modal { background: var(--surface); border-radius: var(--radius-lg); padding: 2rem; width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); }
.modal h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; }
.modal-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.25rem; }

/* ─── Events page ───────────────────────────────────────────── */
.events-page { padding: 2rem 0; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.75rem; font-weight: 800; }
.page-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.events-page-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.filters-sidebar { position: sticky; top: 80px; }
.filters-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.filters-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.sort-bar { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.sort-btn { font-size: .82rem; font-weight: 600; color: var(--text-muted); padding: .3rem .75rem; border-radius: 50px; border: 1px solid var(--border); transition: all var(--transition); }
.sort-btn:hover, .sort-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ─── Search page ───────────────────────────────────────────── */
.search-page { padding-bottom: 4rem; }
.search-hero { background: linear-gradient(135deg, #1e1b4b, #312e81); padding: 3rem 0; }
.search-hero h1 { color: #fff; font-size: 2rem; font-weight: 900; margin-bottom: 1.5rem; }
.search-form-full { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-lg); padding: 1.5rem; }
.search-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.search-form-options { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.search-form-options .checkbox-label { color: rgba(255,255,255,.85); }

/* ─── Near Me (legacy classes kept for compat) ──────────────── */
.nearme-page { padding: 2rem 0 4rem; }
.nearme-header { text-align: center; margin-bottom: 2rem; }
.geo-prompt { text-align: center; padding: 5rem 2rem; }
.geo-icon { font-size: 4rem; margin-bottom: 1.25rem; }
.geo-prompt h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.geo-prompt p { color: var(--text-muted); margin-bottom: 1.5rem; }
.geo-loading { display: flex; flex-direction: column; align-items: center; padding: 4rem; gap: 1rem; }
.geo-error { text-align: center; padding: 4rem 2rem; }
/* radius-btn ancora usato nella barra controlli nearme */
.radius-btns { display: flex; gap: .4rem; }
.radius-btn { padding: .35rem .85rem; border: 1.5px solid var(--border); border-radius: 50px; background: none; font-size: .82rem; font-weight: 600; cursor: pointer; transition: all var(--transition); color: var(--text-muted); }
.radius-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ─── Profile ───────────────────────────────────────────────── */
.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; padding: 2rem 0; }
.profile-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 1rem; }
.profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.profile-avatar-wrap { margin-bottom: 1rem; display: flex; justify-content: center; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); }
.profile-avatar-initials { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; font-weight: 900; }
.profile-name { font-size: 1.2rem; font-weight: 700; margin-bottom: .25rem; }
.profile-bio { font-size: .85rem; color: var(--text-muted); margin-top: .75rem; }
.profile-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; text-align: center; }
.stat-card strong { display: block; font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.stat-card span { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.profile-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.profile-nav a { display: flex; align-items: center; gap: .6rem; padding: .8rem 1.25rem; font-size: .9rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); transition: background var(--transition); }
.profile-nav a:last-child { border-bottom: none; }
.profile-nav a:hover, .profile-nav a.active { background: var(--bg); color: var(--primary); }

/* ─── Bookings ──────────────────────────────────────────────── */
.bookings-list { display: flex; flex-direction: column; gap: 1rem; }
.booking-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; display: grid; grid-template-columns: 80px 1fr auto; gap: 1.25rem; align-items: center; }
.booking-cancelled { opacity: .6; }
.booking-cover { width: 80px; height: 60px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.booking-cover img { width: 100%; height: 100%; object-fit: cover; }
.booking-cover-placeholder { width: 80px; height: 60px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.booking-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .82rem; color: var(--text-muted); margin-top: .4rem; }
.booking-right { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; text-align: right; }
.booking-code { font-size: .75rem; font-family: monospace; background: var(--bg); padding: .2rem .5rem; border-radius: 6px; color: var(--text-muted); }

/* ─── Admin ─────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stats-grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; display: flex; gap: 1rem; align-items: center; }
.stat-tile-warn { border-color: #fecaca; }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.stat-value { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.stat-label { font-size: .75rem; color: var(--text-muted); margin-top: .2rem; }
.admin-nav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.admin-nav-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; text-align: center; font-weight: 700; font-size: .9rem; color: var(--text); transition: all var(--transition); }
.admin-nav-card:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); background: rgba(99,102,241,.04); }
.tab-filter { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tab-filter-btn { padding: .4rem .9rem; border: 1.5px solid var(--border); border-radius: 50px; font-size: .82rem; font-weight: 600; color: var(--text-muted); transition: all var(--transition); }
.tab-filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ─── Sidebar filtri (events/index) ────────────────────────── */
.filter-link {
  display: flex; align-items: center; gap: .45rem;
  padding: .45rem .7rem; border-radius: 8px; font-size: .86rem;
  color: var(--text-muted); transition: all var(--transition);
  text-decoration: none;
}
.filter-link:hover { background: var(--bg); color: var(--text); }
.filter-link.active {
  background: rgba(99,102,241,.1); color: var(--primary); font-weight: 700;
}
.filter-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.filter-count {
  margin-left: auto; font-size: .72rem; color: var(--text-light);
  background: var(--bg); padding: .05rem .4rem; border-radius: 50px;
}
/* Chip filtri attivi */
.active-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .75rem; border-radius: 50px; font-size: .78rem; font-weight: 600;
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.25);
  color: var(--primary);
}
.active-chip a { color: inherit; font-size: .8rem; text-decoration: none; opacity: .7; }
.active-chip a:hover { opacity: 1; }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table thead tr { border-bottom: 2px solid var(--border); }
.data-table th { padding: .65rem 1rem; text-align: left; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.data-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg); }
.td-actions { display: flex; gap: .4rem; align-items: center; }

/* ─── Organizer ─────────────────────────────────────────────── */
.cat-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .4rem; flex-shrink: 0; }

/* ─── Pagination ────────────────────────────────────────────── */
.pagination { margin-top: 2rem; }
.pagination ul { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }
.pagination li a, .pagination li.active a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1.5px solid var(--border); font-size: .88rem; font-weight: 600;
  color: var(--text); transition: all var(--transition);
}
.pagination li a:hover { border-color: var(--primary); color: var(--primary); }
.pagination li.active a { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ─── Empty state ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.empty-state p { color: var(--text-muted); }

/* ─── Error pages ───────────────────────────────────────────── */
.error-page { display: flex; align-items: center; justify-content: center; padding: 5rem 2rem; min-height: calc(100vh - 200px); }
.error-content { text-align: center; }
.error-code { font-size: 8rem; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.error-content h1 { font-size: 1.75rem; font-weight: 700; margin: .75rem 0 .5rem; }
.error-content p { color: var(--text-muted); margin-bottom: 2rem; }
.error-actions { display: flex; gap: 1rem; justify-content: center; }

/* ─── Geo states ────────────────────────────────────────────── */
.geo-loading { flex-direction: column; align-items: center; padding: 4rem; gap: 1rem; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Footer ────────────────────────────────────────────────── */
.footer { background: #1e1b4b; color: rgba(255,255,255,.75); padding: 3.5rem 0 0; margin-top: auto; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
.footer-brand .nav-logo { display: block; margin-bottom: .75rem; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.5); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-links h4 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: .75rem; }
.footer-links a { display: block; font-size: .88rem; color: rgba(255,255,255,.65); padding: .2rem 0; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; margin-top: 2.5rem; font-size: .82rem; color: rgba(255,255,255,.4); }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .event-layout { grid-template-columns: 1fr; }
  .event-sidebar { order: -1; }
  .sticky-card { position: static; }
  .form-layout-2col { grid-template-columns: 1fr; }
  .events-page-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-search-grid { grid-template-columns: 1fr; }
  .hero-cta-geo { flex-direction: column; }
  .nav-search { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .navbar.open .nav-links { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--surface); z-index: 99; padding: 1.5rem; border-top: 1px solid var(--border); align-items: flex-start; gap: 0; overflow-y: auto; }
  .navbar.open .nav-links a { padding: 1rem 0; border-bottom: 1px solid var(--border); width: 100%; font-size: 1rem; }
  .events-grid { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .search-form-grid { grid-template-columns: 1fr; }
  .booking-item { grid-template-columns: 60px 1fr; }
  .booking-right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .cta-box { flex-direction: column; text-align: center; }
  .cta-visual { display: none; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .auth-card { padding: 1.75rem 1.25rem; }
  .section { padding: 2rem 0; }
  .footer-links { grid-template-columns: 1fr; }
}
