/* ========== RESET & VARIABLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #121212;
  --bg-card: #1E1E1E;
  --bg-card-hover: #2A2A2A;
  --purple: #7B2CBF;
  --purple-light: #9D4EDD;
  --purple-dark: #5A189A;
  --orange: #FF7A00;
  --orange-light: #FF9A3C;
  --green: #00C853;
  --red: #FF3D3D;
  --yellow: #FFD600;
  --text-primary: #FFFFFF;
  --text-secondary: #B3B3B3;
  --text-muted: #777777;
  --border: #2A2A2A;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
}

html, body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--orange);
  text-decoration: none;
}

/* ========== PAGES ========== */
.page {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.page.active {
  display: flex;
}

/* ========== LOGIN ========== */
.login-bg {
  min-height: 100vh;
  background: linear-gradient(180deg, #1a0a2e 0%, #121212 50%, #121212 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.login-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: radial-gradient(ellipse at center top, rgba(123,44,191,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.login-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 360px;
}

.logo-container {
  margin-bottom: 32px;
}

.logo-image {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(123,44,191,0.5));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.login-welcome {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.5;
}

.login-welcome strong {
  color: var(--text-primary);
  font-weight: 700;
}

.phone-input-group {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}

.phone-input-group:focus-within {
  border-color: var(--purple);
}

.country-code {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  background: rgba(255,255,255,0.05);
  border-right: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.flag {
  font-size: 20px;
}

.phone-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  padding: 14px 12px;
  outline: none;
  font-family: inherit;
}

.phone-input-group input::placeholder {
  color: var(--text-muted);
}

.login-terms {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
  line-height: 1.6;
}

/* ========== BUTTONS ========== */
.btn-primary {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123,44,191,0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-orange {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--orange), #E06800);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,122,0,0.4);
}

.btn-outline {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--purple-light);
  border: 2px solid var(--purple);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-outline:hover {
  background: rgba(123,44,191,0.1);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
  width: auto;
}

.btn-large {
  padding: 18px;
  font-size: 17px;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  padding: 8px;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-icon:hover {
  color: var(--text-primary);
}

.btn-back {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  padding: 8px;
  cursor: pointer;
}

.btn-danger {
  background: var(--red);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-success {
  background: var(--green);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* ========== HEADER ========== */
.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.page-header h2 {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
}

.page-header-fantasy {
  padding: 20px;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  text-align: center;
}

.page-header-fantasy h2 {
  font-size: 20px;
  font-weight: 800;
}

.page-header-fantasy i {
  color: var(--yellow);
  margin-right: 8px;
}

/* ========== DASHBOARD ========== */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.dash-greeting {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
}

.dash-name {
  font-size: 16px;
  font-weight: 700;
  display: block;
}

.dash-actions {
  display: flex;
  gap: 4px;
}

/* ========== PAGE BODY ========== */
.page-body {
  flex: 1;
  padding: 20px;
  padding-bottom: 100px;
  overflow-y: auto;
}

.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

/* ========== CARDS ========== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.card-highlight {
  border-color: var(--purple);
  background: linear-gradient(135deg, rgba(123,44,191,0.15), rgba(30,30,30,1));
}

.card-badge {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-title-row h3 {
  font-size: 16px;
}

.link-more {
  font-size: 13px;
  color: var(--purple-light);
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ========== MENU GRID ========== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.menu-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.menu-item:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
}

.menu-item:active {
  transform: scale(0.97);
}

.menu-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.fantasy-icon {
  background: linear-gradient(135deg, var(--orange), #E06800) !important;
}

.menu-item span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ========== BOTTOM NAV ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  background: #1A1A1A;
  border-top: 1px solid var(--border);
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 10px;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
}

.nav-item i {
  font-size: 20px;
}

.nav-item.active {
  color: var(--purple-light);
}

.nav-item:hover {
  color: var(--text-secondary);
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}

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

.input-field {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
  font-family: inherit;
  -webkit-appearance: none;
}

.input-field:focus {
  border-color: var(--purple);
}

.input-field::placeholder {
  color: var(--text-muted);
}

select.input-field {
  cursor: pointer;
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.flex-1 { flex: 1; }

.number-input {
  display: flex;
  align-items: center;
  gap: 0;
}

.number-input button {
  width: 44px;
  height: 48px;
  background: var(--purple);
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.number-input button:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.number-input button:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.number-input input {
  width: 50px;
  text-align: center;
  border-radius: 0;
  border-left: none;
  border-right: none;
}

/* ========== TOGGLE ========== */
.toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

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

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 28px;
  transition: 0.3s;
}

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

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

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

/* ========== PLAYER LIST ========== */
.player-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  transition: background 0.2s;
}

.player-item:hover {
  background: rgba(255,255,255,0.06);
}

.player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

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

.player-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-detail {
  font-size: 12px;
  color: var(--text-muted);
}

.player-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ========== VERIFICATION ========== */
.verify-icon {
  font-size: 64px;
  color: var(--purple);
  margin: 20px 0;
}

.code-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}

.code-digit {
  width: 42px;
  height: 48px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s;
}

.code-digit:focus {
  border-color: var(--purple);
}

/* ========== REGISTRATION ========== */
.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 10px 0;
}

/* ========== MATCH INFO ========== */
.match-info-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.info-item i {
  color: var(--orange);
}

/* ========== PROGRESS BAR ========== */
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 16px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--orange));
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* ========== TEAMS ========== */
.teams-container {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  position: relative;
}

.team-card {
  flex: 1;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 2px solid transparent;
}

.team-a {
  border-color: var(--purple);
}

.team-b {
  border-color: var(--orange);
}

.team-card h3 {
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-a h3 { color: var(--purple-light); }
.team-b h3 { color: var(--orange); }

.vs-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-dark);
  color: var(--text-primary);
  font-weight: 900;
  font-size: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  z-index: 2;
}

.team-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
}

.team-player .jersey {
  font-size: 16px;
}

/* ========== PAYMENTS ========== */
.payment-summary {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.payment-summary h2 {
  font-size: 18px;
  margin-top: 4px;
}

.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }

.payment-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.badge-paid {
  background: rgba(0,200,83,0.15);
  color: var(--green);
}

.badge-pending {
  background: rgba(255,122,0,0.15);
  color: var(--orange);
}

.badge-blocked {
  background: rgba(255,61,61,0.15);
  color: var(--red);
}

/* ========== TABS ========== */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 4px;
}

.tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.3s;
  font-family: inherit;
}

.tab.active {
  background: var(--purple);
  color: white;
}

/* ========== PILLS ========== */
.fantasy-period-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.pill {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.pill.active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

/* ========== SEARCH ========== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  margin-bottom: 16px;
}

.search-bar i {
  color: var(--text-muted);
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 12px 0;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

/* ========== PROFILE ========== */
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-top: 10px;
}

.badge {
  display: inline-block;
  background: rgba(123,44,191,0.2);
  color: var(--purple-light);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.profile-stats {
  display: flex;
  gap: 24px;
  margin: 10px 0;
}

.pstat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pstat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--orange);
}

.pstat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.profile-menu {
  width: 100%;
  margin-top: 10px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background 0.2s;
  font-family: inherit;
}

.profile-menu-item:hover {
  background: var(--bg-card-hover);
}

.profile-menu-item i:first-child {
  color: var(--purple-light);
  width: 20px;
  text-align: center;
}

.profile-menu-item span {
  flex: 1;
  text-align: left;
}

.profile-menu-item i:last-child {
  color: var(--text-muted);
  font-size: 12px;
}

.profile-menu-item.text-red {
  color: var(--red);
}

.profile-menu-item.text-red i:first-child {
  color: var(--red);
}

/* ========== ADMIN ========== */
.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-card {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

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

.admin-card i {
  font-size: 28px;
  color: var(--purple-light);
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.admin-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.admin-card p {
  margin-top: 2px;
}

/* ========== SETTINGS ========== */
.settings-section {
  margin-bottom: 24px;
}

.settings-section h3 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

/* ========== EMPTY STATE ========== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--border);
}

.empty-state p {
  margin-bottom: 16px;
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
  border: 1px solid var(--purple);
  max-width: 360px;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-content {
  background: var(--bg-dark);
  width: 100%;
  max-width: 480px;
  max-height: 70vh;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 20px;
  overflow-y: auto;
  position: relative;
}

.modal-content:has(.modal-close) {
  padding-top: 56px;
}

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

/* ========== ACTION BUTTONS ========== */
.action-buttons {
  margin: 16px 0;
}

/* ========== RANKING ITEM ========== */
.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ranking-pos {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--border);
  flex-shrink: 0;
}

.ranking-pos.gold { background: #FFD600; color: #000; }
.ranking-pos.silver { background: #C0C0C0; color: #000; }
.ranking-pos.bronze { background: #CD7F32; color: #fff; }

.ranking-info {
  flex: 1;
}

.ranking-name {
  font-size: 14px;
  font-weight: 600;
}

.ranking-detail {
  font-size: 12px;
  color: var(--text-muted);
}

.ranking-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--orange);
}

/* ========== MATCH LIST ITEM ========== */
.match-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.match-list-item:hover {
  border-color: var(--purple);
}

.match-date-box {
  width: 50px;
  height: 56px;
  background: var(--purple);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.match-date-box .day {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.match-date-box .month {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.match-list-info {
  flex: 1;
}

.match-list-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.match-list-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.match-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.status-open {
  background: rgba(0,200,83,0.15);
  color: var(--green);
}

.status-full {
  background: rgba(255,122,0,0.15);
  color: var(--orange);
}

.status-done {
  background: rgba(119,119,119,0.15);
  color: var(--text-muted);
}

/* ========== FANTASY FORMATION ========== */
.fantasy-formation {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: linear-gradient(180deg, rgba(0,100,0,0.2) 0%, rgba(0,60,0,0.1) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  border: 1px solid rgba(0,100,0,0.2);
}

.formation-row {
  display: flex;
  gap: 32px;
}

.formation-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.slot-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 2px solid rgba(255,255,255,0.2);
  transition: all 0.3s;
}

.slot-circle.gk {
  background: var(--orange);
}

.slot-circle.filled {
  background: var(--green);
  border-color: var(--green);
}

.formation-slot span {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.formation-slot .slot-name {
  font-size: 11px;
  color: var(--text-primary);
  max-width: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== PRIZES ========== */
.prize-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prize-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
}

.prize-medal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}

.prize-item.gold .prize-medal {
  background: linear-gradient(135deg, #FFD600, #FFA000);
  color: #000;
}

.prize-item.silver .prize-medal {
  background: linear-gradient(135deg, #E0E0E0, #9E9E9E);
  color: #000;
}

.prize-item.bronze .prize-medal {
  background: linear-gradient(135deg, #CD7F32, #A0522D);
  color: #fff;
}

.prize-item span {
  font-size: 14px;
}

/* ========== STATS REGISTER ========== */
.stat-register-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.stat-register-item .player-info {
  flex: 1;
}

.stat-inputs {
  display: flex;
  gap: 8px;
}

.stat-input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-input-group label {
  font-size: 10px;
  color: var(--text-muted);
}

.stat-input-group input {
  width: 40px;
  height: 36px;
  text-align: center;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ========== ANIMATIONS ========== */
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.page.active .page-body > * {
  animation: slideUp 0.3s ease forwards;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.confirmed-badge {
  animation: pulse 2s ease infinite;
  display: inline-block;
  color: var(--green);
}

/* ========== LOADING STATES ========== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
  min-height: 60px;
  margin-bottom: 12px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

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

/* ========== DEBOUNCE VISUAL ========== */
.btn-throttled {
  pointer-events: none;
  opacity: 0.6;
}
