/* =========================================================================
   FF Tournament - Premium UI/UX Design System
   ========================================================================= */

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

:root {
  /* Core Palette - Carbon & Gold */
  --bg: #050505;
  --surface: rgba(12, 12, 16, 0.82);
  --surface-solid: #0A0A0C;
  --surface-hover: rgba(22, 22, 28, 0.9);
  
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(251, 191, 36, 0.4);
  
  --accent: #FBBF24; /* Amber Gold */
  --accent-rgb: 251, 191, 36;
  --accent-secondary: #00FF88; /* Emerald Green */
  --accent-secondary-rgb: 0, 255, 136;
  
  --text: #F8FAFC;
  --text-secondary: #CBD5E1;
  --muted: #64748B;
  --muted-dark: #334155;
  
  --red: #EF4444;
  --success: var(--accent-secondary);
  --info: #3B82F6;
  --warning: #F59E0B;
  
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --glass: blur(24px);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Rajdhani', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(var(--accent-rgb), 0.2);
  --shadow-glow-success: 0 0 30px rgba(var(--accent-secondary-rgb), 0.2);
}

/* =========================================================================
   BASE STYLES
   ========================================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
  scroll-behavior: smooth; 
  font-size: 16px;
}

body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(251, 191, 36, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 10% 90%, rgba(251, 191, 36, 0.03) 0%, transparent 50%);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  background-attachment: fixed;
}

a { 
  color: inherit; 
  text-decoration: none; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button { 
  font-family: inherit; 
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =========================================================================
   LAYOUT
   ========================================================================= */
.container { 
  max-width: 1280px; 
  margin: 0 auto; 
  padding: 0 32px; 
}

.container-narrow { 
  max-width: 580px; 
  margin: 0 auto; 
  padding: 0 24px; 
}

.section { 
  padding: 80px 0; 
}

.section-hero {
  padding: 140px 0 100px;
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
h1, h2, h3, h4, h5, h6 { 
  font-family: var(--font-heading); 
  font-weight: 800; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
  line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--red); }
.mono { font-family: monospace; }

p { color: var(--text-secondary); }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 99px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #F59E0B 100%);
  color: #000;
  box-shadow: var(--shadow-sm), 0 0 30px rgba(251, 191, 36, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md), 0 0 50px rgba(251, 191, 36, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: var(--glass);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(251, 191, 36, 0.08);
  color: var(--accent);
}

.btn-outline:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1rem;
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
}

.btn-success {
  background: rgba(0, 255, 136, 0.1);
  color: var(--success);
  border-color: rgba(0, 255, 136, 0.3);
}

.btn-success:hover {
  background: rgba(0, 255, 136, 0.2);
  border-color: var(--success);
  box-shadow: var(--shadow-glow-emerald);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--red);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

.btn-info {
  background: rgba(14, 165, 233, 0.1);
  color: var(--info);
  border-color: rgba(14, 165, 233, 0.3);
}

.btn-info:hover {
  background: rgba(14, 165, 233, 0.2);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.w-full { width: 100%; }

/* =========================================================================
   CARDS
   ========================================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: var(--glass);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(251, 191, 36, 0.2);
}

.reg-container {
  max-width: 520px;
  margin: 60px auto;
}

/* =========================================================================
   FORMS
   ========================================================================= */
.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

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

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1), var(--shadow-sm);
}

.form-control:hover:not(:focus) {
  border-color: var(--border-light);
}

.form-control.is-invalid {
  border-color: var(--red);
  background: rgba(239, 68, 68, 0.05);
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-helper {
  font-size: 0.8rem;
  color: var(--muted-dark);
  margin-top: 6px;
}

.form-error {
  display: block;
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 8px;
  font-weight: 600;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   BADGES & TAGS
   ========================================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.badge-success,
.status-badge-approved,
.status-badge-active {
  background: rgba(0, 255, 136, 0.12);
  color: var(--success);
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.badge-warning,
.status-badge-pending {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warning);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.badge-danger,
.status-badge-rejected {
  background: rgba(239, 68, 68, 0.12);
  color: var(--red-light);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-info,
.status-badge-draft {
  background: rgba(14, 165, 233, 0.12);
  color: var(--info);
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.badge-muted,
.badge-completed {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Status Badge Helper */
.status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge-pending::before {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* =========================================================================
   TABLES
   ========================================================================= */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

thead {
  background: rgba(0, 0, 0, 0.4);
}

th {
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  letter-spacing: 1px;
  font-weight: 700;
  white-space: nowrap;
}

td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

tbody tr {
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* =========================================================================
   ADMIN LAYOUT
   ========================================================================= */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: rgba(5, 5, 5, 0.95);
  border-right: 1px solid var(--border);
  backdrop-filter: var(--glass);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar-header {
  padding: 32px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(var(--accent-rgb), 0.02);
}

.logo-circle {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), #F59E0B);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #000;
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.site-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  line-height: 1;
}

.account-type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-top: 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
}

.nav-section {
  padding: 0 24px;
  margin: 24px 0 12px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  opacity: 0.6;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid transparent;
}

.nav-link i {
  width: 20px;
  text-align: center;
  opacity: 0.7;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
  border-left-color: rgba(var(--accent-rgb), 0.3);
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.08), transparent);
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 700;
}

.nav-link.active i {
  opacity: 1;
}

.logout-link {
  color: var(--red) !important;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.logout-link:hover {
  background: rgba(239, 68, 68, 0.05) !important;
  border-left-color: var(--red) !important;
}

.mt-auto {
  margin-top: auto;
  padding-bottom: 24px;
}

.nav-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
}

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

.nav-user-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-user-role {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
}

.topbar {
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 500;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb span {
  color: var(--accent);
  font-weight: 600;
}

.content-area {
  padding: 32px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.sidebar .hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  position: absolute;
  right: 12px;
  top: 20px;
  z-index: 1001;
  color: var(--accent);
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* =========================================================================
   PUBLIC HEADER
   ========================================================================= */
/* =========================================================================
   PUBLIC HEADER
   ========================================================================= */
.public-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: var(--glass);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}

.logo i {
  font-size: 1.5rem;
  color: var(--accent);
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
  text-align: center;
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(var(--accent-rgb), 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 30% 50%, rgba(var(--accent-secondary-rgb), 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 99px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 4rem;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title .accent {
  color: var(--accent);
  text-shadow: 0 0 60px rgba(251, 191, 36, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* =========================================================================
   TOURNAMENT CARDS
   ========================================================================= */
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.t-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.t-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(251, 191, 36, 0.3);
}

.t-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.t-card-body {
  padding: 24px;
}

.t-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.t-card-title {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.t-card-meta {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 16px 0;
}

.t-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.t-meta-label {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.t-meta-value {
  font-weight: 600;
}

.t-meta-value.accent {
  color: var(--accent);
}

/* =========================================================================
   STATS CARDS
   ========================================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

.stat-card.accent { border-color: rgba(251, 191, 36, 0.3); }
.stat-card.green { border-color: rgba(0, 255, 136, 0.3); }
.stat-card.info { border-color: rgba(14, 165, 233, 0.3); }
.stat-card.red { border-color: rgba(239, 68, 68, 0.3); }

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.05);
}

.stat-card.accent .stat-icon { background: rgba(251, 191, 36, 0.1); color: var(--accent); }
.stat-card.green .stat-icon { background: rgba(0, 255, 136, 0.1); color: var(--accent-secondary); }
.stat-card.info .stat-icon { background: rgba(14, 165, 233, 0.1); color: var(--info); }
.stat-card.red .stat-icon { background: rgba(239, 68, 68, 0.1); color: var(--red); }

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-top: 4px;
}

/* =========================================================================
   FILTERS
   ========================================================================= */
.filters-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

/* Technical Table Styles */
.tech-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.tech-table th {
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.tech-table td {
  padding: 16px 24px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.tech-row:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.reg-id-badge {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.p-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.92rem;
}

.p-ign {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.t-sector {
  font-size: 0.7rem;
  color: var(--muted);
}

/* Operation Buttons */
.btn-icon-sm {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--muted);
}

.btn-ghost-success:hover {
  background: rgba(var(--accent-secondary-rgb), 0.1);
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.btn-ghost-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--red);
  color: var(--red);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

/* Filters Modernized */
.filter-card {
  padding: 24px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  align-items: flex-end;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bulk-console {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(var(--accent-rgb), 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.bulk-actions-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
}

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

/* =========================================================================
   BULK ACTIONS
   ========================================================================= */
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.bulk-count {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================================================
   ALERTS & TOASTS
   ========================================================================= */
.alert {
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  animation: slideDown 0.3s ease;
}

.alert-success {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  color: var(--success);
}

.alert-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--red);
}

.alert-info {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: var(--info);
}

.alert-warning {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: var(--warning);
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 280px;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--red); }
.toast-info { border-left: 4px solid var(--info); }
.toast-warning { border-left: 4px solid var(--warning); }

/* =========================================================================
   MODALS
   ========================================================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-lg {
  max-width: 800px;
}

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

.modal-title {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

/* =========================================================================
   REGISTRATION STEPPER
   ========================================================================= */
.reg-stepper {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 40px;
  position: relative;
}

.reg-stepper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
}

.reg-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.reg-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.reg-step.active .reg-step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.reg-step.completed .reg-step-number {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: #000;
}

.reg-step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.reg-step.active .reg-step-label,
.reg-step.completed .reg-step-label {
  color: var(--text);
}

/* Form Sections */
.form-section {
  margin-bottom: 32px;
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-heading);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.form-section-header i {
  font-size: 1.1rem;
}

/* =========================================================================
   CARD HEADER
   ========================================================================= */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.card-title i {
  color: var(--accent);
}

/* =========================================================================
   PAGINATION
   ========================================================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination a {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--muted);
}

.pagination a:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.pagination span {
  background: var(--accent);
  color: #000;
  font-weight: 700;
}

.pagination a.prev,
.pagination a.next {
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

/* =========================================================================
   TABS
   ========================================================================= */
.tabs-wrap {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.tab-link {
  padding: 12px 20px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s ease;
}

.tab-link:hover {
  color: var(--text-secondary);
  border-bottom-color: var(--border);
}

.tab-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* =========================================================================
   EMPTY STATES
   ========================================================================= */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-state i {
  font-size: 3.5rem;
  color: var(--border);
  margin-bottom: 20px;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.empty-state p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
.animate-fade {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide {
  animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Stagger animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* =========================================================================
   UTILITIES
   ========================================================================= */
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.p-16 { padding: 16px; }
.p-24 { padding: 24px; }
.p-32 { padding: 32px; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .hamburger {
    display: flex;
  }
  
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}
  
  .hero-title {
    font-size: 3rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .hero {
    padding: 140px 0 60px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.35rem; }
  
  .card {
    padding: 24px;
  }
  
  .topbar {
    padding: 16px 20px;
  }
  
  .content-area {
    padding: 24px 20px;
  }
  
  .tournament-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .filters-bar {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 20px;
  }
  
  .stat-value {
    font-size: 1.75rem;
  }
  
  .table-wrap {
    margin: 0 -24px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .reg-stepper {
    gap: 24px;
  }
  
  .reg-step-label {
    display: none;
  }
  
  .bulk-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .modal {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
  
  .btn-lg {
    padding: 14px 28px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .t-card-body {
    padding: 20px;
  }
  
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.form-row.single {
  grid-template-columns: 1fr;
}
  
  .filters-bar {
    flex-direction: column;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .topbar {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .topbar-left, .topbar-right {
    flex: 1;
    min-width: 0;
  }
  
  .card {
    border-radius: var(--radius-sm);
    padding: 20px;
  }
}

/* =========================================================================
   PRINT STYLES
   ========================================================================= */
@media print {
  .sidebar,
  .topbar,
  .hamburger {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* =========================================================================
   ROOM REVEAL FEATURE
   ========================================================================= */
.room-hidden {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    color: transparent;
    border-radius: 4px;
    padding: 2px 8px;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.room-hidden::after {
    content: 'Click to Reveal';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.2s;
}

.room-hidden.revealed {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    text-shadow: none;
    user-select: text;
}

.room-hidden.revealed::after {
    opacity: 0;
}

/* =========================================================================
   ALERTS
   ========================================================================= */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.2);
}

.alert-success {
  background: rgba(0, 255, 136, 0.1);
  color: var(--success);
  border-color: rgba(0, 255, 136, 0.2);
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
  border-color: rgba(59, 130, 246, 0.2);
}

/* =========================================================================
   PREMIUM FOOTER
   ========================================================================= */
.site-footer {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

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

.footer-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--text);
  transform: translateX(5px);
}

.footer-links a::before {
  content: '?';
  font-size: 0.8rem;
  opacity: 0;
  transition: 0.3s;
  margin-left: -15px;
}

.footer-links a:hover::before {
  opacity: 1;
  margin-left: 0;
}

.footer-brand p {
  color: var(--muted);
  line-height: 1.6;
  margin: 20px 0 24px;
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.dev-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.dev-social-btn:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-5px) rotate(8deg);
  box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.3);
  border-color: transparent;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .footer-brand p {
    margin: 20px auto 24px;
  }
  .footer-socials {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
  }
  .footer-links a:hover {
    transform: none;
  }
  .footer-links a::before {
    display: none;
  }
}
