/* ═══════════════════════════════════════════════════════════
   CREAM CLUB — Whimsical Theme
   Collaborative Restaurant Endeavors Amongst Men
═══════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --bg:           #fdf6ed;
  --bg-card:      #fffaf4;
  --bg-panel:     #ffffff;
  --bg-input:     #f7f0e4;
  --border:       rgba(180, 120, 60, 0.18);
  --border-med:   rgba(180, 120, 60, 0.32);

  --terra:        #c4622d;
  --terra-dim:    rgba(196, 98, 45, 0.10);
  --sage:         #5e8c61;
  --sage-dim:     rgba(94, 140, 97, 0.12);
  --gold:         #c9952a;
  --gold-dim:     rgba(201, 149, 42, 0.12);
  --plum:         #7a3d6b;
  --plum-dim:     rgba(122, 61, 107, 0.10);
  --teal:         #2e7d7a;
  --teal-dim:     rgba(46, 125, 122, 0.10);

  --brown:        #2d1b0e;
  --brown-mid:    #6b3c1c;
  --text:         #2d1b0e;
  --text-muted:   #8c6840;
  --text-dim:     #c4a878;
  --cream:        #fdf6ed;

  --radius:       16px;
  --radius-lg:    24px;
  --radius-pill:  100px;
  --shadow:       0 4px 20px rgba(45, 27, 14, 0.08);
  --shadow-lg:    0 12px 48px rgba(45, 27, 14, 0.16);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', -apple-system, sans-serif;
  --transition: 0.2s ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
}
input:focus, textarea:focus { border-color: var(--terra); }
textarea { resize: vertical; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-med); border-radius: 3px; }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253, 246, 237, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brown);
  display: flex; align-items: center; gap: 6px;
}
.logo-c { color: var(--terra); }
.logo-club {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  vertical-align: middle;
  background: var(--terra-dim);
  border: 1px solid rgba(196,98,45,0.2);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
}
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-link {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.nav-link:hover { color: var(--terra); background: var(--terra-dim); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 30px;
  background: var(--terra);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  border: none;
  box-shadow: 0 4px 14px rgba(196,98,45,0.35);
}
.btn-primary:hover { background: #a8521f; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(196,98,45,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.full-width { width: 100%; border-radius: var(--radius); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px;
  border: 2px solid var(--border-med);
  color: var(--brown-mid);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  background: transparent;
}
.btn-outline:hover { border-color: var(--terra); color: var(--terra); background: var(--terra-dim); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.btn-ghost:hover { color: var(--terra); background: var(--terra-dim); }

.btn-vote {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px;
  background: var(--sage-dim);
  color: var(--sage);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid rgba(94,140,97,0.3);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.btn-vote:hover { background: var(--sage); color: #fff; border-color: var(--sage); }
.btn-vote.voted { background: var(--sage-dim); color: var(--sage); cursor: default; }

.btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px;
  background: rgba(196,98,45,0.08);
  color: var(--terra);
  font-size: 0.82rem;
  font-weight: 700;
  border: 2px solid rgba(196,98,45,0.2);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.btn-danger:hover { background: var(--terra); color: white; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  text-align: center;
  background: #1f1008;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, #5c2d10 0%, transparent 65%),
    radial-gradient(ellipse 60% 60% at 10% 100%, rgba(94,140,97,0.25) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(201,149,42,0.15) 0%, transparent 55%);
}
/* Dot grid overlay */
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(253,246,237,0.12) 1px, transparent 1px);
  background-size: 32px 32px;
}
/* Wavy top border */
.hero-bg::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 40px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1.5px solid rgba(201,149,42,0.4);
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 32px;
  background: rgba(201,149,42,0.08);
}
.hero-eyebrow::before, .hero-eyebrow::after { content: '✦'; font-size: 0.6rem; }
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 13vw, 9rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.title-cream { display: block; color: #fdf6ed; }
.title-club {
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.55em;
  font-weight: 400;
  color: var(--gold);
  margin-top: 10px;
}
.hero-acronym {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(253,246,237,0.4);
  margin-bottom: 18px;
}
.hero-acronym span { color: var(--gold); font-weight: 700; }
.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  color: rgba(253,246,237,0.6);
  margin-bottom: 44px;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-emblem {
  position: absolute;
  font-size: clamp(8rem, 22vw, 18rem);
  opacity: 0.04;
  right: 3%;
  top: 50%;
  transform: translateY(-50%) rotate(20deg);
  pointer-events: none; user-select: none;
}

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar {
  display: flex; align-items: center; justify-content: center;
  border-bottom: 2px solid var(--border);
  background: var(--bg-panel);
  padding: 28px 0;
  gap: 0;
}
.stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 52px;
  position: relative;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}
.stat:nth-child(1) .stat-num { color: var(--terra); }
.stat:nth-child(3) .stat-num { color: var(--sage); }
.stat:nth-child(5) .stat-num { color: var(--plum); }
.stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.stat-divider { width: 1px; height: 48px; background: var(--border); }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 80px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}
/* Underline squiggle */
.section-title::after {
  content: '';
  display: block;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--gold), var(--sage));
  border-radius: 2px;
  margin: 8px auto 0;
}
.section-sub {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 12px;
}

/* ── Visits Grid ─────────────────────────────────────────── */
.visits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* ── Visit Card ──────────────────────────────────────────── */
.visit-card {
  background: var(--bg-panel);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.visit-card:hover {
  transform: translateY(-5px) rotate(-0.4deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-med);
}
.card-thumb {
  height: 190px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.visit-card:hover .card-thumb img { transform: scale(1.08); }
.card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card-month-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(253,246,237,0.95);
  border: 1.5px solid var(--border-med);
  color: var(--brown);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(45,27,14,0.1);
}
.thumb-super-badge {
  position: absolute; top: 14px; right: 14px;
  background: rgba(253,246,237,0.95);
  border: 1.5px solid rgba(201,149,42,0.5);
  font-size: 0.9rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(45,27,14,0.1);
}
.card-photo-count {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(253,246,237,0.92);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
}
.card-photo-count:hover { color: var(--terra); border-color: var(--terra); }
.card-body { padding: 20px 22px 16px; }
.card-name-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px; margin-bottom: 6px;
}
.card-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.2;
}
.card-name-row .card-name { margin-bottom: 0; }
.card-super-vote-badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1.5px solid rgba(201,149,42,0.3);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}
.card-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.card-meta-sep { color: var(--text-dim); }
.card-picker { color: var(--terra); font-weight: 700; font-size: 0.77rem; }
.card-stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 1px; display: block; margin-bottom: 4px; }
.card-stars .empty { color: var(--text-dim); }
.card-notes {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.55;
  border-top: 1.5px dashed var(--border);
  padding-top: 10px;
  margin-top: 8px;
}
.card-footer {
  padding: 12px 22px;
  border-top: 2px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(180,120,60,0.04);
}
.card-attendees { display: flex; flex-wrap: wrap; gap: 4px; }
.attendee-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  background: var(--terra-dim);
  color: var(--terra);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(196,98,45,0.2);
}
.guest-pill {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1.5px dashed rgba(201,149,42,0.35);
}
.card-photos-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  background: none;
  border: none;
  font-family: inherit;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}
.card-photos-btn:hover { color: var(--terra); background: var(--terra-dim); }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }

/* ── Members Section ─────────────────────────────────────── */
.members-section {
  background: linear-gradient(180deg, var(--bg) 0%, #f5ece0 100%);
  border-top: 2px solid var(--border);
}

/* ── Panel ───────────────────────────────────────────────── */
.panel {
  background: var(--bg-panel);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.panel-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 6px;
}
.panel-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; }

/* ── Vote Panel ──────────────────────────────────────────── */
.vote-panel { margin-bottom: 24px; }
.vote-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.vote-title { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--brown); }
.vote-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.vote-status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-collecting { background: var(--gold-dim);  color: var(--gold);  border: 1.5px solid rgba(201,149,42,0.3); }
.badge-voting     { background: var(--sage-dim);   color: var(--sage);  border: 1.5px solid rgba(94,140,97,0.3);  }
.badge-closed     { background: var(--terra-dim);  color: var(--terra); border: 1.5px solid rgba(196,98,45,0.2); }

/* Nom Slots */
.nominations-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 24px; }
.nom-slot {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color var(--transition), transform var(--transition);
}
.nom-slot.filled { border-color: rgba(201,149,42,0.3); }
.nom-slot.filled:hover { transform: translateY(-2px); }
.nom-slot.empty-slot {
  border-style: dashed;
  display: flex; align-items: center; justify-content: center;
  min-height: 100px;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.nom-number { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.nom-name { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; color: var(--brown); margin-bottom: 4px; }
.nom-details { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.nom-by { font-size: 0.7rem; color: var(--terra); font-weight: 700; letter-spacing: 0.06em; }
.nom-votes { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.vote-bar-wrap { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.vote-bar { height: 100%; background: linear-gradient(90deg, var(--terra), var(--gold)); border-radius: 2px; transition: width 0.6s ease; }
.vote-count { font-size: 0.75rem; color: var(--gold); font-weight: 800; min-width: 20px; }
.nom-vote-btn { margin-top: 12px; }

/* Nominate Form */
.nominate-form {
  background: var(--bg);
  border: 2px dashed var(--border-med);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}
.nominate-form h4 { font-family: var(--font-serif); font-size: 1.05rem; color: var(--brown); margin-bottom: 14px; }
.nominate-form .form-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

/* Admin */
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.add-visit-form { margin-top: 24px; padding-top: 24px; border-top: 2px dashed var(--border); }
.form-subtitle { font-family: var(--font-serif); font-size: 1.05rem; color: var(--brown); margin-bottom: 14px; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; }

/* ── Form Styles ─────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.form-full { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* Star Picker */
.star-picker { display: flex; gap: 4px; }
.star { font-size: 1.6rem; color: var(--text-dim); cursor: pointer; transition: color var(--transition), transform var(--transition); line-height: 1; }
.star:hover, .star.active { color: var(--gold); transform: scale(1.25) rotate(-5deg); }

/* Attendee Checkboxes */
.attendee-checkboxes { display: flex; flex-wrap: wrap; gap: 8px; }
.attendee-cb-label {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  cursor: pointer;
  font-size: 0.83rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.attendee-cb-label:has(input:checked) {
  border-color: var(--terra);
  background: var(--terra-dim);
  color: var(--terra);
}
.attendee-cb-label input { display: none; }

/* ── Msg / Error ─────────────────────────────────────────── */
.msg, .error-msg { font-size: 0.85rem; padding: 10px 14px; border-radius: var(--radius); margin-top: 12px; }
.msg { background: var(--sage-dim); color: var(--sage); border: 2px solid rgba(94,140,97,0.25); }
.msg.error { background: var(--terra-dim); color: var(--terra); border: 2px solid rgba(196,98,45,0.25); }
.error-msg { background: var(--terra-dim); color: var(--terra); border: 2px solid rgba(196,98,45,0.25); }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(45,27,14,0.55);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-panel);
  border: 2px solid var(--border-med);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%; max-width: 420px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease;
}
.modal.modal-wide { max-width: 700px; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) rotate(0.5deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0); }
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  color: var(--text-muted); font-size: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { color: var(--terra); background: var(--terra-dim); }
.modal-emblem { font-size: 2rem; text-align: center; margin-bottom: 14px; }
.modal-title { font-family: var(--font-serif); font-size: 1.65rem; font-weight: 700; color: var(--brown); text-align: center; margin-bottom: 4px; }
.modal-sub { font-size: 0.8rem; color: var(--text-muted); text-align: center; letter-spacing: 0.08em; margin-bottom: 26px; }
.modal .form-group { margin-bottom: 14px; }

/* ── Photos Grid ─────────────────────────────────────────── */
.photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 16px; max-height: 400px; overflow-y: auto; }
.photos-grid-item { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--bg); border: 2px solid var(--border); }
.photos-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.photos-grid-item:hover img { transform: scale(1.06); }
.no-photos-msg { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--text-muted); font-style: italic; }
.photo-upload-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border: 2px dashed var(--border-med);
  border-radius: var(--radius-pill);
  color: var(--terra);
  font-size: 0.85rem; font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.photo-upload-label:hover { border-color: var(--terra); background: var(--terra-dim); }
.upload-plus { font-size: 1.2rem; }
.photo-upload-label input { display: none; }

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(31,16,8,0.96); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lb-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-lg); object-fit: contain; box-shadow: var(--shadow-lg); }
.lb-close { position: fixed; top: 20px; right: 24px; color: rgba(253,246,237,0.6); font-size: 1.2rem; width: 40px; height: 40px; border-radius: 50%; background: rgba(253,246,237,0.1); display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.lb-close:hover { color: var(--cream); background: rgba(253,246,237,0.2); }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); color: rgba(253,246,237,0.5); font-size: 3rem; padding: 16px; transition: color var(--transition); line-height: 1; }
.lb-nav:hover { color: var(--cream); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-counter { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 0.8rem; color: rgba(253,246,237,0.45); letter-spacing: 0.1em; }

/* ── Bylaws ──────────────────────────────────────────────── */
.bylaws-section { background: #f5ece0; border-top: 2px solid var(--border); }
.bylaws-container { max-width: 820px; }
.bylaws-header { text-align: center; margin-bottom: 48px; }
.bylaws-seal { font-size: 2.2rem; color: var(--terra); opacity: 0.5; margin-bottom: 14px; display: block; }

.bylaw-block {
  background: var(--bg-panel);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 38px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.mission-block {
  background: var(--brown);
  border-color: transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mission-block::before {
  content: '✦ ✦ ✦';
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  color: rgba(201,149,42,0.5);
  margin-bottom: 18px;
}
.mission-block::after {
  content: '✦ ✦ ✦';
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  color: rgba(201,149,42,0.5);
  margin-top: 18px;
}
.mission-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  color: rgba(253,246,237,0.88);
  line-height: 1.85;
  max-width: 600px;
  margin: 0 auto;
}

.roster-block { display: flex; flex-direction: column; }
.roster-group { padding: 18px 0; }
.roster-group:first-child { padding-top: 0; }
.roster-group:last-child { padding-bottom: 0; }
.roster-label { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.roster-members { display: flex; flex-wrap: wrap; gap: 8px; }
.roster-pill { font-size: 0.84rem; font-weight: 600; padding: 5px 16px; border-radius: var(--radius-pill); border: 2px solid var(--border); }
.founder-pill { color: var(--terra); background: var(--terra-dim); border-color: rgba(196,98,45,0.3); }
.board-pill   { color: var(--brown); background: rgba(45,27,14,0.05); border-color: var(--border-med); }
.social-pill  { color: var(--text-muted); background: transparent; border-style: dashed; }
.roster-divider { height: 2px; background: var(--border); border-style: dashed; border-width: 0; border-top: 2px dashed var(--border); background: transparent; }

.bylaw-section-title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--brown); margin-bottom: 18px; display: flex; align-items: baseline; gap: 10px; }
.bylaw-section-num { color: var(--terra); font-style: italic; }

.bylaw-list { list-style: none; counter-reset: bylaw-counter; display: flex; flex-direction: column; gap: 14px; }
.bylaw-list li {
  counter-increment: bylaw-counter;
  position: relative;
  padding-left: 44px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.65;
}
.bylaw-list li::before {
  content: counter(bylaw-counter);
  position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px;
  background: var(--terra-dim);
  color: var(--terra);
  border: 2px solid rgba(196,98,45,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
}
.bylaw-list strong { color: var(--terra); font-weight: 800; }

.bylaw-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bylaw-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
}
.bylaw-card:hover { border-color: var(--terra); transform: translateY(-2px) rotate(0.3deg); box-shadow: var(--shadow); }
.bylaw-card-icon { font-size: 1.4rem; margin-bottom: 8px; }
.bylaw-card-title { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; color: var(--brown); margin-bottom: 6px; }
.bylaw-card-body { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }

.bylaws-footer-note { text-align: center; font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.12em; padding-top: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.bylaws-seal-small { font-size: 0.85rem; color: var(--terra); opacity: 0.45; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--brown);
  padding: 52px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terra), var(--gold), var(--sage), var(--plum), var(--terra));
}
.footer-logo { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--cream); letter-spacing: 0.15em; margin-bottom: 8px; }
.footer-tagline { font-family: var(--font-serif); font-style: italic; color: rgba(253,246,237,0.45); font-size: 0.9rem; margin-bottom: 20px; }
.footer-copy { font-size: 0.72rem; color: rgba(253,246,237,0.25); letter-spacing: 0.08em; }

/* ── Auth ────────────────────────────────────────────────── */
.auth-user { display: flex; align-items: center; gap: 10px; }
.auth-name { font-size: 0.82rem; font-weight: 700; color: var(--brown); }
.auth-admin-badge { font-size: 0.62rem; font-weight: 800; padding: 2px 8px; background: var(--terra-dim); color: var(--terra); border: 1.5px solid rgba(196,98,45,0.3); border-radius: var(--radius-pill); letter-spacing: 0.1em; text-transform: uppercase; }

/* ── Vote Results ────────────────────────────────────────── */
.results-list { display: flex; flex-direction: column; gap: 10px; }
.result-item { display: flex; align-items: center; gap: 14px; background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius); padding: 14px 18px; transition: all var(--transition); }
.result-item.winner { border-color: rgba(201,149,42,0.45); background: var(--gold-dim); }
.result-rank { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: var(--text-dim); min-width: 28px; }
.result-item.winner .result-rank { color: var(--gold); }
.result-info { flex: 1; }
.result-name { font-family: var(--font-serif); font-size: 1.05rem; color: var(--brown); margin-bottom: 2px; }
.result-by { font-size: 0.75rem; color: var(--text-muted); }
.result-votes { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; color: var(--gold); white-space: nowrap; }

/* ── Card gradients ──────────────────────────────────────── */
.grad-0 { background: linear-gradient(145deg, #3d1a08 0%, #6b3318 100%); }
.grad-1 { background: linear-gradient(145deg, #0d2618 0%, #1a4030 100%); }
.grad-2 { background: linear-gradient(145deg, #1c0e30 0%, #321848 100%); }
.grad-3 { background: linear-gradient(145deg, #1a1a08 0%, #302c10 100%); }
.grad-4 { background: linear-gradient(145deg, #280c20 0%, #421838 100%); }
.grad-5 { background: linear-gradient(145deg, #081c28 0%, #103040 100%); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .stat { padding: 0 24px; }
  .visits-grid { grid-template-columns: 1fr; }
  .nominations-list { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .modal { padding: 28px 20px; }
  .hero-emblem { display: none; }
  .lb-nav { font-size: 2rem; padding: 10px; }
  .nominate-form .form-grid { grid-template-columns: 1fr; }
  .bylaw-block { padding: 22px 18px; }
  .bylaw-cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-bar { flex-direction: column; gap: 16px; }
  .stat-divider { display: none; }
  .vote-header { flex-direction: column; }
  .admin-actions { flex-direction: column; }
  .form-actions { flex-direction: column; }
}
