:root {
  --bg-app: #101114;
  --bg-card: #1c1e24;
  --bg-card-active: #242730;
  --border-app: rgba(255, 255, 255, 0.07);

  --club-emerald: #00e676;
  --club-red: #ef4444;
  --club-gold: #ffb703;
  --club-cyan: #0ea5e9;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-main: 'Outfit', sans-serif;
  --font-title: 'Cinzel', serif;
  --font-numbers: 'Roboto Condensed', sans-serif;

  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
}

body {
  position: relative;
  overflow-x: hidden;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.text-gold { color: var(--club-gold); }
.text-red { color: var(--club-red); }
.text-emerald { color: var(--club-emerald); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* Top Announcement & Controls Bar */
.top-bar {
  background: #090a0c;
  border-bottom: 1px solid var(--border-app);
  padding: 8px 0;
  font-size: 0.82rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.clubgg-tag {
  font-weight: 800;
  color: var(--club-red);
  letter-spacing: 0.05em;
}

.live-status {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--club-emerald);
  box-shadow: 0 0 8px var(--club-emerald);
}

.bar-right {
  display: flex;
  gap: 12px;
}

.control-select {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-app);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.control-select select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
}

.control-select select option {
  background: #1c1e24;
  color: #fff;
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 17, 20, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-app);
  padding: 14px 0;
}

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

/* SieteCuatro Logo Recreation matching ClubGG */
.app-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-box {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #450a0a, #1a0505);
  border: 1.5px solid var(--club-red);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
  padding: 2px;
}

.logo-siete {
  font-size: 0.55rem;
  font-weight: 900;
  color: var(--club-gold);
  letter-spacing: 0.1em;
  line-height: 1;
}

.logo-74 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--club-red);
  line-height: 1;
  display: flex;
  align-items: center;
}

.heart-4 {
  position: relative;
  color: var(--club-gold);
}

.logo-cuatro {
  font-size: 0.5rem;
  font-weight: 900;
  color: var(--club-gold);
  letter-spacing: 0.1em;
  line-height: 1;
}

.logo-poker {
  font-size: 0.4rem;
  font-weight: 900;
  color: #fff;
  background: rgba(239, 68, 68, 0.6);
  padding: 1px 4px;
  border-radius: 2px;
  margin-top: 1px;
}

.club-meta {
  display: flex;
  flex-direction: column;
}

.club-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.club-id {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.app-nav {
  display: flex;
  gap: 28px;
}

.app-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.app-nav a:hover, .app-nav a.active {
  color: var(--club-emerald);
}

.header-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.union-badge {
  background: linear-gradient(135deg, #78350f, #451a03);
  border: 1px solid var(--club-gold);
  color: var(--club-gold);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-id-copy {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-app);
  color: #fff;
}

.btn-id-copy:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-deposit-gold {
  background: linear-gradient(135deg, var(--club-gold), #d97706);
  color: #000;
}

.btn-deposit-gold:hover {
  background: linear-gradient(135deg, #ffe066, #fbbf24);
}

.btn-join {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-app);
  font-size: 0.8rem;
  padding: 4px 12px;
}

.btn-join:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-join-active {
  background: var(--club-emerald);
  color: #000;
  font-size: 0.8rem;
  padding: 4px 12px;
  font-weight: 800;
}

.btn-gold {
  background: var(--club-gold);
  color: #000;
  font-weight: 800;
}

.btn-xs { padding: 3px 10px; font-size: 0.75rem; }

/* Club Hero Banner matching ClubGG app */
.club-hero-banner {
  padding: 24px 0 32px;
  background: #15161b;
  border-bottom: 1px solid var(--border-app);
}

.club-card-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.club-avatar-large {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #7f1d1d, #450a0a);
  border: 2px solid var(--club-red);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.mini-74 {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--club-red);
}

.club-info-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.club-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.club-title-row h1 {
  font-size: 1.6rem;
  font-weight: 800;
}

.share-icon {
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
}

.club-id-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.club-stats-pills {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 6px;
  flex-wrap: wrap;
}

.club-aviso-box {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-app);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.aviso-tag {
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.union-large-shield {
  background: linear-gradient(135deg, #b45309, #78350f);
  border: 1px solid var(--club-gold);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--club-gold);
}

.shield-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Authentic Bad Beat Jackpot Banner from Screenshot */
.bad-beat-banner {
  background: linear-gradient(180deg, #282a32 0%, #15161b 100%);
  border: 1px solid rgba(255, 183, 3, 0.4);
  border-radius: var(--radius-lg);
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 8px 24px rgba(0,0,0,0.6);
}

.bbj-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bbj-pot-icon {
  font-size: 2.2rem;
}

.bbj-title-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-numbers);
  font-weight: 900;
  line-height: 0.9;
  font-style: italic;
}

.bbj-top { font-size: 1.4rem; color: #ffb703; }
.bbj-bottom { font-size: 1.6rem; color: #ef4444; }

.bbj-amount-display {
  font-family: var(--font-numbers);
  font-style: italic;
  font-size: 3rem;
  font-weight: 900;
  color: var(--club-gold);
  letter-spacing: 0.04em;
  text-shadow: 0 0 20px rgba(255, 183, 3, 0.4);
}

/* Lobby Section & Tab Bar */
.lobby-section {
  padding: 30px 0 60px;
}

.lobby-category-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border-app);
  margin-bottom: 20px;
}

.lobby-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 10px 4px;
  cursor: pointer;
  position: relative;
}

.lobby-tab.active {
  color: #fff;
}

.lobby-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--club-emerald);
  border-radius: 3px 3px 0 0;
}

.lobby-subcontrols {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.check-control {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.check-control input {
  accent-color: var(--club-emerald);
  width: 16px;
  height: 16px;
}

.btn-filter-drop {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-app);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

/* Lobby Table Cards List matching ClubGG screenshot */
.lobby-table-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.table-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-app);
  border-radius: var(--radius-md);
  padding: 16px 20px 16px 54px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.table-card-item:hover {
  background: var(--bg-card-active);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-pin {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.8rem;
}

.card-left-tag {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 32px;
  border-radius: 10px 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* Accurate Tag Colors from User Screenshots */
.tag-nlh { background: #065f46; color: var(--club-emerald); }
.tag-plo5 { background: #0284c7; color: #fff; } /* Bright Electric Cyan-Blue in ClubGG */
.tag-plo6 { background: #0891b2; color: #fff; }

.card-gauge-box {
  margin-right: 20px;
}

.gauge-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.ring-active-half {
  border-color: var(--club-cyan);
}

.ring-active-full {
  border-color: var(--club-gold);
}

.card-details-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.table-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.t-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.tag-running-active {
  font-size: 0.7rem;
  color: var(--club-emerald);
  font-weight: 800;
}

.table-stakes-big {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.table-sub-info {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-right-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.buyin-line {
  font-size: 0.85rem;
}

.buyin-line .lbl { color: var(--text-muted); margin-right: 6px; }
.buyin-line .val { font-size: 1.1rem; font-weight: 800; color: #fff; }

.badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.icon-thumb { background: #b45309; color: var(--club-gold); }
.icon-clock { background: #047857; color: var(--club-emerald); }
.icon-bombpot { background: #b91c1c; color: #fff; }
.icon-bbj-badge {
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
  color: var(--club-gold);
  font-weight: 900;
  font-size: 0.55rem;
  padding: 2px 4px;
  width: auto;
  border: 1px solid var(--club-gold);
}

/* Tournament & Cashier Sections */
.mtt-section-app, .cashier-app-section, .faq-app-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-app);
}

.section-title-box {
  margin-bottom: 24px;
}

.section-title-box h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.date-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.date-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-app);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.date-btn.active {
  background: rgba(255, 183, 3, 0.15);
  border-color: var(--club-gold);
  color: var(--club-gold);
}

.app-table-wrapper { overflow-x: auto; }

.app-mtt-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-app);
  text-align: left;
}

.app-mtt-table th, .app-mtt-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-app);
}

.app-mtt-table th {
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.major-row { background: rgba(255, 183, 3, 0.04); }
.date-pill { background: rgba(255, 255, 255, 0.06); padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.badge-entries { background: rgba(255, 255, 255, 0.06); color: var(--text-secondary); padding: 2px 8px; border-radius: 4px; font-size: 0.78rem; font-weight: 700; }
.gtd-badge-gold { background: rgba(255, 183, 3, 0.15); color: var(--club-gold); border: 1px solid var(--border-app); padding: 2px 6px; border-radius: 4px; font-weight: 800; }
.gtd-badge-red { background: rgba(239, 68, 68, 0.15); color: var(--club-red); border: 1px solid var(--border-app); padding: 2px 6px; border-radius: 4px; font-weight: 800; }
.badge-free { background: rgba(0, 230, 118, 0.15); color: var(--club-emerald); padding: 2px 6px; border-radius: 4px; font-weight: 800; }

/* 3-Step Cashier Grid */
.app-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .app-steps-grid { grid-template-columns: 1fr; }
}

.app-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-app);
  border-radius: var(--radius-md);
  padding: 24px;
}

.app-step-card.featured {
  border-color: rgba(255, 183, 3, 0.4);
}

.step-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.step-badge.gold { color: var(--club-gold); }

.id-copy-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed var(--club-gold);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  cursor: pointer;
}

.id-copy-box .lbl { font-size: 0.7rem; color: var(--text-muted); }
.id-copy-box .val { font-size: 1.2rem; color: var(--club-gold); font-weight: 900; }

.crypto-list-check {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
}

.cashier-btns-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.btn-telegram { background: #229ed9; color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-block { width: 100%; }

/* FAQ Accordion */
.faq-box {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-row {
  background: var(--bg-card);
  border: 1px solid var(--border-app);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-btn {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.faq-row.active .faq-body {
  max-height: 150px;
  padding: 0 20px 16px;
}

/* Footer */
.app-footer {
  background: #090a0c;
  border-top: 1px solid var(--border-app);
  padding: 24px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-box-mini {
  display: inline-flex;
  width: 24px;
  height: 24px;
  background: #7f1d1d;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

.mini-74 { font-family: var(--font-title); font-size: 0.75rem; color: var(--club-red); font-weight: 900; }

/* Modal & Toast */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-card {
  background: #1c1e24;
  border: 1px solid var(--border-app);
  border-radius: var(--radius-md);
  max-width: 480px;
  width: 100%;
  padding: 28px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-header { text-align: center; margin-bottom: 20px; }
.modal-icon { font-size: 2.2rem; margin-bottom: 6px; }

.crypto-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.crypto-select-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-app);
  color: #fff;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.crypto-select-btn.active {
  background: rgba(255, 183, 3, 0.15);
  border-color: var(--club-gold);
}

.crypto-info-pane { display: none; }
.crypto-info-pane.active { display: block; }

.address-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-app);
  padding: 10px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
  font-family: monospace;
  font-size: 0.8rem;
}

.addr-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1c1e24;
  border: 1px solid var(--club-gold);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000;
}

.toast.show { transform: translateY(0); opacity: 1; }
