/* ============================================================
   TAP BAR — Premium Design System
   Brand: Black/Charcoal + Red accent + White
   Font: Space Grotesk (bold display) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
  /* Brand Colors */
  --tap-red:        #E8183C;
  --tap-red-dark:   #C01030;
  --tap-red-light:  #FF2B4E;
  --tap-red-glow:   rgba(232, 24, 60, 0.18);

  /* Backgrounds */
  --tap-bg:         #0E0E0E;
  --tap-surface:    #181818;
  --tap-surface-2:  #222222;
  --tap-surface-3:  #2C2C2C;

  /* Text */
  --tap-white:      #FFFFFF;
  --tap-off-white:  #F2F2F0;
  --tap-muted:      #888888;
  --tap-muted-2:    #555555;

  /* Borders */
  --tap-border:     rgba(255,255,255,0.08);
  --tap-border-2:   rgba(255,255,255,0.14);

  /* Typography */
  --font-display:  'Space Grotesk', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-py:    clamp(64px, 8vw, 120px);

  /* Transitions */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--tap-bg);
  color: var(--tap-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; }

/* ─── Typography ────────────────────────────────────────── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

.text-red    { color: var(--tap-red); }
.text-muted  { color: var(--tap-muted); }
.text-white  { color: var(--tap-white); }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.75rem; }
.text-lg     { font-size: 1.125rem; }
.fw-medium   { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold     { font-weight: 700; }
.ls-wide     { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; }

/* ─── Layout Utilities ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

section { padding: var(--section-py) 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Prevent grid children from overflowing their cell */
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ─── Navigation ────────────────────────────────────────── */
.tap-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(20px, 4vw, 60px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s var(--ease-out), border-bottom 0.3s;
  border-bottom: 1px solid transparent;
}

.tap-nav.scrolled {
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--tap-border);
}

.tap-nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  color: var(--tap-white);
  transition: opacity 0.2s;
}

.tap-nav__logo:hover { opacity: 0.8; }

.tap-nav__logo-mark {
  width: 62px;
  height: 24px;
  background: url('/images/brand_p4.png') no-repeat center center;
  background-size: 310%;
  mix-blend-mode: screen;
  flex-shrink: 0;
}

.tap-nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.tap-nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tap-muted);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.tap-nav__links a:hover,
.tap-nav__links a.active {
  color: var(--tap-white);
  background: var(--tap-surface-2);
}

.tap-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hamburger */
.tap-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.tap-nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--tap-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav */
.tap-nav__mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--tap-bg);
  z-index: 999;
  padding: 32px 24px;
  flex-direction: column;
  gap: 4px;
}

.tap-nav__mobile.open { display: flex; }

.tap-nav__mobile a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 14px 0;
  border-bottom: 1px solid var(--tap-border);
  color: var(--tap-white);
  transition: color 0.2s;
}

.tap-nav__mobile a:hover { color: var(--tap-red); }

@media (max-width: 900px) {
  .tap-nav__links   { display: none; }
  .tap-nav__actions { display: none; }
  .tap-nav__hamburger { display: flex; }
}

/* ─── Nav User Dropdown ──────────────────────────────────── */
.nav-user-dropdown {
  position: relative;
}

.nav-user-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--tap-surface);
  border: 1px solid var(--tap-border);
  border-radius: 10px;
  padding: 6px;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.nav-user-dropdown.is-open .nav-user-dropdown__menu {
  display: block;
}

.nav-user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 0.85rem;
  color: var(--tap-text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  font-family: inherit;
}

.nav-user-dropdown__item:hover {
  background: var(--tap-surface-2);
  color: var(--tap-white);
}

.nav-user-dropdown__item--danger:hover {
  background: rgba(232,24,60,0.12);
  color: var(--tap-red);
}

.nav-user-dropdown__divider {
  height: 1px;
  background: var(--tap-border);
  margin: 4px 0;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s, opacity 0.18s, background 0.18s;
  white-space: nowrap;
  text-decoration: none;
}

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

.btn-primary {
  background: var(--tap-red);
  color: #fff;
  box-shadow: 0 4px 20px var(--tap-red-glow);
}
.btn-primary:hover {
  background: var(--tap-red-light);
  box-shadow: 0 6px 30px rgba(232,24,60,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--tap-white);
  border: 1px solid var(--tap-border-2);
}
.btn-ghost:hover {
  background: var(--tap-surface-2);
  border-color: rgba(255,255,255,0.25);
}

.btn-dark {
  background: var(--tap-surface-2);
  color: var(--tap-white);
}
.btn-dark:hover { background: var(--tap-surface-3); }

.btn-sm { padding: 8px 16px; font-size: 0.82rem; border-radius: 6px; }
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: 10px; }
.btn-xl { padding: 20px 48px; font-size: 1.1rem; border-radius: 12px; }
.btn-full { width: 100%; }

/* ─── Hero Section ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--tap-bg);
  overflow: hidden;
  padding-top: 72px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Brand image watermark — fixed, centered */
.hero__brand {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 270px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-mask-image: url('/images/brand_p4.png');
  mask-image: url('/images/brand_p4.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  .hero__brand {
    width: 105vw;
    opacity: 0.13;
  }
}

/* Animated gradient blob */
.hero__blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(232,24,60,0.2) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  animation: blobPulse 8s ease-in-out infinite;
  pointer-events: none;
}

.hero__blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(232,24,60,0.08) 0%, transparent 70%);
  bottom: -50px;
  left: 10%;
  animation: blobPulse 10s ease-in-out infinite reverse;
}

@keyframes blobPulse {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33%       { transform: scale(1.1) translate(20px, -20px); }
  66%       { transform: scale(0.95) translate(-15px, 15px); }
}

/* Pattern overlay */
.hero__pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(255,255,255,0.025) 39px,
      rgba(255,255,255,0.025) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(255,255,255,0.025) 39px,
      rgba(255,255,255,0.025) 40px
    );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(60px, 10vw, 120px) clamp(20px, 4vw, 60px);
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tap-red);
  margin-bottom: 28px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tap-red);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 128px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
  max-width: 14ch;
}

.hero__title em {
  color: var(--tap-red);
  font-style: normal;
}

.hero__sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--tap-muted);
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: 48px;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--tap-muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.hero__scroll svg { opacity: 0.5; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─── Taps Grid (Live Status) ───────────────────────────── */
.taps-section {
  background: var(--tap-surface);
  border-top: 1px solid var(--tap-border);
  border-bottom: 1px solid var(--tap-border);
}

.taps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.tap-card {
  background: var(--tap-bg);
  border: 1px solid var(--tap-border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.tap-card:hover {
  border-color: var(--tap-border-2);
  transform: translateY(-2px);
}

.tap-card--available { border-top: 3px solid var(--tap-red); }
.tap-card--busy { border-top: 3px solid #FF8C00; }
.tap-card--empty { border-top: 3px solid var(--tap-muted-2); }

.tap-card__number {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tap-muted);
  margin-bottom: 8px;
}

.tap-card__drink {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tap-white);
  margin-bottom: 6px;
  line-height: 1.2;
}

.tap-card__abv {
  font-size: 0.72rem;
  color: var(--tap-muted);
}

.tap-card__fill {
  height: 3px;
  background: var(--tap-surface-3);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}

.tap-card__fill-bar {
  height: 100%;
  background: var(--tap-red);
  border-radius: 2px;
  transition: width 1s var(--ease-out);
}

/* ─── Section Headers ────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(40px, 5vw, 64px);
  gap: 20px;
  flex-wrap: wrap;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tap-red);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--tap-red);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

/* ─── How It Works ──────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

@media (max-width: 900px)  { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .steps-grid { grid-template-columns: 1fr; } }

.step-card {
  padding: 40px 32px;
  background: var(--tap-surface);
  border: 1px solid var(--tap-border);
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}

.step-card:hover { background: var(--tap-surface-2); }

.step-card:first-child { border-radius: 16px 0 0 16px; }
.step-card:last-child  { border-radius: 0 16px 16px 0; }

@media (max-width: 560px) {
  .step-card:first-child { border-radius: 16px 16px 0 0; }
  .step-card:last-child  { border-radius: 0 0 16px 16px; }
}

.step-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--tap-surface-3);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.25s;
}

.step-card:hover .step-num { color: var(--tap-red); opacity: 0.4; }

.step-icon {
  width: 44px;
  height: 44px;
  background: var(--tap-red-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--tap-red);
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--tap-muted);
  line-height: 1.65;
}

/* ─── Drinks / Menu Cards ────────────────────────────────── */
.drink-card {
  background: var(--tap-surface);
  border: 1px solid var(--tap-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.drink-card:hover {
  border-color: var(--tap-border-2);
  transform: translateY(-4px);
}

.drink-card__color {
  height: 5px;
}

.drink-card__body {
  padding: 24px;
}

.drink-card__category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tap-red);
  margin-bottom: 8px;
}

.drink-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.drink-card__brewery {
  font-size: 0.8rem;
  color: var(--tap-muted);
  margin-bottom: 14px;
}

.drink-card__description {
  font-size: 0.85rem;
  color: var(--tap-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.drink-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drink-card__abv {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tap-muted);
  background: var(--tap-surface-2);
  padding: 4px 10px;
  border-radius: 20px;
}

.drink-card__price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.drink-card__price span {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--tap-muted);
}

.badge-limited {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--tap-red);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* ─── Stats Bar ─────────────────────────────────────────── */
.stats-bar {
  background: var(--tap-red);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }

.stat-item {
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  margin-top: 8px;
  text-transform: uppercase;
}

/* ─── Events Cards ──────────────────────────────────────── */
.event-card {
  background: var(--tap-surface);
  border: 1px solid var(--tap-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  gap: 0;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.event-card:hover {
  border-color: var(--tap-border-2);
  transform: translateY(-3px);
}

.event-card__date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--tap-red);
  padding: 24px 20px;
  min-width: 80px;
  text-align: center;
}

.event-card__day {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.event-card__month {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
}

.event-card__body {
  padding: 24px;
  flex: 1;
}

.event-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.event-card__subtitle {
  font-size: 0.82rem;
  color: var(--tap-muted);
  margin-bottom: 14px;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.event-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tap-muted);
  background: var(--tap-surface-2);
  padding: 4px 10px;
  border-radius: 20px;
}

.event-tag--free {
  color: #4ADE80;
  background: rgba(74, 222, 128, 0.1);
}

.event-tag--paid {
  color: #FCD34D;
  background: rgba(252, 211, 77, 0.1);
}

/* ─── Loyalty / Profile ─────────────────────────────────── */
.loyalty-tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.loyalty-tier--starter { background: rgba(255,255,255,0.08); color: var(--tap-muted); }
.loyalty-tier--bronze  { background: rgba(205,127,50,0.15); color: #CD7F32; }
.loyalty-tier--silver  { background: rgba(192,192,192,0.15); color: #C0C0C0; }
.loyalty-tier--gold    { background: rgba(255,215,0,0.15); color: #FFD700; }

/* ─── Cards & Panels ────────────────────────────────────── */
.panel {
  background: var(--tap-surface);
  border: 1px solid var(--tap-border);
  border-radius: 16px;
  padding: 32px;
}

.panel-sm { padding: 24px; border-radius: 12px; }

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--tap-border);
}

.panel__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

/* ─── Wallet Balance Display ────────────────────────────── */
.wallet-balance {
  background: linear-gradient(135deg, var(--tap-red) 0%, var(--tap-red-dark) 100%);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.wallet-balance::before {
  content: 'tap.';
  position: absolute;
  right: -10px;
  bottom: -30px;
  font-family: var(--font-display);
  font-size: 140px;
  font-weight: 700;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.04em;
}

.wallet-balance__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}

.wallet-balance__amount {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.wallet-balance__amount span {
  font-size: 0.5em;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  vertical-align: super;
}

/* ─── Forms ─────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tap-muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--tap-surface-2);
  border: 1px solid var(--tap-border);
  border-radius: 8px;
  color: var(--tap-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

.form-control::placeholder { color: var(--tap-muted-2); }

.form-control:focus {
  border-color: var(--tap-red);
  box-shadow: 0 0 0 3px var(--tap-red-glow);
}

.form-control.is-invalid {
  border-color: #FF4444;
  box-shadow: 0 0 0 3px rgba(255,68,68,0.15);
}

.form-control option { background: var(--tap-surface-2); }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-text {
  font-size: 0.78rem;
  color: var(--tap-muted);
  margin-top: 6px;
}

.invalid-feedback {
  font-size: 0.78rem;
  color: #FF6B6B;
  margin-top: 6px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--tap-red);
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.form-check label {
  font-size: 0.85rem;
  color: var(--tap-muted);
  cursor: pointer;
}

.input-group {
  display: flex;
  gap: 10px;
}

.input-group .form-control { flex: 1; }

/* ─── Auth Pages ─────────────────────────────────────────── */
.auth-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
  background: var(--tap-bg);
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(232,24,60,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-box {
  width: 100%;
  max-width: 440px;
  background: var(--tap-surface);
  border: 1px solid var(--tap-border);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 48px);
  position: relative;
  z-index: 1;
}

.auth-logo {
  text-align: center;
  margin-bottom: 36px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--tap-muted);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--tap-muted-2);
  font-size: 0.78rem;
}

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

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  background: var(--tap-surface-2);
  border: 1px solid var(--tap-border-2);
  border-radius: 8px;
  color: var(--tap-white);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.google-btn:hover { background: var(--tap-surface-3); }

/* ─── Alerts / Flash Messages ────────────────────────────── */
.alert {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: #4ADE80;
}

.alert-error {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.25);
  color: #FF6B6B;
}

.alert-info {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: #60A5FA;
}

/* ─── Tables ─────────────────────────────────────────────── */
.tap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.tap-table th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tap-muted);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--tap-border);
}

.tap-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--tap-border);
  color: var(--tap-white);
}

.tap-table tr:last-child td { border-bottom: none; }
.tap-table tr:hover td { background: var(--tap-surface-2); }

/* ─── Badges / Achievements ─────────────────────────────── */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.achievement-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--tap-surface-2);
  border: 1px solid var(--tap-border);
  border-radius: 12px;
  text-align: center;
  transition: border-color 0.2s;
}

.achievement-badge:hover { border-color: var(--tap-red); }

.achievement-badge__icon {
  width: 40px;
  height: 40px;
  background: var(--tap-red-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tap-red);
}

.achievement-badge__name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--tap-muted);
  line-height: 1.3;
}

/* ─── Status Badges ──────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.status-badge--pending   { background: rgba(251,191,36,0.15); color: #FBBf24; }
.status-badge--confirmed { background: rgba(74,222,128,0.15); color: #4ADE80; }
.status-badge--cancelled { background: rgba(255,68,68,0.1); color: #FF6B6B; }
.status-badge--completed { background: rgba(255,255,255,0.06); color: var(--tap-muted); }

/* ─── Footer ─────────────────────────────────────────────── */
.tap-footer {
  background: var(--tap-surface);
  border-top: 1px solid var(--tap-border);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand__logo {
  width: 90px;
  height: 34px;
  background: url('/images/brand_p4.png') no-repeat center center;
  background-size: 310%;
  mix-blend-mode: screen;
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--tap-muted);
  line-height: 1.65;
  margin-top: 16px;
  max-width: 36ch;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tap-muted);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--tap-muted);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--tap-white); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--tap-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--tap-muted-2);
}

/* ─── Admin Sidebar ──────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: var(--tap-surface);
  border-right: 1px solid var(--tap-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
  overflow-y: auto;
  transition: transform 0.28s ease;
}

/* ─── Admin Mobile ───────────────────────────────────────── */
.admin-mobile-bar { display: none; }
.admin-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 190; }
.admin-sidebar-overlay.is-visible { display: block; }

.admin-hamburger {
  background: none;
  border: 1px solid var(--tap-border);
  border-radius: 8px;
  color: var(--tap-white);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-240px);
  }
  .admin-sidebar.is-open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0 !important;
    padding: 72px 16px 24px !important;
  }
  .admin-mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--tap-surface);
    border-bottom: 1px solid var(--tap-border);
    padding: 0 16px;
    z-index: 150;
  }
}

.admin-sidebar__logo {
  padding: 24px 20px;
  border-bottom: 1px solid var(--tap-border);
}

.admin-sidebar__nav {
  padding: 16px 12px;
  flex: 1;
}

.admin-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tap-muted-2);
  padding: 8px 8px 4px;
  margin-top: 16px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tap-muted);
  transition: background 0.2s, color 0.2s;
  margin-bottom: 2px;
}

.admin-nav-item:hover,
.admin-nav-item.active {
  background: var(--tap-surface-2);
  color: var(--tap-white);
}

.admin-nav-item.active { color: var(--tap-red); }

.admin-main {
  margin-left: 240px;
  flex: 1;
  padding: 32px;
  min-height: 100vh;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--tap-border);
}

.admin-stat-card {
  background: var(--tap-surface);
  border: 1px solid var(--tap-border);
  border-radius: 14px;
  padding: 24px;
}

.admin-stat-card__value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.admin-stat-card__label {
  font-size: 0.78rem;
  color: var(--tap-muted);
  font-weight: 500;
}

/* ─── Scroll Animations ──────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* ─── Number Counter Animation ───────────────────────────── */
.count-up { display: inline-block; }

/* ─── Reservation Time Slots ─────────────────────────────── */
.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-slot {
  padding: 8px 14px;
  border: 1px solid var(--tap-border);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  background: transparent;
  color: var(--tap-muted);
}

.time-slot:hover { border-color: var(--tap-red); color: var(--tap-white); }
.time-slot.selected { background: var(--tap-red); border-color: var(--tap-red); color: #fff; }

/* ─── Responsive table wrapper ───────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ─── Profile header ─────────────────────────────────────── */
.profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.profile-header__info { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.profile-header__actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .profile-header { flex-direction: column; }
  .profile-header__actions { width: 100%; }
  .profile-header__actions .btn { flex: 1; justify-content: center; }
}

/* ─── Responsive Utilities ───────────────────────────────── */
.show-mobile { display: none; }
@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .show-mobile { display: block; }
}

/* ─── Top padding for fixed nav ─────────────────────────── */
main { padding-top: 72px; }
.hero { padding-top: 0; }
.hero + main { padding-top: 0; }

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

/* ─── Selection ─────────────────────────────────────────── */
::selection { background: var(--tap-red); color: #fff; }
