:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-elevated: #1a1a26;
  --border: #2a2a3a;
  --text: #e8e8f0;
  --text-muted: #8888a0;
  --accent: #e10600;
  --accent-glow: rgba(225, 6, 0, 0.25);
  --gold: #ffd700;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
  --radius: 12px;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Barlow", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  color-scheme: dark;
}

input,
textarea,
select {
  color: var(--text);
  color-scheme: dark;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-elevated) inset;
  transition: background-color 9999s ease-out 0s;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(225, 6, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(225, 6, 0, 0.05) 0%, transparent 50%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 100px,
      rgba(255, 255, 255, 0.01) 100px,
      rgba(255, 255, 255, 0.01) 101px
    );
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Header */
.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  letter-spacing: -0.5px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  opacity: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-right nav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 55vw;
}

.header-auth {
  position: relative;
  flex-shrink: 0;
}

.auth-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  text-decoration: none;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.auth-icon-btn:hover {
  border-color: var(--accent);
  background: rgba(225, 6, 0, 0.1);
  opacity: 1;
}

.auth-user-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.auth-user-btn[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-user-btn .header-avatar,
.auth-user-btn .header-avatar-ph {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 50%;
}

.auth-user-btn:hover {
  border-color: var(--accent);
}

.auth-menu {
  display: none;
  position: fixed;
  min-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  padding: 0.75rem;
  z-index: 10001;
}

.auth-menu.open {
  display: block;
}

.auth-menu-header {
  padding: 0.5rem;
}

.auth-menu-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
}

.auth-menu-user:hover {
  background: var(--bg-elevated);
}

.header-avatar,
.header-avatar-ph {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.header-avatar {
  border: 2px solid var(--border);
  object-fit: cover;
}

.header-avatar-ph {
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}

.auth-menu-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.auth-menu-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-display);
}

.auth-menu-msg {
  font-size: 0.85rem;
  color: var(--gold);
  padding: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}

.auth-menu-actions {
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  padding-top: 0.5rem;
}

.auth-menu-link {
  display: block;
  padding: 0.65rem 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
  border-radius: 6px;
  text-decoration: none;
}

.auth-menu-link:hover {
  background: var(--bg-elevated);
  color: var(--text);
  opacity: 1;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 480px;
  padding: 0.75rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  color-scheme: dark;
}

.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.search-field input::-webkit-search-decoration,
.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-field input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.drink-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drink-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.drink-card.open {
  border-color: rgba(225, 6, 0, 0.4);
}

.drink-card-header {
  display: grid;
  grid-template-columns: 36px 8px 1fr auto auto 24px;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.drink-card-header:hover {
  background: var(--bg-elevated);
}

.drink-rank {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-muted);
}

.drink-rank.gold { color: var(--gold); }
.drink-rank.silver { color: var(--silver); }
.drink-rank.bronze { color: var(--bronze); }

.drink-swatch {
  height: 32px;
  border-radius: 4px;
}

.drink-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.drink-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #f5f5fa;
  line-height: 1.2;
}

.drink-flavor {
  font-size: 0.9rem;
  color: #b8b8cc;
  line-height: 1.3;
}

.drink-avg {
  text-align: right;
}

.drink-avg-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.drink-avg-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--gold);
}

.drink-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.drink-chevron {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.drink-card-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.your-rating-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.your-rating-row label {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: var(--text);
}

.rating-input {
  width: 80px;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.rating-input:focus {
  outline: none;
  border-color: var(--accent);
}

.rating-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.member-ratings-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.member-rows {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: var(--bg-elevated);
}

.member-row.is-you {
  border: 1px solid rgba(225, 6, 0, 0.35);
  background: rgba(225, 6, 0, 0.08);
}

.member-row.empty {
  color: var(--text-muted);
  font-style: italic;
  background: transparent;
}

.member-row-name {
  color: #f0f0f8;
  font-weight: 500;
}

.member-row-score {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  font-size: 1.05rem;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty-state code {
  color: var(--gold);
  font-size: 0.9rem;
}

.pagination-info {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.page-label {
  font-family: var(--font-display);
  color: var(--text-muted);
}

.status-pending { color: var(--gold); }
.status-approved { color: #2ecc71; }
.status-rejected { color: #e74c3c; }

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  padding: 3rem 0 5rem;
}

/* Hero / Current Book */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero .book-author {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.meeting-date {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.meeting-date .date-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.meeting-date .date-value {
  font-weight: 700;
  color: var(--gold);
  font-size: 1.3rem;
}

/* Sections */
.section {
  margin-top: 4rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header .line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* About */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  border-left: 4px solid var(--accent);
}

.about-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 700px;
}

.about-card p + p {
  margin-top: 1rem;
}

/* Poll */
.poll-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.poll-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.poll-option:hover:not(.voted):not(.disabled) {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.poll-option.selected {
  border-color: var(--accent);
  background: rgba(225, 6, 0, 0.08);
}

.poll-option.voted {
  cursor: default;
}

.poll-option.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.poll-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.poll-option.selected .poll-radio,
.poll-option.user-vote .poll-radio {
  border-color: var(--accent);
}

.poll-option.selected .poll-radio::after,
.poll-option.user-vote .poll-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.poll-book-info {
  flex: 1;
}

.poll-book-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.poll-book-author {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.poll-bar-container {
  width: 120px;
  flex-shrink: 0;
}

.poll-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.poll-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.poll-votes {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
  width: 50px;
  text-align: right;
  flex-shrink: 0;
}

.poll-submit {
  margin-top: 1.5rem;
  display: none;
}

.poll-submit.visible {
  display: block;
}

.poll-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.poll-message.success {
  display: block;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.poll-message.error {
  display: block;
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.poll-total {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px var(--accent-glow);
}

.btn-google {
  background: white;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-google svg {
  width: 20px;
  height: 20px;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Rankings page */
.rankings-hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.rankings-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.rankings-hero p {
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

.auth-section {
  text-align: center;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.user-bar {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.notice-card {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.auth-tab {
  flex: 1;
  padding: 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.auth-tab.active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(225, 6, 0, 0.08);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-display);
}

.auth-form input {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.auth-form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.auth-form-message.error {
  display: block;
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.auth-form-message.success {
  display: block;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.user-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.user-bar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.user-status-badge {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-display);
  margin-top: 0.15rem;
}

.status-pending { color: var(--gold); }
.status-approved { color: #2ecc71; }
.status-rejected { color: #e74c3c; }

.notice-card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.notice-card strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notice-card p {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.notice-card.warning {
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.08);
}

.notice-card.error {
  border-color: rgba(231, 76, 60, 0.3);
  background: rgba(231, 76, 60, 0.08);
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.admin-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #f5f5fa;
}

.admin-card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.admin-form.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.admin-form.inline-form input {
  flex: 1;
  min-width: 140px;
  padding: 0.75rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
}

.admin-form.inline-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.admin-form.inline-form input::placeholder {
  color: var(--text-muted);
}

.admin-empty {
  color: var(--text-muted);
  padding: 1rem 0;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.section-desc {
  color: var(--text-muted);
  margin: -1rem 0 1.5rem;
  font-size: 0.95rem;
}

.drinks-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.drink-search {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}

.drink-search:focus {
  outline: none;
  border-color: var(--accent);
}

.pagination-info {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.page-label {
  font-family: var(--font-display);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.rating-scale-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 20px;
  text-align: center;
}

.community-drink-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
}

.community-drink-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}

.member-rating-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.member-rating-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-top: 1px solid var(--border);
}

.member-rating-row:first-child {
  border-top: none;
}

.member-rating-name {
  color: var(--text);
}

.member-rating-score {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
}


.user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.user-name {
  font-weight: 600;
}

/* Leaderboard */
.leaderboard {
  margin-bottom: 3rem;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
}

.leaderboard-rank {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.leaderboard-rank.gold { color: var(--gold); }
.leaderboard-rank.silver { color: var(--silver); }
.leaderboard-rank.bronze { color: var(--bronze); }

.leaderboard-color {
  width: 8px;
  height: 36px;
  border-radius: 4px;
  flex-shrink: 0;
}

.leaderboard-name {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.leaderboard-score {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}

.leaderboard-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 80px;
  text-align: right;
}

.leaderboard-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

/* Rating form */
.rating-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rating-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.rating-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.rating-card-color {
  width: 6px;
  height: 28px;
  border-radius: 3px;
}

.rating-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
}

.rating-slider-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rating-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  outline: none;
}

.rating-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.rating-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.rating-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  width: 40px;
  text-align: center;
}

.rating-submit-row {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.status-message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}

.status-message.visible {
  display: block;
}

.status-message.success {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-message.error {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.hidden {
  display: none !important;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer .tagline {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 640px) {
  .site-header {
    padding: 0.65rem 0.85rem;
    gap: 0.5rem;
  }

  .logo-text {
    font-size: 1rem;
  }

  .logo-sub {
    display: none;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .header-right {
    gap: 0.5rem;
  }

  .header-right nav {
    max-width: 42vw;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links a {
    font-size: 0.72rem;
    letter-spacing: 0;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-field {
    max-width: none;
  }

  .pagination-info {
    text-align: center;
  }

  .drink-card-header {
    grid-template-columns: 28px 6px 1fr auto;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
  }

  .drink-count,
  .drink-chevron {
    display: none;
  }

  .container {
    padding: 0 1rem;
  }

  .poll-bar-container {
    display: none;
  }

  .user-bar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .leaderboard-count {
    display: none;
  }
}
