/* Club 11 — Premium Poker Theme v3 */
/* Source: sleek.design project z6LwuPKkRvh */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --bg: #0b0e14;
  --bg2: #141821;
  --bg3: #1e2738;
  --border: #1e2738;
  --fg: #f8fafc;
  --fg-muted: #64748b;
  --gold: #c9a84c;
  --gold-dark: #a3863a;
  --gold-glow: rgba(201, 168, 76, 0.25);
  --gold-glow-strong: rgba(201, 168, 76, 0.5);
  --green: #34d399;
  --green-bg: rgba(52, 211, 153, 0.1);
  --green-border: rgba(52, 211, 153, 0.2);
  --red: #f87171;
  --red-bg: rgba(248, 113, 113, 0.05);
  --red-border: rgba(248, 113, 113, 0.2);
  --indigo: #818cf8;
  --font: 'Outfit', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-heavy: 0 10px 40px rgba(0,0,0,0.5);
  --ring-inset: inset 0 1px 0 rgba(255,255,255,0.05);
}

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, li { margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  min-height: 100svh;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
body::-webkit-scrollbar { display: none; }

/* ── Suit watermark background ── */
body::before {
  content: '♠ ♥ ♦ ♣ ♠ ♥ ♦ ♣';
  position: fixed;
  top: -40px;
  left: -40px;
  right: -40px;
  font-size: 120px;
  color: white;
  opacity: 0.02;
  pointer-events: none;
  transform: rotate(12deg);
  line-height: 1.5;
  word-spacing: 40px;
  z-index: 0;
}

/* ── Felt texture overlay on main app ── */
#app::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('felt.jpg') center/cover no-repeat;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: soft-light;
}

.screen {
  width: min(600px, 94%);
  padding: 1rem;
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.hidden { display: none !important; }

/* ── Login ── */
#login:not(.hidden) {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 100svh;
  height: 100svh;
  width: 100vw;
  max-width: 100vw;
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--bg);
}
#login .video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
#login .video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
#login .video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,14,20,0.3), rgba(11,14,20,0.7) 40%, rgba(11,14,20,0.95));
}
.login-box { position: relative; z-index: 2;
  text-align: center;
  padding: 3rem 1.5rem;
  width: 100%;
  max-width: 320px;
}
.login-icon {
  position: relative;
  margin-bottom: 1.5rem;
}
.login-icon::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: var(--gold-glow);
  filter: blur(40px);
  border-radius: 50%;
}
.login-icon .icon-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(to bottom, var(--bg3), var(--bg));
  border: 1px solid rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-heavy);
}
.login-icon .spade {
  font-size: 3.5rem;
  color: var(--gold);
  filter: drop-shadow(0 0 15px var(--gold-glow-strong));
  line-height: 1;
}
.login-box h1 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-style: italic;
  text-transform: uppercase;
}
.login-divider {
  height: 3px;
  width: 48px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0.5rem auto 0;
  opacity: 0.5;
}
.login-sub {
  color: var(--fg-muted);
  margin: 1.5rem 0 0;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 700;
}
.pin-dots {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 1.25rem 0 2rem;
}
.pin-dots span {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg2);
  transition: all var(--transition);
}
.pin-dots span.filled {
  background: linear-gradient(to bottom right, var(--gold), var(--gold-dark));
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow-strong);
}
#pin-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.error-msg {
  color: var(--red);
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 1.4em;
  letter-spacing: 0.02em;
}
.members-only {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0.4;
}
.members-only .line {
  height: 1px;
  width: 32px;
  background: linear-gradient(to right, transparent, var(--fg-muted));
}
.members-only span {
  font-size: 0.55rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-weight: 700;
}

/* ── Skeleton ── */
.skeleton-screen { width: min(600px, 94%); padding: 1rem; }
.sk-header, .sk-card {
  background: linear-gradient(to bottom, var(--bg2), var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  animation: pulse 1.5s infinite;
}
.sk-header { height: 56px; }
.sk-card { height: 80px; }
.sk-card.short { height: 48px; width: 60%; }
@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* ── Buttons ── */
.btn {
  font-family: var(--font);
  font-weight: 900;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:active { transform: scale(0.97); }
.btn-green {
  background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
  color: var(--bg);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 25px var(--gold-glow);
}
.btn-green:hover { box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4); }
.btn-red {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-border);
}
.btn-red:hover { background: rgba(248, 113, 113, 0.1); }
.btn-ghost { background: transparent; color: var(--fg-muted); border: none; }
.btn-ghost:hover { color: var(--fg); }
.btn-outline {
  background: transparent;
  border: 2px dashed var(--border);
  color: var(--fg-muted);
  width: 100%;
  padding: 1rem;
  margin-top: 0.75rem;
  font-weight: 700;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-icon {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.btn-icon:hover { color: var(--fg); border-color: rgba(201, 168, 76, 0.5); }
.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: rgba(11, 14, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}
.header-left { display: flex; align-items: center; gap: 0.6rem; }
.header-left .logo-badge {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(to bottom right, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--bg);
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.3);
  border: 1px solid rgba(255,255,255,0.1);
}
.header-left h1 {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-style: italic;
}
.header-right { display: flex; align-items: center; gap: 0.75rem; }
.header-user { display: flex; flex-direction: column; align-items: flex-end; }
.user-name {
  font-size: 0.6rem;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.save-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.55rem;
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.save-status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Tabs ── */
.tabs {
  display: flex;
  margin-bottom: 1rem;
  background: rgba(20, 24, 33, 0.5);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 4px;
}
.tab {
  flex: 1;
  padding: 0.75rem;
  background: none;
  border: none;
  color: var(--fg-muted);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 48px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.tab .suit { font-size: 1rem; opacity: 0.5; }
.tab.active {
  color: var(--gold);
  background: linear-gradient(to bottom, var(--bg3), var(--bg2));
  border: 1px solid rgba(201, 168, 76, 0.2);
  box-shadow: var(--shadow-card);
}
.tab.active .suit { opacity: 1; }
.tab:hover:not(.active) { color: var(--fg); }

/* ── Summary Cards ── */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.summary-card {
  background: linear-gradient(to bottom, var(--bg2), var(--bg));
  border-radius: var(--radius);
  padding: 0.85rem 0.5rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  box-shadow: var(--ring-inset), var(--shadow-card);
}
.summary-card .label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.55rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 900;
  opacity: 0.6;
}
.summary-card .label .suit { font-size: 0.75rem; color: var(--gold); }
.summary-card .value {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 900;
  margin-top: 0.3rem;
  letter-spacing: -0.02em;
}

/* ── Section Title ── */
.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}
.section-title span {
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--fg-muted);
  white-space: nowrap;
}
.section-title .line {
  height: 1px;
  flex: 1;
  background: var(--border);
}

/* ── Event Cards ── */
.event-card {
  background: linear-gradient(to bottom, var(--bg2), var(--bg));
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.5s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  box-shadow: var(--ring-inset), var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.event-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(201, 168, 76, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.event-card:hover::before { opacity: 1; }
.event-card:hover {
  border-color: rgba(201, 168, 76, 0.5);
  transform: translateY(-2px);
}
.event-card:active { transform: scale(0.98); }
.event-card-left { display: flex; align-items: center; gap: 1rem; position: relative; z-index: 1; }
.event-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.5s ease;
}
.event-card:hover .event-icon { transform: scale(1.1); }
.event-name { font-weight: 900; font-size: 1.05rem; letter-spacing: -0.01em; }
.event-meta {
  font-size: 0.7rem;
  color: var(--fg-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.15rem;
}
.event-arrow {
  color: var(--border);
  font-size: 1.3rem;
  transition: all 0.3s ease;
}
.event-card:hover .event-arrow { color: var(--gold); transform: translateX(4px); }

/* ── Overlay ── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  z-index: -1;
}
.overlay-panel {
  -webkit-overflow-scrolling: touch;
  position: relative;
  background: var(--bg);
  width: 100%;
  max-width: 600px;
  height: 100%;
  overflow-y: scroll;
  padding: 1.25rem 1.25rem 10rem 1.25rem;
  margin: 0 auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.overlay-panel::-webkit-scrollbar { display: none; }
.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.overlay-header h2 {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.overlay-header h2 .suit { color: var(--gold); }
.overlay-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

/* ── Player Accordion ── */
.player-card {
  background: linear-gradient(to bottom, var(--bg2), var(--bg));
  border-radius: var(--radius);
  margin-bottom: 0.3rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: var(--ring-inset), var(--shadow-card);
}
.player-card:hover { border-color: rgba(201, 168, 76, 0.15); }
.player-card.open {
  border-color: rgba(201, 168, 76, 0.4);
  border-radius: 24px;
  box-shadow: var(--shadow-heavy), 0 0 0 2px rgba(201, 168, 76, 0.1);
  background: linear-gradient(to bottom, var(--bg3), var(--bg2));
}
.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: background var(--transition);
  min-height: 42px;
}
.player-card.open .player-header {
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  background: rgba(201, 168, 76, 0.03);
}
.player-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--gold);
  margin-right: 0.6rem;
  flex-shrink: 0;
}
.player-card.open .player-avatar {
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.2);
}
.player-name-saldo {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 0.5rem;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.player-saldo {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  margin-left: auto;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.player-saldo.winst {
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid var(--green-border);
}
.player-saldo.verlies {
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid var(--red-border);
}
.player-saldo.zero { color: var(--fg-muted); }
.player-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.player-card.open .player-body {
  max-height: 3000px;
  padding: 1.5rem;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.2));
}

/* ── Form Fields ── */
.field-group { margin-bottom: 1.25rem; }
.field-label {
  font-size: 0.6rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.3rem;
  font-weight: 900;
  display: block;
}
.field-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.4rem;
}
input[type="text"],
input[type="number"],
input[type="date"],
input[type="tel"],
select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  width: 100%;
  min-height: 48px;
  transition: all var(--transition);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
input:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.3), inset 0 2px 4px rgba(0,0,0,0.2);
}
.input-suffix {
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.5;
  font-size: 0.65rem;
  font-weight: 700;
}
.input-wrap { position: relative; margin-bottom: 0.4rem; }

/* ── Buy-in total bar ── */
.buyin-total {
  margin-top: 0.5rem;
  background: rgba(30, 39, 56, 0.3);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(30, 39, 56, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.buyin-total .label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 900;
  color: var(--fg-muted);
}
.buyin-total .amount {
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

/* ── Saldo result ── */
.saldo-result {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.saldo-result.winst { color: var(--green); background: var(--green-bg); border: 1px solid var(--green-border); }
.saldo-result.verlies { color: var(--red); background: var(--red-bg); border: 1px solid var(--red-border); }

/* ── Add buy-in link ── */
.add-buyin {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
  padding: 0.25rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  transition: opacity var(--transition);
}
.add-buyin:hover { opacity: 0.8; }

/* ── Delete player ── */
.delete-section {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.btn-delete-player {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--red-border);
  background: var(--red-bg);
  color: var(--red);
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--transition);
}
.btn-delete-player:hover { background: rgba(248, 113, 113, 0.1); }

/* ── Inline form (schulden) ── */
.inline-form {
  background: linear-gradient(to bottom, var(--bg2), var(--bg));
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--ring-inset), var(--shadow-card);
}
.inline-form input, .inline-form select { margin-bottom: 0.3rem; }
.form-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }

/* ── Saldo colors ── */
.winst { color: var(--green); }
.verlies { color: var(--red); }
.tegoed { color: var(--gold); }
.settled { color: var(--fg-muted); }

/* ── Debt overview ── */
.debt-card {
  background: linear-gradient(to bottom, var(--bg2), var(--bg));
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 0.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
  box-shadow: var(--ring-inset), var(--shadow-card);
}
.debt-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-heavy);
}
.debt-left { display: flex; align-items: center; gap: 0.85rem; }
.debt-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0.6;
}
.debt-naam { font-weight: 900; font-size: 1rem; }
.debt-detail { font-size: 0.7rem; color: var(--fg-muted); font-weight: 500; margin-top: 0.1rem; }
.debt-amount {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.debt-amount.open { color: var(--red); background: var(--red-bg); border: 1px solid var(--red-border); }
.debt-amount.voldaan { color: var(--green); background: var(--green-bg); border: 1px solid var(--green-border); }

/* ── Warning ── */
.warning {
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-top: 0.3rem;
}
.warning.under { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.warning.over { background: var(--red-bg); color: var(--red); }

/* ── Status badge ── */
.badge {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.badge-green { color: var(--green); background: var(--green-bg); border: 1px solid var(--green-border); }

/* ── Responsive ── */
@media (max-width: 380px) {
  .summary-cards { grid-template-columns: 1fr 1fr; }
  .overlay-stats { grid-template-columns: 1fr 1fr; }
  header h1 { font-size: 1rem; }
  .player-name-saldo { gap: 0.5rem; }
  .player-saldo { font-size: 0.8rem; padding: 0.2rem 0.5rem; }
}

/* ── Bonus Pot Banner ── */
.bonus-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.04));
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  margin: 0.75rem 0;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.bonus-banner::before {
  content: '♠ ♥ ♦ ♣';
  position: absolute;
  right: -10px;
  top: -5px;
  font-size: 2.5rem;
  opacity: 0.04;
  transform: rotate(12deg);
  pointer-events: none;
}
.bonus-banner:active {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.15);
}
.bonus-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.4));
}
.bonus-info {
  flex: 1;
}
.bonus-label {
  font-size: 0.55rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.8;
}
.bonus-amount {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(201,168,76,0.3);
}
.bonus-suffix {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  align-self: flex-end;
  padding-bottom: 0.3rem;
}
.bonus-empty .bonus-amount {
  color: var(--fg-muted);
  text-shadow: none;
}

/* Player Picker */
.player-picker {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem;
  margin-top: 0.5rem;
  animation: fadeIn 0.15s ease;
}
.picker-header {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}
.picker-header .input {
  flex: 1;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
}
.picker-list {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.picker-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--fg);
}
.picker-item:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  color: var(--gold);
}
.picker-empty {
  color: var(--fg-muted);
  font-size: 0.8rem;
  padding: 0.5rem;
  text-align: center;
  width: 100%;
}
.admin-only { display: none; }
body.is-admin .admin-only { display: block; }
body.is-admin .tab.admin-only { display: flex; }

/* ── Tips Section ── */
.tips-section { margin-top: 0.5rem; }
.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.tip-card {
  background: linear-gradient(to bottom, var(--bg2), var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--ring-inset), var(--shadow-card);
  transition: border-color 0.2s;
}
.tip-card:focus-within {
  border-color: rgba(201, 168, 76, 0.4);
}
.tip-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.tip-info { flex: 1; min-width: 0; }
.tip-label {
  font-size: 0.55rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  display: block;
  margin-bottom: 0.25rem;
}
.tip-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.tip-input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-family: var(--mono) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--gold) !important;
  padding: 0 !important;
  min-height: unset !important;
  width: 100%;
}
.tip-input:focus {
  outline: none;
}
.tip-input::placeholder { color: var(--fg-muted); opacity: 0.3; }
.tip-suffix {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

/* ── Incomplete player indicator ── */
.badge-incomplete {
  color: #f59e0b;
  font-size: 0.55rem;
  margin-right: 0.3rem;
  animation: pulse-warn 2s infinite;
  vertical-align: middle;
}
@keyframes pulse-warn {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Closed event badge ── */
.badge-closed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  margin-left: 0.4rem;
  font-weight: 900;
  vertical-align: middle;
  letter-spacing: 0.05em;
}
#btn-close-event.reopened {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  box-shadow: none;
}

/* ── Overlay Bonus Pot ── */
.overlay-bonus { margin-bottom: 0.5rem; }
.bonus-overlay-card {
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(201,168,76,0.02));
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--ring-inset), var(--shadow-card);
}
.bonus-overlay-balance {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.bonus-overlay-label {
  font-size: 0.55rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
}
.bonus-overlay-amount {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(201,168,76,0.3);
  margin-left: auto;
}
.bonus-overlay-amount.zero {
  color: var(--fg-muted);
  text-shadow: none;
}
.bonus-overlay-currency {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.bonus-overlay-actions {
  display: flex;
  gap: 0.5rem;
}
