:root {
  --bg-main: #0b0e14;
  --bg-sidebar: #10141d;
  --bg-card: #151a26;
  --bg-card-hover: #1b2232;
  --bg-input: #1a202c;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-red: rgba(255, 70, 85, 0.55);
  --border-green: rgba(16, 185, 129, 0.55);
  --border-blue: rgba(59, 130, 246, 0.55);
  --border-amber: rgba(245, 158, 11, 0.55);

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --accent-red: #ff4655;
  --accent-red-hover: #e63946;
  --accent-green: #10b981;
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;
  --accent-purple: #8b5cf6;

  --font-display: 'Chakra Petch', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #283044;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a4562;
}

/* Typography helpers */
.page-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 70, 85, 0.28);
}
.btn-primary:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
}

.btn-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.45);
}
.btn-blue:hover {
  background: rgba(59, 130, 246, 0.25);
}

.btn-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.45);
}
.btn-green:hover {
  background: rgba(16, 185, 129, 0.28);
}

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

.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-green {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.badge-red {
  background: rgba(255, 70, 85, 0.14);
  color: #ff6b78;
  border: 1px solid rgba(255, 70, 85, 0.4);
}
.badge-amber {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.badge-blue {
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}
.badge-purple {
  background: rgba(139, 92, 246, 0.16);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

/* App Shell Layout */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 245px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
}

.sidebar-header {
  height: 68px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  user-select: none;
}
.brand-hs {
  color: var(--accent-red);
}
.brand-valo {
  color: #ffffff;
}

.mobile-close-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(255, 70, 85, 0.18) 0%, rgba(255, 70, 85, 0.02) 100%);
  color: #ffffff;
  border-left-color: var(--accent-red);
  font-weight: 600;
}

.nav-icon {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
}

.nav-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.6rem 0.5rem;
}

.nav-badge {
  margin-left: auto;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.access-status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
}

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

.btn-logout {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-logout:hover {
  background: rgba(255, 70, 85, 0.12);
  color: #ff6b78;
  border-color: rgba(255, 70, 85, 0.35);
}

/* Main Wrapper */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Topbar */
.topbar {
  height: 68px;
  background: rgba(16, 20, 29, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.hamburger-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  cursor: pointer;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.48rem 0.9rem;
  width: 100%;
  max-width: 360px;
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  width: 100%;
  outline: none;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  position: relative;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  border-radius: 999px;
  cursor: pointer;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4655, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.user-verified-badge {
  font-size: 0.7rem;
  color: var(--accent-purple);
  font-weight: 600;
}

.pending-banner {
  background: rgba(245, 158, 11, 0.12);
  border-bottom: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
  padding: 0.7rem 1.75rem;
  font-size: 0.85rem;
}

/* Page Content */
.page-content {
  padding: 1.75rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Hero Banner (AAA Esports Style) */
.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2.3rem 2.2rem;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 70, 85, 0.28), transparent 46%),
    radial-gradient(circle at 12% 90%, rgba(56, 189, 248, 0.16), transparent 45%),
    linear-gradient(125deg, #0d121d 0%, #151d2e 52%, #1d1522 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  margin-bottom: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 70% 40%, #000 15%, transparent 80%);
  pointer-events: none;
}

.hero-banner::after {
  content: 'LİSEVAL';
  position: absolute;
  right: 1.5rem;
  bottom: -1.4rem;
  font-family: var(--font-display);
  font-size: 5.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  flex: 1 1 360px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ff6b78;
  background: rgba(255, 70, 85, 0.12);
  border: 1px solid rgba(255, 70, 85, 0.3);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin-bottom: 0.7rem;
  background: linear-gradient(95deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.35rem;
}

/* Hero Sağ Taraf: Oyuncu Profil Kartı */
.hero-player-card {
  position: relative;
  z-index: 2;
  min-width: 260px;
  max-width: 310px;
  flex: 0 1 290px;
  background: rgba(10, 14, 23, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.15rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* 4'lü Canlı İstatistik Şeridi */
.home-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}
@media (max-width: 820px) {
  .home-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
.home-stat-tile {
  background: linear-gradient(180deg, rgba(22, 28, 40, 0.92), rgba(14, 18, 27, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.home-stat-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 70, 85, 0.42);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}
.home-stat-num {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}
.home-stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.home-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(255, 70, 85, 0.12);
  border: 1px solid rgba(255, 70, 85, 0.22);
}

/* Ana Sayfa Öne Çıkan Kartlar */
.home-feature-card {
  background: linear-gradient(180deg, rgba(20, 26, 38, 0.94), rgba(13, 17, 25, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.home-feature-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}
.home-mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  margin-bottom: 0.55rem;
}
.home-mini-item:last-child {
  margin-bottom: 0;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}

.card-glow-red {
  border-color: var(--border-red);
  box-shadow: 0 0 24px rgba(255, 70, 85, 0.08);
}

.card-glow-green {
  border-color: var(--border-green);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.08);
}

.card-glow-blue {
  border-color: var(--border-blue);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.08);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.stat-sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.countdown-timer {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #60a5fa;
  letter-spacing: 0.05em;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

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

.row-highlight {
  background: rgba(255, 70, 85, 0.08) !important;
  border-left: 3px solid var(--accent-red);
}

/* Tournaments */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.tournament-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  overflow: hidden;
}

.tournament-banner {
  padding: 1.35rem;
  background: linear-gradient(135deg, #1b2234 0%, #2a1824 100%);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.tournament-banner.blue-theme {
  background: linear-gradient(135deg, #132238 0%, #10323f 100%);
}

.tournament-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.info-label {
  color: var(--text-secondary);
}

.info-val {
  font-weight: 600;
}

.progress-bar-bg {
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-red), #ff7b85);
  border-radius: 999px;
}

.progress-bar-fill.blue {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

/* Bracket & Matches */
.bracket-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
}

.match-list-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.9rem;
  transition: border-color 0.2s;
}

.match-list-item.featured {
  border-color: var(--border-red);
  box-shadow: 0 0 18px rgba(255, 70, 85, 0.1);
}

.bracket-tree {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 0.5rem;
  align-items: center;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 215px;
}

.bracket-round-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.bracket-match {
  background: #19202e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.bracket-match:hover {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
}

.bracket-team {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.75rem;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bracket-team:last-child {
  border-bottom: none;
}

.bracket-team.winner {
  font-weight: 700;
  color: #fff;
  background: rgba(16, 185, 129, 0.08);
}

.bracket-score {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
}

.bracket-team.winner .bracket-score {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

/* Roster & Document Upload */
.roster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.roster-player {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mini-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #28324a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.02);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent-green);
  background: rgba(16, 185, 129, 0.08);
}

/* KDA Pill */
.kda-pill {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
}
.kda-high {
  color: #34d399;
}
.kda-mid {
  color: #60a5fa;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent-red);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Auth Screen */
.auth-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 70, 85, 0.18), transparent 45%), var(--bg-main);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  margin: auto 0;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-badge {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  background: rgba(255, 70, 85, 0.18);
  color: #ff6b78;
  border: 1px solid rgba(255, 70, 85, 0.4);
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
}

.auth-subtitle {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: var(--bg-input);
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.auth-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.auth-tab.active {
  background: var(--bg-card);
  color: #fff;
}

.demo-accounts {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}
.demo-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.demo-btns {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.btn-demo {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.42rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
}
.btn-demo:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.auth-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.15rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.35rem;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #1c2436;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-green);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  animation: slideIn 0.2s ease;
}

.toast.error {
  border-left-color: var(--accent-red);
}

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

/* Responsive */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .bracket-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -260px;
    transition: left 0.22s ease;
  }
  .sidebar.open {
    left: 0;
  }
  .hamburger-btn,
  .mobile-close-btn {
    display: inline-flex;
  }
  .page-content {
    padding: 1rem;
  }
  .topbar {
    padding: 0 1rem;
  }
}

/* Empty States & Callouts */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}
.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}
.empty-state-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.empty-state-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 520px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.5;
}

/* Rules Callout */
.rules-callout {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left: 4px solid var(--accent-red);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
}
.rules-callout-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.rules-callout ul {
  margin: 0.4rem 0 0 1.2rem;
  padding: 0;
}
.rules-callout li {
  margin-bottom: 0.25rem;
}

/* Roster Section Layout */
.roster-group {
  margin-bottom: 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.roster-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  font-weight: 600;
}
.badge-coach {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.badge-no-play {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-block;
}
.badge-can-play {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-block;
}
.btn-sm-action {
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-sm-action:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.btn-sm-action.danger:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}
.user-profile-pill {
  cursor: pointer;
}
.tour-kda-card {
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.tour-kda-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 70, 85, 0.5);
  box-shadow: 0 8px 25px rgba(255, 70, 85, 0.12);
}

/* Klipler & Yorumlar (Premium Minimal Feed) */
.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.25rem;
}
@media (max-width: 640px) {
  .clips-grid {
    grid-template-columns: 1fr;
  }
}
.clip-card {
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(22, 27, 38, 0.96), rgba(13, 17, 25, 0.98));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 0;
}
.clip-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 70, 85, 0.42);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.clip-video-wrap {
  position: relative;
  width: 100%;
  background: #05070c;
  overflow: hidden;
  margin: 0;
  border: none;
  border-radius: 0;
}
.clip-video-wrap iframe,
.clip-video-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
}
.clip-map-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(9, 12, 18, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.clip-card-body {
  padding: 0.95rem 1.05rem 1rem;
}
.clip-card-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.55rem;
}
.clip-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.clip-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.clip-comments {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.comment-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
}

/* Sade Yönetici Paneli Satırları */
.admin-app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  margin-bottom: 0.6rem;
}
.admin-kda-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}
@media (max-width: 600px) {
  .admin-kda-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Profil Fotoğrafı / Avatar */
.avatar-img {
  object-fit: cover;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.profile-avatar-lg {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255, 70, 85, 0.16);
  border: 2px solid rgba(255, 70, 85, 0.5);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  object-fit: cover;
  flex-shrink: 0;
}

/* Duyurular & Takım İçi Yazılı Sohbet */
.announcement-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--accent-blue);
  border-radius: var(--radius-md);
  margin-bottom: 0.6rem;
}
.announcement-item:last-child {
  margin-bottom: 0;
}
.announcement-item.ann-important {
  border-left-color: var(--accent-red);
  background: rgba(255, 70, 85, 0.05);
}
.announcement-item.ann-event {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.team-chat-box {
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.85rem;
  background: rgba(6, 9, 15, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
}
.chat-bubble-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 82%;
}
.chat-bubble-row.is-me {
  align-self: flex-end;
  align-items: flex-end;
}
.chat-bubble {
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--text-primary);
  word-break: break-word;
}
.chat-bubble-row.is-me .chat-bubble {
  background: rgba(255, 70, 85, 0.16);
  border-color: rgba(255, 70, 85, 0.35);
}
.chat-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* PWA Kurulum Butonu & Mobil Cila */
.btn-install-pwa {
  width: 100%;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 70, 85, 0.45);
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.22), rgba(255, 70, 85, 0.08));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-install-pwa:hover {
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.35), rgba(255, 70, 85, 0.14));
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .page-content {
    padding: 1rem 0.85rem calc(1.5rem + env(safe-area-inset-bottom));
  }
  .hero-banner {
    padding: 1.45rem 1.2rem;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .hero-player-card {
    max-width: 100%;
    width: 100%;
    flex: 1 1 100%;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 0.65rem 0.85rem;
  }
  .page-title {
    font-size: 1.38rem;
  }
  .admin-app-row {
    padding: 0.75rem 0.8rem;
  }
  .team-chat-box {
    max-height: 280px;
  }
}

/* Netlify Rozetini Sağ Alta (Hiçbir Öğeyi Kapatmayan Alana) Yerleştir */
#nl-badge-frame {
  top: auto !important;
  left: auto !important;
  bottom: 12px !important;
  right: 14px !important;
  transform: scale(0.84) !important;
  transform-origin: bottom right !important;
  opacity: 0.72 !important;
  transition: opacity 0.2s ease !important;
}
#nl-badge-frame:hover {
  opacity: 1 !important;
}

