/* ═══════════════════════════════════════════════════════
   HUKEN CLUB — Design System
   Matches hukenbrygg.no cinematic aesthetic
   ═══════════════════════════════════════════════════════ */

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

/* ── Variables ── */
:root {
  --bg: #050505;
  --s1: #0a0a0a;
  --s2: #111111;
  --s3: #1a1a1a;
  --brand: #c8a44e;
  --brand-dim: rgba(200,164,78,0.08);
  --brand-glow: rgba(200,164,78,0.15);
  --brand-border: rgba(200,164,78,0.12);
  --warm: #e8dcc8;
  --muted: rgba(255,255,255,0.35);
  --sub: rgba(255,255,255,0.20);
  --faint: rgba(255,255,255,0.08);
  --err: #c84466;
  --ok: #5c8a5c;
  --gastro: #2a1a0a;
  --lounge: #0c0a14;
  --underground: #050505;
}

/* ── Body ── */
body {
  background: var(--bg);
  color: var(--warm);
  font-family: 'Lora', 'Georgia', serif;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Grain overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 0; }

/* ── Typography ── */
.font-instrument { font-family: 'Instrument Serif', serif; }
.font-lora { font-family: 'Lora', serif; }
.font-cormorant { font-family: 'Cormorant', serif; }
.font-bebas { font-family: 'Bebas Neue', sans-serif; }

/* ── Rise animation ── */
@keyframes rise {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise {
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.rise-1 { animation-delay: 0s; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.24s; }
.rise-4 { animation-delay: 0.36s; }
.rise-5 { animation-delay: 0.48s; }
.rise-6 { animation-delay: 0.60s; }
.rise-7 { animation-delay: 0.72s; }
.rise-8 { animation-delay: 0.84s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-in {
  animation: fadeIn 1.2s ease both;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
.float { animation: float 2.5s ease-in-out infinite; }

/* ── Gold line separator ── */
.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(200,164,78,0.15) 30%, rgba(200,164,78,0.15) 70%, transparent 100%);
}

/* ── Language toggle (hukenbrygg.no style) ── */
.lang-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  gap: 0.15rem;
}
.lang-toggle button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  font-family: 'Cormorant', serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  transition: color 0.3s;
}
.lang-toggle button.active,
.lang-toggle button:hover { color: rgba(255,255,255,0.8); }
.lang-sep { color: rgba(255,255,255,0.12); }

/* ── Navigation bar ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  height: 56px;
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}
.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,164,78,0.1), transparent);
}
.nav-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.15rem;
  color: var(--brand);
  letter-spacing: 0.02em;
}
.nav-badge {
  font-family: 'Cormorant', serif;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 0.75rem;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-btn {
  font-family: 'Cormorant', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
  text-transform: uppercase;
}
.nav-btn:hover { color: rgba(255,255,255,0.7); }
.nav-pts {
  font-family: 'Instrument Serif', serif;
  font-size: 0.85rem;
  color: var(--brand);
}

/* ── Decorative floor number ── */
.floor-number {
  position: absolute;
  top: 1.5rem;
  left: 1.75rem;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(6rem, 18vw, 14rem);
  line-height: 0.85;
  color: rgba(255,255,255,0.025);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* ── Section labels ── */
.section-label {
  font-family: 'Cormorant', serif;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-label-brand {
  font-family: 'Cormorant', serif;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ── Cards ── */
.card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--faint);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.4s ease;
}
.card:hover {
  border-color: rgba(200,164,78,0.12);
}
.card-glow {
  background: linear-gradient(135deg, rgba(200,164,78,0.04), rgba(200,164,78,0.01));
  border: 1px solid rgba(200,164,78,0.1);
  border-radius: 2px;
}

/* ── Stats ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--faint);
  border: 1px solid var(--faint);
  border-radius: 2px;
  overflow: hidden;
}
.stat-box {
  background: var(--bg);
  padding: 1.25rem 1rem;
  text-align: center;
}
.stat-val {
  font-family: 'Instrument Serif', serif;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--warm);
}
.stat-val-brand { color: var(--brand); }
.stat-val-accent { color: var(--err); }
.stat-lbl {
  font-family: 'Cormorant', serif;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ── CTA buttons (hukenbrygg.no style) ── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: 'Cormorant', serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 1px solid rgba(200,164,78,0.35);
  color: var(--brand);
  background: transparent;
  cursor: pointer;
  transition: all 0.35s ease;
  text-decoration: none;
}
.cta:hover {
  background: rgba(200,164,78,0.06);
  border-color: rgba(200,164,78,0.5);
}
.cta-light {
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
}
.cta-light:hover {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
}
.cta-solid {
  background: var(--brand);
  border-color: var(--brand);
  color: #000;
  font-weight: 600;
}
.cta-solid:hover {
  background: #d4b45c;
  border-color: #d4b45c;
}
.cta-full { width: 100%; justify-content: center; }
.cta:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* ── Form fields (hukenbrygg.no booking style) ── */
.field { margin-bottom: 1.5rem; }
.field-label {
  display: block;
  font-family: 'Cormorant', serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
  transition: color 0.4s;
}
.field-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 0;
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  outline: none;
  transition: border-color 0.4s ease;
}
.field-input:focus {
  border-color: rgba(200,164,78,0.4);
}
.field-input::placeholder {
  color: rgba(255,255,255,0.12);
}
.field-input:-webkit-autofill {
  -webkit-text-fill-color: rgba(255,255,255,0.9);
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 9999s ease-in-out 0s;
}
.field-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 0;
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  outline: none;
  cursor: pointer;
  transition: border-color 0.4s ease;
}
.field-select:focus { border-color: rgba(200,164,78,0.4); }
.field-select option { background: #111; color: #fff; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.field-checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.field-checkbox label {
  font-family: 'Cormorant', serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  line-height: 1.5;
}
.field-checkbox a { color: var(--brand); text-decoration: none; }
.field-checkbox a:hover { text-decoration: underline; }

/* ── Messages ── */
.msg { text-align: center; margin-top: 1rem; font-family: 'Cormorant', serif; font-size: 0.85rem; letter-spacing: 0.05em; display: none; }
.msg.error { color: var(--err); display: block; }
.msg.success { color: var(--ok); display: block; }

/* ── Avatar ── */
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-size: 1.6rem;
  color: #000;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(200,164,78,0.2);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Badges ── */
.badge {
  display: inline-block;
  font-family: 'Cormorant', serif;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.2rem 0.75rem;
  border-radius: 1px;
}
.badge-brand { background: var(--brand-dim); color: var(--brand); border: 1px solid rgba(200,164,78,0.15); }
.badge-business { background: rgba(100,160,255,0.06); color: rgba(100,160,255,0.7); border: 1px solid rgba(100,160,255,0.1); }
.badge-union { background: rgba(100,200,140,0.06); color: rgba(100,200,140,0.7); border: 1px solid rgba(100,200,140,0.1); }
.badge-ambassador { background: var(--brand-dim); color: var(--brand); border: 1px solid rgba(200,164,78,0.15); }
.badge-active { background: rgba(92,138,92,0.08); color: var(--ok); }
.badge-inactive { background: rgba(200,68,102,0.08); color: var(--err); }

/* ── Tables ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  font-family: 'Cormorant', serif;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--faint);
  font-weight: 400;
}
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  font-family: 'Lora', serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.data-table tr { transition: background 0.3s; }
.data-table tr:hover { background: rgba(200,164,78,0.03); }
.data-table .num { text-align: right; font-family: 'Instrument Serif', serif; color: var(--brand); }

/* ── Tabs ── */
.tabs {
  display: flex;
  overflow-x: auto;
  gap: 0;
}
.tabs::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--faint);
}
.tab {
  position: relative;
  flex: 1;
  padding: 1rem 0.75rem;
  font-family: 'Cormorant', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
  white-space: nowrap;
  text-align: center;
}
.tab:hover { color: rgba(255,255,255,0.5); }
.tab.active { color: var(--brand); }
.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: var(--brand);
}

/* ── Tab content ── */
.tab-content { display: none; padding: 1.5rem; }
.tab-content.active { display: block; }

/* ── Credits dots ── */
.credits-dots { display: flex; flex-wrap: wrap; gap: 5px; }
.credit-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}
.credit-dot.filled {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 8px rgba(200,164,78,0.25);
}

/* ── Streak ── */
.streak-days { display: flex; gap: 0.75rem; justify-content: center; }
.streak-day {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant', serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.4s;
}
.streak-day.active {
  border-color: rgba(200,164,78,0.25);
  color: rgba(200,164,78,0.6);
}
.streak-day.hit {
  border-color: var(--brand);
  color: #000;
  background: var(--brand);
}

/* ── Rank list ── */
.rank-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.3s;
}
.rank-row:last-child { border-bottom: none; }
.rank-row:hover { background: rgba(200,164,78,0.03); }
.rank-row.me { background: rgba(200,164,78,0.05); }
.rank-num {
  font-family: 'Instrument Serif', serif;
  font-size: 1.2rem;
  min-width: 28px;
  color: var(--muted);
}
.rank-row.me .rank-num { color: var(--brand); }
.rank-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-size: 0.75rem;
  color: #000;
}
.rank-name {
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  flex: 1;
}
.rank-pts {
  font-family: 'Instrument Serif', serif;
  font-size: 0.9rem;
  color: var(--brand);
  text-align: right;
}

/* ── Activity list ── */
.activity-item {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.activity-item:last-child { border-bottom: none; }
.activity-type { font-family: 'Lora', serif; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.activity-date { font-family: 'Cormorant', serif; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; }

/* ── Counter (checkin) ── */
.counter-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--faint);
  border-radius: 2px;
  padding: 1.25rem;
  text-align: center;
  flex: 1;
}
.counter-controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; }
.counter-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  transition: all 0.3s;
}
.counter-btn:hover {
  border-color: rgba(200,164,78,0.3);
  color: var(--brand);
}
.counter-val {
  font-family: 'Instrument Serif', serif;
  font-size: 1.75rem;
  min-width: 2rem;
  color: var(--warm);
}

/* ── Drink display ── */
.drink-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--faint);
}
.drink-icon { font-size: 1.25rem; }
.drink-label { font-family: 'Cormorant', serif; font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }
.drink-value { font-family: 'Lora', serif; font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* ── Info grid (staff) ── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--faint);
  border-radius: 2px;
  overflow: hidden;
  margin: 1rem 0;
}
.info-box {
  background: var(--bg);
  padding: 1rem;
  text-align: center;
}
.info-val {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  color: var(--brand);
}
.info-lbl {
  font-family: 'Cormorant', serif;
  font-size: 0.5rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ── Admin forms ── */
.form-row { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  padding: 0.6rem 0;
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  outline: none;
  flex: 1;
  min-width: 100px;
  transition: border-color 0.3s;
}
.form-input:focus { border-color: rgba(200,164,78,0.3); }
.form-input::placeholder { color: rgba(255,255,255,0.12); }

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-family: 'Cormorant', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(200,164,78,0.35);
  background: transparent;
  color: var(--brand);
  transition: all 0.3s;
}
.btn-sm:hover { background: rgba(200,164,78,0.06); }
.btn-sm-brand { background: var(--brand); color: #000; border-color: var(--brand); }
.btn-sm-brand:hover { background: #d4b45c; }

.msg-inline { font-family: 'Cormorant', serif; font-size: 0.75rem; letter-spacing: 0.05em; margin-top: 0.5rem; }
.msg-inline.ok { color: var(--ok); }
.msg-inline.err { color: var(--err); }

/* ── Filter chips ── */
.filter-row { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filter-chip {
  padding: 0.4rem 1rem;
  font-family: 'Cormorant', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s;
}
.filter-chip:hover { border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.5); }
.filter-chip.active { border-color: rgba(200,164,78,0.3); color: var(--brand); background: var(--brand-dim); }

/* ── Overview grid ── */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--faint);
  border: 1px solid var(--faint);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.ov-box {
  background: var(--bg);
  padding: 1.25rem 1rem;
  text-align: center;
}
.ov-val {
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  color: var(--brand);
  line-height: 1;
}
.ov-lbl {
  font-family: 'Cormorant', serif;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* ── QR Section ── */
.qr-card {
  background: #fff;
  border-radius: 2px;
  padding: 1.25rem;
  display: inline-block;
}

/* ── Event items ── */
.event-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.event-item:last-child { border-bottom: none; }
.event-date {
  font-family: 'Cormorant', serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand);
}
.event-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.15rem;
  margin-top: 0.25rem;
}
.event-floor {
  font-family: 'Cormorant', serif;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── Empty state ── */
.empty-text {
  font-family: 'Cormorant', serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  padding: 1.5rem;
}

/* ── Bilingual ── */
[data-en] { display: none; }
body.en [data-no] { display: none; }
body.en [data-en] { display: inline; }
body.en [data-en-block] { display: block; }

/* ── Page wrappers ── */
.page-center {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.75rem;
}
.page-scroll {
  min-height: 100dvh;
  padding-bottom: 5rem;
}
.page-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.75rem;
}

/* ── Responsive ── */
@media (min-width: 640px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .page-center { padding: 4rem 3rem; }
}
/* Huken Club */
/* v1 */
