@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --black: #000000;
  --black-light: #0a0a0a;
  --black-lighter: #111111;
  --gold: #FFD700;
  --gold-muted: #C5A059;
  --text-primary: #F4F4F5;
  --text-secondary: #A1A1AA;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 215, 0, 0.1);
  --glass-border-hover: rgba(255, 215, 0, 0.3);
  --sidebar-width: 260px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--black) !important;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-weight: 600;
}

.font-display {
  font-family: 'Cormorant Garamond', serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.gold-gradient-text {
  background: linear-gradient(to bottom, #FFD700, #C5A059);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 0 32px 32px;
  min-width: 0;
}

.app-footer {
  margin-top: 32px;
  padding: 16px 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.app-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
}

.app-footer a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.app-footer a:hover {
  color: var(--text-primary);
}

@media (max-width: 1024px) {
  .app-footer-inner {
    flex-direction: column;
    gap: 4px;
  }
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--black);
  border-right: 1px solid rgba(255, 215, 0, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-logo {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.sidebar-logo h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0;
}

.sidebar-logo p {
  font-size: 10px;
  color: var(--gold-muted);
  letter-spacing: 4px;
  margin-top: 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--gold-muted);
  border-radius: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--gold-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.03);
}

.nav-item.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: linear-gradient(to right, rgba(255, 215, 0, 0.1), transparent);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.user-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
}

.user-mini .nav-item {
  justify-content: center;
}

.user-mini img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.user-mini-name {
  font-size: 13px;
  color: var(--text-primary);
}

.user-mini-balance {
  font-size: 11px;
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
}

.user-menu {
  position: relative;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.user-menu-toggle:hover {
  border-color: var(--gold-muted);
  background: rgba(255, 215, 0, 0.04);
}

.user-menu-toggle img {
  border-radius: 50%;
  flex-shrink: 0;
}

.user-menu-info {
  flex: 1;
  min-width: 0;
}

.user-menu-name {
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-balance {
  font-size: 11px;
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
}

.user-menu-chevron {
  color: var(--gold-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.user-menu.open .user-menu-chevron {
  transform: rotate(180deg);
}

.user-menu-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--black-light);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 10px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 50;
}

.user-menu.open .user-menu-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.user-menu-item,
.user-menu-item-form .user-menu-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.user-menu-item:hover,
.user-menu-item-form .user-menu-item:hover {
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold);
}

.user-menu-item.active {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
}

.user-menu-item-danger {
  color: var(--danger);
}

.user-menu-item-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.user-menu-item-form {
  margin: 0;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.08);
  margin-bottom: 24px;
}

.page-header h2 {
  font-size: 36px;
  margin: 0;
}

.page-header p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-search {
  position: relative;
}

.header-search svg {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--gold-muted);
}

.header-search input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gold-muted);
  color: var(--text-primary);
  padding: 8px 8px 8px 24px;
  font-size: 13px;
  width: 200px;
  outline: none;
  transition: border-color 0.2s;
}

.header-search input:focus {
  border-bottom-color: var(--gold);
}

.header-search input::placeholder {
  color: var(--text-secondary);
}

.glass-panel {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 12px;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  transition: border-color 0.2s ease;
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.btn-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #FFD700, #C5A059);
  color: var(--black);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.btn-gold-solid {
  background: linear-gradient(135deg, #FFD700, #C5A059);
  color: var(--black);
  font-weight: 600;
}

.btn-gold-solid:hover {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.btn-success {
  background: transparent;
  color: var(--success);
  border: 1px solid var(--success);
}

.btn-success:hover {
  background: rgba(16, 185, 129, 0.1);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  text-align: left;
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  white-space: nowrap;
}

.data-table thead th.sortable {
  cursor: pointer;
  user-select: none;
}

.data-table thead th.sortable:hover {
  color: var(--gold);
}

.data-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.05);
  font-size: 14px;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.2s ease;
}

.data-table tbody tr:hover {
  background: rgba(255, 215, 0, 0.04);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.badge-success {
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}

.badge-gold {
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.05);
}

.badge-muted {
  color: var(--text-secondary);
  border: 1px solid rgba(161, 161, 170, 0.2);
  background: rgba(161, 161, 170, 0.03);
}

.badge-warning {
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.05);
}

.form-input {
  width: 100%;
  background: var(--black-light);
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: 'Inter', sans-serif;
}

.form-input:focus {
  border-color: var(--gold);
}

.form-input::placeholder {
  color: var(--text-secondary);
}

.form-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group {
  margin-bottom: 16px;
}

.form-select {
  width: 100%;
  background: var(--black-light);
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--gold);
}

.form-select option {
  background: var(--black);
  color: var(--text-primary);
}

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.tab-btn:hover {
  color: var(--gold-muted);
}

.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 215, 0, 0.15);
  color: var(--text-secondary);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.page-btn:hover {
  border-color: var(--gold-muted);
  color: var(--gold);
}

.page-btn.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  font-weight: 600;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--black-light);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 24px;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--gold);
}

.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #333;
  border-radius: 22px;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--gold);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.animate-blink {
  animation: blink 1.5s ease-in-out infinite;
}

.mobile-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--gold);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
}

.sidebar-overlay.open {
  display: block;
}

@media (max-width: 1024px) {
  .mobile-toggle {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 0 16px 24px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 60px;
  }

  .page-header h2 {
    font-size: 28px;
  }
}

.text-gold { color: var(--gold); }
.text-gold-muted { color: var(--gold-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-secondary); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w-full { width: 100%; }

.rounded-lg { border-radius: 10px; }
.rounded-xl { border-radius: 12px; }
.rounded-full { border-radius: 50%; }

.border-gold { border: 1px solid rgba(255, 215, 0, 0.2); }

.nowrap { white-space: nowrap; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Home page */
.home-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #050505;
}

.home-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 24px 0;
}

.home-content.landing {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.home-card {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 16px;
  padding: 48px;
  width: 100%;
  margin: 0 auto;
}

.home-content.landing:not(.guest-home) .home-card {
  max-width: 680px;
  margin: 0 auto;
}

.home-content.landing .home-card {
  max-width: none;
  margin: 0;
}

.home-welcome {
  text-align: center;
  margin-bottom: 32px;
}

.home-welcome h2 {
  font-size: 36px;
  margin-bottom: 8px;
}

.home-welcome p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.home-clock-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.analog-clock {
  position: relative;
  width: 140px;
  height: 140px;
}

.clock-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 0, 0.3);
  background: linear-gradient(180deg, #0a0a0a, #000);
}

.clock-marker {
  position: absolute;
  width: 2px;
  height: 8px;
  background: var(--gold-muted);
  left: 50%;
  top: 6px;
  transform-origin: 50% 64px;
  margin-left: -1px;
}

.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: bottom center;
  border-radius: 2px;
  background: linear-gradient(to top, #FFD700, #C5A059);
  margin-left: -1px;
}

.clock-hand.hour {
  width: 3px;
  height: 36px;
}

.clock-hand.minute {
  width: 2px;
  height: 50px;
}

.clock-hand.second {
  width: 1px;
  height: 56px;
  background: var(--danger);
}

.clock-center {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.home-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--gold-muted);
}

.home-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-info-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.home-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: transparent;
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.home-action-btn:hover {
  background: linear-gradient(135deg, #FFD700, #C5A059);
  color: var(--black);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

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

.home-live {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.15);
  background: rgba(255, 215, 0, 0.03);
  margin-bottom: 24px;
}

.home-live-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  animation: blink 1.5s ease-in-out infinite;
}

.home-live-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.home-live-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-live-name {
  color: var(--gold);
  font-weight: 500;
  font-size: 14px;
}

.home-live-details {
  font-size: 12px;
  color: var(--text-secondary);
}

.home-live-players {
  font-family: 'JetBrains Mono', monospace;
  color: var(--success);
  font-size: 13px;
}

.home-upcoming h3 {
  font-size: 18px;
  color: var(--gold-muted);
  margin-bottom: 12px;
}

.upcoming-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid rgba(255, 215, 0, 0.08);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}

.upcoming-item:hover {
  border-color: rgba(255, 215, 0, 0.2);
}

.upcoming-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  margin-right: 12px;
}

.upcoming-name {
  font-size: 14px;
  color: var(--text-primary);
}

.upcoming-buyin {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--gold);
}

@media (max-width: 640px) {
  .home-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-card {
    padding: 24px;
  }
  .home-welcome h2 {
    font-size: 26px;
  }
}

/* Admin */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.admin-tab:hover {
  color: var(--gold-muted);
}

.admin-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.club-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.club-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 10px;
  transition: all 0.2s;
}

.club-list-item:hover {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.03);
}

.club-list-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

/* Avatars */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}

/* Bootstrap dark overrides */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.col-md-3, .col-md-4, .col-md-6 {
  padding: 0 8px;
  flex: 0 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.333333%; }
  .col-md-6 { width: 50%; }
}

.invalid-feedback {
  color: var(--danger);
  font-size: 12px;
  margin-top: 4px;
}

.text-danger {
  color: var(--danger);
}

/* Club grid */
.club-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.club-filters .form-group {
  margin-bottom: 0;
  flex: 1;
  min-width: 180px;
}

.club-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.club-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.club-card:hover {
  border-color: var(--gold-muted);
  background: rgba(255, 215, 0, 0.04);
}

.club-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 215, 0, 0.3);
  flex-shrink: 0;
}

.club-logo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 215, 0, 0.3);
  flex-shrink: 0;
}

.club-card-body {
  flex: 1;
  min-width: 0;
}

.club-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.club-card-region,
.club-card-address {
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.club-card-address {
  margin-top: 2px;
}

@media (max-width: 640px) {
  .club-grid {
    grid-template-columns: 1fr;
  }
}

/* Guest home page redesign */
.guest-home {
  padding: 0;
  max-width: 100%;
  flex-direction: column;
}

.home-hero {
  width: 100%;
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(30, 20, 0, 0.95) 100%),
    radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.15) 0%, transparent 50%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  padding: 96px 24px;
  text-align: center;
}

.home-hero-compact {
  padding: 64px 24px;
}

.home-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.home-hero-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  margin: 0 0 16px;
  background: linear-gradient(90deg, #ffd700 0%, #ffaa00 50%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.home-hero-subtitle {
  font-size: clamp(16px, 3vw, 22px);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 auto 32px;
  max-width: 680px;
}

.home-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: -40px auto 64px;
  padding: 0 24px;
}

.home-stat {
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.home-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.home-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.home-section {
  padding: 64px 24px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.home-section-alt {
  background: rgba(255, 215, 0, 0.03);
  border-top: 1px solid rgba(255, 215, 0, 0.08);
  border-bottom: 1px solid rgba(255, 215, 0, 0.08);
  width: 100%;
}

.home-section-alt > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.home-section-title {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.home-section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 16px;
}

.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.home-feature {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.home-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.3);
}

.home-feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.home-feature h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.home-feature p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.home-step {
  text-align: center;
  padding: 24px;
}

.home-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
  color: #000;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.home-step h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.home-step p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.trial-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 auto 32px;
  max-width: 800px;
}

.trial-notice-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.trial-notice-title {
  color: var(--gold);
  font-weight: 600;
  font-size: 16px;
}

.trial-notice-text {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 4px 0 0;
}

.home-tariffs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.home-tariff-card {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.home-tariff-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.3);
}

.home-tariff-name {
  font-size: 20px;
  margin: 0 0 16px;
  text-align: center;
  color: var(--text-primary);
}

.home-tariff-limits {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.home-tariff-limits li {
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
}

.home-tariff-limits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.home-tariff-prices {
  margin-bottom: 20px;
  flex: 1;
}

.home-tariff-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.home-tariff-price-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
}

.home-tariff-price-period {
  font-size: 13px;
  color: var(--text-secondary);
}

.home-tariff-price-year {
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
}

.home-tariff-discount {
  font-size: 11px;
  color: var(--success);
  margin-left: auto;
  font-weight: 600;
}

.home-cta {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(184, 134, 11, 0.05) 100%);
  border-top: 1px solid rgba(255, 215, 0, 0.15);
  padding: 80px 24px;
  text-align: center;
}

.home-cta-title {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.home-cta-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 32px;
}

.home-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .home-hero {
    padding: 64px 16px;
  }

  .home-hero-actions,
  .home-cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .home-hero-actions .btn,
  .home-cta-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .home-stats {
    grid-template-columns: 1fr;
    margin-top: -24px;
    padding: 0 16px;
  }

  .home-stat {
    padding: 16px;
  }

  .home-stat-value {
    font-size: 28px;
  }

  .home-section {
    padding: 48px 16px;
  }

  .home-features,
  .home-steps,
  .home-tariffs {
    grid-template-columns: 1fr;
  }
}
