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

:root {
  /* FASTCUP Exact Color Palette */
  --bg-page: #1B1B27;
  --bg-header: #14141E;
  --bg-block: #242432;
  --bg-block-subtle: #1E1E2C;
  --bg-block-hover: #2C2C3E;
  --bg-border: #333346;
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Brand Fiery Orange / Red */
  --color-brand-start: #FB7622;
  --color-brand-end: #F53144;
  --color-brand-gradient: linear-gradient(135deg, #FB7622 0%, #F53144 100%);
  --color-gold-gradient: linear-gradient(135deg, #FFBC6C 0%, #B0763F 100%);

  /* Typography Colors */
  --color-alpha: #FFFFFF;
  --color-beta: #D1D1DB;
  --color-gamma: #9E9EB2;
  --color-dim: #656578;
  --color-gold: #EDAC26;
  --color-green: #10B981;

  --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  background-color: var(--bg-page);
  color: var(--color-alpha);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: #38384D;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-start);
}

/* =========================================================================
   APP ROOT & LEFT SIDEBAR LAYOUT
   ========================================================================= */

#root {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background-color: var(--bg-page);
  position: relative;
}

#main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-page);
}

/* LEFT SIDEBAR */
.app-left-sidebar {
  width: 250px;
  min-width: 250px;
  height: 100vh;
  position: sticky;
  top: 0;
  left: 0;
  background: #13131D;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 120;
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), min-width 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s ease;
  user-select: none;
}

/* Sidebar Brand Row */
.sidebar-brand-row {
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: #0F0F17;
}

.sidebar-logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
  overflow: hidden;
}

.sidebar-brand-img {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.sidebar-toggle-btn {
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  color: var(--color-gamma);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
}

.sidebar-toggle-btn:hover {
  background: var(--bg-block-hover);
  color: #fff;
  border-color: var(--color-brand-start);
}

/* =========================================================================
   SIDEBAR FEATURED CARDS & PARTNERSHIP SLIDESHOW (SCREENSHOT EXACT)
   ========================================================================= */

.sidebar-cards-section {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-featured-card {
  background: #181926;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.sidebar-featured-card:hover {
  border-color: rgba(251, 118, 34, 0.35);
  box-shadow: 0 8px 24px rgba(251, 118, 34, 0.15);
}

/* Card 1: Custom Matches & Matchmaking */
.sb-card-art-wrap {
  height: 80px;
  position: relative;
  overflow: hidden;
  background: #0d0e17;
}

.sb-card-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.sidebar-featured-card:hover .sb-card-art {
  transform: scale(1.05);
}

.sb-card-art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 19, 29, 0.1) 0%, rgba(24, 25, 38, 0.95) 100%);
}

.sb-card-badge-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(251, 118, 34, 0.6);
  backdrop-filter: blur(6px);
  color: #fb7622;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sb-card-body {
  padding: 10px 12px 12px;
}

.sb-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 4px;
}

.sb-card-desc {
  font-size: 11px;
  color: #9e9eb2;
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sb-card-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sb-btn-create {
  width: 100%;
  background: #222436;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: all 0.15s ease;
}

.sb-btn-create:hover {
  background: #2a2d42;
  border-color: #fb7622;
  color: #fb7622;
}

.sb-btn-play {
  width: 100%;
  background: linear-gradient(135deg, #fb7622 0%, #f53144 100%);
  border: none;
  color: #fff;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(251, 118, 34, 0.35);
  transition: transform 0.12s, box-shadow 0.15s;
}

.sb-btn-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(251, 118, 34, 0.55);
}

/* Card 2: Partnership & Event Slideshow */
.sb-slideshow-wrap {
  position: relative;
  overflow: hidden;
}

.sb-slides-track {
  width: 100%;
  position: relative;
}

.sb-slide-item {
  width: 100%;
  display: none;
}

.sb-slide-item.active {
  display: block;
  animation: sbSlideFadeIn 0.3s ease;
}

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

.sb-slide-banner-wrap {
  height: 80px;
  position: relative;
  overflow: hidden;
  background: #0d0e17;
}

.sb-slide-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.sb-slide-item:hover .sb-slide-banner-img {
  transform: scale(1.05);
}

.sb-slide-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 19, 29, 0.15) 0%, rgba(24, 25, 38, 0.95) 100%);
}

.sb-slide-partner-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid #fb7622;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sb-slide-content {
  padding: 10px 12px 6px;
}

.sb-slide-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 4px;
}

.sb-slide-desc {
  font-size: 11px;
  color: #9e9eb2;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sb-slide-cta-btn {
  width: 100%;
  background: #242538;
  border: 1px solid rgba(251, 118, 34, 0.4);
  color: #fb7622;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: uppercase;
  transition: all 0.15s ease;
}

.sb-slide-cta-btn:hover {
  background: linear-gradient(135deg, #fb7622 0%, #f53144 100%);
  color: #fff;
  border-color: transparent;
}

.sb-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.sb-arrow-btn {
  background: transparent;
  border: none;
  color: #656578;
  font-size: 11px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  transition: color 0.15s;
}

.sb-arrow-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.sb-dots-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38384d;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sb-dot.active {
  width: 14px;
  border-radius: 3px;
  background: #fb7622;
}

/* Scrollable Menu */
.sidebar-scrollable-menu {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-menu-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-group-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--color-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 10px 4px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--color-gamma);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.12s ease;
  position: relative;
}

.sidebar-nav-item i {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-nav-item .item-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav-item:hover {
  background: var(--bg-block);
  color: #fff;
}

.sidebar-nav-item.active {
  background: rgba(251, 118, 34, 0.14);
  color: #fff;
  font-weight: 700;
  border-left: 3px solid var(--color-brand-start);
  padding-left: 9px;
}

.sidebar-nav-item.active i {
  color: var(--color-brand-start) !important;
}

.sidebar-badge-live {
  background: #10B981;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.sidebar-badge-new {
  background: #00e5ff;
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
}

.sidebar-badge-gold {
  background: linear-gradient(135deg, #FFBC6C 0%, #B0763F 100%);
  color: #14141E;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 4px;
}

.premium-sidebar-item {
  color: #FFBC6C;
}

/* Sidebar Servers Mini Row */
.sidebar-server-mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-block-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 7px 10px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: all 0.12s;
}

.sidebar-server-mini-row:hover {
  background: var(--bg-block-hover);
  border-color: #4a4a62;
}

.sidebar-server-mini-row .s-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
  flex-shrink: 0;
}

.sidebar-server-mini-row .s-info {
  flex: 1;
  overflow: hidden;
  line-height: 1.25;
}

.sidebar-server-mini-row .s-name {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-server-mini-row .s-players {
  font-size: 10px;
  color: var(--color-green);
}

/* Sidebar Footer User Capsule */
.sidebar-user-footer {
  border-top: 1px solid var(--border-subtle);
  background: #0F0F17;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.sidebar-user-footer:hover {
  background: #181824;
}

.sidebar-user-avatar-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--color-brand-start);
  object-fit: cover;
}

.sidebar-user-lvl {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: var(--color-brand-gradient);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #14141E;
}

.sidebar-user-details {
  flex: 1;
  overflow: hidden;
  line-height: 1.25;
}

.sidebar-user-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-elo {
  font-size: 10px;
  color: var(--color-gamma);
}

.sidebar-user-gear {
  color: var(--color-dim);
  font-size: 13px;
  transition: color 0.15s, transform 0.2s;
}

.sidebar-user-footer:hover .sidebar-user-gear {
  color: #fff;
  transform: rotate(45deg);
}

/* =========================================================================
   COLLAPSED SIDEBAR STATE (MINI ICON MODE)
   ========================================================================= */
.app-left-sidebar.collapsed {
  width: 68px;
  min-width: 68px;
}

.app-left-sidebar.collapsed .sidebar-brand-img,
.app-left-sidebar.collapsed .item-label,
.app-left-sidebar.collapsed .sidebar-group-title,
.app-left-sidebar.collapsed .sidebar-badge-live,
.app-left-sidebar.collapsed .sidebar-badge-new,
.app-left-sidebar.collapsed .sidebar-badge-gold,
.app-left-sidebar.collapsed .btn-play-text,
.app-left-sidebar.collapsed .sidebar-user-details,
.app-left-sidebar.collapsed .sidebar-user-gear,
.app-left-sidebar.collapsed .sidebar-servers-group,
.app-left-sidebar.collapsed .s-info {
  display: none !important;
}

.app-left-sidebar.collapsed .sidebar-brand-row {
  justify-content: center;
  padding: 0;
}

.app-left-sidebar.collapsed .sidebar-logo-wrap {
  display: none;
}

.app-left-sidebar.collapsed .sidebar-toggle-btn i {
  transform: rotate(180deg);
}

.app-left-sidebar.collapsed .sidebar-quickplay-box {
  padding: 10px 8px;
}

.app-left-sidebar.collapsed .sidebar-btn-play {
  padding: 10px 0;
  justify-content: center;
}

.app-left-sidebar.collapsed .sidebar-nav-item {
  justify-content: center;
  padding: 10px 0;
}

.app-left-sidebar.collapsed .sidebar-nav-item.active {
  border-left: none;
  border-bottom: 3px solid var(--color-brand-start);
  padding: 10px 0 7px;
}

.app-left-sidebar.collapsed .sidebar-nav-item i {
  font-size: 16px;
  width: auto;
}

.app-left-sidebar.collapsed .sidebar-user-footer {
  justify-content: center;
  padding: 10px 0;
}

/* Mobile Hamburger in Header */
.header-sidebar-toggle {
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  color: var(--color-gamma);
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
}

.header-sidebar-toggle:hover {
  color: #fff;
  border-color: var(--color-brand-start);
}

/* Sidebar Backdrop for Mobile */
.sidebar-mobile-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 119;
  display: none;
}

.sidebar-mobile-backdrop.show {
  display: block;
}

@media (max-width: 900px) {
  .header-sidebar-toggle {
    display: flex;
  }
  .app-left-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.75);
  }
  .app-left-sidebar.mobile-open {
    transform: translateX(0);
  }
}

/* =========================================================================
   HEADER (FASTCUP EXACT)
   ========================================================================= */

#header {
  height: 56px;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  padding: 4px 0;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  transition: transform 0.15s ease, filter 0.15s ease;
}

.header-logo:hover .brand-logo-img {
  transform: scale(1.03);
  filter: drop-shadow(0 2px 10px rgba(251, 118, 34, 0.45));
}

/* CS 1.6 Official Badge Pill */
.cs16-official-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-block);
  border: 1px solid var(--bg-border);
  padding: 6px 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.cs16-steam-thumbnail img {
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.game-dropdown-menu {
  position: absolute;
  top: 42px;
  left: 0;
  background: var(--bg-block);
  border: 1px solid var(--bg-border);
  border-radius: 6px;
  width: 190px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 110;
}

.game-dropdown-menu.show {
  display: flex;
}

.game-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  color: var(--color-gamma);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.game-dropdown-item:hover {
  background: var(--bg-block-hover);
  color: #fff;
}

.game-dropdown-item.active {
  color: var(--color-brand-start);
  background: rgba(251, 118, 34, 0.1);
}

/* Navigation Links */
.header-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
  height: 100%;
}

.nav-link-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link-item > a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-gamma);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav-link-item > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link-item.active > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Dropdown Menu in Nav (Seamless Hover Hit Area) */
.dropdown-nav {
  position: relative;
}

.nav-dropdown-trigger i {
  font-size: 9px;
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.dropdown-nav:hover .nav-dropdown-trigger i,
.dropdown-nav:focus-within .nav-dropdown-trigger i {
  transform: rotate(180deg);
}

.dropdown-nav:hover > a,
.dropdown-nav:focus-within > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: var(--bg-block);
  border: 1px solid var(--bg-border);
  border-radius: 6px;
  min-width: 185px;
  display: none;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
  z-index: 500;
  padding: 6px 0;
  overflow: visible;
}

/* Invisible Hover Bridge: Prevents Submenu From Disappearing when Mouse Moves */
.nav-submenu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
  display: block;
}

.dropdown-nav:hover .nav-submenu,
.dropdown-nav:focus-within .nav-submenu {
  display: flex;
  animation: fadeInSubmenu 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-submenu a {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-beta);
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.12s ease;
  text-decoration: none;
  white-space: nowrap;
}

.nav-submenu a:hover {
  background: var(--bg-block-hover);
  color: #fff;
  padding-left: 20px;
}

.premium-link a {
  color: #FFBC6C !important;
}

/* Header Right & Notifications/Dialogs Popovers */
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.hdr-action-dropdown-wrap {
  position: relative;
}

.hdr-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--bg-block);
  border: 1px solid var(--bg-border);
  color: var(--color-gamma);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  position: relative;
  transition: all 0.15s ease;
}

.hdr-icon-btn:hover, .hdr-icon-btn.active {
  color: #fff;
  background: var(--bg-block-hover);
  border-color: var(--color-brand-start);
}

.hdr-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-brand-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(245, 49, 68, 0.5);
  line-height: 1.2;
}

.hdr-badge-count.hidden {
  display: none;
}

.hdr-popover-menu {
  position: absolute;
  top: 46px;
  right: 0;
  width: 340px;
  background: var(--bg-block);
  border: 1px solid var(--bg-border);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75);
  z-index: 500;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.15s ease;
}

.hdr-popover-menu.show {
  display: flex;
}

.popover-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-block-subtle);
}

.popover-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.popover-action-link {
  font-size: 11px;
  color: var(--color-brand-start);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.15s;
}

.popover-action-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.popover-body {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.popover-item {
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.popover-item:last-child {
  border-bottom: none;
}

.popover-item:hover {
  background: var(--bg-block-hover);
}

.popover-item.unread {
  background: rgba(251, 118, 34, 0.08);
}

.popover-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-brand-start);
}

.popover-item-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.popover-item-content {
  flex: 1;
  min-width: 0;
}

.popover-item-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popover-item-msg {
  font-size: 11px;
  color: var(--color-beta);
  margin-top: 3px;
  line-height: 1.4;
  word-break: break-word;
}

.popover-item-time {
  font-size: 10px;
  color: var(--color-dim);
  margin-top: 4px;
}

.popover-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-brand-start);
  box-shadow: 0 0 6px var(--color-brand-start);
  flex-shrink: 0;
}

.popover-empty-state {
  padding: 24px 16px;
  text-align: center;
  color: var(--color-gamma);
  font-size: 12px;
}

.popover-empty-state i {
  font-size: 24px;
  color: var(--color-dim);
  margin-bottom: 8px;
  display: block;
}

/* Header Right Profile Capsule (Exact Fastcup) */
.user-profile-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-block);
  border: 1px solid var(--bg-border);
  padding: 4px 12px 4px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.user-profile-header:hover {
  background: var(--bg-block-hover);
  border-color: var(--color-brand-start);
}

.hdr-uname {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.hdr-avatar-wrap {
  position: relative;
  width: 30px;
  height: 30px;
}

.header-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--color-brand-start);
  display: block;
}

.hdr-lvl-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: var(--color-brand-gradient);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg-header);
}

.hdr-online-dot {
  position: absolute;
  top: 0;
  left: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  border: 1px solid var(--bg-header);
}

.user-level-badge {
  background: var(--color-brand-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}

.user-info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-info-text .uname {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.user-info-text .uelorank {
  font-size: 10px;
  color: var(--color-gamma);
}

/* =========================================================================
   MAIN CONTAINER & GAME STATS BAR
   ========================================================================= */

.main-body-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  flex: 1;
}

.game-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.game-meta-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-badge-icon {
  width: 38px;
  height: 38px;
  background: #E89930;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-heading-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.game-live-counts {
  font-size: 13px;
  color: var(--color-gamma);
}
.game-live-counts b {
  color: #fff;
}

.btn-play-gather {
  background: var(--color-brand-gradient);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s ease;
}
.btn-play-gather:hover {
  opacity: 0.92;
}

/* Notice Box */
.alert-notice-box {
  background: #342C26;
  border-left: 3px solid #7F5F23;
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #CA9220;
}

/* =========================================================================
   CS 1.6 LIVE GATHERS TICKER (100% CS 1.6 MATCH RESULTS)
   ========================================================================= */

.gathers-ticker-block {
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  overflow: hidden;
}

.gathers-ticker-header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-right: 1px solid var(--bg-border);
  padding-right: 14px;
  flex-shrink: 0;
}

.live-status-pulse {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.gathers-ticker-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  white-space: nowrap;
}

.gathers-slider-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.gathers-slider-track::-webkit-scrollbar { display: none; }

.gather-mini-card {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-block-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.gather-mini-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-brand-start);
  background: var(--bg-block-hover);
}

.gather-card-map {
  height: 48px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 4px 6px;
}

.gather-card-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(20,20,30,0.85) 100%);
}

.gather-map-name {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.gather-result-badge {
  position: relative;
  z-index: 1;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
}

.gather-result-badge.win {
  background: rgba(16, 185, 129, 0.25);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.gather-result-badge.loss {
  background: rgba(245, 49, 68, 0.25);
  color: #F53144;
  border: 1px solid rgba(245, 49, 68, 0.4);
}

.gather-card-info {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gather-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gather-score-text {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.gather-elo-text {
  font-size: 10px;
  font-weight: 800;
}

.gather-elo-text.plus {
  color: #10B981;
}

.gather-elo-text.minus {
  color: #F53144;
}

.gather-user-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gather-user-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.gather-user-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-beta);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.gather-time-ago {
  font-size: 9px;
  color: var(--color-dim);
}

/* =========================================================================
   TOURNAMENTS SLIDER / GRID (FASTCUP EXACT)
   ========================================================================= */

.section-block {
  margin-bottom: 28px;
}

.tournaments-slider-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.tournaments-slider-row.full-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.fc-tournament-card {
  background: var(--bg-block);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s;
  cursor: pointer;
  text-decoration: none;
}

.fc-tournament-card:hover {
  border-color: var(--color-brand-start);
  transform: translateY(-2px);
}

.t-card-top-cover {
  height: 110px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.t-card-top-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(27, 27, 39, 0.95) 100%);
}

.t-logo-and-title {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.t-logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.t-title-text {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.t-status-text {
  font-size: 11px;
  color: var(--color-green);
  font-weight: 500;
}

.t-card-details-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.t-detail-item {
  display: flex;
  flex-direction: column;
}
.t-detail-lbl {
  font-size: 11px;
  color: var(--color-gamma);
}
.t-detail-val {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
}
.t-detail-val.prize-val {
  color: var(--color-gold);
  font-weight: 700;
}

.block-view-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 12px;
  color: var(--color-gamma);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.block-view-all-btn:hover {
  background: var(--bg-block-hover);
  color: #fff;
}

/* =========================================================================
   LEAGUES SECTION (2 COLUMNS)
   ========================================================================= */

.leagues-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .leagues-grid-2col { grid-template-columns: 1fr; }
}

.fc-league-card {
  background: var(--bg-block);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.league-card-cover {
  height: 120px;
  background-size: cover;
  background-position: center;
}

.league-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.league-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.l-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.l-org {
  font-size: 13px;
  color: var(--color-gamma);
  margin-top: 2px;
}

.l-stat-cols {
  display: flex;
  gap: 20px;
}

.l-season-badge {
  background: var(--bg-block-subtle);
  border-radius: 4px;
  padding: 6px;
  text-align: center;
  font-size: 12px;
  color: var(--color-gamma);
}
.l-season-badge span {
  color: var(--color-brand-start);
  font-weight: 700;
}

/* =========================================================================
   4 ACTION TILES (FASTCUP EXACT)
   ========================================================================= */

.action-tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.action-tile-card {
  background: var(--bg-block);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.match-tile {
  background: linear-gradient(135deg, rgba(251, 118, 34, 0.08) 0%, var(--bg-block) 100%);
}

.tile-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.tile-desc {
  font-size: 13px;
  color: var(--color-gamma);
  line-height: 1.4;
  margin-bottom: 18px;
}

.tile-tag {
  display: inline-block;
  background: rgba(245, 49, 68, 0.3);
  border: 1px solid rgba(245, 49, 68, 0.6);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 16px;
  width: fit-content;
}

.btn-primary-fc {
  background: var(--color-brand-gradient);
  border: none;
  border-radius: 6px;
  color: #fff;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.btn-premium-fc {
  background: var(--color-gold-gradient);
  border: none;
  border-radius: 6px;
  color: #14141E;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.news-link {
  font-size: 12px;
  color: var(--color-gamma);
  text-decoration: none;
}

.news-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}

.news-title {
  font-size: 13px;
  font-weight: 700;
}
.news-meta {
  font-size: 11px;
  color: var(--color-dim);
  margin-top: 4px;
}

/* =========================================================================
   TABS & PANEL CONTENT
   ========================================================================= */

.tab-content-panel {
  display: none;
}
.tab-content-panel.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

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

.panel-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
}

/* =========================================================================
   MATCHES / GATHER ROOM & VETO (FASTCUP STYLE)
   ========================================================================= */

.match-room-panel {
  background: var(--bg-block);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  padding: 24px;
}

.match-room-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.match-type-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-brand-start);
  margin-bottom: 4px;
}

.match-room-id {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.match-live-scorecard {
  text-align: right;
}

.score-t1 { font-size: 32px; font-weight: 700; color: #FB7622; }
.score-sep { font-size: 32px; font-weight: 700; color: var(--color-gamma); margin: 0 4px; }
.score-t2 { font-size: 32px; font-weight: 700; color: #F53144; }
.score-round-lbl { font-size: 12px; color: var(--color-gamma); }

.teams-5v5-roster {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}

.team-column {
  background: var(--bg-block-subtle);
  border-radius: 6px;
  padding: 14px;
  border: 1px solid var(--border-subtle);
}

.team-col-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

.roster-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roster-player-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  font-size: 13px;
}

.roster-vs-badge {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dim);
}

/* VETO MODULE */
.veto-module-card {
  background: var(--bg-block-subtle);
  border-radius: 6px;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.veto-module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.veto-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.veto-status {
  font-size: 13px;
  color: var(--color-brand-start);
  font-weight: 500;
}

.veto-cards-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.veto-card {
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  position: relative;
}

.veto-card:hover {
  border-color: var(--color-brand-start);
}

.veto-card.banned {
  opacity: 0.3;
  filter: grayscale(1);
  pointer-events: none;
}
.veto-card.banned::after {
  content: "BAN";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #F53144;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}

.veto-card-img {
  width: 100%;
  height: 60px;
  object-fit: cover;
}

.veto-card-name {
  font-size: 11px;
  font-weight: 700;
  padding: 4px;
}

.server-connect-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--color-green);
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.connect-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.connect-ip {
  font-size: 13px;
  color: var(--color-gamma);
  margin-top: 2px;
}

.connect-buttons {
  display: flex;
  gap: 10px;
}

.btn-copy-ip, .btn-steam-join, .btn-ac-join {
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-copy-ip { background: #38384D; color: #fff; }
.btn-steam-join { background: #1B2838; color: #fff; }
.btn-ac-join { background: var(--color-brand-gradient); color: #fff; }

/* =========================================================================
   TABLES (RANKINGS)
   ========================================================================= */

.fc-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-block);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.fc-table th {
  background: var(--bg-block-subtle);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  color: var(--color-gamma);
  text-transform: uppercase;
}

.fc-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}

.fc-table tr:hover td {
  background: var(--bg-block-hover);
}

/* =========================================================================
   ANTI-CHEAT & FAQ
   ========================================================================= */

.ac-landing-hero {
  background: var(--bg-block);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.ac-badge-shield {
  font-size: 40px;
  color: var(--color-brand-start);
  margin-bottom: 12px;
}

.ac-landing-hero h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}
.ac-landing-hero h1 span { color: var(--color-brand-start); }

.ac-landing-hero p {
  color: var(--color-gamma);
  font-size: 14px;
  max-width: 560px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.btn-download-ac {
  background: var(--color-brand-gradient);
  border: none;
  border-radius: 6px;
  color: #fff;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ac-instructions-3step {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-box {
  background: var(--bg-block);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--border-subtle);
}

.step-circle {
  width: 28px;
  height: 28px;
  background: var(--color-brand-start);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 13px;
}

.step-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.step-text {
  font-size: 13px;
  color: var(--color-gamma);
  line-height: 1.4;
}

/* FAQ Accordion */
.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-card-item {
  background: var(--bg-block);
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.faq-card-q {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-card-a {
  padding: 0 18px 14px;
  font-size: 13px;
  color: var(--color-gamma);
  line-height: 1.5;
  display: none;
}

.faq-card-item.open .faq-card-a { display: block; }
.faq-card-item.open .faq-card-q { color: var(--color-brand-start); }

/* Premium Hero */
.premium-hero-card {
  background: var(--bg-block);
  border-radius: 8px;
  border: 1px solid #FFBC6C;
  padding: 40px;
  text-align: center;
}

.crown-icon-big {
  font-size: 42px;
  color: #FFBC6C;
  margin-bottom: 12px;
}

.premium-pricing-box {
  margin-top: 24px;
}
.price-val {
  font-size: 32px;
  font-weight: 700;
  color: #FFBC6C;
  margin-bottom: 14px;
}
.price-val span { font-size: 14px; color: var(--color-gamma); }

.btn-buy-premium {
  background: var(--color-gold-gradient);
  border: none;
  border-radius: 6px;
  color: #14141E;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================================================================
   FOOTER (FASTCUP EXACT)
   ========================================================================= */

#footer {
  background: var(--bg-header);
  border-top: 1px solid var(--border-subtle);
  padding: 24px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-stats-row {
  display: flex;
  gap: 24px;
}

.f-stat-item {
  display: flex;
  flex-direction: column;
}
.f-num { font-size: 16px; font-weight: 700; color: #fff; }
.f-lbl { font-size: 11px; color: var(--color-gamma); }

.footer-links-row {
  display: flex;
  gap: 18px;
}
.footer-links-row a {
  font-size: 12px;
  color: var(--color-gamma);
  text-decoration: none;
}
.footer-links-row a:hover { color: #fff; }

.footer-socials-row {
  display: flex;
  gap: 14px;
}
.footer-socials-row a {
  color: var(--color-gamma);
  font-size: 16px;
  text-decoration: none;
}
.footer-socials-row a:hover { color: #fff; }

.footer-bottom-copyright {
  max-width: 1200px;
  margin: 12px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-dim);
}

/* =========================================================================
   MODALS
   ========================================================================= */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-backdrop.show {
  display: flex;
}

.fc-modal-box {
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 28px;
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.fc-modal-box.custom-dialog {
  text-align: left;
}

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

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.modal-sub {
  font-size: 13px;
  color: var(--color-gamma);
  margin-bottom: 20px;
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: var(--color-gamma);
  font-size: 20px;
  cursor: pointer;
}

.accept-slots-10 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.slot-circle {
  height: 44px;
  background: var(--bg-block-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-dim);
}

.slot-circle.accepted {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--color-green);
  color: var(--color-green);
}

.btn-accept-fc {
  width: 100%;
  background: var(--color-brand-gradient);
  border: none;
  border-radius: 6px;
  color: #fff;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.fc-form-group {
  margin-bottom: 12px;
}
.fc-form-group label {
  display: block;
  font-size: 12px;
  color: var(--color-gamma);
  margin-bottom: 4px;
}

.fc-input {
  width: 100%;
  background: var(--bg-block-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 8px 10px;
  color: #fff;
  font-size: 13px;
}

.fc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* =========================================================================
   CS 1.6 LIVE MIX SERVERS GRID & CARDS
   ========================================================================= */

.servers-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 1024px) {
  .servers-grid-3col {
    grid-template-columns: 1fr;
  }
}

.fc-server-card {
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.fc-server-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 118, 34, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.server-card-header {
  position: relative;
  height: 110px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.server-card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,30,0.2) 0%, rgba(36,36,50,0.95) 100%);
}

.server-header-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.server-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10B981;
  color: #10B981;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.server-ping-pill {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  color: #FB7622;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.server-map-tag {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.server-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.server-title-text {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-location-text {
  font-size: 11px;
  color: var(--color-gamma);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.server-players-wrap {
  margin-bottom: 14px;
}

.server-players-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}

.server-progress-bg {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.server-progress-fill {
  height: 100%;
  background: var(--color-brand-gradient);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.server-action-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.btn-server-connect {
  background: var(--color-brand-gradient);
  color: #fff;
  border: none;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-server-connect:hover {
  opacity: 0.9;
}

.btn-server-copy {
  background: var(--bg-block-subtle);
  color: var(--color-beta);
  border: 1px solid var(--bg-border);
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-server-copy:hover {
  background: var(--bg-block-hover);
  color: #fff;
}

/* =========================================================================
   STEAM CAPSULE & PLAYER PROFILE (FASTCUP / ESPLAY AUTHENTIC)
   ========================================================================= */

.steam-auth-capsule {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-steam-quick-switch {
  background: #171A21;
  border: 1px solid #333346;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.btn-steam-quick-switch:hover {
  background: #2A475E;
  border-color: #66C0F4;
  color: #66C0F4;
  transform: scale(1.05);
}

.fc-profile-hero-card {
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
}

.profile-hero-bg {
  height: 140px;
  background: linear-gradient(135deg, rgba(251, 118, 34, 0.25) 0%, rgba(245, 49, 68, 0.15) 50%, rgba(20, 20, 30, 0.9) 100%),
              url('https://shared.fastly.steamstatic.com/store_item_assets/steam/apps/10/header.jpg') center / cover;
  position: relative;
}

.profile-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,27,39,0.1) 0%, rgba(27,27,39,0.95) 100%);
}

.profile-hero-content {
  padding: 0 24px 20px 24px;
  display: flex;
  gap: 24px;
  position: relative;
  margin-top: -60px;
  z-index: 2;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .profile-hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.profile-avatar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.profile-avatar-frame {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  padding: 3px;
  background: var(--color-brand-gradient);
}

.profile-avatar-frame.lvl-10-glow {
  box-shadow: 0 0 20px rgba(251, 118, 34, 0.6);
}

.prof-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #14141E;
}

.prof-level-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--color-brand-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  border: 2px solid #14141E;
}

.prof-status-online {
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  display: flex;
  align-items: center;
  gap: 5px;
}

.profile-info-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
}

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

.prof-name {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.prof-realname {
  font-size: 14px;
  color: var(--color-gamma);
}

.prof-country-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--color-beta);
}

.prof-steam-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.steam-id-item {
  background: #171A21;
  border: 1px solid #2A475E;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.steam-id-item:hover {
  background: #1B2838;
  border-color: #66C0F4;
}

.steam-id-item .s-label {
  color: #8F98A0;
}

.steam-id-item .s-val {
  color: #66C0F4;
  font-family: 'Consolas', monospace;
  font-weight: 700;
}

.steam-link-btn {
  background: #2A475E;
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.steam-link-btn:hover {
  background: #66C0F4;
  color: #171A21;
}

.prof-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.badge-admin {
  background: rgba(251, 118, 34, 0.2);
  border: 1px solid #FB7622;
  color: #FB7622;
}

.badge-ac {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10B981;
  color: #10B981;
}

.badge-legend {
  background: rgba(237, 172, 38, 0.2);
  border: 1px solid #EDAC26;
  color: #EDAC26;
}

.badge-premium {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid #8B5CF6;
  color: #A78BFA;
}

.profile-actions-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  padding-top: 10px;
}

@media (max-width: 900px) {
  .profile-actions-column {
    align-items: center;
    width: 100%;
  }
}

.prof-elo-rating-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 18px;
  text-align: center;
  min-width: 200px;
}

.elo-val {
  font-size: 28px;
  font-weight: 800;
  color: #FB7622;
}

.elo-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-gamma);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.elo-bar-wrap {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.elo-bar-fill {
  height: 100%;
  background: var(--color-brand-gradient);
  border-radius: 3px;
}

.prof-action-buttons-wrap {
  display: flex;
  gap: 8px;
}

.btn-prof-action {
  background: var(--bg-block-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--color-beta);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-prof-action:hover {
  background: var(--bg-block-hover);
  border-color: #FB7622;
  color: #fff;
}

.profile-subnav-tabs {
  display: flex;
  gap: 2px;
  padding: 0 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
  overflow-x: auto;
}

.prof-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-gamma);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.prof-tab-btn:hover {
  color: #fff;
}

.prof-tab-btn.active {
  color: #FB7622;
  border-bottom-color: #FB7622;
}

.prof-subpanel {
  display: none;
}

.prof-subpanel.active {
  display: block;
}

/* STATS GRID */
.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 10px;
}

@media (max-width: 1024px) {
  .stats-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-overview-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 118, 34, 0.3);
}

.stat-card-title {
  font-size: 12px;
  color: var(--color-gamma);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-card-val {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.stat-card-sub {
  font-size: 11px;
  color: var(--color-dim);
}

/* CONFIG SETTINGS GRID */
.config-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 800px) {
  .config-settings-grid {
    grid-template-columns: 1fr;
  }
}

.config-form-card {
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px;
}

.config-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.launch-opts-box {
  background: #12121A;
  border: 1px solid var(--border-subtle);
  padding: 12px;
  border-radius: 6px;
  color: #FB7622;
  font-family: 'Consolas', monospace;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
}

/* DROPS SHOWCASE */
.drops-grid-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 1024px) {
  .drops-grid-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

.steam-sits-btn img {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.steam-sits-btn:hover img {
  transform: scale(1.03);
  filter: brightness(1.1);
}

/* =========================================================================
   HEADER RIGHT BUTTONS & BADGES
   ========================================================================= */

.hdr-icon-btn {
  background: transparent;
  border: none;
  color: var(--color-gamma);
  font-size: 16px;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: color 0.15s, background 0.15s;
}

.hdr-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.hdr-badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  background: var(--color-brand-start);
  border-radius: 50%;
}

.hdr-avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hdr-online-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  background: #10B981;
  border: 2px solid #14141E;
  border-radius: 50%;
}

/* =========================================================================
   FASTCUP RIGHT-SIDE USER & PARTY DRAWER (SCREENSHOT 1)
   ========================================================================= */

.fc-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 290;
  display: none;
  backdrop-filter: blur(2px);
}

.fc-drawer-backdrop.show {
  display: block;
}

.fc-user-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  height: 100vh;
  background: #191926;
  border-left: 1px solid var(--border-subtle);
  z-index: 300;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.7);
  transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fc-user-drawer.open {
  right: 0;
}

.drawer-header {
  height: 56px;
  background: #14141E;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

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

.drawer-icon-btn {
  background: transparent;
  border: none;
  color: var(--color-gamma);
  font-size: 15px;
  cursor: pointer;
  transition: color 0.15s;
}
.drawer-icon-btn:hover { color: #fff; }

.drawer-username {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

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

.drawer-avatar-wrap {
  position: relative;
  cursor: pointer;
}

.drawer-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-brand-start);
}

.drawer-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: #10B981;
  border: 1px solid #14141E;
  border-radius: 50%;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--color-gamma);
  font-size: 18px;
  cursor: pointer;
}
.drawer-close-btn:hover { color: #fff; }

/* Drawer SOLO / PARTY Switcher */
.drawer-mode-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #1E1E2C;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-tab-group {
  display: flex;
  gap: 16px;
}

.drawer-mode-tab {
  background: transparent;
  border: none;
  color: var(--color-gamma);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding-bottom: 4px;
  position: relative;
}

.drawer-mode-tab.active {
  color: #fff;
}
.drawer-mode-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-brand-start);
}

.drawer-mode-dropdown {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gamma);
  cursor: pointer;
}

/* Drawer Party Box */
.drawer-party-container {
  padding: 16px;
  background: #1D1D2B;
  border-bottom: 1px solid var(--border-subtle);
}

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

.drawer-party-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-party-exit {
  background: transparent;
  border: none;
  color: var(--color-gamma);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.drawer-party-exit:hover { color: #F53144; }

.drawer-party-slots {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.drawer-party-slot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.drawer-party-slot.host {
  border: 2px solid var(--color-brand-start);
}

.party-slot-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.party-slot-badge {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-brand-start);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 6px;
  border: 1px solid #14141E;
}

.party-slot-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
}

.drawer-party-slot.empty {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-dim);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s;
}

.drawer-party-slot.empty:hover {
  border-color: var(--color-brand-start);
  color: var(--color-brand-start);
  background: rgba(251, 118, 34, 0.1);
}

.drawer-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.drawer-rating-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.drawer-rating-badge {
  font-size: 11px;
  color: var(--color-gamma);
  display: flex;
  align-items: center;
  gap: 6px;
}
.drawer-rating-badge b { color: #fff; }

.drawer-btn-play {
  width: 100%;
  background: #3B3B4E;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.drawer-btn-play:hover {
  background: var(--color-brand-gradient);
}

/* Drawer Menu List */
.drawer-menu-list {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.drawer-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--color-gamma);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.drawer-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.drawer-menu-item.balance-item {
  justify-content: space-between;
}
.drawer-menu-item.balance-item .item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-drawer-plus {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-drawer-plus:hover { background: var(--color-brand-start); }

.drawer-menu-item.logout-item:hover {
  color: #F53144;
}

/* Drawer Bottom Friends Dock */
.drawer-friends-dock {
  background: #14141E;
  border-top: 1px solid var(--border-subtle);
}

.friends-dock-header {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gamma);
  cursor: pointer;
}
.friends-dock-header:hover { color: #fff; }

.drawer-friends-expanded {
  padding: 8px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 140px;
  overflow-y: auto;
}

.drawer-friend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
}
.drawer-friend-row:hover { background: rgba(255, 255, 255, 0.05); }

.df-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.df-info { line-height: 1.2; }
.df-name { font-size: 12px; font-weight: 700; color: #fff; }
.df-status { font-size: 10px; color: var(--color-gamma); }
.df-status.online { color: #10B981; }

/* =========================================================================
   FASTCUP PROFILE TOP HERO BOX & HEADER CARD (SCREENSHOT 2)
   ========================================================================= */

.fc2-profile-header-card {
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.fc2-profile-banner {
  height: 170px;
  background: linear-gradient(180deg, rgba(20,20,30,0.3) 0%, rgba(36,36,50,0.98) 100%),
              url('https://image.gametracker.com/images/maps/160x120/cs/de_dust2.jpg') center / cover;
  position: relative;
}

.btn-banner-upload-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(20, 20, 30, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.btn-banner-upload-overlay:hover {
  background: var(--color-brand-start);
  border-color: var(--color-brand-start);
  transform: translateY(-1px);
}

.btn-avatar-upload-overlay {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  background: #14141E;
  border: 1.5px solid var(--color-brand-start);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 6;
}

.btn-avatar-upload-overlay:hover {
  background: var(--color-brand-start);
  transform: scale(1.1);
}

.btn-upload-pc {
  background: rgba(251, 118, 34, 0.15);
  border: 1px solid var(--color-brand-start);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-upload-pc:hover {
  background: var(--color-brand-start);
}

.fc2-steam-sync-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(27, 40, 56, 0.8);
  border: 1px solid #2A475E;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

.badge-synced {
  color: #10B981;
  font-weight: 700;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fc2-profile-top-content {
  padding: 0 24px 16px;
  display: flex;
  gap: 24px;
  margin-top: -65px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .fc2-profile-top-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.fc2-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fc2-avatar-frame {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 4px;
  background: var(--color-brand-gradient);
}

.fc2-avatar-frame.lvl-10-glow {
  box-shadow: 0 0 25px rgba(251, 118, 34, 0.7);
}
.fc2-avatar-frame.frame-gold {
  background: var(--color-gold-gradient);
  box-shadow: 0 0 25px rgba(237, 172, 38, 0.7);
}
.fc2-avatar-frame.frame-neon {
  background: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.7);
}
.fc2-avatar-frame.frame-crimson {
  background: linear-gradient(135deg, #FF0844 0%, #FFB199 100%);
  box-shadow: 0 0 25px rgba(255, 8, 68, 0.7);
}
.fc2-avatar-frame.frame-vip {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.7);
}

.fc2-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #14141E;
}

.fc2-rank-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-brand-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  border: 2px solid #14141E;
}

.fc2-online-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  background: #10B981;
  border: 2px solid #14141E;
  border-radius: 50%;
}

.fc2-settings-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--color-gamma);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.fc2-settings-btn:hover {
  background: var(--bg-block-hover);
  color: #fff;
  border-color: var(--color-brand-start);
}

.fc2-profile-meta {
  flex: 1;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc2-meta-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.fc2-username-dropdown-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fc2-username {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.fc2-user-chevron {
  font-size: 14px;
  color: var(--color-gamma);
  cursor: pointer;
}
.fc2-user-chevron:hover { color: var(--color-brand-start); }

.fc2-stats-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.fc2-stat-pill {
  font-size: 12px;
  color: var(--color-gamma);
  display: flex;
  align-items: center;
  gap: 5px;
}
.fc2-stat-pill b { color: #fff; }

.fc2-meta-sub-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fc2-id-badge {
  background: #181824;
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--color-gamma);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.fc2-id-badge b { color: #fff; font-family: 'Consolas', monospace; }
.fc2-id-badge:hover { border-color: var(--color-brand-start); color: #fff; }

.fc2-joined-text {
  font-size: 12px;
  color: var(--color-dim);
}

.fc2-steam-icon-link {
  color: var(--color-gamma);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.15s;
}
.fc2-steam-icon-link:hover { color: #66C0F4; }

.fc2-country-tag {
  font-size: 12px;
  color: var(--color-gamma);
  display: flex;
  align-items: center;
  gap: 4px;
}

.fc2-profile-bio {
  font-size: 13px;
  color: var(--color-beta);
  line-height: 1.4;
  font-style: italic;
  max-width: 700px;
}

.fc2-socials-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.fc2-social-pill {
  background: #171A21;
  border: 1px solid var(--border-subtle);
  color: var(--color-gamma);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}
.fc2-social-pill:hover { color: #fff; border-color: rgba(255,255,255,0.2); }
.fc2-social-pill.discord:hover { color: #5865F2; border-color: #5865F2; }
.fc2-social-pill.twitch:hover { color: #9146FF; border-color: #9146FF; }
.fc2-social-pill.youtube:hover { color: #FF0000; border-color: #FF0000; }

/* FASTCUP SUB-TABS (MATCHING SCREENSHOT 2) */
.fc2-subtabs-nav {
  display: flex;
  padding: 0 24px;
  background: #1A1A28;
  border-top: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.fc2-subtab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-gamma);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.fc2-subtab:hover { color: #fff; }
.fc2-subtab.active {
  color: #fff;
  border-bottom-color: var(--color-brand-start);
}

/* =========================================================================
   FASTCUP PROFILE 2-COLUMN BODY (SCREENSHOT 2)
   ========================================================================= */

.fc2-profile-body-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .fc2-profile-body-grid {
    grid-template-columns: 1fr;
  }
}

.fc2-widget-box {
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.fc2-widget-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fc2-friends-empty {
  text-align: center;
  padding: 20px 0;
}

.fc2-friends-icon {
  font-size: 32px;
  color: var(--color-dim);
  margin-bottom: 10px;
}

.fc2-friends-text {
  font-size: 13px;
  color: var(--color-gamma);
  margin-bottom: 14px;
}

.fc2-btn-add-friend {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--color-gamma);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.fc2-btn-add-friend:hover {
  background: var(--bg-block-hover);
  color: #fff;
  border-color: var(--color-brand-start);
}

.fc2-code-snippet {
  background: #14141E;
  border: 1px solid var(--border-subtle);
  padding: 8px;
  border-radius: 4px;
  font-family: 'Consolas', monospace;
  font-size: 11px;
  color: var(--color-brand-start);
  word-break: break-all;
  line-height: 1.4;
  margin-bottom: 8px;
}

.fc2-btn-copy-code {
  width: 100%;
  background: #2A2A3C;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.fc2-btn-copy-code:hover { background: var(--bg-block-hover); }

.fc2-subpanel {
  display: none;
}
.fc2-subpanel.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* Comments Section (Screenshot 2) */
.fc2-comments-section {
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px;
}

.fc2-comments-header {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.fc2-comment-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.fc2-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-brand-start);
}

.fc2-comment-input {
  flex: 1;
  background: #181824;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
}

.fc2-btn-send-comment {
  background: transparent;
  border: none;
  color: var(--color-gamma);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  transition: color 0.15s;
}
.fc2-btn-send-comment:hover { color: var(--color-brand-start); }

.fc2-comments-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fc2-comment-card {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.fc2-c-author {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fc2-c-time {
  font-size: 10px;
  color: var(--color-dim);
}

.fc2-c-text {
  font-size: 13px;
  color: var(--color-beta);
  margin-top: 3px;
  line-height: 1.4;
}

/* =========================================================================
   FASTCUP SETTINGS & EDIT PROFILE MODAL (SCREENSHOT 3)
   ========================================================================= */

.settings-dialog-box {
  max-width: 780px !important;
  text-align: left;
  padding: 20px 24px !important;
}

.settings-modal-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  margin-top: 16px;
  min-height: 480px;
}

@media (max-width: 700px) {
  .settings-modal-body {
    grid-template-columns: 1fr;
  }
}

.settings-nav-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--border-subtle);
  padding-right: 14px;
}

.settings-nav-btn {
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  color: var(--color-gamma);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.settings-nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.settings-nav-btn.active {
  color: #fff;
  border-left-color: var(--color-brand-start);
  background: rgba(251, 118, 34, 0.08);
}

.settings-content-panel {
  padding-left: 6px;
  max-height: 520px;
  overflow-y: auto;
}

.settings-tab-pane {
  display: none;
}
.settings-tab-pane.active {
  display: block;
}

.settings-pane-heading {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.settings-row-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  margin-bottom: 16px;
  align-items: flex-start;
}

@media (max-width: 600px) {
  .settings-row-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.settings-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gamma);
  padding-top: 8px;
}

.settings-val-col {
  display: flex;
  flex-direction: column;
}

.settings-link-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.settings-sub-note {
  font-size: 11px;
  color: var(--color-dim);
  margin-top: 2px;
}

.settings-avatar-flex {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-avatar-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-brand-start);
  object-fit: cover;
}

.settings-avatar-actions {
  display: flex;
  gap: 8px;
}

.btn-import-steam {
  background: #FB7622;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-import-steam:hover { background: #e06518; }

.btn-delete-avatar {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--color-gamma);
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
}
.btn-delete-avatar:hover { color: #fff; background: rgba(255, 255, 255, 0.15); }

.mini-preset-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
}
.mini-preset-avatar:hover {
  transform: scale(1.1);
  border-color: var(--color-brand-start);
}

.btn-map-preset {
  background: #181824;
  border: 1px solid var(--border-subtle);
  color: var(--color-gamma);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}
.btn-map-preset:hover {
  border-color: var(--color-brand-start);
  color: #fff;
}

/* =========================================================================
   PLAYZEK INTEGRATED FORUM STYLES
   ========================================================================= */
.forum-tab-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.forum-hero-integrated {
  background: linear-gradient(180deg, rgba(27, 27, 39, 0.95) 0%, rgba(20, 20, 30, 0.98) 100%),
              radial-gradient(circle at 50% 0%, rgba(251, 118, 34, 0.15) 0%, transparent 60%);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px 28px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.forum-title-area h1 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px 0;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.forum-title-area h1 span.highlight {
  background: linear-gradient(135deg, #ff7700 0%, #ff3300 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.forum-subtitle {
  color: var(--color-gamma);
  font-size: 13px;
  margin: 0;
}

.forum-stats-strip {
  display: flex;
  gap: 20px;
  background: rgba(14, 20, 30, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 18px;
}

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

.stat-pill .num {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.stat-pill .lbl {
  font-size: 11px;
  color: var(--color-gamma);
  text-transform: uppercase;
  font-weight: 600;
}

/* Forum Grid Layout */
.forum-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .forum-layout {
    grid-template-columns: 1fr;
  }
}

/* Breadcrumbs Bar */
.forum-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.forum-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.forum-breadcrumbs a {
  color: var(--color-gamma);
  text-decoration: none;
  transition: color 0.2s;
}

.forum-breadcrumbs a:hover {
  color: var(--color-brand-start);
}

.forum-breadcrumbs .sep {
  color: #555;
}

.forum-breadcrumbs .curr {
  color: #fff;
}

/* Actions Bar */
.forum-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box-forum {
  position: relative;
  width: 240px;
}

.search-box-forum input {
  width: 100%;
  background: var(--bg-page);
  border: 1px solid var(--bg-border);
  border-radius: 8px;
  padding: 8px 12px 8px 34px;
  color: #fff;
  font-size: 13px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.search-box-forum input:focus {
  border-color: var(--color-brand-start);
}

.search-box-forum i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gamma);
  font-size: 12px;
}

.btn-create-topic {
  background: linear-gradient(135deg, #ff5500 0%, #d83b01 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-create-topic:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.4);
}

/* Category Cards */
.category-card {
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 14px;
  transition: border-color 0.2s, transform 0.15s;
  overflow: hidden;
}

.category-card:hover {
  border-color: #4a4a62;
  transform: translateY(-1px);
}

.category-card-inner {
  display: grid;
  grid-template-columns: 56px 1fr 140px 240px;
  align-items: center;
  padding: 16px 20px;
  gap: 16px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .category-card-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.cat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid;
}

.cat-info h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px 0;
  color: #fff;
}

.cat-info p {
  font-size: 12px;
  color: var(--color-gamma);
  margin: 0;
  line-height: 1.4;
}

.cat-stats {
  text-align: center;
}

.cat-stats .count {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.cat-stats .lbl {
  font-size: 11px;
  color: var(--color-gamma);
}

.cat-latest {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-latest .t-title {
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-bottom: 3px;
}

.cat-latest .t-meta {
  color: var(--color-gamma);
  font-size: 11px;
}

/* Topic Row in Category View */
.topic-card {
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 44px 1fr 120px 180px;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.topic-card:hover {
  background: var(--bg-block-hover);
  border-color: #4a4a62;
}

.topic-card.pinned {
  border-left: 4px solid var(--color-gold);
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.06) 0%, var(--bg-block) 100%);
}

.topic-avatar img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--bg-border);
  object-fit: cover;
}

.topic-main h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topic-meta {
  font-size: 12px;
  color: var(--color-gamma);
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-pinned {
  background: rgba(255, 215, 0, 0.15);
  color: var(--color-gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.badge-locked {
  background: rgba(255, 51, 102, 0.15);
  color: #ff3366;
  border: 1px solid rgba(255, 51, 102, 0.3);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.role-badge-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.role-superadmin {
  background: rgba(255, 85, 0, 0.2);
  color: #ff5500;
  border: 1px solid rgba(255, 85, 0, 0.4);
}

.role-admin {
  background: rgba(255, 51, 102, 0.2);
  color: #ff3366;
  border: 1px solid rgba(255, 51, 102, 0.4);
}

.role-user {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

/* Single Topic View */
.post-card {
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
}

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

.post-author-box {
  background: rgba(14, 14, 22, 0.6);
  border-right: 1px solid var(--border-subtle);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.post-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--color-brand-start);
  box-shadow: 0 0 12px rgba(251, 118, 34, 0.35);
  object-fit: cover;
}

.post-author-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.post-author-stats {
  font-size: 11px;
  color: var(--color-gamma);
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  margin-top: 6px;
  line-height: 1.6;
}

.post-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--color-gamma);
}

.post-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-alpha);
}

.post-content code {
  background: var(--bg-page);
  border: 1px solid var(--bg-border);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', monospace;
  color: #00e5ff;
}

.post-content pre {
  background: var(--bg-page);
  border: 1px solid var(--bg-border);
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Consolas', monospace;
  color: #a4d007;
}

.post-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  margin-top: 20px;
}

.btn-like-post {
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid rgba(255, 51, 102, 0.3);
  color: #ff3366;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.btn-like-post:hover {
  background: rgba(255, 51, 102, 0.25);
}

/* Reply Box */
.reply-box-card {
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 24px;
}

.reply-box-card textarea {
  width: 100%;
  height: 120px;
  background: var(--bg-page);
  border: 1px solid var(--bg-border);
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  font-size: 13px;
  box-sizing: border-box;
  resize: vertical;
  outline: none;
  font-family: inherit;
}

.reply-box-card textarea:focus {
  border-color: var(--color-brand-start);
}

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.widget-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.recent-topic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: transform 0.1s;
}

.recent-topic-item:last-child {
  border-bottom: none;
}

.recent-topic-item:hover {
  transform: translateX(3px);
}

.recent-topic-item img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.recent-topic-info {
  overflow: hidden;
}

.recent-topic-info .title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.recent-topic-info .meta {
  font-size: 11px;
  color: var(--color-gamma);
}

/* =========================================================================
   TEAMS & CLANS (5v5 TEAMS & ROSTER MANAGEMENT) - FASTCUP / FACEIT AESTHETIC
   ========================================================================= */

.teams-hero-banner {
  background: linear-gradient(135deg, rgba(251, 118, 34, 0.12) 0%, rgba(20, 20, 30, 0.95) 100%), #1a1a27;
  border: 1px solid rgba(251, 118, 34, 0.25);
  border-radius: 10px;
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.teams-hero-banner::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(251, 118, 34, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.teams-hero-content {
  max-width: 680px;
}

.teams-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-brand-start);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(251, 118, 34, 0.12);
  border: 1px solid rgba(251, 118, 34, 0.25);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.teams-hero-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  color: #fff;
}

.teams-hero-title .highlight {
  color: var(--color-brand-start);
}

.teams-hero-desc {
  font-size: 13px;
  color: var(--color-gamma);
  line-height: 1.5;
  margin: 0;
}

.teams-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-create-team-main {
  background: var(--color-brand-gradient);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-create-team-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(251, 118, 34, 0.35);
}

.btn-my-team-main {
  background: var(--bg-block-subtle);
  color: #fff;
  border: 1px solid var(--border-subtle);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-my-team-main:hover {
  border-color: var(--color-brand-start);
  color: var(--color-brand-start);
}

/* Teams Filter & Search Strip */
.teams-filter-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.teams-filter-pills {
  display: flex;
  gap: 8px;
}

.team-pill-btn {
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  color: var(--color-gamma);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.team-pill-btn:hover {
  color: #fff;
  background: var(--bg-block-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.team-pill-btn.active {
  background: rgba(251, 118, 34, 0.15);
  border-color: var(--color-brand-start);
  color: #fff;
}

.teams-search-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  max-width: 520px;
  justify-content: flex-end;
}

.teams-search-input-box {
  position: relative;
  flex: 1;
}

.teams-search-input-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gamma);
  font-size: 13px;
}

.teams-search-input-box input {
  width: 100%;
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 9px 12px 9px 34px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}

.teams-search-input-box input:focus {
  border-color: var(--color-brand-start);
}

.teams-sort-select {
  width: auto;
  min-width: 200px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Teams Grid */
.teams-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.team-card {
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.team-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 118, 34, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.team-card-banner {
  height: 80px;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.team-card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(20, 20, 30, 0.9) 100%);
}

.team-card-header {
  padding: 0 16px;
  margin-top: -30px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.team-card-logo-wrap {
  position: relative;
}

.team-card-logo {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  background: #14141E;
  border: 2px solid #282838;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.team-card-flag {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #1e1e2c;
  border: 1px solid var(--border-subtle);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  color: #fff;
}

.team-card-identity {
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
}

.team-card-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-card-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-card-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-brand-start);
  background: rgba(251, 118, 34, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.team-card-captain {
  font-size: 11px;
  color: var(--color-gamma);
  margin-top: 2px;
}

.team-card-captain b {
  color: #FFBC6C;
}

.team-card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-card-desc {
  font-size: 12px;
  color: var(--color-gamma);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.team-card-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--bg-block-subtle);
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.t-stat-box .lbl {
  font-size: 10px;
  color: var(--color-gamma);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
}

.t-stat-box .val {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
  display: block;
}

.team-card-roster-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.roster-avatars-stack {
  display: flex;
  align-items: center;
}

.roster-stack-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--bg-block);
  margin-left: -6px;
  object-fit: cover;
}

.roster-stack-avatar:first-child {
  margin-left: 0;
}

.roster-count-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-gamma);
}

.team-card-recruiting {
  font-size: 11px;
  font-weight: 700;
}

.team-card-recruiting.open {
  color: #10B981;
}

.team-card-recruiting.invite_only {
  color: #EDAC26;
}

.team-card-recruiting.closed {
  color: #F53144;
}

.team-card-footer {
  padding: 10px 16px 14px;
  display: flex;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.btn-view-team-card {
  flex: 1;
  background: var(--bg-block-hover);
  color: #fff;
  border: 1px solid var(--border-subtle);
  padding: 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-view-team-card:hover {
  background: var(--color-brand-start);
  border-color: var(--color-brand-start);
}

/* =========================================================================
   TEAM PROFILE MODAL & ROSTER MANAGEMENT
   ========================================================================= */

.team-profile-modal-box {
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg-block);
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.team-modal-hero {
  background: linear-gradient(180deg, rgba(20, 20, 30, 0.7) 0%, #171723 100%), url('https://image.gametracker.com/images/maps/160x120/cs/de_dust2.jpg') center/cover;
  padding: 24px 28px;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.btn-modal-close-corner {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
  transition: background 0.15s;
}

.btn-modal-close-corner:hover {
  background: #F53144;
}

.team-modal-hero-content {
  display: flex;
  gap: 20px;
  align-items: center;
}

.team-modal-logo-wrap {
  position: relative;
}

.team-modal-logo {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: #14141E;
}

.team-modal-flag {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #1e1e2c;
  border: 1px solid var(--border-subtle);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
}

.team-modal-meta {
  flex: 1;
}

.team-modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.team-modal-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.team-modal-tag {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-brand-start);
  background: rgba(251, 118, 34, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(251, 118, 34, 0.3);
}

.team-recruiting-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.team-modal-stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tm-stat-pill {
  font-size: 12px;
  color: var(--color-gamma);
  background: rgba(0,0,0,0.3);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tm-stat-pill b {
  color: #fff;
}

.team-modal-desc {
  font-size: 12px;
  color: var(--color-gamma);
  line-height: 1.4;
  margin: 0;
  max-width: 600px;
}

/* Captain & Member Action Toolbar */
.team-action-toolbar {
  background: #14141E;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-toolbar-left {
  font-size: 12px;
  font-weight: 700;
  color: #FFBC6C;
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-toolbar-right {
  display: flex;
  gap: 8px;
}

.btn-team-act {
  background: var(--bg-block-subtle);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-team-act:hover {
  background: var(--bg-block-hover);
  border-color: var(--color-brand-start);
  color: var(--color-brand-start);
}

.btn-team-act.danger:hover {
  background: rgba(245, 49, 68, 0.2);
  border-color: #F53144;
  color: #F53144;
}

.team-modal-body {
  padding: 20px 28px 28px;
  max-height: 65vh;
  overflow-y: auto;
}

.team-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.btn-quick-invite {
  background: rgba(251, 118, 34, 0.15);
  border: 1px solid var(--color-brand-start);
  color: var(--color-brand-start);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.btn-quick-invite:hover {
  background: var(--color-brand-start);
  color: #fff;
}

/* Roster Grid */
.team-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.team-roster-card {
  background: var(--bg-block-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: border-color 0.15s ease;
}

.team-roster-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.team-roster-card.captain-card {
  border-color: rgba(255, 188, 108, 0.35);
  background: linear-gradient(135deg, rgba(255, 188, 108, 0.05) 0%, var(--bg-block-subtle) 100%);
}

.roster-card-top {
  display: flex;
  gap: 10px;
  align-items: center;
}

.roster-card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  background: #14141E;
}

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

.roster-card-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.roster-card-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.roster-card-name:hover {
  color: var(--color-brand-start);
}

.roster-role-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  margin-top: 3px;
}

.roster-role-badge.captain {
  background: rgba(255, 188, 108, 0.15);
  color: #FFBC6C;
  border: 1px solid rgba(255, 188, 108, 0.3);
}

.roster-role-badge.starter {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.roster-role-badge.bench {
  background: rgba(158, 158, 178, 0.15);
  color: #9E9EB2;
  border: 1px solid rgba(158, 158, 178, 0.25);
}

.roster-card-stats {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-gamma);
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 8px;
  border-radius: 4px;
}

.roster-card-stats b {
  color: #fff;
}

.roster-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.btn-roster-act {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--color-gamma);
  padding: 4px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.btn-roster-act:hover {
  background: var(--bg-block-hover);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-roster-act.kick:hover {
  background: rgba(245, 49, 68, 0.2);
  color: #F53144;
  border-color: #F53144;
}

.team-maps-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.team-map-card {
  background: var(--bg-block-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.team-map-card .m-name {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.team-map-card .m-wr {
  font-size: 12px;
  font-weight: 800;
  color: #10B981;
}

.team-map-card .m-count {
  font-size: 10px;
  color: var(--color-gamma);
}
