/* Self-hosted Inter (latin + cyrillic) — no Google Fonts */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-700.woff2') format('woff2');
}

/* Closeby — Design System 2026 */
:root {
  --bg: #f7f7f5;
  --bg-elevated: #ffffff;
  --text: #0a0a0a;
  --text-secondary: #5c5c5c;
  --text-tertiary: #8a8a8a;
  --border: #e8e8e4;
  --border-strong: #d4d4d0;
  --accent: #0a0a0a;
  --accent-hover: #2a2a2a;
  --success: #1a7f4b;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.18s cubic-bezier(0.25, 0.1, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,247,245,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center; height: 64px;
}
.logo { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.04em; }
.header-right { display: flex; align-items: center; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition);
}
.nav-link:hover { color: var(--text); background: rgba(0,0,0,0.04); }

.page-nav {
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center;
  margin: 0 0 16px; padding-top: 4px;
}
.page-nav .back-link, .page-nav-back {
  background: none; border: none; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.9rem; font-weight: 550; color: var(--text-secondary);
  text-decoration: none; padding: 4px 0;
}
.page-nav .back-link:hover, .page-nav-back:hover { color: var(--text); }
.page-nav-home { margin-left: auto; }
@media (max-width: 480px) {
  .page-nav { gap: 8px 16px; }
  .city-card-name { font-size: 1rem; }
  .filters { gap: 6px; }
  .filter-chip { font-size: 0.8rem; padding: 6px 10px; }
}

.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.9rem; font-weight: 550; color: var(--text-secondary);
  text-decoration: none; padding: 4px 0;
}
.back-link:hover { color: var(--text); }
.form-actions { width: 100%; }

.lang-switcher { display: flex; gap: 2px; }
.lang-btn {
  background: transparent; border: none; padding: 5px 9px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 600; color: var(--text-tertiary); cursor: pointer;
  transition: var(--transition);
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--text); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-sm); font-weight: 550;
  font-size: 0.925rem; border: none; cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary {
  background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: #999; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text); background: rgba(0,0,0,0.04); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-telegram { background: #2AABEE; color: #fff; }
.btn-telegram:hover { background: #229ED9; }

.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4rem); font-weight: 700;
  letter-spacing: -0.045em; line-height: 1.08; margin-bottom: 18px;
}
.hero-sub {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 440px; margin: 0 auto 40px; line-height: 1.55;
}
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
  justify-items: stretch;
}
.home-quick-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px auto 0;
  max-width: 560px;
}
.city-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 22px 12px; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); font-weight: 550; font-size: 0.95rem;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.city-card:hover {
  border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow);
}
.city-card span { font-size: 0.75rem; color: var(--text-tertiary); font-weight: 400; margin-top: 4px; }

.section { padding: 56px 0; border-top: 1px solid var(--border); }
.section-title {
  font-size: 1.65rem; font-weight: 650; letter-spacing: -0.03em;
  text-align: center; margin-bottom: 36px;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; padding: 8px; }
.step-num {
  width: 40px; height: 40px; background: var(--text); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
  font-size: 0.95rem; margin: 0 auto 16px;
}
.step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 0.925rem; line-height: 1.5; }

.principles-list { list-style: none; max-width: 380px; margin: 0 auto 20px; }
.principles-list li {
  padding: 14px 0; border-bottom: 1px solid var(--border);
  font-size: 1.02rem; font-weight: 450;
}
.principle-note { text-align: center; color: var(--text-secondary); font-size: 0.925rem; }

.page-header { padding: 36px 0 20px; }
.page-header h1 {
  font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 6px;
}
.page-header p { color: var(--text-secondary); font-size: 0.95rem; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 28px; }
.filter-chip {
  padding: 8px 16px; border-radius: var(--radius-full); border: 1px solid var(--border);
  background: var(--bg-elevated); font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); cursor: pointer; transition: var(--transition);
}
.filter-chip:hover { border-color: #aaa; color: var(--text); }
.filter-chip.active { background: var(--text); color: #fff; border-color: var(--text); }

.events-grid { display: flex; flex-direction: column; gap: 14px; padding-bottom: 64px; }
.event-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: var(--transition); box-shadow: var(--shadow-sm);
}
.event-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.event-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: var(--text-tertiary); align-items: center; }
.event-category {
  background: #f0f0ec; padding: 3px 10px; border-radius: 6px;
  font-size: 0.78rem; font-weight: 500; color: var(--text-secondary);
}
.event-distance { color: var(--success); font-weight: 500; }
.event-card h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; line-height: 1.3; }
.event-desc { color: var(--text-secondary); font-size: 0.925rem; margin-bottom: 12px; line-height: 1.45; }
.event-location { font-size: 0.875rem; color: var(--text-tertiary); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.event-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.event-actions { display: flex; gap: 8px; align-items: center; }
.attendees-count { font-size: 0.85rem; color: var(--text-tertiary); }

.form-card {
  max-width: 520px; margin: 32px auto 64px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm);
}
.form-card h1 { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.03em; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 550; margin-bottom: 7px; }
.form-group .hint { font-size: 0.8rem; color: var(--text-tertiary); margin-top: 5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: #fff; font-size: 0.95rem;
  transition: var(--transition); color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.form-group textarea { min-height: 96px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-check { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--text); }

.profile-hero { display: flex; align-items: center; gap: 20px; padding: 36px 0 28px; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; background: var(--text); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 600; flex-shrink: 0;
}
.avatar.org { border-radius: 16px; }
.profile-type-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 500; padding: 3px 10px;
  border-radius: 6px; background: #f0f0ec; color: var(--text-secondary); margin-top: 4px;
}

.card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.card h2 { font-size: 1.05rem; font-weight: 600; margin-bottom: 18px; letter-spacing: -0.02em; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card-header h2 { margin-bottom: 0; }

.setting-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--border); gap: 16px;
}
.setting-item:last-child { border-bottom: none; }
.setting-info strong { display: block; font-weight: 550; font-size: 0.925rem; margin-bottom: 2px; }
.setting-info span { font-size: 0.82rem; color: var(--text-tertiary); }

.toggle:not(.check-line):not(label.check-line) {
  position: relative; width: 48px; height: 28px; flex-shrink: 0;
}
label.toggle:not(.check-line) {
  /* if misused as switch container without track — don't crush text */
  width: auto; height: auto; max-width: 100%;
}
.toggle:not(.check-line) input { opacity: 0; width: 0; height: 0; }
/* switches that use the track pattern keep compact size */
.toggle:has(.toggle-track),
.toggle:has(.toggle-ui) {
  position: relative; width: 48px; height: 28px; flex-shrink: 0;
}
.toggle-track {
  position: absolute; inset: 0; background: #d0d0cc; border-radius: 28px;
  cursor: pointer; transition: var(--transition);
}
.toggle-track::before {
  content: ""; position: absolute; width: 22px; height: 22px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle input:checked + .toggle-track { background: var(--text); }
.toggle input:checked + .toggle-track::before { transform: translateX(20px); }

.auth-card {
  max-width: 400px; margin: 64px auto; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 32px;
  box-shadow: var(--shadow); text-align: center;
}
.auth-card h1 { font-size: 1.5rem; font-weight: 650; margin-bottom: 8px; }
.auth-card .sub { color: var(--text-secondary); font-size: 0.925rem; margin-bottom: 28px; }
.auth-tabs {
  display: flex; background: var(--bg); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 24px;
}
.auth-tab {
  flex: 1; padding: 10px; border: none; background: transparent; border-radius: 8px;
  font-weight: 550; font-size: 0.9rem; color: var(--text-secondary); cursor: pointer; transition: var(--transition);
}
.auth-tab.active { background: var(--bg-elevated); color: var(--text); box-shadow: var(--shadow-sm); }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
  color: var(--text-tertiary); font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.empty { text-align: center; padding: 40px 20px; color: var(--text-secondary); font-size: 0.95rem; }
.empty a { color: var(--text); font-weight: 550; text-decoration: underline; text-underline-offset: 3px; }

.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.share-btn {
  padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); font-size: 0.8rem; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: var(--transition);
}
.share-btn:hover { border-color: #999; color: var(--text); }

.footer { padding: 40px 0; border-top: 1px solid var(--border); text-align: center; }
.footer-brand { font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.footer p { color: var(--text-tertiary); font-size: 0.875rem; }

.hidden { display: none !important; }

@media (max-width: 720px) {
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  /* Keep account + map visible on mobile portrait */
  .nav-links .nav-link { display: inline-flex !important; }
  .nav-links a[href="map.html"] { display: none !important; } /* map in quick links */
  .hero { padding: 40px 0 32px; }
  .header-right { gap: 6px; }
  .nav-link { padding: 8px 10px !important; font-size: 0.8rem !important; }
  /* Mobile: current lang + globe only (was hiding ALL langs including globe) */
  .lang-switcher {
    flex-shrink: 0;
    max-width: 42vw;
    overflow: visible;
  }
  .lang-switcher .lang-btn:not(.lang-globe-btn):not(.active) {
    display: none;
  }
  .lang-switcher .lang-btn.active,
  .lang-switcher .lang-globe-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .lang-globe-menu {
    position: fixed;
    right: 12px;
    left: 12px;
    top: 56px;
    width: auto;
    max-height: min(70vh, 420px);
    z-index: 2000;
  }
  .header-inner { height: 56px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .form-card, .auth-card { padding: 24px 20px; }
  .event-card { padding: 18px; }
}

/* Dynamic city cards with event title slideshow */
.city-card {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  text-align: center;
  align-items: center;
  padding: 18px 16px;
}
.city-card-name {
  font-weight: 650;
  text-align: center;
  width: 100%;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.city-card-country {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-bottom: 12px;
  text-align: center;
  width: 100%;
}
.city-slides {
  position: relative;
  width: 100%;
  min-height: 2.4em;
  margin-top: auto;
}
.city-slide {
  position: absolute;
  left: 0; right: 0; top: 0;
  font-size: 0.8rem;
  font-weight: 450;
  color: var(--text-secondary);
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.city-slide.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}
.city-slide-empty {
  color: var(--text-tertiary);
  font-style: italic;
}
.city-grid {
  max-width: 560px;
}

.event-organizer {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 500;
}

/* Language globe menu */
.lang-globe-wrap {
  position: relative;
  display: inline-flex;
}
.lang-globe-btn {
  font-size: 1rem !important;
  padding: 4px 8px !important;
}
.lang-globe-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(280px, 80vw);
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-globe-menu.hidden { display: none !important; }
.lang-globe-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text);
  transition: var(--transition);
}
.lang-globe-item:hover { background: rgba(0,0,0,0.05); }
.lang-globe-item.active { background: var(--text); color: #fff; }
.lang-native { font-weight: 500; }
.lang-code { font-size: 0.75rem; opacity: 0.6; font-weight: 600; }
.lang-globe-item.active .lang-code { opacity: 0.85; }

/* RTL support */
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
[dir="rtl"] .header-right { flex-direction: row-reverse; }
[dir="rtl"] .lang-globe-menu { right: auto; left: 0; }

.waitlist-notify {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  width: 100%;
  margin-bottom: 4px;
  cursor: pointer;
}
.waitlist-notify input { accent-color: var(--text); }
.event-actions {
  flex-wrap: wrap;
}

.filter-chip-custom {
  border-style: dashed;
  background: rgba(0,0,0,0.03);
}



/* ===== Final responsive polish ===== */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }

.header { padding: 12px 0; }
.logo { font-size: 1.25rem; }

@media (max-width: 720px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .hero-sub { font-size: 0.95rem; padding: 0 8px; }
  .city-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .city-card { min-height: 110px; padding: 14px 12px; }
  .event-card { padding: 16px; }
  .event-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .event-actions { width: 100%; }
  .filters {
    margin: 0 -16px;
    padding: 0 16px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter-chip { flex-shrink: 0; }
  .form-card, .auth-card { margin: 20px auto 40px; padding: 24px 18px; }
  .setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .lang-globe-menu {
    right: 0;
    left: auto;
    width: min(300px, calc(100vw - 24px));
  }
  .steps { gap: 28px; }
  .header-right { gap: 8px; }
  .lang-btn { padding: 4px 7px; font-size: 0.75rem; }
}

@media (max-width: 380px) {
  .city-grid { grid-template-columns: 1fr; }
  .btn-sm { padding: 10px 14px; }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .city-grid { grid-template-columns: repeat(3, 1fr); }
  .container { padding: 0 20px; }
}

/* Touch targets */
@media (pointer: coarse) {
  .btn, .filter-chip, .lang-btn, .interest-chip, .share-btn {
    min-height: 44px;
  }
  .toggle input { min-width: 20px; min-height: 20px; }
}

/* Safe areas (notched phones) */
@supports (padding: max(0px)) {
  .header .container,
  .footer .container,
  main .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

/* Profile about / org editor */
.photo-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.photo-preview {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--bg-muted, #f3f3f3); border: 1px dashed var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0; font-size: 1.5rem; color: var(--text-tertiary);
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.org-logo-preview { border-radius: 16px; }
.photo-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }

/* Public place page */
.place-hero { padding: 28px; }
.place-hero-top { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 16px; }
.place-avatar {
  width: 96px; height: 96px; border-radius: 50%; background: #111; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 600;
  overflow: hidden; flex-shrink: 0;
}
.place-avatar.org { border-radius: 20px; }
.place-avatar img { width: 100%; height: 100%; object-fit: cover; }
.place-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.place-badge {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 4px 8px; border-radius: 999px; background: rgba(0,0,0,0.06); color: var(--text-secondary);
}
.place-tagline { color: var(--text-secondary); margin: 4px 0 0; font-size: 1.05rem; }
.place-meta { color: var(--text-tertiary); font-size: 0.875rem; margin-top: 6px; }
.place-bio { line-height: 1.55; margin: 0 0 12px; white-space: pre-wrap; }
.place-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.place-tag {
  font-size: 0.8rem; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-elevated);
}
.place-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.place-grid { display: grid; gap: 12px; margin: 12px 0 20px; }
.place-detail strong { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); margin-bottom: 2px; }
.place-detail a { color: inherit; }
.place-promo {
  background: rgba(0,0,0,0.04); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px;
}
.place-promo p { margin: 6px 0 0; white-space: pre-wrap; }
.place-hours { margin: 6px 0 0; font-family: inherit; white-space: pre-wrap; font-size: 0.925rem; color: var(--text-secondary); }
@media (max-width: 560px) {
  .place-hero-top { flex-direction: column; align-items: center; text-align: center; }
  .place-badges, .place-tags, .place-actions { justify-content: center; }
}

/* Clubs & growth */
.clubs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.club-card {
  display: block; padding: 18px; border-radius: 16px; border: 1px solid var(--border);
  background: var(--bg-elevated); text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s;
}
.club-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.club-card-name { font-weight: 650; font-size: 1.1rem; letter-spacing: -0.02em; }
.club-card-meta { color: var(--text-tertiary); font-size: 0.8rem; margin-top: 4px; }
.club-card-desc { color: var(--text-secondary); font-size: 0.9rem; margin: 10px 0 0; line-height: 1.4; }
.page-head { margin: 24px 0 16px; }
.page-head h1 { font-size: 1.75rem; letter-spacing: -0.03em; margin: 0 0 6px; }
.page-head .sub { color: var(--text-secondary); margin: 0 0 14px; }
.filters-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ticket-box {
  font-size: 1.75rem; font-weight: 700; letter-spacing: 0.08em; text-align: center;
  padding: 24px; border-radius: 16px; background: #111; color: #fff; margin-top: 12px;
}
.install-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #111; color: #fff; display: none; gap: 12px; align-items: center; justify-content: center;
  box-shadow: 0 -8px 32px rgba(0,0,0,.25);
}
.install-banner.show { display: flex; flex-wrap: wrap; }
.install-banner button { margin: 0; }


/* ===== Closeby UI upgrades 2026-10 ===== */
.city-carousel-wrap { position: relative; margin: 8px auto 20px; max-width: 720px; padding: 0 36px; }
.city-carousel {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding: 4px 2px 16px;
  scrollbar-width: none; cursor: grab;
}
.city-carousel.dragging { cursor: grabbing; scroll-snap-type: none; }
.city-carousel::-webkit-scrollbar { display: none; }
.city-carousel .city-card {
  flex: 0 0 min(78%, 240px); scroll-snap-align: start;
  min-height: 120px; transition: transform .25s ease, box-shadow .25s ease;
  user-select: none;
}
@media (min-width: 768px) {
  .city-carousel .city-card { flex: 0 0 220px; }
}
.city-carousel .city-card:active { transform: scale(0.98); }
.city-carousel-dots {
  display: flex; justify-content: center; gap: 6px; margin-top: 4px;
}
.city-carousel-dots button {
  width: 7px; height: 7px; border-radius: 50%; border: none;
  background: var(--border-strong); padding: 0; cursor: pointer;
}
.city-carousel-dots button.active { background: var(--text); width: 18px; border-radius: 4px; }
.city-nav {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text); font-size: 1.4rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow-sm); z-index: 2;
}
.city-nav:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.city-nav-prev { left: 0; }
.city-nav-next { right: 0; }
@media (max-width: 640px) {
  .city-carousel-wrap { padding: 0; }
  .city-nav { display: none; }
}
.btn-choose-city {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px; font-weight: 600;
}
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,10,10,.45);
  backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center;
  padding: 0; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-sheet {
  background: var(--bg-elevated); width: 100%; max-width: 520px;
  max-height: 85vh; border-radius: 20px 20px 0 0; padding: 20px 20px 28px;
  transform: translateY(20px); transition: transform .25s ease;
  overflow: auto; box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: 24px; }
  .modal-sheet { border-radius: 20px; max-height: 70vh; }
}
.modal-sheet h2 { font-size: 1.25rem; margin: 0 0 12px; letter-spacing: -0.03em; }
.city-search { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong); margin-bottom: 12px; font-size: 1rem; }
.city-pick-list { display: flex; flex-direction: column; gap: 4px; }
.city-pick-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-radius: 12px; text-decoration: none; color: inherit;
  border: 1px solid transparent;
}
.city-pick-item:hover { background: rgba(0,0,0,.04); border-color: var(--border); }
.city-pick-item .meta { color: var(--text-tertiary); font-size: 0.8rem; }

.event-organizer {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
  font-size: 0.875rem; color: var(--text-secondary);
}
.organizer-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: #111; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; overflow: hidden; flex-shrink: 0;
}
.organizer-avatar.org { border-radius: 8px; }
.organizer-avatar img { width: 100%; height: 100%; object-fit: cover; }

#create-map, #preview-map, .create-map {
  height: 220px; border-radius: 14px; border: 1px solid var(--border);
  margin-top: 8px; background: #e8e8e4; z-index: 1;
}
.event-mini-map {
  position: relative; width: 100%; max-width: 160px; height: 100px;
  margin: 10px 0 4px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: #e8e8e4;
}
.event-mini-map img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-mini-map-pin {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px;
  margin: -16px 0 0 -7px; border-radius: 50% 50% 50% 0;
  background: #111; transform: rotate(-45deg);
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.event-mini-map-pin::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 8px; height: 8px;
  border-radius: 50%; background: #fff;
}
.footer {
  border-top: 1px solid var(--border); padding: 32px 0 40px; margin-top: 48px;
  text-align: center; color: var(--text-tertiary); font-size: 0.85rem;
}
.footer a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand { font-weight: 700; color: var(--text); font-size: 1rem; margin-bottom: 6px; letter-spacing: -0.03em; }
.terms-body { max-width: 720px; margin: 0 auto; padding: 32px 0 64px; line-height: 1.65; }
.terms-body h1 { font-size: 1.75rem; letter-spacing: -0.03em; margin-bottom: 8px; }
.terms-body h2 { font-size: 1.1rem; margin: 28px 0 8px; }
.terms-body p, .terms-body li { color: var(--text-secondary); }
.terms-meta { color: var(--text-tertiary); font-size: 0.85rem; margin-bottom: 24px; }

.hero h1 { letter-spacing: -0.045em; }
.city-card {
  border-radius: 18px; border: 1px solid var(--border);
  background: var(--bg-elevated); padding: 16px 18px;
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  display: block;
}
.city-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.city-card-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.city-card-country { color: var(--text-tertiary); font-size: 0.8rem; margin-top: 2px; }
.city-slides { position: relative; min-height: 1.4em; margin-top: 10px; overflow: hidden; }
.city-slide {
  position: absolute; left: 0; right: 0; opacity: 0; transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease; font-size: 0.85rem; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.city-slide.active { opacity: 1; transform: translateY(0); position: relative; }

.link-btn:hover { opacity: 0.75; }
.auth-switch { line-height: 1.5; }


.event-card-clickable { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.event-card-clickable:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.event-card-clickable:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.event-detail-map { background: #e8e8e4; }
.event-full-desc { font-size: 1.02rem; }

.friend-logo {
  width: 56px; height: 56px; border-radius: 14px; overflow: hidden;
  background: #f0f0ec; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.friend-logo img { width: 100%; height: 100%; object-fit: cover; }
.friend-logo-letter { font-weight: 700; font-size: 1.25rem; color: #111; }
.friend-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
#friends-filters { display: flex; flex-wrap: wrap; gap: 10px; }

.event-organizer {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 0 4px; font-size: 0.9rem; color: var(--text-secondary);
}
.organizer-avatar {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  background: #ecece8; display: flex; align-items: center; justify-content: center;
  font-weight: 650; font-size: 0.9rem; color: #111; flex-shrink: 0;
}
.organizer-avatar.org { border-radius: 10px; }
.organizer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.organizer-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.organizer-label { opacity: 0.75; }
.organizer-name { color: var(--text); font-weight: 600; }
.organizer-name a { color: inherit; text-decoration: none; }
.organizer-name a:hover { text-decoration: underline; }


/* PWA / home-screen icon: avoid notch & status bar overlap */
@supports (padding: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .header {
    padding-top: max(12px, env(safe-area-inset-top));
    /* when body already has padding-top, avoid double — see below */
  }
}
/* Prefer: body does NOT pad top; header absorbs inset (sticky stays correct) */
@supports (padding: env(safe-area-inset-top)) {
  body {
    padding-top: 0;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .header {
    padding-top: max(10px, env(safe-area-inset-top));
    padding-left: 0;
    padding-right: 0;
  }
  .header-inner {
    min-height: 56px;
    height: auto;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .auth-wrap {
    padding-top: max(24px, env(safe-area-inset-top));
  }
  main > .container:first-child,
  .page-header {
    /* small extra air under fixed header in standalone */
  }
}
@media all and (display-mode: standalone) {
  .header {
    padding-top: max(12px, env(safe-area-inset-top));
  }
  body {
    /* fill screen under status bar with same bg as header */
    background: var(--bg);
  }
}
@media all and (display-mode: fullscreen) {
  .header {
    padding-top: max(12px, env(safe-area-inset-top));
  }
}

.install-os {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: #fafaf8;
}
.install-os summary {
  cursor: pointer;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.install-os summary::-webkit-details-marker { display: none; }
.install-os summary::before {
  content: "›";
  font-weight: 700;
  transition: transform 0.15s;
  display: inline-block;
}
.install-os[open] summary::before { transform: rotate(90deg); }
.install-steps {
  margin: 10px 0 4px 8px;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}
.install-steps li { margin-bottom: 6px; }
.creator-notify-box {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafaf8;
}
.creator-notify-box label { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; font-size: 0.9rem; cursor: pointer; }
.creator-notify-box select {
  margin-top: 8px; width: 100%; max-width: 280px;
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-strong);
}

.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px;
  margin-top: 16px;
}
.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 550;
}
.footer-nav a:hover { color: var(--text); text-decoration: underline; }
.past-event-card { opacity: 0.95; }
.event-city-tag {
  font-size: 0.8rem; color: var(--text-tertiary);
  margin-left: 4px;
}

.feedback-modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.feedback-modal {
  position: relative;
  width: 100%; max-width: 440px;
  background: var(--bg-elevated, #fff);
  border-radius: 18px;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  max-height: min(90vh, 640px);
  overflow-y: auto;
}
.feedback-modal h2 {
  font-size: 1.25rem; margin: 0 0 8px; letter-spacing: -0.03em;
}
.feedback-close {
  position: absolute; top: 12px; right: 14px;
  border: none; background: none; font-size: 1.5rem;
  line-height: 1; cursor: pointer; color: var(--text-secondary);
  padding: 4px 8px;
}
.feedback-close:hover { color: var(--text); }
.feedback-modal .form-group { margin-bottom: 12px; text-align: left; }
.feedback-modal label {
  display: block; font-size: 0.85rem; font-weight: 550;
  margin-bottom: 4px; color: var(--text-secondary);
}
.feedback-modal input, .feedback-modal textarea {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border-strong, #ddd);
  font: inherit;
}

/* Visible checkbox (profile maps, org, settings) */
.check-row {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  cursor: pointer;
  position: relative;
  width: auto !important;
  max-width: 100%;
  min-height: 28px;
  height: auto !important;
  margin: 10px 0 !important;
  flex-wrap: nowrap;
  box-sizing: border-box;
}
.check-row input {
  position: absolute;
  opacity: 0;
  width: 28px;
  height: 28px;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.check-box {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-strong, #c8c8c4);
  border-radius: 7px;
  background: #fff;
  display: block;
  transition: 0.15s ease;
  pointer-events: none;
}
.check-row input:checked + .check-box {
  background: var(--text, #0a0a0a);
  border-color: var(--text, #0a0a0a);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}
.check-row input:focus-visible + .check-box {
  outline: 2px solid #4a9eff;
  outline-offset: 2px;
}
.setting-item .check-row { margin-left: 8px; }

/* Profile accordion */
.profile-acc {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius, 14px);
  background: var(--bg-elevated, #fff);
  overflow: hidden;
}
.profile-acc > .profile-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.profile-acc > .profile-acc-head h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.profile-acc .acc-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f0f0ec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.2s ease;
  color: var(--text-secondary);
}
.profile-acc.is-open .acc-chevron { transform: rotate(90deg); }
.profile-acc > .profile-acc-body {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
}
.profile-acc.is-open > .profile-acc-body {
  display: block;
  padding-top: 14px;
}
/* when card was already .card, flatten inside accordion */
.profile-acc .card {
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  background: transparent;
}
.profile-acc .card > h2 { display: none; } /* title is in head */

.toggle-ui {
  position: absolute; inset: 0; background: #d0d0cc; border-radius: 28px;
  cursor: pointer; transition: 0.18s;
  pointer-events: none;
}
.toggle-ui::before {
  content: ""; position: absolute; width: 22px; height: 22px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: 0.18s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle input:checked + .toggle-ui { background: var(--text); }
.toggle input:checked + .toggle-ui::before { transform: translateX(20px); }
.toggle input {
  position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0;
  cursor: pointer; z-index: 2;
}

.event-badge-adult {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  margin-left: 6px;
  vertical-align: middle;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.admin-stat {
  background: #f6f6f3;
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.admin-stat-val {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.admin-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary, #666);
  margin-top: 4px;
}
@media (max-width: 700px) {
  .admin-analytics-cols { grid-template-columns: 1fr !important; }
}
.org-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.event-cover {
  margin: -4px -4px 12px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eee;
}
.event-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-cover-detail {
  margin: 0 0 16px;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  max-height: 360px;
}
.event-card .event-cover {
  margin: 0 0 12px;
  border-radius: 12px;
}

.creator-manage-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
  padding: 12px;
  background: #f6f6f3;
  border-radius: 12px;
  border: 1px solid var(--border, #e5e5e0);
}
.event-delete-btn {
  color: #b00020 !important;
}
.event-actions .event-delete-btn,
.event-actions a.btn-secondary {
  flex-shrink: 0;
}

.attendee-chips { display:flex; flex-wrap:wrap; gap:8px; }
.attendee-chip { display:flex; align-items:center; gap:6px; padding:4px 10px 4px 4px; background:#f3f3ef; border-radius:999px; font-size:0.85rem; }
.attendee-chip img, .attendee-avatar {
  width:28px; height:28px; border-radius:50%; object-fit:cover;
  background:#ddd; display:inline-flex; align-items:center; justify-content:center; font-weight:600; font-size:0.75rem;
}
.event-update-form textarea { width:100%; padding:10px; border-radius:10px; border:1px solid var(--border-strong); margin-bottom:8px; font:inherit; }
.event-update-item { padding:10px 0; border-bottom:1px solid var(--border); }
.event-photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(100px,1fr)); gap:8px; margin-top:10px; }
.event-photo-grid img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:10px; }

.onboard-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 9999;
  display: flex; align-items: flex-end; justify-content: center; padding: 16px;
}
.onboard-card {
  background: #fff; border-radius: 16px; padding: 20px; width: 100%; max-width: 420px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.onboard-interests { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip-check {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  background: #f3f3ef; border-radius: 999px; font-size: 0.85rem; cursor: pointer;
}
.map-filters .map-when.active { background: #111; color: #fff; }


/* ===== Layout lock — no spill on any device ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
main { min-width: 0; }
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.header-inner {
  min-width: 0;
  gap: 8px;
  flex-wrap: nowrap;
}
.header-right {
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
  max-width: none;
  flex: 1 1 auto;
}
.logo { flex-shrink: 0; }
.event-card, .form-card, .card, .city-card {
  min-width: 0;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: normal;
}
.event-card h3, .event-card p, .city-card h3 {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.event-actions, .event-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.event-actions .btn, .event-actions .share-btn {
  flex: 0 1 auto;
  max-width: 100%;
}
.btn, .share-btn {
  white-space: normal;
  text-align: center;
  max-width: 100%;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.3;
  box-sizing: border-box;
}
.btn-full {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: normal;
  min-height: 48px;
  padding-left: 16px;
  padding-right: 16px;
}
a.btn {
  text-decoration: none;
  box-sizing: border-box;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.map-preview, .leaflet-container, #create-map, #event-map, .event-map {
  width: 100% !important;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.setting-item {
  min-width: 0;
}
.photo-row img, .org-logo-preview, .avatar-preview {
  max-width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .header-right { max-width: none; flex: 1 1 auto; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
  .header-right .btn { padding: 8px 12px; font-size: 0.82rem; }
  .lang-btn { padding: 6px 8px; }
  .event-actions { width: 100%; }
  .event-actions .btn { flex: 1 1 auto; }
  .city-carousel, .city-grid { width: 100%; }
  .page-nav { flex-wrap: wrap; }
  table { display: block; overflow-x: auto; max-width: 100%; }
}

@media (max-width: 480px) {
  .header-inner {
    height: 56px;
    min-height: 56px;
    padding: 0;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }
  .logo { font-size: 1.15rem; flex-shrink: 0; }
  .header-right {
    flex: 1 1 auto;
    max-width: none;
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
  }
  .header-right .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .lang-btn { padding: 5px 7px; font-size: 0.72rem; }
  .lang-switcher { gap: 1px; flex-shrink: 0; }
  .hero h1 { font-size: clamp(1.55rem, 9vw, 2rem); }
  .btn-lg { width: 100%; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
}

@media (min-width: 1025px) {
  .city-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Landscape phones */
@media (max-height: 420px) and (orientation: landscape) {
  .hero { padding: 24px 0; }
  .header-inner { height: 48px; }
}

/* Header always one row on phones */
@media (max-width: 720px) {
  .header-inner { flex-wrap: nowrap !important; height: 56px !important; }
  .header-right { flex-wrap: nowrap !important; max-width: none !important; width: auto !important; }
  .header-right .btn-primary,
  .header-right a.btn {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
  }
}

/* Project social icons in footer */
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
  padding-top: 4px;
}
.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.footer-social-link:hover {
  border-color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: #fff;
  background: var(--soc-color, #111);
  border-color: var(--soc-color, #111);
}
.social-ico-letter { line-height: 1; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}


/* Checkbox rows on forms (not the 48px switch) */
.check-line {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
  cursor: pointer;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  position: static !important;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}
.check-line input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  margin: 2px 0 0 0 !important;
  flex-shrink: 0 !important;
  opacity: 1 !important;
  accent-color: var(--text);
  position: static !important;
}
.check-line span {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

#notify-via-wrap {
  width: 100%;
  clear: both;
  position: relative;
  z-index: 1;
}
#notify-via-wrap label {
  display: block;
  margin-bottom: 7px;
}
#notify-via-wrap select {
  width: 100%;
  max-width: 100%;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.form-actions .btn {
  flex: 0 1 auto;
}

@media (max-width: 480px) {
  .check-line {
    gap: 10px !important;
    font-size: 0.92rem;
  }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form-actions .btn {
    width: 100%;
  }
}


/* Share sheet */
.share-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.share-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--bg, #f6f5f1);
  border-radius: 20px 20px 0 0;
  padding: 12px 20px 28px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
  max-height: 92vh;
  overflow-y: auto;
  animation: shareSlideUp 0.28s ease;
}
@keyframes shareSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.share-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: #ccc;
  margin: 4px auto 16px;
}
.share-sheet-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
}
.share-sheet-preview {
  margin: 0 0 8px;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
}
.share-sheet-link {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--text-secondary, #555);
  margin-bottom: 16px;
}
.share-sheet-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}
.share-sheet-qr-wrap img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border, #e5e5e5);
}
.share-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.share-sheet-actions .btn {
  width: 100%;
}
@media (min-width: 640px) {
  .share-sheet-backdrop {
    align-items: center;
    padding: 24px;
  }
  .share-sheet {
    border-radius: 20px;
    max-height: 85vh;
  }
}

.about-body ul, .about-body ol, .terms-body ul, .terms-body ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
  line-height: 1.55;
}
.about-body li, .terms-body li { margin-bottom: 0.45rem; }
.about-steps { list-style: decimal; }
.terms-body h2 { margin-top: 1.75rem; font-size: 1.15rem; }
.terms-body p { line-height: 1.6; color: var(--text-secondary, #333); }
.terms-body h1 { letter-spacing: -0.03em; }


/* ===== Profile cabinet ===== */
.profile-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 18px;
  flex-wrap: wrap;
}
.profile-hero-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}
.profile-hero-text {
  min-width: 0;
}
.profile-hero-text h1 {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.25;
  word-break: break-word;
}
.profile-hero-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}
.profile-logout-top {
  flex-shrink: 0;
  margin-left: auto;
  align-self: flex-start;
  white-space: nowrap;
}

.profile-inline-row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.profile-inline-row input,
.profile-inline-row select {
  flex: 1 1 auto;
  min-width: 0;
}
.profile-inline-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: 5.5rem;
}

/* Accordion sections */
.profile-acc {
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--border, #e8e6e1);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: box-shadow 0.2s ease;
}
.profile-acc.is-open {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.profile-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.profile-acc-head:hover {
  background: rgba(0,0,0,0.02);
}
.profile-acc-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}
.profile-acc .acc-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg, #f6f5f1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-secondary, #666);
  transition: transform 0.25s ease, background 0.2s;
  transform: rotate(0deg);
}
.profile-acc.is-open .acc-chevron {
  transform: rotate(90deg);
  background: #111;
  color: #fff;
}
.profile-acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.profile-acc.is-open > .profile-acc-body {
  grid-template-rows: 1fr;
}
.profile-acc-body-inner {
  overflow: hidden;
  min-height: 0;
}
.profile-acc .card {
  border: none;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
  padding: 0 18px 18px;
  background: transparent;
}
.profile-acc .card > h2 {
  display: none; /* title lives in accordion head */
}

.setting-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border, #eee);
  flex-wrap: wrap;
}
.setting-item:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}
.setting-info {
  flex: 1 1 160px;
  min-width: 0;
}
.setting-info strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.setting-info span,
.setting-info .hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-tertiary, #888);
  line-height: 1.4;
}

#profile-state .btn-ghost#btn-logout {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .profile-hero {
    padding: 12px 0 14px;
  }
  .profile-hero-text h1 {
    font-size: 1.2rem;
  }
  .profile-logout-top {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
  .profile-acc-head {
    padding: 14px 14px;
  }
  .profile-acc .card {
    padding: 0 14px 14px;
  }
  .profile-inline-row {
    flex-wrap: wrap;
  }
  .profile-inline-row .btn {
    width: 100%;
    min-width: 0;
  }
  .setting-item {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (min-width: 768px) {
  .profile-hero-text h1 {
    font-size: 1.5rem;
  }
  .profile-acc-head {
    padding: 18px 22px;
  }
  .profile-acc .card {
    padding: 0 22px 20px;
  }
}

.share-sheet-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.85rem;
  line-height: 1.45;
  background: rgba(0,0,0,0.04);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
  max-height: 160px;
  overflow: auto;
  font-family: inherit;
  color: var(--text-secondary, #333);
}

/* Login gate on profile — never collapse to a vertical strip */
#login-state {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 0 40px;
  box-sizing: border-box;
}
#login-state.hidden { display: none !important; }
#login-state .auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 28px 22px;
  text-align: center;
  box-sizing: border-box;
}
#login-state .auth-card h1 {
  font-size: 1.35rem;
  margin: 0 0 8px;
  word-break: normal;
  overflow-wrap: break-word;
}
#login-state .auth-card .sub {
  margin: 0 0 20px;
  color: var(--text-secondary, #666);
  line-height: 1.45;
  word-break: normal;
}
#login-state .auth-card .btn,
#login-state .auth-card a.btn {
  display: flex;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  text-align: center;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  box-sizing: border-box;
}

.auth-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.auth-wrap .auth-card {
  width: 100%;
  max-width: 420px;
}

.page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  padding: 8px 0 12px;
  box-sizing: border-box;
  flex-wrap: wrap;
}
.page-nav .back-link,
.page-nav-back,
.page-nav-home {
  flex: 0 0 auto;
  white-space: nowrap;
}


/* Feedback control in footer — looks like a link */
.footer-feedback-btn,
button.footer-feedback-btn {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline;
}
.footer-nav .footer-feedback-btn {
  color: var(--text-secondary, #666);
}
.footer-nav .footer-feedback-btn:hover {
  color: var(--text, #111);
}

.venue-badge { display:inline-block; margin-left:6px; padding:2px 8px; border-radius:999px; font-size:0.75rem; font-weight:600; vertical-align:middle; }
.venue-badge-ok { background:#e6f6ee; color:#1a7f4b; }
.venue-badge-pending { background:#f5f0e6; color:#8a6d3b; }


/* Profile interest chips — airy grid */
.interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.interest-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong, #ddd);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.2;
  user-select: none;
  min-height: 42px;
}
.interest-chip input {
  width: 18px;
  height: 18px;
  accent-color: #111;
  margin: 0;
  flex-shrink: 0;
}
.interest-chip:has(input:checked) {
  border-color: #111;
  background: #f3f3f0;
  font-weight: 600;
}
.interest-all { font-weight: 600; }
@media (max-width: 420px) {
  .interest-chip { padding: 9px 12px; font-size: 0.88rem; }
}

/* Organizer rating */
.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.85rem;
  line-height: 1;
  color: #c4c4bc;
  vertical-align: middle;
}
.rating-stars .star { font-size: 0.95rem; letter-spacing: -0.05em; }
.rating-stars .star.on { color: #111; }
.rating-stars .star.half {
  background: linear-gradient(90deg, #111 50%, #c4c4bc 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.rating-stars .rating-num {
  margin-left: 6px;
  font-weight: 650;
  font-size: 0.82rem;
  color: #111;
  letter-spacing: -0.02em;
}
.rating-stars .rating-count {
  margin-left: 2px;
  font-size: 0.78rem;
  color: var(--text-secondary, #666);
}
.rating-stars.rating-empty {
  color: var(--text-secondary, #888);
  font-size: 0.8rem;
  gap: 0;
}
.organizer-rating {
  display: block;
  margin-top: 6px;
}
.organizer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.event-organizer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.place-rating, .friend-rating {
  margin-top: 8px;
}
.place-rating .rating-stars {
  font-size: 0.95rem;
}
.place-rating .rating-stars .star { font-size: 1.1rem; }

.rating-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary, #666);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.place-rating .rating-label { margin-bottom: 6px; }

/* VIP status badge */
.vip-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #e8d5b5, #d4af78);
  color: #1a1510;
  vertical-align: middle;
  line-height: 1.4;
}
.vip-badge-inline.org {
  background: linear-gradient(135deg, #f0e6d0, #c9a227 60%, #8a7020);
}
body.tier-vip .vip-badge-inline {
  box-shadow: 0 0 12px rgba(212,175,120,0.35);
}
.vip-buy-card {
  margin: 16px 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong, #ddd);
  background: var(--bg-elevated, #fafafa);
}
.vip-buy-card h3 { margin: 0 0 8px; font-size: 1rem; }
.vip-buy-card .hint { margin-bottom: 12px; }

.seats-banner {
  display: inline-block;
  margin: 10px 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.seats-banner.seats-full { background: #8a3a3a; }
.split-badge {
  display: inline-block;
  margin: 6px 8px 6px 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong, #ccc);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary, #555);
}
body.tier-vip .seats-banner {
  background: linear-gradient(135deg, #e8d5b5, #d4af78);
  color: #1a1510;
}

/* Closeby VIP footer CTA (public site) */
.footer-vip-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.footer-vip-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 480px) {
  .footer-vip-cta { max-width: 100%; }
}


/* Event likes */
.btn-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  vertical-align: middle;
}
.btn-like-sm { padding: 6px 10px; font-size: 0.8rem; }
.btn-like-icon { font-size: 1.05em; line-height: 1; color: #c45c6a; }
.btn-like.is-liked {
  border-color: rgba(196, 92, 106, 0.45);
  background: rgba(196, 92, 106, 0.1);
  color: var(--text);
}
.btn-like:hover { border-color: rgba(196, 92, 106, 0.55); }

/* Features plus */
.event-templates { margin-bottom: 18px; }
.templates-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin: 0 0 8px; }
.templates-row { display: flex; flex-wrap: wrap; gap: 8px; }
.template-chip {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text);
}
.template-chip:hover { border-color: var(--border-strong); }
.nearby-section { padding-top: 12px; }
.empty-state {
  text-align: center;
  padding: 28px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
}
.empty-state .btn { margin-top: 12px; }
.guest-list-panel { margin: 16px 0; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); }
.guest-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.guest-table th, .guest-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.invite-pack { margin: 16px 0; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); }
.invite-pack-input { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); margin: 8px 0; font: inherit; }
.invite-pack-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.onboard-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 16px;
}
.onboard-card {
  background: var(--bg-elevated); color: var(--text);
  border-radius: 16px; padding: 24px; max-width: 400px; width: 100%;
  box-shadow: var(--shadow);
}
.onboard-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.venue-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
}
.venue-badge-ok {
  background: rgba(34, 140, 90, 0.12);
  color: #1a7a4c;
  border: 1px solid rgba(34, 140, 90, 0.3);
}
.venue-badge-pending {
  background: rgba(180, 140, 40, 0.12);
  color: #8a6a10;
  border: 1px solid rgba(180, 140, 40, 0.3);
}
#btn-interested { margin-left: 8px; }
#btn-ics-event, #btn-ics-city { margin-left: 8px; }


.today-section { padding-top: 8px; padding-bottom: 8px; }
.today-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.today-tab {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.today-tab.is-active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
body.tier-vip .today-tab.is-active {
  background: linear-gradient(135deg, #e8d5b5, #d4af78);
  color: #1a1510;
  border-color: transparent;
}
body.tier-vip .today-tab {
  border-color: var(--vip-border);
  background: rgba(212,175,120,0.06);
  color: var(--vip-text-secondary);
}


/* Checkbox row: custom box, no overlapping native control */
.check-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  position: relative;
  cursor: pointer;
  margin: 8px 0;
  line-height: 1.4;
}
.check-row input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.check-row .check-box {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1.5px solid var(--border-strong, #bbb);
  border-radius: 5px;
  background: var(--bg-elevated, #fff);
  display: inline-block;
  flex-shrink: 0;
  margin-top: 1px;
  box-sizing: border-box;
}
.check-row input[type="checkbox"]:checked + .check-box {
  background: var(--text, #111);
  border-color: var(--text, #111);
  box-shadow: inset 0 0 0 3px var(--bg-elevated, #fff);
}
.check-row > span:last-child,
.check-row > span:not(.check-box) {
  flex: 1;
  min-width: 0;
}


/* city modal force — never flow with page content */
#city-modal.modal-overlay,
.modal-overlay#city-modal,
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  z-index: 100000 !important;
  background: rgba(10, 10, 10, 0.5) !important;
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  transform: none !important;
}
.modal-overlay.open,
#city-modal.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.modal-sheet {
  position: relative !important;
  background: var(--bg-elevated, #fff) !important;
  width: 100% !important;
  max-width: 520px !important;
  max-height: 85vh !important;
  border-radius: 20px 20px 0 0 !important;
  padding: 20px 20px calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  overflow: auto !important;
  box-shadow: 0 -8px 40px rgba(0,0,0,.25) !important;
  margin: 0 auto !important;
}
@media (min-width: 640px) {
  .modal-overlay { align-items: center !important; padding: 24px !important; }
  .modal-sheet { border-radius: 20px !important; max-height: 70vh !important; }
}


/* split-cost / check rows: never vertical letters */
label.check-row,
.check-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 24px !important;
  writing-mode: horizontal-tb !important;
  white-space: normal !important;
}
.check-row .check-box {
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
}
.check-row input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  z-index: 2;
}
.check-row [data-i18n],
.check-row > span:not(.check-box) {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  display: inline !important;
  writing-mode: horizontal-tb !important;
  white-space: normal !important;
  line-height: 1.4 !important;
  word-break: normal !important;
}
