/* ==========================================================================
   TRANS KOTULOV - EURO TRUCK SIMULATOR 2 VTC
   Theme: Modern Dark Green & Emerald Glassmorphism
   ========================================================================== */

:root {
  /* Colors */
  --bg-main: #06110a;
  --bg-secondary: #0a1b11;
  --bg-card: rgba(14, 34, 22, 0.75);
  --bg-card-hover: rgba(19, 46, 30, 0.9);
  --bg-card-solid: #0d2317;
  
  --emerald-primary: #10b981;
  --emerald-glow: #059669;
  --emerald-light: #34d399;
  --emerald-dark: #064e3b;
  --neon-mint: #6ee7b7;
  
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.25);
  
  --discord-color: #5865F2;
  --discord-hover: #4752C4;
  --kick-color: #53FC18;
  --kick-hover: #40c413;
  --twitch-color: #9146FF;
  --twitch-hover: #772ce8;
  --tb-orange: #ff7b00;
  --tb-blue: #0288d1;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --border-color: rgba(16, 185, 129, 0.18);
  --border-highlight: rgba(52, 211, 153, 0.45);
  
  /* Fonts */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Chakra Petch', sans-serif;

  /* Shadows & Glass */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.5);
  --glow-emerald: 0 0 25px rgba(16, 185, 129, 0.3);
  --glow-strong: 0 0 40px rgba(16, 185, 129, 0.5);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
}

/* Ambient glow blobs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}

.glow-1 {
  top: -100px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #059669 0%, rgba(5, 150, 105, 0) 70%);
}

.glow-2 {
  top: 40%;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #047857 0%, rgba(4, 120, 87, 0) 70%);
}

.glow-3 {
  bottom: 0;
  left: -50px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #064e3b 0%, rgba(6, 78, 59, 0) 70%);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.text-emerald {
  color: var(--emerald-light) !important;
}

.text-amber {
  color: var(--amber) !important;
}

.text-indigo {
  color: var(--discord-color) !important;
}

.text-tb {
  color: var(--tb-orange) !important;
}

.text-gradient {
  background: linear-gradient(135deg, #34d399, #10b981, #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.underline {
  text-decoration: underline;
}

.w-100 {
  width: 100%;
}

/* ==========================================================================
   FLOATING ADMIN BAR (VISIBLE WHEN OWNER IS LOGGED IN)
   ========================================================================== */
.admin-floating-bar {
  background: linear-gradient(90deg, #0b2d18, #0e3d21, #0b2d18);
  border-bottom: 2px solid var(--amber);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 158, 11, 0.3);
  position: sticky;
  top: 0;
  z-index: 10000;
  padding: 0.5rem 0;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.floating-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.floating-bar-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.floating-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.floating-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-floating-edit {
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--emerald-primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-floating-edit:hover, .btn-floating-edit.active {
  background: var(--emerald-primary);
  color: #06110a;
  box-shadow: var(--glow-emerald);
}

.btn-floating-admin {
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--amber);
  color: var(--amber);
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-floating-admin:hover {
  background: var(--amber);
  color: #000000;
}

.btn-floating-logout {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-floating-logout:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Inline Editable Highlights */
[data-editable-key].editable-active {
  outline: 2px dashed var(--emerald-light) !important;
  outline-offset: 4px;
  background: rgba(16, 185, 129, 0.12) !important;
  cursor: text !important;
  border-radius: 4px;
  transition: var(--transition-fast);
}

[data-editable-key].editable-active:hover {
  background: rgba(16, 185, 129, 0.25) !important;
}

[data-editable-key].editable-active:focus {
  outline: 2px solid var(--emerald-primary) !important;
  background: rgba(16, 185, 129, 0.35) !important;
}

/* ==========================================================================
   BUTTONS & UI ELEMENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #06110a;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: var(--glow-emerald);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-light);
  border-color: var(--border-highlight);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--emerald-light);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-discord {
  background: var(--discord-color);
  color: #ffffff;
}

.btn-discord:hover {
  background: var(--discord-hover);
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
  transform: translateY(-2px);
}

.btn-kick {
  background: #53FC18;
  color: #000000;
  font-weight: 800;
}

.btn-kick:hover {
  background: #40c413;
  box-shadow: 0 0 20px rgba(83, 252, 24, 0.4);
  transform: translateY(-2px);
}

.btn-twitch {
  background: var(--twitch-color);
  color: #ffffff;
  font-weight: 700;
}

.btn-twitch:hover {
  background: var(--twitch-hover);
  box-shadow: 0 0 20px rgba(145, 70, 255, 0.4);
  transform: translateY(-2px);
}

.btn-tb {
  background: linear-gradient(135deg, #ff7b00, #e65100);
  color: #ffffff;
  font-weight: 700;
}

.btn-tb:hover {
  background: linear-gradient(135deg, #ffa726, #ff7b00);
  box-shadow: 0 0 20px rgba(255, 123, 0, 0.4);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 1.8rem;
  font-size: 1.05rem;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-outline-sm {
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border-radius: var(--radius-sm);
}

.btn-outline-sm:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--emerald-primary);
  color: #ffffff;
}

.btn-outline-danger {
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-radius: var(--radius-sm);
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
}

.btn-glow {
  animation: subtlePulse 3s infinite ease-in-out;
}

@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
  }
  50% {
    box-shadow: 0 0 28px rgba(16, 185, 129, 0.65);
  }
}

/* ==========================================================================
   TOP TICKER & HEADER
   ========================================================================== */
.top-ticker {
  background: linear-gradient(90deg, #042514, #083c21, #042514);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  padding: 0.45rem 0;
}

.ticker-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ticker-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-light);
  animation: pulseDot 1.5s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.ticker-discord-link {
  color: var(--emerald-light);
  font-size: 0.82rem;
  font-weight: 600;
}

.ticker-discord-link:hover {
  color: #ffffff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 17, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
  transition: var(--transition-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #10b981, #047857);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #06110a;
  box-shadow: var(--glow-emerald);
  overflow: hidden;
}

.brand-logo-img {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--emerald-primary);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.06) rotate(4deg);
}

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

.logo-main {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  white-space: nowrap;
}

.logo-main strong {
  color: var(--emerald-light);
}

.logo-sub {
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.nav-link.nav-admin {
  color: var(--amber);
}

.nav-link.nav-admin:hover, .nav-link.nav-admin.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Header Owner Badge */
.header-owner-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}

.badge-role {
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-name {
  color: #ffffff;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.2rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   PAGE HERO BANNERS
   ========================================================================= */
.page-hero {
  padding: 3.5rem 0 2rem;
  position: relative;
}

.page-title {
  font-size: 2.8rem;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* ==========================================================================
   HERO SECTION (HOME)
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  color: var(--emerald-light);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.18;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-social-quick {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
}

.discord-link {
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #818cf8;
}

.discord-link:hover {
  background: var(--discord-color);
  color: #ffffff;
}

.kick-link {
  background: rgba(83, 252, 24, 0.12);
  border: 1px solid rgba(83, 252, 24, 0.35);
  color: #53fc18;
}

.kick-link:hover {
  background: var(--kick-color);
  color: #000000;
}

.twitch-link {
  background: rgba(145, 70, 255, 0.12);
  border: 1px solid rgba(145, 70, 255, 0.35);
  color: #a970ff;
}

.twitch-link:hover {
  background: var(--twitch-color);
  color: #ffffff;
}

/* Hero Stats Card */
.hero-stats-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #34d399, #f59e0b);
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.stats-header h3 {
  font-size: 1.15rem;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald-light);
  background: rgba(16, 185, 129, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.badge-live i {
  font-size: 0.55rem;
  animation: pulseDot 1.5s infinite;
}

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

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.9rem;
  border-radius: var(--radius-md);
}

.stat-icon {
  width: 42px;
  height: 42px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-light);
  font-size: 1.15rem;
}

.stat-data {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero-next-convoy-box {
  background: rgba(16, 185, 129, 0.07);
  border: 1px dashed var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.next-convoy-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--emerald-light);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.next-convoy-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.next-convoy-route {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTIONS COMMON
   ========================================================================== */
.section {
  padding: 4rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--emerald-light);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 0.8rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ==========================================================================
   MEMBERS & TRUCKSBOOK TRACKER (NEW)
   ========================================================================== */
.tb-company-banner {
  background: linear-gradient(135deg, rgba(255, 123, 0, 0.12) 0%, rgba(10, 27, 17, 0.85) 100%);
  border: 1px solid rgba(255, 123, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 30px rgba(255, 123, 0, 0.15);
}

.tb-banner-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.tb-banner-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.tb-logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #ff7b00, #d84315);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 123, 0, 0.4);
}

.tb-banner-stats-group {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.tb-stat-pill {
  display: flex;
  flex-direction: column;
}

.tb-stat-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.tb-stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.members-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  background: var(--bg-card);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.members-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.member-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.member-tab-btn:hover {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.15);
}

.member-tab-btn.active {
  background: var(--emerald-primary);
  border-color: var(--emerald-light);
  color: #06110a;
  font-weight: 700;
}

.members-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.8rem;
  gap: 0.5rem;
}

.members-search-wrap input {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  padding: 0.2rem 0;
  width: 180px;
}

/* Hierarchy Sections */
.members-category-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.members-category-title span {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: var(--font-main);
  font-weight: 500;
}

.members-square-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
  margin-bottom: 3.5rem;
}

/* Square Member Card */
.member-square-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.member-square-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--glow-emerald);
}

.member-square-card.card-founder {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(14, 34, 22, 0.85) 100%);
}

.member-square-card.card-manager {
  border-color: rgba(52, 211, 153, 0.4);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(14, 34, 22, 0.85) 100%);
}

.member-square-card.card-representative {
  border-color: rgba(129, 140, 248, 0.4);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(14, 34, 22, 0.85) 100%);
}

.member-square-card.card-dispatcher {
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.08) 0%, rgba(14, 34, 22, 0.85) 100%);
}

.member-avatar-box {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  position: relative;
  margin-bottom: 1.2rem;
}

.member-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--emerald-primary);
  background: #0d281a;
}

.card-founder .member-avatar-img {
  border-color: var(--amber);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.card-manager .member-avatar-img {
  border-color: var(--emerald-light);
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.35);
}

.card-representative .member-avatar-img {
  border-color: #818cf8;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.35);
}

.card-dispatcher .member-avatar-img {
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.card-probation .member-avatar-img {
  border-color: #fb923c;
  box-shadow: 0 0 15px rgba(251, 146, 60, 0.35);
}

.member-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.badge-founder {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--amber);
}

.badge-manager {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald-light);
}

.badge-representative {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: #a5b4fc;
}

.badge-dispatcher {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}

.badge-probation {
  background: rgba(251, 146, 60, 0.15);
  border: 1px solid rgba(251, 146, 60, 0.4);
  color: #fdba74;
}

.badge-driver {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
}

.member-name {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
  color: #ffffff;
}

.member-role-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

/* TrucksBook Kilometer Meter */
.tb-meter-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  margin-bottom: 1.2rem;
}

.tb-meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.tb-meter-header strong {
  color: var(--tb-orange);
  font-family: var(--font-heading);
}

.tb-progress-bar {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.tb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff7b00, #10b981);
  border-radius: var(--radius-full);
  transition: width 0.5s ease-in-out;
}

.tb-progress-fill.target-reached {
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.member-card-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.8rem;
  margin-top: auto;
}

.member-social-icons {
  display: flex;
  gap: 0.5rem;
}

.member-social-icons a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.member-social-icons a:hover {
  color: var(--emerald-light);
}

/* ==========================================================================
   ABOUT & OWNER SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

.owner-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.owner-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.owner-badge-crown {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--amber);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.owner-tag-verified {
  font-size: 0.78rem;
  color: var(--emerald-light);
  font-weight: 600;
}

.owner-avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 1.5rem;
}

.avatar-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #10b981, #f59e0b, #059669);
  box-shadow: var(--glow-emerald);
}

.owner-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0d281a;
}

.owner-online-status {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  background: var(--emerald-primary);
  color: #06110a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 2px solid #081a10;
}

.owner-details {
  text-align: center;
}

.owner-name {
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

.owner-title {
  color: var(--emerald-light);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.owner-quote-box {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--emerald-primary);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
  text-align: left;
  position: relative;
}

.quote-icon {
  color: rgba(16, 185, 129, 0.3);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.owner-quote-box p {
  font-size: 0.9rem;
  color: #e5e7eb;
  font-style: italic;
}

.owner-meta-tags {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.meta-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.meta-tag strong {
  color: #ffffff;
}

.values-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.value-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: var(--transition-smooth);
}

.value-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateX(4px);
}

.value-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-light);
  font-size: 1.3rem;
}

.value-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.value-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RULES SECTION
   ========================================================================== */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}

.rule-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
}

.rule-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--glow-emerald);
}

.rule-card.rule-highlight {
  border-color: rgba(52, 211, 153, 0.5);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(10, 27, 17, 0.8) 100%);
}

.rule-number {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(16, 185, 129, 0.12);
}

.rule-icon-box {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--emerald-light);
  margin-bottom: 1.4rem;
}

.rule-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.rule-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.rule-status-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--emerald-light);
}

.rules-cta-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 78, 59, 0.25) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.cta-text h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

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

/* ==========================================================================
   STANDALONE FORM & CARD LAYOUT
   ========================================================================== */
.form-wrapper-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  max-width: 860px;
  margin: 0 auto;
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.2rem;
}

.form-header-icon {
  width: 52px;
  height: 52px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--emerald-light);
}

.form-header-title {
  font-size: 1.5rem;
}

.form-header-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

.status-search-box {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.status-check-result-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.status-result-pill {
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  animation: fadeIn 0.25s ease-out;
}

.status-result-none {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.status-result-pending {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--amber);
  color: #fde68a;
}

.status-result-accepted {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--emerald-primary);
  color: #a7f3d0;
}

.status-result-rejected {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fca5a5;
}

.status-pill-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.status-pill-body p {
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}

.status-extra-note {
  margin-top: 0.4rem;
  font-weight: 600;
}

/* ==========================================================================
   CONVOYS SECTION
   ========================================================================== */
.convoys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.8rem;
}

.convoy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
}

.convoy-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
}

.convoy-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  gap: 0.8rem;
}

.convoy-server-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-highlight);
  color: var(--emerald-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.convoy-actions-btn-group {
  display: flex;
  gap: 0.4rem;
}

.btn-icon-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.btn-icon-action:hover {
  background: rgba(16, 185, 129, 0.2);
  color: #ffffff;
  border-color: var(--emerald-primary);
}

.btn-icon-action.btn-del:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: #ef4444;
}

.convoy-title {
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}

.convoy-time-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.convoy-countdown {
  color: var(--amber);
  font-weight: 700;
  font-family: var(--font-heading);
}

.convoy-route-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.2rem;
}

.route-point {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.route-point strong {
  color: #ffffff;
}

.route-arrow {
  padding-left: 1.2rem;
  color: var(--emerald-light);
  font-size: 0.8rem;
  margin: 0.2rem 0;
}

.convoy-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.convoy-meta-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.convoy-meta-list li i {
  color: var(--emerald-light);
  width: 14px;
}

.convoy-empty-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

.convoy-empty-card i {
  font-size: 3rem;
  color: var(--emerald-light);
  margin-bottom: 1rem;
}

/* ==========================================================================
   SOCIALS & STREAMING SECTION (DISCORD, KICK, TWITCH)
   ========================================================================== */
.socials-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.social-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.social-card:hover {
  transform: translateY(-6px);
}

.discord-card {
  border-color: rgba(88, 101, 242, 0.25);
}

.discord-card:hover {
  border-color: var(--discord-color);
  box-shadow: 0 0 35px rgba(88, 101, 242, 0.25);
}

.kick-card {
  border-color: rgba(83, 252, 24, 0.25);
}

.kick-card:hover {
  border-color: var(--kick-color);
  box-shadow: 0 0 35px rgba(83, 252, 24, 0.25);
}

.twitch-card {
  border-color: rgba(145, 70, 255, 0.25);
}

.twitch-card:hover {
  border-color: var(--twitch-color);
  box-shadow: 0 0 35px rgba(145, 70, 255, 0.25);
}

.social-icon-large {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

.discord-card .social-icon-large {
  background: rgba(88, 101, 242, 0.15);
  color: var(--discord-color);
  border: 1px solid rgba(88, 101, 242, 0.35);
}

.kick-card .social-icon-large {
  background: rgba(83, 252, 24, 0.12);
  color: var(--kick-color);
  border: 1px solid rgba(83, 252, 24, 0.35);
}

.twitch-card .social-icon-large {
  background: rgba(145, 70, 255, 0.15);
  color: var(--twitch-color);
  border: 1px solid rgba(145, 70, 255, 0.35);
}

.social-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}

.discord-card .social-badge {
  background: rgba(88, 101, 242, 0.12);
  color: #818cf8;
}

.kick-card .social-badge {
  background: rgba(83, 252, 24, 0.12);
  color: #53fc18;
}

.twitch-card .social-badge {
  background: rgba(145, 70, 255, 0.12);
  color: #a970ff;
}

.social-title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.social-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.social-perks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #e5e7eb;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.social-perks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.social-actions .btn {
  flex-grow: 1;
}

/* ==========================================================================
   AUTHENTICATION GATE & ADMIN DASHBOARD
   ========================================================================== */
.auth-gate-section {
  padding: 3.5rem 0;
}

.auth-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.auth-icon-shield {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.auth-title {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.auth-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.auth-alert-denied {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fca5a5;
  text-align: left;
  margin-bottom: 2rem;
  animation: slideInRight 0.3s ease-out;
}

.auth-alert-denied i {
  font-size: 1.8rem;
  color: #ef4444;
}

.auth-methods-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.auth-method-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.8rem;
}

.auth-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-light);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.auth-method-box h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.auth-method-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  padding: 0 1rem;
}

.auth-footer-info {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Admin Dashboard Header */
.admin-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.8rem;
  margin-bottom: 2rem;
}

.admin-user-pill {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.admin-avatar-small {
  width: 44px;
  height: 44px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.admin-status-text {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.admin-user-pill h3 {
  font-size: 1.2rem;
}

.admin-header-actions {
  display: flex;
  gap: 0.8rem;
}

/* Admin Tabs */
.admin-tabs-nav {
  display: flex;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
  margin-bottom: 2.2rem;
  overflow-x: auto;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  color: #ffffff;
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.15));
  border-color: var(--emerald-primary);
  color: var(--emerald-light);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

.tab-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tab-pane-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.tab-pane-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Application Filter Tabs in Admin */
.app-filters-bar {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.app-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.app-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.app-filter-btn.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--emerald-primary);
  color: var(--emerald-light);
}

.app-filter-btn.btn-filter-accepted.active {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #34d399;
}

.app-filter-btn.btn-filter-rejected.active {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #f87171;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge-pending {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--amber);
}

.status-badge-accepted {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald-light);
}

.status-badge-rejected {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.applicant-card.card-accepted {
  border-left: 4px solid var(--emerald-primary);
}

.applicant-card.card-rejected {
  border-left: 4px solid #ef4444;
}

.applicant-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.security-info-box {
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}

.security-info-box h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.security-info-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #040b06;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.owner-footer-note {
  font-size: 0.85rem;
  color: var(--emerald-light);
}

.links-col h4 {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  color: #ffffff;
}

.links-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.links-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.links-col a:hover {
  color: var(--emerald-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.dev-tag {
  color: var(--amber);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dev-tag:hover {
  color: #ffffff;
}

/* ==========================================================================
   MODALS (Native <dialog>)
   ========================================================================== */
.custom-modal {
  margin: auto;
  border: none;
  background: transparent;
  padding: 0;
  max-width: 620px;
  width: 92%;
  z-index: 1000;
}

.custom-modal.modal-large {
  max-width: 780px;
}

.custom-modal::backdrop {
  background: rgba(4, 11, 7, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease-out;
}

.modal-content {
  background: #091a10;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--glow-emerald);
  color: var(--text-main);
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 88vh;
  overflow-y: auto;
}

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

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.modal-title-wrap i {
  font-size: 1.8rem;
}

.modal-title-wrap h3 {
  font-size: 1.35rem;
}

.modal-title-wrap p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.4rem;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-rules-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.modal-rules-box h4 {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-rules-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-highlight);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: rgba(16, 185, 129, 0.2);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--emerald-primary);
  border-color: var(--emerald-light);
}

.checkmark::after {
  content: "✔";
  color: #06110a;
  font-size: 0.75rem;
  font-weight: 800;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark::after {
  display: block;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 0.4rem;
}

label i {
  margin-right: 0.3rem;
  color: var(--emerald-light);
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="url"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--emerald-primary);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  background: rgba(0, 0, 0, 0.5);
}

select option {
  background: #091a10;
  color: #ffffff;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
}

/* Applicant Cards in Admin */
.applicant-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  margin-bottom: 1rem;
  position: relative;
  transition: var(--transition-fast);
}

.applicant-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.applicant-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #ffffff;
}

.applicant-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.applicant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.applicant-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.applicant-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99999;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.8rem;
  pointer-events: none;
  max-width: 90vw;
}

.toast {
  background: rgba(9, 26, 16, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-highlight);
  border-left: 4px solid var(--emerald-primary);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.3rem;
  color: #ffffff;
  font-size: 0.9rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), var(--glow-emerald);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1), fadeOut 0.3s ease-in 3.7s forwards;
  pointer-events: auto;
}

.toast.toast-error {
  border-left-color: #ef4444;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(239, 68, 68, 0.3);
}

.toast.toast-warning {
  border-left-color: var(--amber);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 158, 11, 0.3);
}

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

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .socials-grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #091a10;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.nav-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .mobile-toggle {
    display: block;
  }

  .header-owner-badge {
    display: none;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .status-search-box {
    flex-direction: column;
  }

  .tb-banner-flex {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   DISCORD WEBHOOK STATUS & CANDIDACY CARDS
   ========================================================================== */
.webhook-status-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  transition: var(--transition-normal);
}

.webhook-status-card.status-card-active {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(9, 26, 16, 0.95));
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.webhook-status-card.status-card-warning {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(20, 24, 33, 0.95));
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.webhook-status-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.webhook-status-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.webhook-status-info strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.webhook-status-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.webhook-status-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

