/* ==============================================================
   YUNG COMMANDER (YC) - PUBG MOBILE CLAN RECRUITMENT STYLESHEET
   Tactical Dark Gaming Theme | Red Neon Accents | Persian RTL
   ============================================================== */

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

:root {
  --bg-primary: #08090d;
  --bg-secondary: #0f1118;
  --bg-card: rgba(18, 21, 30, 0.85);
  --bg-card-hover: rgba(26, 30, 44, 0.95);
  --border-color: rgba(255, 30, 56, 0.2);
  --border-glow: rgba(255, 30, 56, 0.6);
  --accent-red: #ff1e38;
  --accent-red-hover: #ff3b52;
  --accent-dark-red: #9e0e20;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-gold: #ffb703;
  --accent-green: #10b981;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-neon: 0 0 25px rgba(255, 30, 56, 0.35);
  --shadow-neon-sm: 0 0 12px rgba(255, 30, 56, 0.25);
  --font-main: 'Vazirmatn', sans-serif;
  --font-display: 'Teko', 'Vazirmatn', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 30, 56, 0.15) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

/* Background Cyber Grid Lines & Vignette */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Soft Depth-of-Field Character Background (Clearly visible with tactical soft focus) */
.scroll-bg-character {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
}

body.show-bg-character .scroll-bg-character {
  opacity: 0.92; /* Clearly visible & prominent */
  transform: scale(1);
}

.bg-character-img {
  position: absolute;
  inset: 0;
  background-image: url('../images/bg_character.webp');
  background-repeat: no-repeat;
  background-position: center 30%;
  background-size: auto 92vh;
  filter: blur(2px) brightness(0.85) contrast(1.1);
  -webkit-filter: blur(2px) brightness(0.85) contrast(1.1);
  transform: translateZ(0);
}

.bg-character-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 50%, rgba(8, 9, 13, 0.04) 0%, rgba(8, 9, 13, 0.48) 85%),
    linear-gradient(180deg, rgba(8, 9, 13, 0.8) 0%, transparent 15%, transparent 80%, rgba(8, 9, 13, 0.95) 100%);
}

@media (max-width: 768px) {
  body.show-bg-character .scroll-bg-character {
    opacity: 0.88;
  }
  .bg-character-img {
    background-size: auto 80vh;
    background-position: center 38%;
    filter: blur(1.5px) brightness(0.82) contrast(1.1);
    -webkit-filter: blur(1.5px) brightness(0.82) contrast(1.1);
  }
}

/* Container */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Top Navigation Bar - Centered Title & Mobile-Optimized Grid */
.top-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  background: rgba(8, 9, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 30, 56, 0.25);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
  padding: 10px 0;
  transition: var(--transition);
}

.top-bar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

/* Center Title Branding */
.brand-center {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}

.brand-center-text h3 {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-center-text span {
  font-size: 0.72rem;
  color: var(--accent-red);
  font-weight: 700;
  display: block;
}

/* Header Left: Hamburger Button */
.header-left {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hamburger-btn {
  background: rgba(255, 30, 56, 0.15);
  border: 1.5px solid rgba(255, 30, 56, 0.6);
  color: #fff;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 14px rgba(255, 30, 56, 0.35);
  padding: 0;
}

.hamburger-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.hamburger-btn:hover {
  background: var(--accent-red);
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255, 30, 56, 0.8);
  transform: scale(1.05);
}

/* Header Right: Quick Socials & Circular Logo on Far Left of Header */
.header-right {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.desktop-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Circular Logo on FAR LEFT of Header (Appears smoothly when scrolled down) */
.header-circular-logo-wrap {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-circular-logo {
  width: 44px;
  height: 44px;
  border-radius: 50% !important; /* Perfectly Circular Logo */
  object-fit: cover;
  display: block;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

body.has-scrolled .header-circular-logo-wrap {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Social Icon Buttons */
.social-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
}

.social-header-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social-header-btn.youtube {
  background: rgba(255, 0, 0, 0.12);
  border-color: rgba(255, 0, 0, 0.35);
  color: #ff4d4d;
}

.social-header-btn.youtube:hover {
  background: #ff0000;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.social-header-btn.instagram {
  background: rgba(225, 48, 108, 0.12);
  border-color: rgba(225, 48, 108, 0.35);
  color: #f43f5e;
}

.social-header-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(225, 48, 108, 0.5);
}

/* In Mobile Screens: Completely hide sound, YouTube and Instagram from top header (accessible only in Hamburger Menu) */
@media (max-width: 768px) {
  .desktop-header-actions {
    display: none !important;
  }
  .top-bar-inner {
    grid-template-columns: 44px 1fr 44px;
  }
  .header-left {
    grid-column: 1;
    justify-content: flex-start;
  }
  .brand-center {
    grid-column: 2;
    justify-content: center;
  }
  .brand-center-text h3 {
    font-size: 1.05rem;
  }
  .brand-center-text span {
    font-size: 0.68rem;
  }
  .header-right {
    grid-column: 3;
    justify-content: flex-end;
  }
  .header-circular-logo-wrap {
    width: 38px;
    height: 38px;
  }
  .header-circular-logo {
    width: 38px;
    height: 38px;
  }

  /* In Mobile Screens: Center Next Step button in the middle of screen */
  .step-nav-actions {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }

  .btn-step-next {
    margin: 0 auto !important;
    width: 100%;
    max-width: 340px;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  .btn-step-prev {
    margin: 0 auto !important;
    width: 100%;
    max-width: 340px;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }
}

/* ================= Redesigned Tactical Glassmorphism Drawer Menu ================= */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-overlay.active {
  display: block;
  opacity: 1;
}

.drawer-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -360px;
  width: 320px;
  max-width: 88%;
  background: linear-gradient(180deg, #10131d 0%, #090a0f 100%);
  border-left: 1px solid rgba(255, 30, 56, 0.35);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9), inset 1px 0 0 rgba(255, 255, 255, 0.08);
  z-index: 2001;
  padding: 22px 20px 28px;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  overflow-y: auto;
}

.drawer-overlay.active .drawer-panel {
  right: 0;
}

/* Drawer Header: Title & Close */
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

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

.drawer-brand img,
.drawer-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50% !important; /* Circular Logo in Drawer */
  object-fit: cover;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

.drawer-brand h4 {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.drawer-close-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  transform: rotate(90deg);
  box-shadow: 0 0 12px var(--accent-red);
}

/* SECTION 1 (TOP): Standalone Clickable Sound Controller */
.drawer-sound-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.sound-interactive-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 30, 56, 0.2);
  border: 2px solid var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-red);
  box-shadow: 0 0 16px rgba(255, 30, 56, 0.45);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.sound-interactive-icon:hover {
  transform: scale(1.1);
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 24px rgba(255, 30, 56, 0.8);
}

.sound-interactive-icon.muted {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  box-shadow: none;
}

/* Expanded Text Input for Telegram ID in Step 4 */
.input-wrapper-lg {
  position: relative;
}

.form-input-lg {
  padding: 16px 52px 16px 18px !important;
  font-size: 1.05rem !important;
  min-height: 56px;
  border-color: rgba(255, 30, 56, 0.4) !important;
  background: rgba(14, 17, 26, 0.95) !important;
  letter-spacing: 0.5px;
}

.form-input-lg:focus {
  border-color: var(--accent-red) !important;
  box-shadow: 0 0 18px rgba(255, 30, 56, 0.5) !important;
}

.input-icon-lg {
  right: 18px !important;
  color: var(--accent-red) !important;
}
  color: var(--accent-red);
  font-weight: 700;
}

.drawer-sound-card.muted .sound-status-meta span {
  color: var(--text-muted);
}

/* SECTION HEADERS IN DRAWER */
.drawer-category-heading {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-category-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* SECTION 2 (MIDDLE): Page Sections Nav Cards */
.drawer-pages-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 26px;
}

.drawer-page-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
}

.drawer-page-card-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-page-card svg {
  width: 18px;
  height: 18px;
  color: var(--accent-red);
  flex-shrink: 0;
}

.drawer-page-card:hover {
  background: rgba(255, 30, 56, 0.12);
  border-color: rgba(255, 30, 56, 0.45);
  color: #fff;
  transform: translateX(-4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* SECTION 3 (BOTTOM): Social Networks Cards */
.drawer-socials-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.drawer-social-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.drawer-social-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.drawer-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-social-icon.tg { background: rgba(14, 165, 233, 0.2); }
.drawer-social-icon.tg svg { fill: #0ea5e9; width: 18px; height: 18px; }

.drawer-social-icon.yt { background: rgba(255, 0, 0, 0.2); }
.drawer-social-icon.yt svg { fill: #ff0000; width: 18px; height: 18px; }

.drawer-social-icon.ig { background: rgba(225, 48, 108, 0.2); }
.drawer-social-icon.ig svg { fill: #e1306c; width: 18px; height: 18px; }

.drawer-social-info {
  min-width: 0;
}

.drawer-social-info h6 {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
  white-space: nowrap;
}

.drawer-social-info span {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  display: block;
}

/* Pills guaranteed single-line & never wrap */
.drawer-social-pill {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 8px;
}

.drawer-social-pill.tg { background: rgba(14, 165, 233, 0.2); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.4); }
.drawer-social-pill.yt { background: rgba(255, 0, 0, 0.2); color: #ff6b6b; border: 1px solid rgba(255, 0, 0, 0.4); }
.drawer-social-pill.ig { background: rgba(225, 48, 108, 0.2); color: #f43f5e; border: 1px solid rgba(225, 48, 108, 0.4); }

.drawer-social-card:hover {
  transform: translateX(-4px);
}

.drawer-social-card.tg:hover { border-color: #0ea5e9; background: rgba(14, 165, 233, 0.08); }
.drawer-social-card.yt:hover { border-color: #ff0000; background: rgba(255, 0, 0, 0.08); }
.drawer-social-card.ig:hover { border-color: #e1306c; background: rgba(225, 48, 108, 0.08); }

.drawer-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ================= Bottom Header: All Platforms Grid ================= */
.platforms-section {
  margin: 40px auto 45px;
}

.platforms-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

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

.platforms-header {
  text-align: center;
  margin-bottom: 22px;
}

.platforms-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.platforms-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

@media (max-width: 820px) {
  .platforms-grid {
    grid-template-columns: 1fr;
  }
}

.platform-item {
  background: rgba(11, 13, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition);
  text-decoration: none;
  min-height: 72px;
}

.platform-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
  background: rgba(16, 19, 28, 0.95);
  box-shadow: var(--shadow-neon-sm);
}

.platform-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

/* Icon Box: Neutral dark container, ONLY the inner icon has official platform color */
.platform-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.platform-item:hover .platform-icon-box {
  background: rgba(255, 255, 255, 0.08);
}

/* Official Colors ONLY on the vector icons */
.platform-icon-box.tg svg {
  fill: #0ea5e9;
  filter: drop-shadow(0 0 6px rgba(14, 165, 233, 0.6));
}

.platform-icon-box.yt svg {
  fill: #ff0000;
  filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.6));
}

.platform-icon-box.ig svg {
  fill: #e1306c;
  filter: drop-shadow(0 0 6px rgba(225, 48, 108, 0.6));
}

.platform-icon-box svg {
  width: 26px;
  height: 26px;
}

.platform-text {
  min-width: 0;
}

.platform-text h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
  white-space: nowrap;
}

.platform-text p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.3;
  white-space: nowrap;
}

/* Platform Action Button Tabs (Matching each platform's official color) */
.platform-btn-pill {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
  border: 1px solid transparent;
}

/* Telegram Tab: Official Blue */
.platform-btn-pill.tg {
  background: rgba(14, 165, 233, 0.18);
  border-color: #0ea5e9;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.25);
}

.platform-item.tg:hover .platform-btn-pill.tg,
.platform-btn-pill.tg:hover {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #fff;
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.65);
  transform: translateY(-1px);
}

/* YouTube Tab: Official Red */
.platform-btn-pill.yt {
  background: rgba(255, 0, 0, 0.18);
  border-color: #ff0000;
  color: #ff4d4d;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.25);
}

.platform-item.yt:hover .platform-btn-pill.yt,
.platform-btn-pill.yt:hover {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.65);
  transform: translateY(-1px);
}

/* Instagram Tab: Official Gradient / Pink */
.platform-btn-pill.ig {
  background: rgba(225, 48, 108, 0.18);
  border-color: #e1306c;
  color: #f43f5e;
  box-shadow: 0 0 10px rgba(225, 48, 108, 0.25);
}

.platform-item.ig:hover .platform-btn-pill.ig,
.platform-btn-pill.ig:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 18px rgba(225, 48, 108, 0.65);
  transform: translateY(-1px);
}

/* Multi-Step Wizard Progress Bar */
.wizard-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 35px;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 15%;
  left: 15%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.wizard-progress-bar {
  position: absolute;
  top: 20px;
  right: 15%;
  height: 3px;
  background: linear-gradient(90deg, #ff1e38, #ff4d63);
  box-shadow: 0 0 10px rgba(255, 30, 56, 0.8);
  z-index: 1;
  transition: width 0.35s ease;
  width: 0%;
}

.wizard-step-node {
  position: relative;
  z-index: 2;
  text-align: center;
  cursor: pointer;
  flex: 1;
}

.wizard-step-circle {
  width: 42px;
  height: 42px;
  background: #12151e;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.wizard-step-node.active .wizard-step-circle {
  background: var(--accent-red);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 30, 56, 0.8);
  transform: scale(1.1);
}

.wizard-step-node.completed .wizard-step-circle {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.wizard-step-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: block;
}

.wizard-step-node.active .wizard-step-label {
  color: #fff;
}

/* Wizard Form Steps container */
.form-step {
  display: none;
  animation: fadeInStep 0.3s ease-in-out;
}

.form-step.active {
  display: block;
}

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

.step-nav-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 30px;
}

.btn-step-prev {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 14px 26px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-step-prev:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn-step-next {
  background: linear-gradient(135deg, #ff1e38 0%, #b80d22 100%);
  border: none;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(255, 30, 56, 0.4);
  transition: var(--transition);
  margin-right: auto;
}

.btn-step-next:hover {
  background: linear-gradient(135deg, #ff364e 0%, #d41129 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 30, 56, 0.6);
}

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

.social-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
}

.social-header-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.social-header-btn.youtube {
  background: rgba(255, 0, 0, 0.12);
  border-color: rgba(255, 0, 0, 0.35);
  color: #ff4d4d;
}

.social-header-btn.youtube:hover {
  background: #ff0000;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.social-header-btn.instagram {
  background: rgba(225, 48, 108, 0.12);
  border-color: rgba(225, 48, 108, 0.35);
  color: #f43f5e;
}

.social-header-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(225, 48, 108, 0.5);
}

/* Telegram Bottom Banner Card */
.telegram-bottom-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(14, 165, 233, 0.4);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  margin: 30px auto 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(14, 165, 233, 0.15);
}

.telegram-bottom-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.telegram-logo-circle {
  width: 52px;
  height: 52px;
  background: #0ea5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.6);
  flex-shrink: 0;
}

.telegram-logo-circle svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.telegram-join-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
  white-space: nowrap;
}

.telegram-join-btn:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(14, 165, 233, 0.6);
}

/* Custom Tactical Alert Toast / Popup */
.tactical-toast-overlay {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #141724;
  border: 1px solid var(--accent-red);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 30, 56, 0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  max-width: 90%;
  width: 440px;
}

.tactical-toast-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 30, 56, 0.2);
  border: 1px solid var(--accent-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-red);
  flex-shrink: 0;
}

.toast-text h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.toast-text p {
  font-size: 0.82rem;
  color: #d1d5db;
  line-height: 1.4;
}

.toast-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  margin-right: auto;
  transition: var(--transition);
}

.toast-close-btn:hover {
  color: #fff;
}

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

.icon-btn:hover {
  background: rgba(255, 30, 56, 0.15);
  border-color: var(--accent-red);
  color: #fff;
}

.admin-nav-btn {
  background: linear-gradient(135deg, rgba(255, 30, 56, 0.2), rgba(0, 0, 0, 0.4));
  border: 1px solid var(--accent-red);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.admin-nav-btn:hover {
  background: var(--accent-red);
  box-shadow: var(--shadow-neon-sm);
}

/* ================= Hero Section ================= */
.hero-section {
  text-align: center;
  padding: 40px 0 30px;
  position: relative;
}

.clan-logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: logoFloat 4s ease-in-out infinite alternate;
}

/* Floating Animation for Banner Logo */
@keyframes logoFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* Tactical Ambient Neon Halo matching the site theme */
.clan-logo-halo {
  display: block !important;
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 30, 56, 0.4) 0%, rgba(255, 30, 56, 0.12) 50%, transparent 75%);
  filter: blur(18px);
  z-index: 0;
  animation: auraPulse 3.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes auraPulse {
  0% {
    opacity: 0.45;
    transform: scale(0.92);
  }
  100% {
    opacity: 0.9;
    transform: scale(1.1);
  }
}

/* Circular Logo with Soft Edge and Depth Shadows */
.clan-logo-img {
  width: 210px;
  height: 210px;
  border-radius: 50% !important; /* Circular Logo as requested */
  border: none !important;
  outline: none;
  position: relative;
  z-index: 1;
  object-fit: cover;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 30, 56, 0.25);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.clan-logo-img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 30, 56, 0.45);
}

/* When Scrolled Down: Hero banner logo animates out and disappears as it transitions to the sticky header */
body.has-scrolled .clan-logo-wrapper {
  opacity: 0;
  transform: scale(0.65) translateY(-35px);
  pointer-events: none;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(255, 30, 56, 0.12);
  border: 1px solid rgba(255, 30, 56, 0.4);
  color: var(--accent-red);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.badge-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(255, 30, 56, 0.5);
}

.hero-title span {
  color: var(--accent-red);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 25px;
  font-weight: 400;
}

/* Quick Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 25px 0 40px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.stat-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-neon-sm);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-value.red {
  color: var(--accent-red);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 5px;
}

/* Clan Perks / Requirements preview */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 45px;
}

.perk-item {
  background: rgba(16, 18, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: var(--transition);
}

.perk-item:hover {
  border-color: rgba(255, 30, 56, 0.3);
  background: rgba(25, 28, 39, 0.8);
}

.perk-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 30, 56, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-red);
  flex-shrink: 0;
}

.perk-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.perk-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ================= Recruitment Form ================= */
.form-section {
  position: relative;
  margin-bottom: 70px;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 14px;
}

.recruitment-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}

.recruitment-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 30, 56, 0.4), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.full-width {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-label .req {
  color: var(--accent-red);
}

.form-label .hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Custom Text Inputs */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
  transition: var(--transition);
}

.form-input {
  width: 100%;
  background: rgba(11, 13, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 13px 44px 13px 14px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 14px rgba(255, 30, 56, 0.35);
  background: rgba(16, 19, 28, 0.95);
}

.form-input:focus + .input-icon {
  color: var(--accent-red);
}

/* FPS Selector Buttons */
.fps-selector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.fps-btn {
  background: rgba(11, 13, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  user-select: none;
}

.fps-btn .fps-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  display: block;
  line-height: 1;
}

.fps-btn .fps-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.fps-btn:hover {
  border-color: rgba(255, 30, 56, 0.5);
  background: rgba(255, 30, 56, 0.08);
}

.fps-btn.active {
  background: linear-gradient(135deg, rgba(255, 30, 56, 0.3), rgba(158, 14, 32, 0.3));
  border-color: var(--accent-red);
  box-shadow: var(--shadow-neon-sm);
}

.fps-btn.active .fps-val {
  color: var(--accent-red);
}

/* Ping Slider & Selector */
.ping-control-box {
  background: rgba(11, 13, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

/* Clickable Ping Tabs Grid */
.ping-tabs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.ping-tab-btn {
  background: rgba(11, 13, 19, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  user-select: none;
}

.ping-tab-btn:hover {
  border-color: rgba(255, 30, 56, 0.45);
  background: rgba(255, 30, 56, 0.08);
}

.ping-tab-btn.active {
  background: linear-gradient(135deg, rgba(255, 30, 56, 0.25), rgba(158, 14, 32, 0.25));
  border-color: var(--accent-red);
  color: #fff;
  box-shadow: var(--shadow-neon-sm);
}

.ping-tab-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.ping-tab-btn.active .ping-tab-title {
  color: var(--accent-red);
}

.ping-tab-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

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

.ping-badge {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 2px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ping-badge.excellent { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid #10b981; }
.ping-badge.good { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid #f59e0b; }
.ping-badge.average { background: rgba(249, 115, 22, 0.2); color: #f97316; border: 1px solid #f97316; }
.ping-badge.poor { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid #ef4444; }

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  outline: none;
  cursor: pointer;
  touch-action: pan-y;
  direction: ltr;
  margin: 6px 0;
}

.range-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #232736;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 12px var(--accent-red);
  cursor: pointer;
  margin-top: -8px;
  transition: transform 0.15s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-slider::-moz-range-track {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #232736;
}

.range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 12px var(--accent-red);
  cursor: pointer;
  border: none;
}

/* Gender Selection Buttons */
.gender-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gender-btn {
  background: rgba(11, 13, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.gender-btn svg {
  flex-shrink: 0;
}

.gender-btn:hover {
  border-color: rgba(255, 30, 56, 0.4);
  background: rgba(255, 30, 56, 0.06);
}

.gender-btn.active {
  background: rgba(255, 30, 56, 0.2);
  border-color: var(--accent-red);
  color: #fff;
  box-shadow: var(--shadow-neon-sm);
}

/* Device Category Selector */
.device-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.device-type-btn {
  background: rgba(11, 13, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.device-type-btn:hover {
  border-color: rgba(255, 30, 56, 0.4);
}

.device-type-btn.active {
  background: rgba(255, 30, 56, 0.18);
  border-color: var(--accent-red);
  color: #fff;
  box-shadow: var(--shadow-neon-sm);
}

/* Roles Grid */
.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.role-card {
  background: rgba(11, 13, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.role-card:hover {
  border-color: rgba(255, 30, 56, 0.4);
  transform: translateY(-2px);
}

.role-card.active {
  background: linear-gradient(180deg, rgba(255, 30, 56, 0.25) 0%, rgba(18, 21, 30, 0.85) 100%);
  border-color: var(--accent-red);
  box-shadow: var(--shadow-neon-sm);
}

.role-card .role-icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
  display: block;
}

.role-card .role-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  display: block;
}

.role-card .role-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Finger / Gyro Options */
.setup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.setup-btn {
  background: rgba(11, 13, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.setup-btn.active {
  background: rgba(255, 30, 56, 0.2);
  border-color: var(--accent-red);
  color: #fff;
}

/* Image Upload Area */
.upload-box {
  background: rgba(11, 13, 19, 0.7);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.upload-box:hover {
  border-color: var(--accent-red);
  background: rgba(255, 30, 56, 0.05);
}

.upload-preview {
  max-height: 180px;
  border-radius: var(--radius-sm);
  display: none;
  margin: 10px auto;
  border: 2px solid var(--accent-red);
  box-shadow: var(--shadow-neon-sm);
}

/* Live Combat Power / Combat Score Box */
.score-box {
  background: linear-gradient(135deg, rgba(255, 30, 56, 0.15), rgba(15, 17, 24, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}

.score-info h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.score-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.score-meter {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.score-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-red);
  line-height: 1;
}

.score-total {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Submit Buttons */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #ff1e38 0%, #b80d22 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(255, 30, 56, 0.4);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 30, 56, 0.6);
  background: linear-gradient(135deg, #ff334b 0%, #d41129 100%);
}

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

.btn-secondary {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Clan Rules & FAQ */
.rules-section {
  margin-bottom: 70px;
}

.rules-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.rules-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  list-style: none;
}

.rule-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.rule-number {
  width: 28px;
  height: 28px;
  background: rgba(255, 30, 56, 0.2);
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.rule-text h5 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 3px;
  font-weight: 700;
}

.rule-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer p {
  margin-bottom: 6px;
}

footer .footer-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 12px;
}

footer .footer-socials a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

footer .footer-socials a:hover {
  color: var(--accent-red);
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #12141c;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 30px;
  position: relative;
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 30, 56, 0.4);
  animation: modal-pop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes modal-pop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-icon {
  width: auto;
  height: auto;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  margin: 0 auto 14px;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-details {
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: right;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.modal-details p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 4px;
}

.modal-details p:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
}

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

/* ================= Responsive Queries (Windows PC & Mobile Devices) ================= */

/* Desktop / Windows PC Framing Enhancement */
@media (min-width: 861px) {
  .recruitment-card {
    padding: 38px 42px;
    border: 1px solid var(--border-glow);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 30, 56, 0.15);
  }
  .recruitment-card::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-top: 3px solid var(--accent-red);
    border-right: 3px solid var(--accent-red);
    border-top-right-radius: var(--radius-lg);
  }
  .recruitment-card::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -2px;
    width: 22px;
    height: 22px;
    border-bottom: 3px solid var(--accent-red);
    border-left: 3px solid var(--accent-red);
    border-bottom-left-radius: var(--radius-lg);
  }
}

/* Tablet & Mobile Screens */
@media (max-width: 860px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .clan-logo-img {
    width: 150px;
    height: 150px;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .perks-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full-width {
    grid-column: span 1;
  }
  .device-type-grid {
    grid-template-columns: 1fr;
  }
  .role-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rules-list {
    grid-template-columns: 1fr;
  }
  .recruitment-card {
    padding: 22px 16px;
    border-radius: var(--radius-md);
  }
}

/* Small Smartphone Screens (iOS / Android) */
@media (max-width: 500px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .container {
    padding: 0 14px;
  }
  .ping-tabs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fps-selector-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .setup-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-input {
    font-size: 16px; /* Prevents auto-zoom on iOS Safari */
    padding: 12px 38px 12px 12px;
  }
  .btn-primary {
    font-size: 1rem;
    padding: 14px 10px;
  }
}
