/* ── Variables ── */
:root {
  --bg: #0c0d12;
  --bg2: #111419;
  --bg3: #1a1c26;
  --bg4: #22253a;
  --border: #252836;
  --gold: #f5c518;
  --gold-dim: rgba(245,197,24,.15);
  --primary: #4f8ef7;
  --success: #22c55e;
  --danger: #ef4444;
  --text: #e8eaf0;
  --text2: #7c8196;
  --radius: 12px;
  --nav-h: 60px;
  --shadow: 0 8px 32px rgba(0,0,0,.55);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
textarea { resize: vertical; font-family: inherit; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(12,13,18,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
}
.nav-brand {
  background: none; border: none;
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .3px;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; flex-shrink: 0;
}
.nav-brand span { color: var(--text); font-weight: 600; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-wrap: nowrap;
}
.nav-link {
  color: var(--text2);
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: var(--bg3); }
.btn-members-entry {
  background: var(--gold);
  color: #111;
  border: none;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-left: 10px;
  transition: opacity .15s, transform .1s;
}
.btn-members-entry:hover { opacity: .88; }
.btn-members-entry:active { transform: scale(.97); }
.btn-mz-entry {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-left: 6px;
  transition: opacity .15s, transform .1s;
}
.btn-mz-entry:hover { opacity: .88; }
.btn-mz-entry:active { transform: scale(.97); }
.nav-hamburger {
  display: none;
  background: none; border: none;
  color: var(--text); font-size: 20px;
  margin-left: auto;
  padding: 6px 10px;
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(245,197,24,.09) 0%, transparent 65%),
    linear-gradient(180deg, #0c0d14 0%, #101220 100%);
}
.film-strip-row {
  position: absolute;
  left: 0; right: 0;
  height: 36px;
  background: repeating-linear-gradient(
    90deg,
    var(--bg3) 0px, var(--bg3) 54px,
    var(--bg) 54px, var(--bg) 62px
  );
  opacity: .55;
}
.top-strip    { top: var(--nav-h); }
.bottom-strip { bottom: 0; }
.film-strip-row::before,
.film-strip-row::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px;
  height: 7px;
  background: repeating-linear-gradient(
    90deg,
    var(--bg) 0px, var(--bg) 7px,
    transparent 7px, transparent 14px
  );
}
.film-strip-row::before { top: 5px; }
.film-strip-row::after  { bottom: 5px; }

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
  opacity: .85;
}
.hero-title {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #fff 40%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text2);
  margin-bottom: 36px;
  letter-spacing: .5px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary {
  display: inline-block;
  background: var(--gold);
  color: #111;
  padding: 13px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  transition: opacity .15s, transform .1s;
}
.btn-cta-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-cta-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 13px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: background .15s, transform .1s;
}
.btn-cta-ghost:hover { background: var(--bg3); transform: translateY(-1px); }
.hero-scroll-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text2);
  font-size: 20px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Site Sections ── */
.site-sec {
  padding: 90px 0;
  scroll-margin-top: var(--nav-h);
}
.dark-sec { background: var(--bg2); }
.sec-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.sec-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 10px;
  opacity: .8;
}
.sec-heading {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 16px;
}
.sec-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.edit-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  transition: color .15s, border-color .15s;
  vertical-align: middle;
  margin-left: 10px;
}
.edit-btn:hover { color: var(--gold); border-color: var(--gold); }

/* ── About Section ── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}
.about-text { font-size: 15px; color: var(--text2); line-height: 1.9; max-width: 640px; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex-shrink: 0;
}
.stat-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
  text-align: center;
  min-width: 110px;
}
.stat-box .stat-val { font-size: 28px; font-weight: 800; color: var(--gold); }
.stat-box .stat-lbl { font-size: 11px; color: var(--text2); margin-top: 4px; }

/* ── Featured Movie ── */
.featured-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.featured-poster {
  aspect-ratio: 2/3;
  background: var(--bg4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  overflow: hidden;
  min-height: 340px;
}
.featured-poster img { width: 100%; height: 100%; object-fit: cover; }
.featured-info { padding: 32px 32px 32px 0; display: flex; flex-direction: column; gap: 12px; }
.featured-badge {
  display: inline-block;
  background: var(--gold);
  color: #111;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 4px;
  align-self: flex-start;
}
.featured-title { font-size: 28px; font-weight: 800; line-height: 1.2; }
.featured-meta { color: var(--text2); font-size: 13px; }
.featured-genres { display: flex; gap: 6px; flex-wrap: wrap; }
.genre-tag {
  background: var(--bg4);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
}
.stars { color: var(--gold); letter-spacing: 2px; font-size: 16px; }
.featured-desc { color: var(--text2); font-size: 14px; line-height: 1.8; }
.featured-note {
  background: var(--gold-dim);
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: var(--gold);
}

/* ── Movies Grid ── */
.movies-toolbar { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.movies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.movie-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.movie-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.movie-poster {
  aspect-ratio: 2/3;
  background: var(--bg4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  overflow: hidden;
  position: relative;
}
.movie-poster img { width: 100%; height: 100%; object-fit: cover; }
.movie-poster-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text2);
}
.movie-poster-placeholder span { font-size: 11px; font-weight: 600; letter-spacing: 1px; }
.movie-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.movie-title { font-size: 14px; font-weight: 700; line-height: 1.3; }
.movie-meta { font-size: 11px; color: var(--text2); }
.movie-stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.movie-genres { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.movie-genre-tag {
  background: var(--bg4); border: 1px solid var(--border);
  color: var(--text2); padding: 1px 7px; border-radius: 10px; font-size: 10px;
}
.movie-recommender { font-size: 11px; color: var(--text2); margin-top: auto; padding-top: 8px; }
.movie-admin-actions { display: flex; gap: 6px; padding: 0 14px 12px; }
.movies-empty { color: var(--text2); text-align: center; padding: 48px 0; }

/* ── Officers Section ── */
.officers-wrap { display: flex; flex-direction: column; gap: 28px; }
.president-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  background: var(--bg3);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px;
  align-items: start;
}
.officer-avatar {
  width: 100%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg4);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  overflow: hidden;
  border: 2px solid var(--border);
  flex-shrink: 0;
  max-width: 120px;
}
.officer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.president-info { display: flex; flex-direction: column; gap: 8px; }
.president-badge {
  display: inline-block;
  background: var(--gold); color: #111;
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  padding: 2px 10px; border-radius: 4px; align-self: flex-start;
}
.president-name { font-size: 22px; font-weight: 800; }
.president-sub { font-size: 13px; color: var(--text2); }
.president-bio { font-size: 14px; color: var(--text2); line-height: 1.8; }

.officers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.officer-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  text-align: center;
  transition: border-color .2s;
}
.officer-card:hover { border-color: var(--gold); }
.officer-card .officer-avatar {
  width: 72px; height: 72px; margin: 0 auto 12px;
  font-size: 28px;
}
.officer-role {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--gold); text-transform: uppercase; margin-bottom: 4px;
}
.officer-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.officer-bio { font-size: 12px; color: var(--text2); line-height: 1.7; }
.officer-admin-actions { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }

/* ── Schedule Section ── */
.schedule-list { display: flex; flex-direction: column; gap: 14px; }
.schedule-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.schedule-card:hover { border-color: var(--gold); }
.schedule-left {
  background: var(--gold-dim);
  border-right: 1px solid var(--border);
  padding: 20px 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 110px; text-align: center;
}
.schedule-day { font-size: 15px; font-weight: 800; color: var(--gold); }
.schedule-time { font-size: 12px; color: var(--text2); margin-top: 4px; }
.schedule-body { padding: 18px 22px; }
.schedule-activity { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.schedule-location { font-size: 13px; color: var(--text2); }
.schedule-actions { padding: 18px 16px; display: flex; align-items: center; gap: 6px; }

/* ── Footer ── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text2);
  font-size: 14px;
}
.footer-member-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text2); padding: 7px 14px; border-radius: 7px; font-size: 13px;
  transition: color .15s, border-color .15s;
}
.footer-member-btn:hover { color: var(--gold); border-color: var(--gold); }

/* ── Members Area ── */
#view-members { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
#view-members.hidden { display: none; }

.members-topbar {
  height: var(--nav-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 12px;
  flex-shrink: 0;
}
.members-topbar-left  { display: flex; align-items: center; gap: 12px; }
.members-topbar-right { display: flex; align-items: center; gap: 8px; }
.members-brand { font-weight: 700; font-size: 15px; color: var(--gold); }
.last-update { font-size: 11px; color: var(--text2); }

.members-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 18px;
}

/* ── Buttons (shared) ── */
.btn {
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 500;
  transition: opacity .15s, transform .1s;
}
.btn:hover { opacity: .85; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-primary   { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-success   { background: var(--success); color: #fff; }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-ghost     { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-gold      { background: var(--gold); color: #111; font-weight: 700; }
.btn-sm        { padding: 5px 12px; font-size: 12px; }
.btn-del       { background: none; border: none; color: var(--danger); font-size: 15px; padding: 4px 8px; border-radius: 6px; }
.btn-del:hover { background: rgba(239,68,68,.12); }
.active-tab    { box-shadow: 0 0 0 2px var(--primary); }

/* ── User Bar ── */
.user-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.user-select-wrap { display: flex; align-items: center; gap: 8px; }
.user-select-wrap label { color: var(--text2); }
select {
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--border);
  padding: 7px 12px; border-radius: 8px; font-size: 13px;
  min-width: 150px;
}
select:focus { outline: 1px solid var(--primary); }

/* ── Panel ── */
.panel {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  margin-bottom: 18px;
}
.panel-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 16px;
  flex-wrap: wrap; gap: 10px;
}
.panel-header h2, .panel-header h3 { font-weight: 700; }
.subtitle { font-size: 12px; color: var(--text2); margin-top: 4px; }

/* ── Summary Cards ── */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.summary-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
}
.card-label { font-size: 10px; color: var(--text2); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.card-value { font-size: 20px; font-weight: 800; }
.card-sub { font-size: 11px; color: var(--text2); margin-top: 4px; }

/* ── Toggle Switch ── */
.switch-label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch {
  position: relative; width: 44px; height: 24px;
  background: var(--bg3); border-radius: 12px; border: 1px solid var(--border);
  transition: background .2s; flex-shrink: 0;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; background: var(--text2); border-radius: 50%;
  transition: transform .2s, background .2s;
}
input[type=checkbox]:checked + .switch { background: var(--primary); border-color: var(--primary); }
input[type=checkbox]:checked + .switch::after { transform: translateX(20px); background: #fff; }
input[type=checkbox] { display: none; }
.switch-text { font-size: 13px; color: var(--text2); }

/* ── Stock Table ── */
.table-wrap { overflow-x: auto; }
.stock-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stock-table th {
  text-align: left; padding: 9px 12px;
  color: var(--text2); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.stock-table td { padding: 11px 12px; border-bottom: 1px solid rgba(37,40,54,.5); vertical-align: middle; }
.stock-table tr:last-child td { border-bottom: none; }
.stock-table tr:hover td { background: rgba(79,142,247,.04); }
.badge {
  display: inline-block; padding: 2px 8px;
  border-radius: 6px; font-size: 12px; font-weight: 600;
}
.badge-pos { background: rgba(34,197,94,.15); color: var(--success); }
.badge-neg { background: rgba(239,68,68,.15); color: var(--danger); }
.badge-neu { background: rgba(124,129,150,.1); color: var(--text2); }
.symbol-tag {
  display: inline-block; background: rgba(79,142,247,.15);
  color: var(--primary); border-radius: 6px; padding: 2px 8px;
  font-weight: 700; font-size: 12px;
}
.pos { color: var(--success); }
.neg { color: var(--danger); }
.neu { color: var(--text); }
.masked { color: var(--text2); letter-spacing: 3px; }
.loading-cell { color: var(--text2); }

/* ── Empty Hint ── */
.empty-hint { text-align: center; padding: 64px 0; color: var(--text2); }
.empty-icon { font-size: 44px; margin-bottom: 14px; }

/* ── View wrappers ── */
.view { width: 100%; }
.view.hidden { display: none; }
.view.active { display: block; }
.hidden { display: none !important; }
.user-info-panel { padding-bottom: 10px; }

/* ── Tier Badges ── */
.tier-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700; vertical-align: middle;
}
.tier-badge.tier-big    { background: rgba(239,68,68,.18);  color: #f87171; border: 1px solid rgba(239,68,68,.35); }
.tier-badge.tier-rich   { background: rgba(167,139,250,.18);color: #c4b5fd; border: 1px solid rgba(167,139,250,.35); }
.tier-badge.tier-middle { background: rgba(245,158,11,.18); color: #fbbf24; border: 1px solid rgba(245,158,11,.35); }
.tier-badge.tier-baby   { background: rgba(96,165,250,.18); color: #93c5fd; border: 1px solid rgba(96,165,250,.35); }

/* ── Leaderboard Tiers ── */
.tier-section { margin-bottom: 26px; }
.tier-section-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 10px 10px 0 0;
  font-weight: 700; font-size: 15px; margin-bottom: 2px;
}
.tier-header-big    { background: rgba(239,68,68,.12); border-left: 4px solid #f87171; }
.tier-header-rich   { background: rgba(167,139,250,.12);border-left: 4px solid #c4b5fd; }
.tier-header-middle { background: rgba(245,158,11,.12); border-left: 4px solid #fbbf24; }
.tier-header-baby   { background: rgba(96,165,250,.12); border-left: 4px solid #93c5fd; }
.tier-section-icon  { font-size: 20px; }
.tier-section-range { font-size: 12px; color: var(--text2); font-weight: 400; }
.tier-section-count { margin-left: auto; font-size: 12px; color: var(--text2); font-weight: 400; }
.tier-section .leaderboard-list { display: flex; flex-direction: column; gap: 4px; }
.tier-section .lb-card { border-radius: 0; }
.tier-section .lb-card:last-child { border-radius: 0 0 10px 10px; }

/* ── Leaderboard Cards ── */
.leaderboard-list { display: flex; flex-direction: column; gap: 10px; }
.lb-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.lb-card-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; cursor: pointer; user-select: none;
  transition: background .15s; flex-wrap: wrap;
}
.lb-card-header:hover { background: rgba(79,142,247,.05); }
.lb-rank { font-size: 20px; font-weight: 900; width: 32px; text-align: center; flex-shrink: 0; }
.lb-rank.gold   { color: #f5c518; }
.lb-rank.silver { color: #94a3b8; }
.lb-rank.bronze { color: #b45309; }
.lb-rank.other  { color: var(--text2); }
.lb-name { font-size: 15px; font-weight: 700; flex: 1; min-width: 80px; }
.lb-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-left: auto; }
.lb-stat .stat-label { font-size: 10px; color: var(--text2); }
.lb-stat .stat-val   { font-size: 14px; font-weight: 700; }
.lb-chevron { color: var(--text2); transition: transform .2s; flex-shrink: 0; }
.lb-card.expanded .lb-chevron { transform: rotate(180deg); }
.lb-detail { display: none; padding: 0 18px 14px; }
.lb-card.expanded .lb-detail { display: block; }
.privacy-badge {
  font-size: 10px; color: var(--text2); background: var(--bg2);
  border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px;
}

/* ── Login Modal ── */
.login-modal { text-align: center; }
.login-top { padding: 28px 22px 0; }
.login-icon { font-size: 40px; margin-bottom: 10px; }
.login-top h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.login-sub { font-size: 13px; color: var(--text2); }

/* ── Star Input ── */
.star-input { display: flex; gap: 4px; margin: 4px 0 12px; }
.star { font-size: 24px; color: var(--bg4); cursor: pointer; transition: color .15s; }
.star.active { color: var(--gold); }
.star:hover { color: var(--gold); }

/* ── Modals ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
}
.modal {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); width: 460px; max-width: 95vw;
  box-shadow: var(--shadow); max-height: 90vh; overflow-y: auto;
}
.modal-wide { width: 740px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px; border-bottom: 1px solid var(--border);
}
.modal-close {
  background: none; border: none; color: var(--text2); font-size: 22px; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-body {
  padding: 18px 22px; display: flex; flex-direction: column; gap: 8px;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.modal-body label { font-size: 12px; color: var(--text2); }
.modal-body input, .modal-body textarea {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 9px 12px; border-radius: 8px;
  font-size: 13px; width: 100%;
}
.modal-body input:focus, .modal-body textarea:focus { outline: 1px solid var(--primary); }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 22px 18px; border-top: 1px solid var(--border);
}
.status-msg { font-size: 12px; min-height: 16px; }
.status-msg.ok      { color: var(--success); }
.status-msg.err     { color: var(--danger); }
.status-msg.loading { color: var(--text2); }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 26px; right: 26px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 20px;
  font-size: 13px; box-shadow: var(--shadow); z-index: 3000; max-width: 300px;
}
.toast.show { display: block !important; }

/* ── Admin list items ── */
.admin-list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.admin-list-item:last-child { border-bottom: none; }
.admin-list-name { flex: 1; font-weight: 600; font-size: 13px; }
.admin-list-sub { font-size: 11px; color: var(--text2); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(4, 1fr); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-poster { aspect-ratio: 16/7; min-height: 200px; font-size: 80px; }
  .featured-info { padding: 20px; }
  .president-card { grid-template-columns: 1fr; text-align: center; }
  .president-card .officer-avatar { margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
}
/* ── Game Zone ── */
.activity-panel { margin-bottom: 18px; }
.activity-bar { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; min-height: 52px; }
.act-stat { display: flex; flex-direction: column; gap: 2px; }
.act-val  { font-size: 26px; font-weight: 900; color: var(--text); line-height: 1.1; }
.act-lbl  { font-size: 10px; color: var(--text2); text-transform: uppercase; letter-spacing: .7px; }

.game-user-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 4px;
}
.game-user-label { font-size: 13px; color: var(--text2); white-space: nowrap; }

.game-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  align-items: start;
}
.wheel-container { display: flex; justify-content: center; padding: 8px 0 0; }
#wheel-canvas { display: block; max-width: 100%; }

.prob-table { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 12px; }
.prob-table-title {
  background: var(--bg3); padding: 7px 12px;
  font-size: 10px; font-weight: 700; color: var(--text2); letter-spacing: 1px; text-transform: uppercase;
}
.prob-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-top: 1px solid var(--border);
}
.prob-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.prob-name { flex: 1; color: var(--text); }
.prob-pct  { font-weight: 700; font-size: 11px; color: var(--text2); }

.spin-log-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid rgba(37,40,54,.5); font-size: 13px;
}
.spin-log-row:last-child { border-bottom: none; }

/* ── Group Zone ── */
.group-rules {
  display: flex; gap: 14px; flex-wrap: wrap;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 14px; font-size: 12px; color: var(--text2);
}
.group-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  margin-bottom: 10px; transition: border-color .2s;
}
.group-card:hover { border-color: rgba(79,142,247,.4); }
.group-card-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 10px; margin-bottom: 10px;
}
.group-id    { font-size: 10px; color: var(--text2); font-family: monospace; margin-bottom: 2px; }
.group-title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.group-note  { font-size: 12px; color: var(--text2); margin-top: 3px; }
.group-badge {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.group-badge.open   { background: rgba(34,197,94,.15); color: var(--success); border: 1px solid rgba(34,197,94,.3); }
.group-badge.closed { background: rgba(124,129,150,.1); color: var(--text2); border: 1px solid var(--border); }
.group-me {
  display: inline-block;
  background: rgba(245,197,24,.15); color: var(--gold);
  border: 1px solid rgba(245,197,24,.3);
  padding: 1px 7px; border-radius: 10px;
  font-size: 10px; font-weight: 700; vertical-align: middle; margin-left: 6px;
}
.group-me.joined { background: rgba(79,142,247,.15); color: var(--primary); border-color: rgba(79,142,247,.3); }
.group-card-footer {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.group-meta { font-size: 12px; color: var(--text2); }
.group-participants {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border);
}
.group-participants:empty { display: none; }
.participant-tag {
  background: var(--bg4); border: 1px solid var(--border);
  color: var(--text2); padding: 2px 8px; border-radius: 10px; font-size: 11px;
}
.spin-result-modal { text-align: center; }

/* ── Member Zone ── */
.mz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.mz-summary { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 4px; }
.mz-section-title {
  font-size: 11px; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: .7px; margin-bottom: 8px;
}
.mz-log-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid rgba(37,40,54,.5); font-size: 13px;
  gap: 8px;
}
.mz-log-row:last-child { border-bottom: none; }

/* ── Invite Code ── */
.btn-invite-entry {
  background: none; border: 1px solid var(--border);
  color: var(--text2); border-radius: 6px; padding: 6px 12px;
  font-size: 13px; cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn-invite-entry:hover { border-color: var(--gold); color: var(--gold); }
.invite-code-section { background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.invite-code-display {
  font-family: 'Courier New', monospace; font-size: 20px; font-weight: 800;
  letter-spacing: 3px; color: var(--gold);
  background: var(--bg4); border: 1px dashed rgba(245,197,24,.4);
  border-radius: 8px; padding: 10px 16px; text-align: center;
  margin: 6px 0; user-select: all;
}
.invite-code-hint { font-size: 11px; color: var(--text2); margin-top: 8px; }
.invite-code-empty { background: var(--bg3); border: 1px dashed var(--border); border-radius: 10px; padding: 14px; text-align: center; }
.invite-code-input-field { text-transform: uppercase; letter-spacing: 2px; font-family: monospace; font-size: 16px; }

/* ── Activity Cards (公開鳩團時段) ── */
.schedule-user-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.schedule-user-hint { font-size: 12px; color: var(--text2); }
.activity-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  margin-bottom: 12px; transition: border-color .2s;
}
.activity-card:hover { border-color: rgba(79,142,247,.4); }
.activity-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.activity-info { flex: 1; min-width: 0; }
.activity-movie { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.activity-meta  { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text2); margin-bottom: 3px; }
.activity-organizer { font-size: 12px; color: var(--text2); }
.activity-note  { font-size: 12px; color: var(--text2); margin-top: 5px; padding: 5px 10px; background: var(--bg4); border-radius: 6px; }
.activity-actions { display: flex; gap: 8px; margin-top: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.act-leave-btn  { color: var(--danger) !important; border: 1px solid var(--danger) !important; background: transparent !important; }

/* ── Activities in Member Zone ── */
.mz-act-row {
  padding: 10px 0; border-bottom: 1px solid rgba(37,40,54,.5);
}
.mz-act-row:last-child { border-bottom: none; }

/* ── Ticket Verification ── */
.ticket-badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 700; vertical-align: middle;
}
.ticket-badge.pending  { background: rgba(251,146,60,.15);  color: #fb923c; border: 1px solid rgba(251,146,60,.35); }
.ticket-badge.approved { background: rgba(52,211,153,.15);  color: var(--success); border: 1px solid rgba(52,211,153,.35); }
.ticket-badge.rejected { background: rgba(239,68,68,.12);   color: var(--danger);  border: 1px solid rgba(239,68,68,.3); }

.ticket-review-panel { grid-column: 1 / -1; }
.ticket-pending-count {
  background: var(--danger); color: #fff;
  border-radius: 50%; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
}
.ticket-review-card {
  border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px;
  margin-bottom: 10px; background: var(--bg4);
}
.ticket-img-wrap { margin: 10px 0; }
.ticket-thumb {
  max-width: 100%; max-height: 200px; border-radius: 6px;
  cursor: zoom-in; border: 1px solid var(--border);
  object-fit: contain; background: #000;
}
.ticket-review-actions { display: flex; gap: 8px; margin-top: 8px; }

.ticket-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.88);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: zoom-out;
}
.ticket-lightbox.hidden { display: none; }
.ticket-lightbox img { max-width: 92vw; max-height: 85vh; border-radius: 8px; object-fit: contain; }
.ticket-lightbox-hint { color: rgba(255,255,255,.5); font-size: 12px; margin-top: 12px; }

/* ── Create Activity Modal ── */
.act-organizer-display {
  color: var(--gold); font-weight: 700; padding: 4px 0 10px; font-size: 15px;
}
.act-create-tip {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; font-size: 12px; color: var(--text2);
  margin-top: 4px;
}

/* ── Bulk Spin Result ── */
.bulk-summary { display: flex; flex-direction: column; gap: 4px; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; }
.bulk-summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 3px 0; }
.bulk-count { font-weight: 800; color: var(--gold); font-size: 14px; }
.bulk-result-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; }
.bulk-result-row { display: flex; align-items: center; gap: 10px; padding: 6px 12px; font-size: 13px; border-bottom: 1px solid rgba(37,40,54,.5); }
.bulk-result-row:last-child { border-bottom: none; }
.bulk-result-row.bulk-prize { background: rgba(245,197,24,.05); }
.bulk-result-row.bulk-extra { background: rgba(244,114,182,.07); }
.bulk-idx { font-size: 10px; color: var(--text2); width: 28px; flex-shrink: 0; }

#view-member-zone { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
#view-member-zone.hidden { display: none; }

@media (max-width: 900px) { .game-grid { grid-template-columns: 1fr; } .mz-grid { grid-template-columns: 1fr; } }

@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 12px 20px; gap: 6px; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: block; }
  .btn-members-entry { margin-left: 0; width: 100%; }
  .cost-col { display: none; }
  .summary-cards { grid-template-columns: 1fr 1fr; }
  .lb-meta { gap: 10px; }
  .members-topbar { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 8px; }
  .members-body { padding: 12px; }
}
