:root {
  /* Ultra-Luxury Cyber Aesthetic: Obsidian, Titanium, Seductive Crimson & Ruby */
  --bg-primary: #050608;
  --bg-secondary: #0a0c10;
  --bg-surface: #0e1117;
  --bg-card: rgba(14, 17, 24, 0.75);
  --bg-card-hover: rgba(22, 26, 38, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.025);
  --bg-glass-strong: rgba(255, 255, 255, 0.06);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(255, 42, 95, 0.45);
  --border-glow: rgba(255, 42, 95, 0.65);

  /* Accents */
  --accent-red: #ff2a5f;
  --accent-crimson: #e11d48;
  --accent-ruby: #be123c;
  --accent-rose: #f43f5e;
  --accent-cyan: #06b6d4;
  --accent-glow: rgba(255, 42, 95, 0.3);
  --accent-glow-subtle: rgba(255, 42, 95, 0.1);

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #ffffff;

  /* Fonts */
  --font-persian: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-tech: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-main: var(--font-persian);
  --font-fa: var(--font-persian);

  /* Shadows */
  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 35px rgba(255, 42, 95, 0.25);
  --shadow-glow-strong: 0 0 60px rgba(255, 42, 95, 0.45);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Borders & Semantic Aliases */
  --border-color: var(--border-subtle);

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  overflow-x: hidden;
}

/* Custom Sleek Dark Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #06070a;
}

::-webkit-scrollbar-thumb {
  background: #1e2430;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

body {
  font-family: var(--font-persian);
  background: #050608;
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Mobile & Touch Performance Optimization: Remove 300ms tap delay */
a,
button,
input,
select,
textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Background Atmosphere - Hardware-Accelerated Vector Gradients (Zero GPU Blur Lag) */
.bg-ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  contain: strict;
  transform: translateZ(0);
  will-change: transform;
}

.bg-ambient-layer::before {
  content: '';
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 42, 95, 0.12) 0%, rgba(225, 29, 72, 0.04) 40%, rgba(10, 11, 20, 0) 70%);
  opacity: 0.9;
  pointer-events: none;
}

.bg-ambient-layer::after {
  content: '';
  position: absolute;
  top: 40%;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 42, 95, 0.06) 0%, rgba(10, 11, 20, 0) 65%);
  opacity: 0.8;
  pointer-events: none;
}

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

/* Typography & General Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-highlight);
  font-weight: 800;
  line-height: 1.35;
}

p {
  color: var(--text-secondary);
}

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

.font-tech {
  font-family: var(--font-tech);
}

.font-mono {
  font-family: var(--font-mono);
}

.num-en {
  font-family: var(--font-tech);
  font-weight: 700;
  letter-spacing: 0.5px;
  direction: ltr;
  display: inline-block;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 40%, #ff8da6 75%, var(--accent-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-subtle {
  background: linear-gradient(135deg, #ffffff 60%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.2px;
  width: fit-content;
}

.badge-crimson {
  background: rgba(255, 42, 95, 0.12);
  border: 1px solid rgba(255, 42, 95, 0.32);
  color: #ff85a1;
}

.badge-crimson .dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

.badge-glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);

}

.badge-status-active {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.badge-status-archived {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-persian);
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #ff2a5f 0%, #c7123d 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px -4px rgba(255, 42, 95, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -4px rgba(255, 42, 95, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);

}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: rgba(255, 42, 95, 0.12);
  border-color: rgba(255, 42, 95, 0.4);
  color: var(--accent-red);
}

/* ==============================================================
   HEADER & NAVBAR
   ============================================================== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(5, 6, 8, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  will-change: padding, background;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-smooth);
}

.header.scrolled {
  padding: 12px 0;
  background: rgba(5, 6, 8, 0.94);
  border-bottom: 1px solid rgba(255, 42, 95, 0.2);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.85);
}

.nav-container,
.header-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: nowrap !important;
}

.header-actions,
.nav-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  border-right: none !important;
}

.header-actions > *,
.nav-actions > * {
  flex-shrink: 0 !important;
}

@media (min-width: 992px) and (max-width: 1250px) {
  .nav-menu {
    gap: 10px !important;
  }
  .nav-item-link {
    font-size: 0.8rem !important;
    padding: 6px 4px !important;
  }
  .nav-actions {
    gap: 6px !important;
  }
  .telegram-cta span {
    display: none !important;
  }
  .telegram-cta {
    padding: 7px 10px !important;
  }
  .brand-subtitle {
    display: none !important;
  }
}

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

.brand-logo-wrap,
.brand-logo-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border: 1px solid rgba(255, 42, 95, 0.35);
  box-shadow: 0 0 18px rgba(255, 42, 95, 0.25);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform var(--transition-smooth);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.06);
}

.brand-title {
  font-family: var(--font-tech);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 1.8px;
  color: #ffffff;
}

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

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-menu>li {
  white-space: nowrap !important;
  flex-shrink: 0;
}

.nav-item-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap !important;
  transition: color var(--transition-fast);
  text-decoration: none;
  line-height: 1.2;
}

.nav-item-link:hover,
.nav-item-link.active {
  color: #ffffff;
}

.nav-item-link span {
  white-space: nowrap !important;
}

.nav-pill-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  margin-right: 3px;
  vertical-align: middle;
}

/* ==============================================================
   CYNET EXECUTIVE CYBERNETIC DROPDOWN MENUS (STREAMLINED HEADER)
   ============================================================== */
.nav-item-has-dropdown {
  position: relative;
}

.dropdown-trigger {
  cursor: pointer;
  user-select: none;
}

.dropdown-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.7;
  margin-right: 2px;
}

.nav-item-has-dropdown:hover .dropdown-chevron,
.nav-item-has-dropdown.dropdown-open .dropdown-chevron,
.nav-item-has-dropdown.mobile-open .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--accent-red);
}

.cynet-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 14px;
  min-width: 360px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}

.nav-item-has-dropdown:hover .cynet-dropdown-menu,
.nav-item-has-dropdown.dropdown-open .cynet-dropdown-menu,
.nav-item-has-dropdown:focus-within .cynet-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-inner {
  background: rgba(14, 15, 26, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 42, 95, 0.25);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 42, 95, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dropdown-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.dropdown-link-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(-4px);
  border-color: rgba(255, 255, 255, 0.08);
}

.dropdown-link-item.highlight-green:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.dropdown-link-item.highlight-red:hover {
  background: rgba(255, 42, 95, 0.08);
  border-color: rgba(255, 42, 95, 0.25);
}

.dropdown-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.dropdown-link-item:hover .dropdown-icon-box {
  transform: scale(1.08);
}

.dropdown-icon-box.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.dropdown-icon-box.red {
  background: rgba(255, 42, 95, 0.15);
  color: #ff5379;
  border: 1px solid rgba(255, 42, 95, 0.3);
}

.dropdown-icon-box.cyan {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.dropdown-text {
  flex: 1;
  min-width: 0;
}

.dropdown-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.dropdown-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
  transition: color 0.2s ease;
}

.dropdown-link-item:hover .dropdown-title {
  color: #ffffff;
}

.dropdown-desc {
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  white-space: normal;
}

.dropdown-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 8px;
  white-space: nowrap;
}

.dropdown-badge.free {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.dropdown-badge.hot {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.dropdown-badge.cyan {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.dropdown-badge.amber {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.dropdown-badge.exam {
  background: rgba(255, 42, 95, 0.2);
  color: #ff8ca6;
  border: 1px solid rgba(255, 42, 95, 0.35);
}

.dropdown-badge.live {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.dropdown-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 4px 6px;
}

.dropdown-footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-red);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.dropdown-footer-link:hover {
  background: rgba(255, 42, 95, 0.1);
  color: #ff5379;
}

.dropdown-simple-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dropdown-simple-item:hover {
  background: rgba(255, 42, 95, 0.09);
  color: #ffffff;
  transform: translateX(-4px);
}

.dropdown-simple-item svg {
  color: var(--accent-red);
  transition: transform 0.2s ease;
}

.dropdown-simple-item:hover svg {
  transform: scale(1.15);
}

@media (max-width: 991px) {
  .nav-item-has-dropdown {
    width: 100%;
  }

  .cynet-dropdown-menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    min-width: 100%;
    padding-top: 6px;
    display: none;
  }

  .nav-item-has-dropdown.mobile-open .cynet-dropdown-menu {
    display: block;
  }

  .dropdown-inner {
    background: rgba(20, 21, 35, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 0;
  padding-right: 0;
  border-right: none;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .nav-actions {
    gap: 8px;
  }
}

.cart-btn-wrap {
  position: relative;
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.72rem;
  font-family: var(--font-tech);
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255, 42, 95, 0.7);
}

.mobile-menu-toggle {
  display: none;
}

/* ==============================================================
   TOP FEATURED BANNER SLIDER (CINEMATIC BILLBOARD)
   ============================================================== */
.cynet-slider-section {
  padding: 24px 0 10px;
  position: relative;
  z-index: 5;
}

.cynet-slider-container {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 42, 95, 0.3);
  background: #080a0f;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 45px rgba(255, 42, 95, 0.16);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.cynet-slider-container:hover {
  border-color: rgba(255, 42, 95, 0.55);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9), 0 0 55px rgba(255, 42, 95, 0.28);
}

.cynet-slider-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 20%, rgba(255, 42, 95, 0.12) 0%, transparent 60%);
  z-index: 2;
}

.cynet-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.cynet-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.75s ease;
  z-index: 1;
  pointer-events: none;
}

.cynet-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}

.cynet-slide-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.cynet-slide-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.cynet-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center left;
  transform: scale(1.02);
  transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  opacity: 0.72;
}

.cynet-slide.active .cynet-slide-img {
  transform: scale(1.06);
}

.cynet-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 15, 0.25) 0%, rgba(8, 10, 15, 0.78) 42%, rgba(8, 10, 15, 0.97) 75%, #080a0f 100%),
    linear-gradient(0deg, rgba(8, 10, 15, 0.85) 0%, transparent 45%);
  z-index: 2;
}

.cynet-slide-content {
  position: relative;
  z-index: 3;
  max-width: 660px;
  padding: 44px 56px 52px;
  margin-right: 0;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cynet-slide-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.dot-pulse-emerald {
  background-color: #10b981 !important;
  box-shadow: 0 0 10px #10b981 !important;
}

.badge-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.cynet-slide-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
  margin: 0;
}

.cynet-slide-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.75;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cynet-slide-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.cynet-slide-btn {
  box-shadow: 0 8px 24px rgba(255, 42, 95, 0.45);
}

.cynet-slide-btn-sub {
  font-size: 0.88rem;
}

.cynet-slider-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 10;
  overflow: hidden;
}

.cynet-slider-progress-fill {
  height: 100%;
  width: 100%;
  transform-origin: right center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #ff2a5f 0%, #f43f5e 50%, #e11d48 100%);
  box-shadow: 0 0 10px #ff2a5f;
  will-change: transform;
}

.cynet-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 12, 18, 0.75);

  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}

.cynet-slider-arrow:hover {
  background: rgba(255, 42, 95, 0.25);
  border-color: rgba(255, 42, 95, 0.6);
  color: var(--accent-red);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(255, 42, 95, 0.4);
}

.cynet-slider-arrow.prev-arrow {
  right: 20px;
}

.cynet-slider-arrow.next-arrow {
  left: 20px;
}

.cynet-slider-footer {
  position: absolute;
  bottom: 20px;
  left: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(8, 10, 15, 0.72);

  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cynet-slider-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cynet-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.cynet-slider-dot.active {
  width: 26px;
  border-radius: 10px;
  background: var(--accent-red);
  box-shadow: 0 0 10px rgba(255, 42, 95, 0.6);
}

.cynet-slider-counter {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 3px;
}

.cynet-slider-counter .active-idx {
  color: #ffffff;
}

.cynet-slider-counter .divider {
  opacity: 0.4;
}

@media (max-width: 991px) {
  .cynet-slider-container {
    height: 480px;
  }

  .cynet-slide-content {
    max-width: 580px;
    padding: 36px 36px 48px;
  }

  .cynet-slide-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .cynet-slider-section {
    padding: 16px 0 8px;
  }

  .cynet-slider-container {
    height: auto;
    min-height: 460px;
    border-radius: var(--radius-lg);
  }

  .cynet-slide-link {
    min-height: 460px;
    align-items: flex-end;
  }

  .cynet-slide-img {
    object-position: center 25%;
    opacity: 0.36;
    filter: saturate(0.85) brightness(0.75);
  }

  .cynet-slide-overlay {
    background: linear-gradient(180deg, rgba(8, 10, 15, 0.76) 0%, rgba(8, 10, 15, 0.92) 35%, rgba(8, 10, 15, 0.98) 75%, #080a0f 100%),
      radial-gradient(circle at 50% 15%, rgba(255, 42, 95, 0.14) 0%, transparent 60%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .cynet-slide-content {
    max-width: 100%;
    padding: 24px 18px 52px;
    gap: 12px;
  }

  .cynet-slide-title {
    font-size: 1.35rem;
    line-height: 1.4;
  }

  .cynet-slide-desc {
    font-size: 0.84rem;
    line-height: 1.6;
    -webkit-line-clamp: 2;
  }

  .cynet-slide-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .cynet-slide-btn,
  .cynet-slide-btn-sub {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .cynet-slider-arrow {
    display: none; /* Hide floating arrows on mobile touch screens to prevent collision with badges */
  }

  .cynet-slider-footer {
    bottom: 12px;
    left: 14px;
    padding: 4px 10px;
    gap: 10px;
  }
}

/* ==============================================================
   HERO SECTION
   ============================================================== */
.hero {
  padding: 44px 0 54px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-title {
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: -0.3px;
  margin: 0;
}

.hero-title strong {
  display: block;
  font-size: 2.35rem;
  background: linear-gradient(135deg, #ffffff 40%, #ff8da6 75%, var(--accent-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 6px;
}

.hero-description {
  font-size: 0.94rem;
  color: #cbd5e1;
  max-width: 540px;
  line-height: 1.82;
  margin: 0;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Stats Row */

/* Full-Width Telemetry Metrics Strip */
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  background: rgba(11, 15, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg, 16px);
  padding: 18px 24px;
  margin-top: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.hero-stats-strip .stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-stats-strip .stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.hero-stats-strip .stat-value {
  font-family: var(--font-tech);
  font-size: 1.7rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 2px;
  direction: ltr;
}
.hero-stats-strip .stat-plus {
  color: var(--accent-red);
}
.hero-stats-strip .stat-label {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 4px;
  font-weight: 600;
}
@media (max-width: 820px) {
  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 14px !important;
  }
  .hero-stats-strip .stat-item {
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 10px 8px !important;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
  }
  .hero-stats-strip .stat-value {
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    font-size: 1.45rem !important;
  }
  .hero-stats-strip .stat-label {
    text-align: center !important;
    width: 100% !important;
    font-size: 0.72rem !important;
  }
  .hero-stats-strip .stat-item:nth-child(2)::after,
  .hero-stats-strip .stat-item::after,
  .hero-stats-strip .stat-item:not(:last-child)::after {
    display: none !important;
  }
}
@media (max-width: 480px) {
  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 12px 10px !important;
  }
  .hero-stats-strip .stat-item {
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 10px 6px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
  }
  .hero-stats-strip .stat-value {
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    font-size: 1.3rem !important;
  }
  .hero-stats-strip .stat-label {
    text-align: center !important;
    width: 100% !important;
    font-size: 0.68rem !important;
    line-height: 1.35 !important;
  }
  .hero-stats-strip .stat-item::after,
  .hero-stats-strip .stat-item:not(:last-child)::after {
    display: none !important;
  }
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 24px;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

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

.stat-value {
  font-family: var(--font-tech);
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  direction: ltr;
}

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

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

/* Hero Centerpiece Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-emblem-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, rgba(20, 24, 34, 0.8) 0%, rgba(8, 10, 14, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-card), 0 0 45px rgba(255, 42, 95, 0.15);

  overflow: hidden;
}

.hero-emblem-halo {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: contrast(1.08) drop-shadow(0 0 24px rgba(255, 42, 95, 0.35));
}

.terminal-window {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  direction: ltr;
  text-align: left;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
  display: flex;
  gap: 5px;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f56;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #27c93f;
}

.terminal-title {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.terminal-body {
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-prompt {
  color: var(--accent-red);
}

.terminal-text {
  color: #94a3b8;
}

.terminal-text.active {
  color: #ffffff;
}

.cursor-blink {
  display: inline-block;
  width: 6px;
  height: 14px;
  background-color: var(--accent-red);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ==============================================================
   SECTION HEADERS
   ============================================================== */
.section {
  padding: 85px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  text-align: center;
}

.brand-title-nowrap,
.section-title .text-gradient {
  display: inline-block;
  white-space: nowrap;
  unicode-bidi: isolate;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ==============================================================
   FLAGSHIP COURSE: OSINT MASTERCLASS
   ============================================================== */
.featured-course-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(22, 26, 38, 0.85) 0%, rgba(10, 12, 17, 0.95) 100%);
  border: 1px solid rgba(255, 42, 95, 0.35);
  box-shadow: var(--shadow-card), 0 0 50px rgba(255, 42, 95, 0.2);

  overflow: hidden;
  padding: 44px;
}

.featured-glow-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
}

.course-spotlight-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: start;
}

.course-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.course-head-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.course-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.35;
}

.course-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.85;
}

/* Countdown Timer */
.countdown-banner {
  background: rgba(255, 42, 95, 0.08);
  border: 1px solid rgba(255, 42, 95, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.countdown-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff9ab3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown-digits {
  display: flex;
  gap: 10px;
  direction: ltr;
}

.countdown-box {
  background: #090b10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  text-align: center;
  min-width: 44px;
}

.countdown-box .val {
  font-family: var(--font-tech);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.countdown-box .lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Course Feature Pills */
.course-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.course-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 42, 95, 0.12);
  border: 1px solid rgba(255, 42, 95, 0.3);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.feature-item-text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Course Pricing & Purchase Box */
.course-pricing-box {
  background: #080a0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.pricing-box-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  background: linear-gradient(135deg, var(--accent-red), #990024);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(255, 42, 95, 0.5);
}

.price-display-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.price-old-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-old {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.discount-tag {
  background: rgba(255, 42, 95, 0.2);
  color: #ff5e84;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.price-current-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-current {
  font-family: var(--font-tech);
  font-size: 2.3rem;
  font-weight: 900;
  color: #ffffff;
}

.price-unit {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.payment-methods-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-method-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #cbd5e1;
}

/* Course Banner Showcase */
.course-banner-wrapper {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 42, 95, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 42, 95, 0.2);
  background: #080a0f;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.course-banner-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 45px rgba(255, 42, 95, 0.3);
  border-color: rgba(255, 42, 95, 0.55);
}

.course-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.course-banner-wrapper:hover .course-banner-img {
  transform: scale(1.015);
}

.course-banner-badge-bar {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  flex-wrap: wrap;
}

.course-banner-badge-bar .badge {
  font-size: 0.72rem;
  padding: 4px 10px;
}

.course-banner-cta-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
}

/* Dedicated Landing Page Specifics */
.landing-hero {
  padding: 60px 0 80px;
  position: relative;
}

.landing-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 40px;
}

.faq-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.faq-item.active {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 42, 95, 0.35);
}

.faq-question {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

.faq-icon {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-red);
}

.faq-answer {
  display: none;
  padding: 0 22px 20px 22px;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.85;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 14px;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Sticky Mobile Enrollment Bar for Ad Conversions */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 10, 15, 0.94);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 42, 95, 0.35);
  padding: 12px 20px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: flex;
  }

  .course-banner-cta-overlay {
    position: static;
    margin-top: 12px;
  }

  .course-banner-badge-bar {
    position: static;
    padding: 12px;
  }
}

/* Course Hook Quote Banner */
.course-hook-banner {
  background: linear-gradient(135deg, rgba(255, 42, 95, 0.12) 0%, rgba(20, 24, 34, 0.6) 100%);
  border: 1px solid rgba(255, 42, 95, 0.35);
  border-right: 4px solid var(--accent-red);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  margin: 6px 0 10px;
}

.course-hook-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.course-hook-text svg {
  color: var(--accent-red);
  flex-shrink: 0;
}

/* 1000-Student Impulse Buy Capacity Bar */
.sales-capacity-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.capacity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.capacity-title {
  color: #ff85a1;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.capacity-numbers {
  font-family: var(--font-tech);
  font-weight: 800;
  color: #fff;
}

.capacity-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.capacity-bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #b91c1c, #ef4444);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.85);
  border-radius: 99px;
}

.enroll-perks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.enroll-perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.enroll-perk-item svg {
  color: var(--accent-red);
  flex-shrink: 0;
}

/* ==============================================================
   INTERACTIVE CURRICULUM ACCORDION (ON PAGE)
   ============================================================== */
.curriculum-accordion {
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
}

.curriculum-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.accordion-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.accordion-item.active {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 42, 95, 0.35);
}

.accordion-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

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

.accordion-num {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 800;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: rgba(255, 42, 95, 0.15);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-header-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.accordion-icon {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--accent-red);
}

.accordion-content {
  display: none;
  padding: 0 20px 18px 20px;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.8;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 14px;
}

.accordion-item.active .accordion-content {
  display: block;
}

/* ==============================================================
   FAQ ACCORDION COMPONENT
   ============================================================== */
.faq-section {
  position: relative;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.14);
}

.faq-item.active {
  background: rgba(255, 42, 95, 0.03);
  border-color: rgba(255, 42, 95, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 42, 95, 0.08);
}

.faq-question {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  gap: 16px;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: #fff;
}

.faq-item.active .faq-question {
  color: #ffffff;
}

.faq-question-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.faq-num {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 800;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.faq-item.active .faq-num {
  background: rgba(255, 42, 95, 0.2);
  color: var(--accent-red);
  box-shadow: 0 0 10px rgba(255, 42, 95, 0.3);
}

.faq-icon {
  color: var(--text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-red);
}

.faq-answer {
  display: none;
  padding: 0 22px 20px 22px;
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.9;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 16px;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==============================================================
   ACADEMY SECTION: ACTIVE VS ARCHIVED COURSES
   ============================================================== */
.academy-section-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.sub-tab-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-persian);
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sub-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sub-tab-btn.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 42, 95, 0.4);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1020px;
  margin: 0 auto;
  align-items: stretch;
}

@media (min-width: 769px) {
  .courses-grid > .course-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition-smooth);

  position: relative;
  overflow: hidden;
}

.course-card.card-emerald {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.05) 0%, rgba(10, 14, 20, 0.96) 60%);
}

.course-card.card-emerald:hover {
  border-color: rgba(52, 211, 153, 0.55);
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.2);
}

.course-card.card-crimson {
  border-color: rgba(255, 42, 95, 0.35);
  background: linear-gradient(160deg, rgba(255, 42, 95, 0.05) 0%, rgba(10, 14, 20, 0.96) 60%);
}

.course-card.card-crimson:hover {
  border-color: rgba(255, 42, 95, 0.55);
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 42, 95, 0.2);
}

.course-card.card-cyan {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.05) 0%, rgba(10, 14, 20, 0.96) 60%);
}

.course-card.card-cyan:hover {
  border-color: rgba(56, 189, 248, 0.55);
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.2);
}

.card-cyan .card-banner-wrapper {
  border-color: rgba(56, 189, 248, 0.3);
}

/* Banner image container with perfect 16:9 ratio */
.card-banner-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.card-emerald .card-banner-wrapper {
  border-color: rgba(16, 185, 129, 0.3);
}

.card-crimson .card-banner-wrapper {
  border-color: rgba(255, 42, 95, 0.3);
}

.card-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover .card-banner-img {
  transform: scale(1.03);
}

/* Status badge floating on banner */
.card-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;

  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.card-status-badge.status-emerald {
  background: rgba(6, 26, 20, 0.88);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #34d399;
}

.card-status-badge.status-crimson {
  background: rgba(30, 8, 14, 0.88);
  border: 1px solid rgba(255, 42, 95, 0.45);
  color: #ff4d79;
}

.card-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.status-emerald .card-status-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-crimson .card-status-dot {
  background: #ff2a5f;
  box-shadow: 0 0 8px #ff2a5f;
}

/* Top Meta Row */
.card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.card-category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
}

.card-emerald .card-category-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.card-crimson .card-category-badge {
  background: rgba(255, 42, 95, 0.12);
  border: 1px solid rgba(255, 42, 95, 0.35);
  color: #ff6b8b;
}

.card-code-tag {
  font-size: 0.75rem;
  font-family: var(--font-tech);
  color: var(--text-muted);
  letter-spacing: 0.6px;
  direction: ltr;
}

/* Two-tier structured title */
.card-course-title {
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.card-course-title a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-course-title .title-fa {
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
  transition: color var(--transition-fast);
}

.card-course-title .title-en {
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-tech);
  letter-spacing: 0.5px;
  direction: ltr;
  text-align: right;
}

.card-emerald .card-course-title .title-en {
  color: #34d399;
}

.card-crimson .card-course-title .title-en {
  color: #ff6b8b;
}

/* Course Description */
.card-course-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.65;
  min-height: 48px;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 3-Column Specifications Grid */
.card-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  margin: 14px 0;
  align-items: center;
}

.card-spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 4px 6px;
}

.card-spec-item:not(:last-child) {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.card-spec-item .spec-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.card-spec-item .spec-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
}

.card-spec-item .spec-value.highlight-green {
  color: #34d399;
}

.card-spec-item .spec-value.highlight-red {
  color: #ff6b8b;
}

/* Bottom Price & Actions Row */
/* Bottom Price & Actions Row (Structured 2-Tier Layout) */
.card-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
  width: 100%;
}

.card-price-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 8px;
  text-align: right;
  direction: rtl;
}

.price-header-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.card-price-block .price-main {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.2;
}

.card-price-block .price-main.price-free {
  color: #10b981;
  text-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.card-price-block .price-main.price-paid {
  color: #ffffff;
  font-family: var(--font-tech);
  direction: ltr;
}

.card-price-block .price-main.price-paid small {
  font-size: 0.72rem;
  font-family: var(--font-persian);
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 3px;
}

.card-price-block .price-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.badge-discount-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 42, 95, 0.15);
  border: 1px solid rgba(255, 42, 95, 0.4);
  color: #ff5e85;
  white-space: nowrap;
}

.badge-discount-tag.badge-sky {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.badge-discount-tag.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
}

/* Actions Groups */
.card-actions-group {
  display: grid;
  gap: 8px;
  width: 100%;
}

.card-actions-group.actions-grid-paid {
  grid-template-columns: 1fr 1fr;
}

.card-actions-group.actions-grid-paid .card-btn-primary-cta {
  grid-column: 1 / -1;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.card-actions-group.actions-grid-paid .card-btn-installment,
.card-actions-group.actions-grid-paid .card-btn-outline {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 8px 10px;
  font-size: 0.8rem;
  box-sizing: border-box;
}

.card-actions-group.actions-grid-free {
  grid-template-columns: 1.3fr 1fr;
}

.card-actions-group.actions-grid-free .card-btn-emerald {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 10px 14px;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
}

.card-actions-group.actions-grid-free .card-btn-outline {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 10px 12px;
  font-size: 0.82rem;
  box-sizing: border-box;
}

.card-btn-outline {
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.card-btn-emerald {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border: 1px solid #10b981;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.card-btn-emerald:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

.card-btn-crimson {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48 0%, #ff2a5f 100%);
  border: 1px solid #ff2a5f;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255, 42, 95, 0.3);
}

.card-btn-crimson:hover {
  background: linear-gradient(135deg, #be123c 0%, #e11d48 100%);
  box-shadow: 0 6px 18px rgba(255, 42, 95, 0.45);
  transform: translateY(-1px);
}

@media (max-width: 540px) {
  .course-card {
    padding: 18px 16px;
  }

  .card-specs-grid {
    padding: 8px 4px;
    gap: 4px;
  }

  .card-spec-item {
    padding: 3px 2px;
  }

  .card-spec-item .spec-label {
    font-size: 0.65rem;
  }

  .card-spec-item .spec-value {
    font-size: 0.74rem;
  }

  .card-actions-group.actions-grid-free {
    grid-template-columns: 1fr;
  }
}

/* ==============================================================
   SHOP SECTION (PHYSICAL & DIGITAL PRODUCTS)
   ============================================================== */
.shop-filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==============================================================
   CYNET VPN STORE SECTION
   ============================================================== */
.cynet-vpn-showcase {
  margin-top: 32px;
  margin-bottom: 48px;
}

.cynet-vpn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.cynet-vpn-card {
  position: relative;
  background: linear-gradient(145deg, rgba(14, 18, 26, 0.88) 0%, rgba(8, 10, 15, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

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

.cynet-vpn-card.vpn-tunnel::before {
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.cynet-vpn-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 42, 95, 0.35);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 42, 95, 0.12);
}

.cynet-vpn-card.vpn-tunnel:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.12);
}

.vpn-card-header {
  margin-bottom: 18px;
}

.vpn-card-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.vpn-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vpn-card-subtitle {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 18px;
}

.vpn-features-list {
  list-style: none;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px;
}

.vpn-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.vpn-feature-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  flex-shrink: 0;
}

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

.vpn-plans-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vpn-plans-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.vpn-plan-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: right;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.vpn-plan-pill * {
  pointer-events: none;
}

.vpn-plan-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(-3px);
}

.vpn-plan-pill.active {
  background: rgba(255, 42, 95, 0.12);
  border-color: var(--accent-red);
  box-shadow: 0 0 16px rgba(255, 42, 95, 0.25);
  color: #fff;
}

.vpn-tunnel .vpn-plan-pill.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.vpn-plan-pill-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vpn-plan-pill-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #231608;
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  line-height: 1.3;
}

.vpn-plan-pill-tag.tag-emerald {
  background: #062319 !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
}

.vpn-plan-pill-tag.tag-cyan {
  background: #061d2d !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
}

@media (max-width: 600px) {
  .vpn-plan-pill {
    padding: 16px 14px 12px !important;
    margin-top: 10px !important;
    position: relative !important;
  }

  .vpn-plan-pill-left {
    gap: 8px !important;
    min-width: 0 !important;
  }

  .vpn-plan-pill-left strong {
    font-size: 0.84rem !important;
    white-space: nowrap !important;
  }

  .vpn-plan-price-wrap {
    flex-shrink: 0 !important;
  }

  .vpn-plan-price {
    font-size: 0.88rem !important;
    white-space: nowrap !important;
  }

  .vpn-plan-pill-tag {
    position: absolute !important;
    top: -9px !important;
    right: 20px !important;
    left: auto !important;
    font-size: 0.64rem !important;
    padding: 2px 9px !important;
    border-radius: 20px !important;
    z-index: 3 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.85) !important;
    white-space: nowrap !important;
    display: inline-flex !important;
  }
}

.vpn-plan-price-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vpn-plan-price {
  font-weight: 800;
  color: #34d399;
  font-size: 0.95rem;
}

.vpn-card-pricing-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.vpn-pricing-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vpn-pricing-title {
  font-size: 0.8rem;
  color: #94a3b8;
}

.vpn-pricing-plan-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.vpn-pricing-amounts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.vpn-price-original {
  font-size: 0.82rem;
  color: #64748b;
  text-decoration: line-through;
}

.vpn-price-current {
  font-size: 1.4rem;
  font-weight: 900;
  color: #34d399;
}

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

.vpn-divider-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 48px 0 20px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.vpn-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), transparent);
}

@media (max-width: 991px) {
  .cynet-vpn-grid {
    grid-template-columns: 1fr;
  }

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

/* ==============================================================
   SHOP COMING SOON STATE
   ============================================================== */
.shop-coming-soon-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.shop-coming-soon-card {
  position: relative;
  background: linear-gradient(145deg, rgba(14, 18, 26, 0.75) 0%, rgba(8, 10, 15, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit- transition: all var(--transition-smooth);
  overflow: hidden;
}

.shop-coming-soon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 42, 95, 0.6), transparent);
  opacity: 0.7;
}

.shop-coming-soon-card:hover {
  border-color: rgba(255, 42, 95, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 42, 95, 0.15);
}

.shop-cs-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.shop-cs-media-cover {
  position: relative;
  width: 100%;
  height: 230px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  background: #080a0f;
}

.shop-cs-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.shop-coming-soon-card:hover .shop-cs-img {
  transform: scale(1.05);
}

.shop-cs-media-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 10, 15, 0.95) 100%);
  display: flex;
  align-items: center;
}

.shop-cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.shop-cs-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shop-cs-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
}

.shop-cs-desc {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.8;
}

.shop-cs-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 42, 95, 0.08);
  border: 1px solid rgba(255, 42, 95, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: #ff85a1;
  margin-top: 6px;
}

.shop-cs-status.status-cyan {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.2);
  color: #67e8f9;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulseDot 2s infinite ease-in-out;
}

.status-indicator-dot.dot-cyan {
  background: #06b6d4;
  box-shadow: 0 0 8px #06b6d4;
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #67e8f9;
}

.dot-pulse-cyan {
  background-color: #06b6d4 !important;
  box-shadow: 0 0 10px #06b6d4 !important;
}

/* Shop Notify Strip */
.shop-notify-strip {
  margin-top: 32px;
  background: linear-gradient(135deg, rgba(20, 24, 34, 0.85) 0%, rgba(10, 12, 17, 0.95) 100%);
  border: 1px solid rgba(255, 42, 95, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.shop-notify-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.shop-notify-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 42, 95, 0.12);
  border: 1px solid rgba(255, 42, 95, 0.3);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shop-notify-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.shop-notify-text p {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 991px) {
  .shop-coming-soon-wrapper {
    grid-template-columns: 1fr;
  }

  .shop-notify-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-notify-strip .btn {
    width: 100%;
    justify-content: center;
  }
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  transition: all var(--transition-smooth);

}

.product-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 42, 95, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 42, 95, 0.15);
}

.product-type-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.type-hardware {
  background: rgba(255, 42, 95, 0.18);
  color: #ff7595;
  border: 1px solid rgba(255, 42, 95, 0.3);
}

.type-digital {
  background: rgba(6, 182, 212, 0.18);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Product Visual Schematic Box */
.product-visual-box {
  position: relative;
  height: 190px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-icon-art {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 42, 95, 0.15) 0%, transparent 70%);
  color: #ffffff;
  transition: transform var(--transition-smooth);
}

.product-card:hover .product-icon-art {
  transform: scale(1.1) rotate(6deg);
  color: var(--accent-red);
}

.product-spec-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.spec-pill {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.45;
}

.product-snippet {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 6px;
}

.product-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.product-price-val {
  font-family: var(--font-tech);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  direction: ltr;
}

.product-price-val span {
  font-size: 0.75rem;
  font-family: var(--font-persian);
  color: var(--text-muted);
}

/* ==============================================================
   STUDENT REVIEWS & SOCIAL PROOF
   ============================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;

}

.review-stars {
  display: flex;
  gap: 4px;
  color: #fbbf24;
}

.review-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.8;
  font-style: italic;
}

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

.reviewer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 42, 95, 0.15);
  border: 1px solid rgba(255, 42, 95, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tech);
  font-weight: 800;
  color: var(--accent-red);
  font-size: 0.85rem;
}

.reviewer-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.reviewer-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==============================================================
   COMMUNITY HUB (YOUTUBE & TELEGRAM)
   ============================================================== */
.community-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.community-card {
  position: relative;
  background: linear-gradient(145deg, rgba(20, 24, 34, 0.8) 0%, rgba(10, 12, 17, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;

  transition: all var(--transition-smooth);
}

.community-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 42, 95, 0.4);
  box-shadow: var(--shadow-card), 0 0 35px rgba(255, 42, 95, 0.2);
}

.community-card-youtube::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff0000, transparent);
}

.community-card-telegram::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0088cc, transparent);
}

.comm-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.comm-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-yt {
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.35);
  color: #ff3333;
}

.icon-tg {
  background: rgba(0, 136, 204, 0.15);
  border: 1px solid rgba(0, 136, 204, 0.35);
  color: #38bdf8;
}

.comm-header-text h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.comm-header-text p {
  font-size: 0.86rem;
}

.comm-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.comm-stat-cell {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.comm-stat-val {
  font-family: var(--font-tech);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  direction: ltr;
}

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

/* ==============================================================
   CART DRAWER & MODALS
   ============================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100001 !important;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.cart-drawer-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #080a0f;
  border-right: 1px solid rgba(255, 42, 95, 0.25);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.95);
  z-index: 100002 !important;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
}

.cart-drawer-overlay.active .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 18px 20px;
  padding-top: max(18px, env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 26, 0.98);
  flex-shrink: 0;
}

.cart-drawer-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 42, 95, 0.12);
  border: 1px solid rgba(255, 42, 95, 0.35);
  color: #ff6b8b;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cart-drawer-close-btn:hover,
.cart-drawer-close-btn:active {
  background: rgba(255, 42, 95, 0.25);
  border-color: rgba(255, 42, 95, 0.6);
  color: #fff;
}

.cart-drawer-title {
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cart-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.cart-item-price {
  font-family: var(--font-tech);
  font-size: 0.88rem;
  color: var(--accent-red);
  direction: ltr;
  text-align: right;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xs);
  padding: 2px 6px;
}

.qty-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
}

.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050608;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  color: #cbd5e1;
}

.cart-subtotal-val {
  font-family: var(--font-tech);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  direction: ltr;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}


.modal-overlay:not(.active) {
  display: none !important;
}

.modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  z-index: 100000 !important;
}

.modal-box {
  width: 100%;
  max-width: 650px;
  background: #0a0c12;
  border: 1px solid rgba(255, 42, 95, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 42, 95, 0.25);
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

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

/* Card Deposit & Bank Checkout Components */
.checkout-bank-card-wrap {
  background: rgba(0, 0, 0, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.checkout-bank-card-num {
  font-size: clamp(0.92rem, 4vw, 1.18rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: 1.2px !important;
  white-space: nowrap !important;
  direction: ltr !important;
  text-align: center !important;
  user-select: all !important;
}

.checkout-grid-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.checkout-form-control {
  width: 100%;
  background: rgba(18, 22, 34, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 8px !important;
  color: #fff !important;
  padding: 10px 12px !important;
  font-size: 0.85rem !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.checkout-form-control:focus {
  border-color: var(--accent-red) !important;
  box-shadow: 0 0 10px rgba(255, 42, 95, 0.25) !important;
  background: rgba(22, 27, 40, 0.95) !important;
}

@media (max-width: 580px) {
  .checkout-grid-inputs {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .checkout-bank-card-wrap {
    padding: 8px 10px !important;
    gap: 6px !important;
  }

  .checkout-bank-card-num {
    font-size: clamp(0.82rem, 3.8vw, 1.05rem) !important;
    letter-spacing: 0.8px !important;
  }
}

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

/* ==============================================================
   CYNET MINIMAL DESKTOP EXPERIENCE POPUP
   ============================================================== */
.cynet-device-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100010 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
}

.cynet-device-popup-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.cynet-device-popup-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, rgba(17, 24, 38, 0.98) 0%, rgba(8, 10, 16, 0.98) 100%);
  border: 1px solid rgba(255, 42, 95, 0.35);
  border-radius: 20px;
  padding: 24px 22px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9),
              0 0 35px rgba(255, 42, 95, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(22px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-sizing: border-box;
}

.cynet-device-popup-overlay.active .cynet-device-popup-card {
  transform: translateY(0) scale(1);
}

/* Neon Top Glow Accent Bar */
.cynet-device-popup-glow-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #ff2a5f 20%, #00f0ff 80%, transparent);
  box-shadow: 0 0 12px #ff2a5f;
}

/* Header with Icon, Tag and Close Button */
.cynet-device-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cynet-device-popup-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cynet-device-popup-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: radial-gradient(circle at center, rgba(255, 42, 95, 0.22) 0%, rgba(13, 17, 27, 0.9) 100%);
  border: 1px solid rgba(255, 42, 95, 0.4);
  color: #ff2a5f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(255, 42, 95, 0.25);
  flex-shrink: 0;
}

.cynet-device-popup-tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cynet-device-popup-tag .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse 1.8s infinite;
}

.cynet-device-popup-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.cynet-device-popup-close-btn:hover {
  background: rgba(255, 42, 95, 0.2);
  border-color: rgba(255, 42, 95, 0.4);
  color: #fff;
}

/* Body Content */
.cynet-device-popup-title {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cynet-device-popup-text {
  color: #94a3b8;
  font-size: 0.86rem;
  line-height: 1.75;
  margin: 0 0 16px 0;
}

.cynet-device-popup-text strong {
  color: #fff;
  font-weight: 700;
}

.cynet-device-popup-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 20px;
}

.cynet-device-popup-pill {
  font-size: 0.73rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cynet-device-popup-pill svg {
  color: #ff2a5f;
  flex-shrink: 0;
}

/* Primary Action Button */
.cynet-device-popup-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(255, 42, 95, 0.35);
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #ff2a5f 0%, #d81b49 100%);
  color: #fff;
  transition: all var(--transition-fast);
}

.cynet-device-popup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 42, 95, 0.5);
  filter: brightness(1.08);
}

.cynet-device-popup-btn:active {
  transform: translateY(1px);
}

/* Bug Report Direct Link to @ognorah */
.cynet-popup-bug-report {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 0.77rem;
  color: #94a3b8;
  text-align: center;
}

.cynet-popup-bug-report svg {
  color: #ff85a1;
  flex-shrink: 0;
}

.cynet-popup-bug-link {
  color: #38bdf8 !important;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.cynet-popup-bug-link:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #ffffff !important;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .cynet-device-popup-card {
    padding: 20px 16px 18px;
    border-radius: 16px;
  }
  .cynet-device-popup-title {
    font-size: 1.02rem;
  }
  .cynet-device-popup-text {
    font-size: 0.82rem;
    line-height: 1.7;
    margin-bottom: 14px;
  }
  .cynet-device-popup-btn {
    padding: 11px 16px;
    font-size: 0.88rem;
  }
}

/* Toast Notification - Elevated above modals & mobile bars */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 100005 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(14, 18, 27, 0.98);
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 42, 95, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(30px);
  opacity: 0;
  transition: all var(--transition-smooth);
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .toast-container {
    bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important;
    left: 14px !important;
    right: 14px !important;
    align-items: center !important;
  }
  .toast {
    width: 100% !important;
    max-width: 420px !important;
    justify-content: center !important;
    font-size: 0.84rem !important;
    padding: 12px 16px !important;
  }
}

/* Auth Registration Success Celebration View */
.auth-register-success-view {
  animation: authFadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authFadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes authSuccessPulse {
  0% {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.6);
    transform: scale(1.04);
  }
  100% {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    transform: scale(1);
  }
}

/* ==============================================================
   FOOTER
   ============================================================== */
.footer {
  background: #020305;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 70px 0 30px;
  position: relative;
  margin-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.35fr;
  gap: 36px;
  margin-bottom: 50px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 2px;
  background: var(--accent-red);
  box-shadow: 0 0 8px rgba(255, 42, 95, 0.5);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-size: 0.86rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(-4px);
}

/* Contact item cards */
.footer-contact-list {
  gap: 9px;
}

.footer-contact-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.footer-contact-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateX(-3px);
  color: #fff;
}

.footer-contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}

.footer-contact-icon.icon-phone {
  color: var(--accent-red);
  background: rgba(255, 42, 95, 0.1);
  border: 1px solid rgba(255, 42, 95, 0.25);
}

.footer-contact-icon.icon-telegram {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.footer-contact-icon.icon-channel {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.footer-contact-icon.icon-youtube {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.footer-contact-icon.icon-github {
  color: #f0f6fc;
  background: rgba(240, 246, 252, 0.1);
  border: 1px solid rgba(240, 246, 252, 0.25);
}

.footer-contact-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.82rem;
  gap: 8px;
}

.footer-contact-label {
  color: var(--text-muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.footer-contact-text strong {
  color: #fff;
  font-size: 0.82rem;
  font-family: var(--font-tech);
  direction: ltr;
}

.footer-contact-item:hover .footer-contact-text strong {
  color: #38bdf8;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==============================================================
   CERTIFICATE SHOWCASE & CREDENTIALS
   ============================================================== */
.cert-section {
  position: relative;
  margin: 60px 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: stretch;
}

/* Certificate Showcase Visual Frame */
.cert-mockup-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cert-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 42, 95, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 45px rgba(255, 42, 95, 0.25);
  background: #080a0f;
  transition: all var(--transition-smooth);
}

.cert-image-frame:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 42, 95, 0.7);
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.95), 0 0 60px rgba(255, 42, 95, 0.4);
}

.cert-image-badge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(8, 10, 15, 0.9);

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

.cert-template-img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter var(--transition-smooth);
}

.cert-meta-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(13, 17, 23, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #cbd5e1;
  flex-wrap: wrap;
  gap: 12px;
}

.cert-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-mockup-card {
  background: radial-gradient(circle at 80% 20%, rgba(255, 42, 95, 0.08) 0%, rgba(13, 17, 23, 0.98) 70%);
  border: 2px solid rgba(255, 42, 95, 0.4);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 42, 95, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.cert-mockup-card::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  bottom: 8px;
  left: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

/* Watermark Lion Emblem */
.cert-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  opacity: 0.045;
  pointer-events: none;
  background: url('../assets/images/logo.jpg') center/cover no-repeat;
  filter: grayscale(1);
}

.cert-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  position: relative;
  z-index: 2;
}

.cert-issuer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cert-issuer-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 42, 95, 0.5);
  box-shadow: 0 0 15px rgba(255, 42, 95, 0.3);
}

.cert-issuer-text h4 {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.cert-issuer-text span {
  font-size: 0.72rem;
  color: var(--accent-red);
  font-family: var(--font-tech);
  letter-spacing: 1px;
}

.cert-badge-ribbon {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.cert-badge-seal {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 42, 95, 0.15);
  border: 1px solid rgba(255, 42, 95, 0.35);
  color: #ff85a1;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.cert-body-main {
  text-align: center;
  position: relative;
  z-index: 2;
  margin: 6px 0;
}

.cert-doc-type {
  font-family: var(--font-tech);
  font-size: 0.82rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cert-title-en {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
  margin: 8px 0;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.cert-title-fa {
  font-size: 1.05rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.cert-recipient-line {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cert-recipient-name {
  font-family: var(--font-tech);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ff3366;
  text-shadow: 0 0 15px rgba(255, 42, 95, 0.4);
  letter-spacing: 1px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  display: inline-block;
  min-width: 240px;
}

.cert-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  gap: 16px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.cert-id-tag {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cert-id-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.cert-id-code {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

.cert-qr-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cert-qr-icon {
  width: 32px;
  height: 32px;
  background: #ffffff;
  padding: 3px;
  border-radius: 4px;
}

/* Specs & Features Column */
.cert-details-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;

}

.cert-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cert-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cert-feat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 42, 95, 0.12);
  border: 1px solid rgba(255, 42, 95, 0.3);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

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

.cert-feat-text p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Criteria Alert Box */
.cert-criteria-box {
  background: rgba(255, 42, 95, 0.04);
  border: 1px solid rgba(255, 42, 95, 0.3);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.cert-criteria-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.cert-criteria-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.cert-criteria-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0a66c2;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-linkedin:hover {
  background: #004182;
  box-shadow: 0 4px 16px rgba(10, 102, 194, 0.4);
}

/* ==============================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ============================================================== */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 10px;
  }

  .nav-item-link {
    font-size: 0.82rem;
    padding: 4px 2px;
  }

  .brand-subtitle {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats-row {
    justify-content: center;
  }

  .course-spotlight-grid {
    grid-template-columns: 1fr;
  }

  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-cards-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .header {
    z-index: 10000 !important;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10002 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
  }

  .mobile-menu-toggle svg {
    pointer-events: none !important;
  }

  .nav-menu {
    position: fixed !important;
    top: 68px !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #07090e !important;
    background-color: rgba(7, 9, 14, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 20px 24px 30px !important;
    gap: 12px !important;
    border-bottom: 2px solid rgba(255, 42, 95, 0.35) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85) !important;
    transform: translateY(-160%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
    z-index: 99999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    max-height: calc(100vh - 70px) !important;
    overflow-y: auto !important;
    display: flex !important;
  }

  .nav-menu.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .nav-menu > li {
    width: 100% !important;
    text-align: right !important;
  }

  .nav-menu > li > a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    color: #e2e8f0 !important;
  }

  .nav-menu > li > a:hover,
  .nav-menu > li > a.active {
    background: rgba(255, 42, 95, 0.12) !important;
    border-color: rgba(255, 42, 95, 0.35) !important;
    color: #fff !important;
  }
}

@media (max-width: 768px) {

  .nav-actions .btn-primary span {
    display: none;
  }

  .nav-actions .btn-primary {
    padding: 10px 14px;
  }

  .hero-title {
    font-size: 1.45rem !important;
    line-height: 1.35 !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-title strong {
    font-size: 1.55rem !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-emblem-card {
    padding: 24px 18px;
  }

  .hero-emblem-halo {
    width: 200px;
    height: 200px;
  }

  .course-features-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .featured-course-card {
    padding: 24px;
  }

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

  .hero-stats-row {
    flex-direction: column;
    gap: 16px;
  }

  .cart-drawer {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.28rem !important;
    line-height: 1.38 !important;
  }

  .hero-title strong {
    font-size: 1.38rem !important;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }
}

/* ==============================================================
   AUTHENTICATION & USER PROFILE STYLES
   ============================================================== */
.auth-modal-box {
  max-width: 540px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 28px;
  background: #0d1017;
  border: 1px solid rgba(255, 42, 95, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 45px rgba(255, 42, 95, 0.22);
  border-radius: var(--radius-lg);
}

.auth-modal-box::-webkit-scrollbar {
  width: 5px;
}

.auth-modal-box::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.auth-modal-box::-webkit-scrollbar-thumb {
  background: rgba(255, 42, 95, 0.45);
  border-radius: 4px;
}

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

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(255, 42, 95, 0.12);
  border: 1px solid rgba(255, 42, 95, 0.3);
  border-radius: 50px;
  font-size: 0.72rem;
  font-family: var(--font-tech);
  color: var(--accent-red);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.auth-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 22px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.auth-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, rgba(255, 42, 95, 0.25) 0%, rgba(255, 42, 95, 0.1) 100%);
  color: #fff;
  border: 1px solid rgba(255, 42, 95, 0.4);
  box-shadow: 0 4px 15px rgba(255, 42, 95, 0.2);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

@media (max-width: 580px) {
  .form-grid-row {
    grid-template-columns: 1fr;
  }
}

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

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 12px 42px 12px 14px;
  background: rgba(15, 20, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

textarea.form-input,
.form-input[rows] {
  padding: 12px 14px;
  min-height: 85px;
  height: auto;
  line-height: 1.6;
  resize: vertical;
}

.form-input[dir="ltr"] {
  padding-left: 48px;
  padding-right: 48px;
}

.form-input[type="password"] {
  padding-left: 54px !important;
  padding-right: 48px !important;
  letter-spacing: 3px;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-red);
  background: rgba(20, 26, 38, 0.95);
  box-shadow: 0 0 18px rgba(255, 42, 95, 0.28);
}

.btn-toggle-pass {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 3;
}

.btn-toggle-pass:hover {
  color: #fff;
  background: rgba(255, 42, 95, 0.25);
  border-color: rgba(255, 42, 95, 0.5);
  box-shadow: 0 0 12px rgba(255, 42, 95, 0.3);
}

/* Dedicated High-Tech SMS OTP Card */
.auth-otp-card {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.92) 0%, rgba(10, 14, 23, 0.98) 100%);
  border: 1px solid rgba(255, 42, 95, 0.32);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

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

.auth-otp-card:focus-within {
  border-color: rgba(255, 42, 95, 0.65);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 42, 95, 0.18);
}

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

.auth-otp-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-otp-hint {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.otp-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
  animation: fadeIn 0.3s ease;
}

.auth-phone-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.auth-phone-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.btn-send-otp {
  background: linear-gradient(135deg, rgba(255, 42, 95, 0.18) 0%, rgba(225, 29, 72, 0.28) 100%);
  border: 1px solid rgba(255, 42, 95, 0.55);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(255, 42, 95, 0.18);
}

.btn-send-otp:hover:not(:disabled) {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 42, 95, 0.5);
  transform: translateY(-1px);
}

.btn-send-otp:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-otp-entry-box {
  background: rgba(6, 9, 15, 0.85);
  border: 1px solid rgba(255, 42, 95, 0.4);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 14px;
  animation: slideDownFade 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-otp-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.otp-timer {
  color: var(--accent-red);
  font-family: var(--font-tech);
  font-weight: 800;
  letter-spacing: 1.5px;
  background: rgba(255, 42, 95, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 42, 95, 0.25);
}

.auth-otp-entry-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.otp-digits-input {
  letter-spacing: 10px !important;
  font-weight: 800 !important;
  font-size: 1.3rem !important;
  text-align: center !important;
  font-family: var(--font-tech) !important;
  background: rgba(4, 7, 12, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  padding: 10px 14px !important;
  flex: 1;
  color: #fff !important;
}

.otp-digits-input:focus {
  border-color: var(--accent-red) !important;
  box-shadow: 0 0 20px rgba(255, 42, 95, 0.4) !important;
}

.btn-verify-otp {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border: 1px solid #10b981;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-verify-otp:hover {
  background: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.55);
  transform: translateY(-1px);
}

@media (max-width: 540px) {
  .auth-phone-row {
    flex-direction: column;
  }

  .btn-send-otp {
    width: 100%;
  }

  .auth-otp-entry-row {
    flex-direction: column;
  }

  .btn-verify-otp {
    width: 100%;
  }
}

#otpStatusMsg {
  font-size: 0.78rem;
  margin-top: 8px;
  min-height: 18px;
  transition: color 0.2s;
}

.auth-submit-btn {
  width: 100%;
  padding: 13px 20px;
  margin-top: 8px;
  justify-content: center;
  font-size: 0.95rem;
}

.auth-switch-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.auth-switch-link button {
  background: none;
  border: none;
  color: var(--accent-red);
  font-family: var(--font-main);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* User Profile Menu Wrapper & Dropdown */
.user-menu-wrapper {
  position: relative;
  display: inline-block;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 42, 95, 0.35);
  border-radius: 50px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  outline: none;
}

.user-pill:hover,
.user-menu-wrapper.open .user-pill {
  background: rgba(255, 42, 95, 0.12);
  border-color: var(--accent-red);
  box-shadow: 0 0 16px rgba(255, 42, 95, 0.25);
}

.user-pill-chevron {
  transition: transform 0.25s ease;
  color: #94a3b8;
}

.user-menu-wrapper.open .user-pill-chevron {
  transform: rotate(180deg);
  color: var(--accent-red);
}

.user-pill-avatar,
.user-avatar-small {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2a5f 0%, #b80033 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
  color: #fff;
}

.user-pill-name {
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 270px;
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 42, 95, 0.35);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 42, 95, 0.15);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1200;
  text-align: right;
}

.user-dropdown-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  margin-bottom: 4px;
}

.user-dropdown-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-red);
  box-shadow: 0 0 10px rgba(255, 42, 95, 0.3);
  flex-shrink: 0;
}

.user-dropdown-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-dropdown-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-meta {
  font-size: 0.73rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  direction: ltr;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 4px;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.16s ease;
  background: transparent;
  border: none;
  width: 100%;
  text-align: right;
  cursor: pointer;
  box-sizing: border-box;
}

.user-dropdown-item svg {
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.16s ease, transform 0.16s ease;
}

.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateX(-3px);
}

.user-dropdown-item:hover svg {
  color: var(--accent-red);
  transform: scale(1.1);
}

.user-dropdown-item.user-dropdown-logout {
  color: #f87171;
}

.user-dropdown-item.user-dropdown-logout svg {
  color: #f87171;
}

.user-dropdown-item.user-dropdown-logout:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.user-dropdown-item.user-dropdown-logout:hover svg {
  color: #ef4444;
}

@media (max-width: 600px) {
  .user-dropdown-menu {
    position: fixed !important;
    top: calc(62px + env(safe-area-inset-top, 0px)) !important;
    left: 12px !important;
    right: auto !important;
    width: min(300px, calc(100vw - 24px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 80px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 24px rgba(255, 42, 95, 0.2) !important;
    z-index: 10001 !important;
    transform: translateY(-6px) scale(0.98);
  }

  .user-dropdown-menu.active {
    transform: translateY(0) scale(1) !important;
  }
}

/* Deprecated Fullscreen Modal (Replaced by Standard Header User Dropdown) */
#dashboardModal {
  display: none !important;
}

.dashboard-modal-box {
  max-width: 600px;
  width: 100%;
  padding: 32px 28px;
}

.dash-user-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.dash-avatar-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2a5f 0%, #7e0020 100%);
  border: 2px solid rgba(255, 42, 95, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 42, 95, 0.35);
}

.dash-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-fullname {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.dash-meta-row {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dash-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.dash-courses-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.dash-course-card {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition-fast);
}

.dash-course-card:hover {
  border-color: rgba(255, 42, 95, 0.35);
  background: rgba(255, 42, 95, 0.03);
}

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

.dash-course-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
}

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

.dash-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff2a5f 0%, #ff6b8b 100%);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 42, 95, 0.5);
  transition: width 0.4s ease;
}

.dash-course-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dash-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==============================================================
   CYNET FINAL EXAM & ASSESSMENT PORTAL STYLES (RESPONSIVE & CLEAN)
   ============================================================== */
.exam-banner-card {
  background: linear-gradient(145deg, rgba(255, 42, 95, 0.08) 0%, rgba(13, 17, 23, 0.98) 100%);
  border: 1px solid rgba(255, 42, 95, 0.35);
  border-radius: var(--radius-lg, 16px);
  padding: 26px 30px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(255, 42, 95, 0.04);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.exam-banner-card:hover {
  border-color: rgba(255, 42, 95, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), inset 0 0 35px rgba(255, 42, 95, 0.08);
}

.exam-banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 42, 95, 0.2), transparent 75%);
  pointer-events: none;
}

/* Emerald / AI Theme Variant */
.exam-banner-card.exam-banner-ai {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, rgba(13, 17, 23, 0.98) 100%);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(16, 185, 129, 0.04);
}

.exam-banner-card.exam-banner-ai:hover {
  border-color: rgba(16, 185, 129, 0.65);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.15);
}

.exam-banner-card.exam-banner-ai::before {
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.22), transparent 75%);
}

/* Crimson / OSINT Theme Variant */
.exam-banner-card.exam-banner-osint {
  background: linear-gradient(145deg, rgba(255, 42, 95, 0.08) 0%, rgba(13, 17, 23, 0.98) 100%);
  border-color: rgba(255, 42, 95, 0.4);
}

/* Top Header Row with Badge & Passing Pill */
.exam-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.exam-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 42, 95, 0.12);
  border: 1px solid rgba(255, 42, 95, 0.35);
  color: #ff85a1;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-tech, monospace);
  letter-spacing: 0.3px;
}

.exam-banner-ai .exam-banner-badge {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.exam-banner-badge .dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background-color: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulseDot 2s infinite ease-in-out;
  flex-shrink: 0;
}

.exam-pass-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.exam-pass-badge.badge-crimson-pill {
  background: rgba(255, 42, 95, 0.12);
  border-color: rgba(255, 42, 95, 0.35);
  color: #ff85a1;
}

/* Exam Banner Content/Body: stacked vertically and full width! */
.exam-banner-content,
.exam-banner-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.exam-banner-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.6;
  display: block;
  width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.exam-banner-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.85;
  margin: 0;
  width: 100%;
  max-width: 900px;
}

/* Perks Row */
.exam-perks-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.exam-perk-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 0.84rem;
  color: #e2e8f0;
  font-weight: 600;

  transition: border-color 0.2s, background 0.2s;
}

.exam-banner-ai .exam-perk-item {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.04);
}

.exam-banner-ai .exam-perk-item:hover {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.08);
}

.exam-banner-osint .exam-perk-item {
  border-color: rgba(255, 42, 95, 0.2);
  background: rgba(255, 42, 95, 0.04);
}

.exam-banner-osint .exam-perk-item:hover {
  border-color: rgba(255, 42, 95, 0.45);
  background: rgba(255, 42, 95, 0.08);
}

.exam-perk-item svg {
  flex-shrink: 0;
}

/* Action Bar at bottom */
.exam-banner-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  margin-top: 4px;
}

.exam-action-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.exam-banner-action .btn,
.exam-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: var(--radius-md, 10px);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: normal !important;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.exam-start-btn span,
.exam-banner-action .btn span {
  white-space: normal !important;
  word-break: break-word;
  text-align: center;
}

.exam-banner-ai .btn-primary {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  border-color: #10b981 !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35) !important;
  color: #fff !important;
}

.exam-banner-ai .btn-primary:hover {
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5) !important;
  transform: translateY(-2px);
}

.exam-banner-osint .btn-primary {
  background: linear-gradient(135deg, #e11d48 0%, #ff2a5f 100%) !important;
  border-color: var(--accent-red) !important;
  box-shadow: 0 4px 18px rgba(255, 42, 95, 0.35) !important;
  color: #fff !important;
}

.exam-banner-osint .btn-primary:hover {
  box-shadow: 0 6px 24px rgba(255, 42, 95, 0.5) !important;
  transform: translateY(-2px);
}

/* Horizontal variant support for course landing pages */
.exam-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 42, 95, 0.25) 0%, rgba(255, 42, 95, 0.05) 100%);
  border: 1px solid rgba(255, 42, 95, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(255, 42, 95, 0.3);
}

.exam-banner-card:has(.exam-icon-wrap) {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.exam-banner-card:has(.exam-icon-wrap) .exam-banner-content {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  width: auto;
}

/* Mobile Responsiveness for Exam Portal */
@media (max-width: 768px) {
  .exam-banner-card {
    padding: 18px 14px;
    gap: 14px;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
  }

  .exam-banner-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .exam-banner-badge {
    max-width: 100%;
    white-space: normal;
    font-size: 0.74rem;
    padding: 6px 12px;
    line-height: 1.45;
    word-break: break-word;
    box-sizing: border-box;
  }

  .exam-pass-badge {
    max-width: 100%;
    white-space: normal;
    font-size: 0.75rem;
    padding: 5px 12px;
    word-break: break-word;
    box-sizing: border-box;
  }

  .exam-banner-title {
    font-size: 1.05rem;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .exam-banner-desc {
    font-size: 0.85rem;
    line-height: 1.75;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .exam-perks-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .exam-perk-item {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.8rem;
    padding: 8px 12px;
    white-space: normal;
    word-break: break-word;
  }

  .exam-banner-action {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .exam-banner-action .btn,
  .exam-start-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 0.88rem;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }

  .exam-action-info {
    justify-content: center;
    text-align: center;
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .exam-banner-card:has(.exam-icon-wrap) {
    flex-direction: column;
    align-items: stretch;
  }

  .exam-banner-card:has(.exam-icon-wrap) .exam-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Exam Modal */
.exam-modal-box {
  max-width: 820px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.exam-modal-header {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.exam-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.exam-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.exam-meta-item strong {
  color: #fff;
}

.exam-timer-display {
  font-family: var(--font-tech);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-red);
  letter-spacing: 1px;
}

.exam-questions-scroll {
  overflow-y: auto;
  max-height: 52vh;
  padding-left: 6px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.exam-question-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color var(--transition-fast);
}

.exam-question-card:hover {
  border-color: rgba(255, 42, 95, 0.25);
}

.exam-q-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.exam-q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 42, 95, 0.15);
  border: 1px solid rgba(255, 42, 95, 0.35);
  color: var(--accent-red);
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.exam-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exam-option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(15, 20, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.86rem;
  color: #cbd5e1;
}

.exam-option-label:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.exam-option-label input[type="radio"] {
  accent-color: var(--accent-red);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.exam-option-label.selected {
  background: rgba(255, 42, 95, 0.1);
  border-color: var(--accent-red);
  color: #fff;
}

.exam-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.exam-result-box {
  text-align: center;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.exam-score-dial {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tech);
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0 auto;
}

.score-pass {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.04) 70%);
  border: 3px solid #10b981;
  color: #10b981;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.35);
}

.score-fail {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.04) 70%);
  border: 3px solid #ef4444;
  color: #ef4444;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.35);
}

/* ==============================================================
   CYNET CTF ARENA STYLES (Capture The Flag Platform)
   ============================================================== */
.ctf-hero {
  padding: 85px 0 60px;
  background-color: #030408;
  background-image:
    radial-gradient(ellipse 90% 55% at 50% 12%, rgba(255, 42, 95, 0.2) 0%, rgba(139, 92, 246, 0.09) 35%, rgba(6, 182, 212, 0.04) 60%, transparent 80%),
    radial-gradient(circle at 10% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(255, 42, 95, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, rgba(3, 4, 8, 0.2) 0%, #030408 100%);
  border-bottom: 1px solid rgba(255, 42, 95, 0.25);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -30px 60px rgba(0, 0, 0, 0.85);
}

.ctf-main-headline {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: -0.3px;
}
@media (max-width: 768px) {
  .ctf-telemetry-hud,
  .ctf-nav-cta {
    display: none !important;
  }
  .ctf-hero {
    padding: 55px 0 45px;
  }
  .ctf-main-headline {
    font-size: 1.55rem;
    line-height: 1.38;
  }
}
@media (max-width: 480px) {
  .ctf-main-headline {
    font-size: 1.35rem;
  }
}

/* 3D Horizon Perspective Cyber Grid - Receding into distance with smooth fade */
.ctf-hero::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -25%;
  width: 150%;
  height: 420px;
  background-image:
    linear-gradient(rgba(255, 42, 95, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 42, 95, 0.15) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(340px) rotateX(68deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.45) 45%, transparent 90%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.45) 45%, transparent 90%);
  pointer-events: none;
  z-index: 1;
  animation: ctfGridPulse 8s ease-in-out infinite alternate;
}

@keyframes ctfGridPulse {
  0% {
    opacity: 0.5;
  }

  100% {
    opacity: 0.85;
  }
}

/* Glowing Neon Cyber Laser Horizon Line */
.ctf-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(6, 182, 212, 0.6) 30%, rgba(255, 42, 95, 0.95) 50%, rgba(6, 182, 212, 0.6) 70%, transparent 95%);
  box-shadow: 0 0 20px rgba(255, 42, 95, 0.85), 0 0 40px rgba(6, 182, 212, 0.4);
  pointer-events: none;
  z-index: 2;
}

/* Floating Corner Tactical Telemetry Marks */
.ctf-hud-mark {
  position: absolute;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  z-index: 3;
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ctf-hud-mark.top-right {
  top: 18px;
  right: 24px;
}

.ctf-hud-mark.top-left {
  top: 18px;
  left: 24px;
}

@media (max-width: 991px) {
  .ctf-hud-mark {
    display: none;
  }
}

/* High-Tech Tactical Inactive / Containment Notice Box */
.ctf-containment-banner {
  background: rgba(14, 12, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  padding: 20px 24px;
  max-width: 820px;
  margin: 0 auto 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: right;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 5;
}

.ctf-containment-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 0 10px #fbbf24;
}

.ctf-containment-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.ctf-containment-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0 0 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctf-containment-desc {
  font-size: 0.86rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.75;
}

.ctf-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.ctf-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

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

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

.ctf-stat-card {
  background: rgba(13, 17, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;

  transition: all var(--transition-fast);
}

.ctf-stat-card:hover {
  border-color: rgba(255, 42, 95, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.ctf-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ctf-stat-val {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.ctf-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Category Filter Tabs */
.ctf-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.ctf-filter-btn {
  padding: 9px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctf-filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.ctf-filter-btn.active {
  background: linear-gradient(135deg, rgba(255, 42, 95, 0.25) 0%, rgba(255, 42, 95, 0.1) 100%);
  border-color: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 42, 95, 0.25);
}

/* Challenges Grid */
.ctf-challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .ctf-challenges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ctf-challenges-grid {
    grid-template-columns: 1fr;
  }
}

.ctf-card {
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.ctf-card:hover {
  border-color: rgba(255, 42, 95, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 42, 95, 0.12);
}

.ctf-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ctf-cat-pill {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ctf-diff-badge {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.diff-easy {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.diff-medium {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #67e8f9;
}

.diff-hard {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.diff-insane {
  background: rgba(255, 42, 95, 0.2);
  border: 1px solid var(--accent-red);
  color: #ff2a5f;
  box-shadow: 0 0 10px rgba(255, 42, 95, 0.3);
}

.ctf-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.4;
}

.ctf-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ctf-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ctf-points-val {
  font-family: var(--font-tech);
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
}

.ctf-points-val span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-main);
  margin-right: 3px;
}

.ctf-solves-count {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==============================================================
   CYNET CTF ARENA & CREATIVE HACKER LEADERBOARD STYLES
   Optimized for 60-120 FPS: hardware transforms, no heavy blurs
   ============================================================== */

/* 1. Cyber Telemetry Top HUD */
.ctf-telemetry-hud {
  background: rgba(9, 11, 18, 0.96);
  border-bottom: 1px solid rgba(255, 42, 95, 0.22);
  padding: 9px 0;
  font-family: var(--font-tech);
  font-size: 0.76rem;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 10;
}

.hud-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hud-inner::-webkit-scrollbar {
  display: none;
}

.hud-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  flex-shrink: 0;
}

.hud-label {
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
}

.hud-val {
  color: #f1f5f9;
  font-weight: 800;
}

.hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.hud-dot.live {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.hud-badge-defcon {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #f87171;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 900;
  font-size: 0.72rem;
}

/* 2. Hacker Terminal CLI Box */
.ctf-terminal-box {
  background: rgba(11, 14, 22, 0.96);
  border: 1px solid rgba(255, 42, 95, 0.28);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 25px rgba(255, 42, 95, 0.08);
  margin: 32px auto 0;
  max-width: 920px;
  text-align: left;
  direction: ltr;
}

.terminal-topbar {
  background: rgba(16, 21, 33, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-dot.close {
  background: #ef4444;
}

.terminal-dot.minimize {
  background: #f59e0b;
}

.terminal-dot.maximize {
  background: #10b981;
}

.terminal-title {
  font-family: var(--font-tech);
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-body {
  padding: 18px 20px;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  line-height: 1.65;
  color: #cbd5e1;
  max-height: 280px;
  overflow-y: auto;
}

.terminal-line {
  margin-bottom: 6px;
}

.terminal-line.cyan {
  color: #38bdf8;
}

.terminal-line.green {
  color: #34d399;
}

.terminal-line.yellow {
  color: #fbbf24;
}

.terminal-line.red {
  color: #f87171;
}

.terminal-line.muted {
  color: #64748b;
}

.terminal-prompt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(8, 10, 16, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-prompt-symbol {
  color: var(--accent-red);
  font-weight: 900;
  font-family: var(--font-tech);
  font-size: 0.9rem;
  user-select: none;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-tech);
  font-size: 0.88rem;
  outline: none;
}

.terminal-quick-cmds {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px 14px;
  flex-wrap: wrap;
  background: rgba(8, 10, 16, 0.9);
  direction: rtl;
  text-align: right;
}

.term-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-family: var(--font-tech);
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  direction: ltr;
}

.term-chip:hover {
  background: rgba(255, 42, 95, 0.15);
  border-color: var(--accent-red);
  color: #fff;
}

/* 3. Creative Hacker Leaderboard Section */
.ctf-leaderboard-section {
  position: relative;
  padding: 80px 0 90px;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.6) 0%, rgba(13, 17, 26, 0.95) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Top 3 Podium */
.ctf-podium-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: flex-end;
  gap: 22px;
  max-width: 1040px;
  margin: 0 auto 50px;
}

.podium-card {
  border-radius: 18px;
  padding: 26px 20px;
  position: relative;
  text-align: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  background: rgba(14, 18, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

/* Rank 1 (Gold Champion) */
.podium-card.rank-1 {
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.12) 0%, rgba(16, 20, 32, 0.98) 100%);
  border: 1px solid rgba(255, 215, 0, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 215, 0, 0.16);
  padding: 34px 22px 28px;
  z-index: 2;
}

/* Rank 2 (Silver Specialist) */
.podium-card.rank-2 {
  background: linear-gradient(180deg, rgba(192, 192, 192, 0.09) 0%, rgba(14, 18, 28, 0.98) 100%);
  border: 1px solid rgba(192, 192, 192, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(192, 192, 192, 0.1);
}

/* Rank 3 (Bronze Operator) */
.podium-card.rank-3 {
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.09) 0%, rgba(14, 18, 28, 0.98) 100%);
  border: 1px solid rgba(205, 127, 50, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(205, 127, 50, 0.1);
}

.podium-crown {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 900;
  background: rgba(255, 215, 0, 0.16);
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 3px 10px;
  border-radius: 20px;
}

.podium-avatar-wrap {
  width: 82px;
  height: 82px;
  margin: 10px auto 14px;
  position: relative;
  border-radius: 50%;
  padding: 4px;
}

.rank-1 .podium-avatar-wrap {
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.45);
}

.rank-2 .podium-avatar-wrap {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  box-shadow: 0 0 16px rgba(226, 232, 240, 0.3);
}

.rank-3 .podium-avatar-wrap {
  background: linear-gradient(135deg, #d97706, #92400e);
  box-shadow: 0 0 16px rgba(217, 119, 6, 0.3);
}

.podium-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0b0f19;
  display: block;
}

.podium-rank-tag {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tech);
  font-weight: 900;
  font-size: 0.82rem;
  border: 2px solid #0b0f19;
}

.rank-1 .podium-rank-tag {
  background: #ffd700;
  color: #000;
}

.rank-2 .podium-rank-tag {
  background: #cbd5e1;
  color: #0f172a;
}

.rank-3 .podium-rank-tag {
  background: #cd7f32;
  color: #fff;
}

.podium-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.podium-team {
  font-family: var(--font-tech);
  font-size: 0.76rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.podium-score {
  font-family: var(--font-tech);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.rank-1 .podium-score {
  color: #fde047;
  text-shadow: 0 0 15px rgba(253, 224, 71, 0.4);
}

.rank-2 .podium-score {
  color: #e2e8f0;
}

.rank-3 .podium-score {
  color: #fdba74;
}

.podium-score span {
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 4px;
  color: #94a3b8;
}

.podium-spec-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  margin-bottom: 14px;
}

.podium-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
}

.podium-stat-box {
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 4px;
  border-radius: 6px;
}

.podium-stat-num {
  font-family: var(--font-tech);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.podium-stat-lbl {
  color: #64748b;
  font-size: 0.68rem;
  margin-top: 2px;
}

.podium-trophy-badge {
  margin-top: 14px;
  background: rgba(255, 215, 0, 0.14);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #fef08a;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* User Personal Standing Banner (CTF Arena) */
.lb-user-banner {
  background: linear-gradient(135deg, rgba(14, 18, 28, 0.95) 0%, rgba(20, 26, 40, 0.92) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  padding: 16px 24px;
  max-width: 1040px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(56, 189, 248, 0.04);
  position: relative;
  overflow: hidden;
}

.lb-user-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-red) 0%, #38bdf8 100%);
}

.lb-user-banner-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 260px;
}

.lb-user-avatar-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  min-width: 56px;
  max-width: 56px;
  min-height: 56px;
  max-height: 56px;
  flex-shrink: 0;
}

.lb-user-avatar-wrap.guest {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.lb-user-banner-avatar {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #ff2a5f !important;
  box-shadow: 0 0 16px rgba(255, 42, 95, 0.4) !important;
  display: block !important;
}

.lb-user-status-dot {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid #0d1117;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.lb-user-banner-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.lb-user-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: var(--font-tech);
  letter-spacing: 0.5px;
}

.lb-user-banner-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 1px 0;
}

.lb-user-banner-sub {
  font-size: 0.8rem;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lb-user-banner-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lb-user-banner-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lb-user-stat-card {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 16px;
  text-align: center;
  min-width: 105px;
  transition: all 0.25s ease;
}

.lb-user-stat-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.lb-user-stat-val {
  font-family: var(--font-tech);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.lb-user-stat-val.text-cyan {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.lb-user-stat-lbl {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 2px;
}

.lb-user-banner-cta {
  font-size: 0.78rem !important;
  padding: 8px 14px !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  white-space: nowrap !important;
}

@media (max-width: 768px) {
  .lb-user-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 14px;
    margin-bottom: 20px;
  }
  .lb-user-banner-right {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .lb-user-banner-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 8px;
  }
  .lb-user-stat-card {
    min-width: 0;
    padding: 8px 10px;
  }
  .lb-user-banner-cta {
    width: 100%;
    justify-content: center;
  }
}

/* Leaderboard Controls (Tabs & Search) */
.lb-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto 20px;
  flex-wrap: wrap;
}

.lb-tab-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 17, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 4px;
}

.lb-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.lb-tab-btn.active {
  background: linear-gradient(135deg, rgba(255, 42, 95, 0.25) 0%, rgba(255, 42, 95, 0.1) 100%);
  border: 1px solid rgba(255, 42, 95, 0.4);
  color: #fff;
}

.lb-search-wrap {
  position: relative;
  min-width: 260px;
}

.lb-search-input {
  width: 100%;
  background: rgba(13, 17, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 36px 8px 14px;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.lb-search-input:focus {
  border-color: var(--accent-red);
}

.lb-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

/* Leaderboard Full Table */
.lb-table-card {
  background: rgba(13, 17, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  max-width: 1040px;
  margin: 0 auto 30px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.lb-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.86rem;
  white-space: nowrap;
}

.lb-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 15px 18px;
  font-weight: 800;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.lb-table td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  vertical-align: middle;
}

.lb-table tr:hover td {
  background: rgba(255, 42, 95, 0.035);
}

.lb-rank-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tech);
  font-weight: 900;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
}

.lb-rank-badge.rank-1 {
  background: #ffd700;
  color: #000;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.lb-rank-badge.rank-2 {
  background: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 0 10px rgba(203, 213, 225, 0.3);
}

.lb-rank-badge.rank-3 {
  background: #cd7f32;
  color: #fff;
  box-shadow: 0 0 10px rgba(205, 127, 50, 0.3);
}

.lb-player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lb-player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.lb-player-name {
  font-weight: 800;
  color: #fff;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lb-player-team {
  font-size: 0.72rem;
  color: #64748b;
  font-family: var(--font-tech);
}

.lb-spec-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  font-family: var(--font-tech);
}

.lb-spec-pill.osint {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.lb-spec-pill.web {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.lb-spec-pill.hardware {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.lb-spec-pill.crypto {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.lb-spec-pill.reverse {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.lb-solves-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 110px;
}

.lb-solves-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.lb-solves-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-red), #ff758c);
  border-radius: 3px;
}

.lb-fb-badge {
  color: #f97316;
  font-weight: 800;
  font-family: var(--font-tech);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.lb-points-cell {
  font-family: var(--font-tech);
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
}

.lb-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #94a3b8;
}

.lb-status-dot.online::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.lb-status-dot.offline::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
}

/* 4. Live Hack Solves Ticker */
.lb-ticker-card {
  background: rgba(10, 13, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 18px;
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lb-ticker-badge {
  background: rgba(255, 42, 95, 0.15);
  border: 1px solid rgba(255, 42, 95, 0.35);
  color: var(--accent-red);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lb-ticker-content {
  flex: 1;
  overflow: hidden;
  font-size: 0.82rem;
  color: #cbd5e1;
}

@media (max-width: 900px) {
  .ctf-podium-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .podium-card.rank-1 {
    order: -1;
  }

  .lb-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .lb-tab-group {
    overflow-x: auto;
  }
}

/* ==============================================================
   DEDICATED FULL-PAGE DASHBOARD STYLES (CYNET OPERATIONS PORTAL)
   ============================================================== */
.dash-page-body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 15% 15%, rgba(255, 42, 95, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 85%, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
}

.dash-app-container {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 20px 60px;
  flex-grow: 1;
}

.dash-app-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 992px) {
  .dash-app-layout {
    grid-template-columns: 1fr;
  }
}

/* Sidebar */
.dash-app-sidebar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-glass);
  position: sticky;
  top: 90px;
}

.dash-user-profile-badge {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.dash-user-profile-badge .dash-avatar-circle {
  margin: 0 auto 14px;
}

.dash-user-profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.dash-user-header-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}

.dash-wallet-chip {
  direction: rtl;
  color: #34d399;
  margin-top: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.dash-app-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: var(--font-fa);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: right;
  transition: var(--transition-fast);
}

.dash-nav-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.dash-nav-btn.active {
  background: rgba(255, 42, 95, 0.12);
  color: #fff;
  border-color: rgba(255, 42, 95, 0.35);
  box-shadow: 0 0 15px rgba(255, 42, 95, 0.15);
}

.dash-nav-btn.active svg {
  color: var(--accent-red);
}

.dash-nav-btn-mobile-logout {
  display: none !important;
}

/* Quick Navigation Hub (Overview Tab) */
.dash-quick-nav-hub {
  background: rgba(14, 18, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.dash-quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.dash-quick-nav-card {
  background: rgba(20, 26, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  color: #fff;
  font-family: inherit;
}

.dash-quick-nav-card:hover {
  background: rgba(30, 39, 56, 0.95);
  border-color: rgba(255, 42, 95, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.dash-quick-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.dash-quick-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-quick-card-info strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-quick-card-info span {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-quick-card-arrow {
  font-size: 1.1rem;
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}

.dash-quick-nav-card:hover .dash-quick-card-arrow {
  color: #ff2a5f;
  transform: translateX(-4px);
}

.dash-mobile-nav-selector-wrap {
  display: none;
}

.dash-nav-scroll-hint {
  display: none;
}

/* Tab Panels */
.dash-tab-panel {
  display: none !important;
  animation: fadeIn 0.25s ease-in-out;
}

.dash-tab-panel.active {
  display: block !important;
}

/* Welcome Hero */
.dash-welcome-card {
  background: linear-gradient(135deg, rgba(22, 27, 34, 0.95) 0%, rgba(13, 17, 23, 0.95) 100%);
  border: 1px solid rgba(255, 42, 95, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dash-welcome-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 42, 95, 0.15), transparent 70%);
  pointer-events: none;
}

/* Stats Row */
.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.dash-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-fast);
}

.dash-stat-box:hover {
  border-color: rgba(255, 42, 95, 0.3);
  transform: translateY(-2px);
}

.dash-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 42, 95, 0.1);
  border: 1px solid rgba(255, 42, 95, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  flex-shrink: 0;
}

.dash-stat-num {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

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

/* Active Challenge Card in Dashboard */
.dash-active-challenge-card {
  background: rgba(14, 18, 26, 0.95);
  border: 1px solid rgba(255, 42, 95, 0.35);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dash-challenge-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.dash-challenge-tags-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 8px;
  max-width: 100%;
}

.challenge-tag-badge {
  font-size: 0.72rem !important;
  padding: 3px 8px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.4 !important;
}

.challenge-score-badge {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  font-size: 0.72rem !important;
  padding: 3px 8px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.4 !important;
}

.challenge-code-badge {
  font-size: 0.76rem !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  direction: ltr !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.4 !important;
}

.challenge-cat-badge {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  font-size: 0.72rem !important;
  padding: 3px 10px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1.4 !important;
}

@media (max-width: 680px) {
  .dash-active-challenge-card {
    padding: 16px 14px !important;
  }

  .dash-challenge-header-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .dash-challenge-tags-group {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .dash-challenge-tags-group::-webkit-scrollbar {
    display: none !important;
  }

  .challenge-tag-badge,
  .challenge-score-badge {
    font-size: 0.68rem !important;
    padding: 2px 7px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .challenge-code-badge {
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .challenge-cat-badge {
    font-size: 0.68rem !important;
    padding: 2px 8px !important;
    white-space: nowrap !important;
  }
}

/* Card Section */
.dash-card-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
}

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
}

.dash-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

/* Support Grid in Dashboard */
.dash-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.dash-support-card {
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition-fast);
}

.dash-support-card:hover {
  border-color: rgba(255, 42, 95, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.dash-support-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==============================================================
   CYNET USER AVATAR & GENDER SELECTION STYLES (EQUAL HEIGHTS)
   ============================================================== */
/* Prevent Chrome / Webkit Yellow & White Autofill Background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0f141e inset !important;
  -webkit-text-fill-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: #ffffff;
}

.auth-gender-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
  width: 100%;
}

.gender-pill-label {
  display: block;
  cursor: pointer;
  user-select: none;
  margin: 0;
  width: 100%;
}

.gender-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.gender-pill-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
  width: 100%;
}

.gender-pill-box svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.gender-pill-label:hover .gender-pill-box {
  border-color: rgba(255, 42, 95, 0.4);
  color: #fff;
  background: rgba(255, 42, 95, 0.06);
}

.gender-pill-label:hover .gender-pill-box svg {
  transform: scale(1.1);
}

.gender-radio:checked+.gender-pill-box {
  background: rgba(255, 42, 95, 0.16);
  border-color: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 42, 95, 0.32);
}

.gender-radio:checked+.gender-pill-box svg {
  color: var(--accent-red);
}

/* User Default Cyber Avatar */
.dash-avatar-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 2px solid var(--accent-red);
  box-shadow: 0 0 20px rgba(255, 42, 95, 0.4);
  background: #080a0f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.user-pill-avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid var(--accent-red);
}

/* Avatar Interactive Upload & Hover */
.avatar-interactive-wrap:hover .avatar-hover-overlay {
  opacity: 1 !important;
}

.avatar-interactive-wrap:hover .dash-avatar-circle {
  transform: scale(1.06);
  border-color: var(--accent-red) !important;
  box-shadow: 0 0 25px rgba(255, 42, 95, 0.6) !important;
}

/* ==============================================================
   CYNET 100% ULTRA-RESPONSIVE & MOBILE POLISH SUITE
   Fully optimized for all viewport sizes, devices & touch screens
   ============================================================== */

/* 1. Global Touch & Fluid Reset */
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

/* 2. Responsive Course Elements */
.course-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 680px;
  margin: 0 auto 44px;
}

.course-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.landing-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 880px;
  margin: 32px auto 0;
}

.metric-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  text-align: center;
  transition: transform var(--transition-fast);
}

.metric-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 42, 95, 0.3);
}

.metric-val {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.metric-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.cert-grid-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.ctf-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Scoreboard Responsive Scroll Container */
.scoreboard-box {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.scoreboard-table {
  min-width: 580px;
}

/* 3. Breakpoint: Tablet (max-width: 992px) */
@media (max-width: 992px) {
  .course-pricing-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cert-grid-responsive {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dash-app-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dash-app-sidebar {
    position: static;
  }
}

/* Top Announcement Bar */
.top-bar {
  background: rgba(8, 10, 15, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  padding: 6px 0;
  color: var(--text-muted);
}

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

.top-bar-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: #34d399;
}

.top-bar-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 4. Breakpoint: Mobile & Small Tablet (max-width: 768px) */
@media (max-width: 768px) {

  /* Top Bar */
  .top-bar-badge {
    display: none;
  }

  .top-bar-content {
    justify-content: center;
    text-align: center;
  }

  .top-bar-text {
    font-size: 0.72rem;
    gap: 6px;
  }

  /* Containers */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Header & Navigation */
  .header {
    height: 64px;
  }

  .nav-actions a[href*="t.me/cynetx"] {
    display: none;
  }

  .dash-app-layout,
  .dash-content-area,
  .dash-tab-panel,
  .dash-card-section {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .dash-tab-panel,
  .dash-content-area {
    padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .site-footer,
  footer {
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .user-pill {
    padding: 5px 10px;
    gap: 6px;
  }

  .user-pill-name {
    max-width: 110px;
    font-size: 0.78rem;
  }

  .nav-menu {
    top: 64px;
    padding: 24px 20px;
    gap: 16px;
    background: rgba(8, 10, 15, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
  }

  /* Sticky Mobile Bar with Safe Area */
  .sticky-mobile-cta {
    display: flex;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  /* Course Elements */
  .course-trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 30px;
  }

  .landing-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .ctf-rules-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .course-pricing-box {
    padding: 24px 16px;
  }

  .course-banner-wrapper {
    margin-bottom: 24px;
  }

  /* Dashboard Mobile App Layout */
  .dash-app-container {
    padding: 16px 12px calc(115px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .dash-app-sidebar {
    padding: 16px 14px 14px;
    margin-bottom: 16px;
    background: rgba(14, 18, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  }

  /* Compact Sleek Mobile Profile Card */
  .dash-user-profile-badge {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: right !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(14, 18, 26, 0.75) !important;
    border-radius: var(--radius-md) !important;
  }

  .dash-user-profile-badge .dash-avatar-circle {
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    box-shadow: 0 0 15px rgba(255, 42, 95, 0.35) !important;
  }

  .dash-user-profile-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: right !important;
    gap: 2px !important;
  }

  .dash-user-header-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 2px !important;
    width: 100% !important;
  }

  .dash-user-header-row h3,
  .dash-user-profile-badge h3 {
    margin: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .dash-user-header-row .badge,
  .dash-role-badge {
    display: inline-flex !important;
    padding: 2px 8px !important;
    font-size: 0.68rem !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
    line-height: 1.4 !important;
  }

  .dash-meta-row {
    font-size: 0.72rem !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 2px !important;
  }

  .dash-meta-row #dashUsername {
    display: inline-flex !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    font-size: 0.76rem !important;
    color: #cbd5e1 !important;
  }

  .dash-meta-row #dashEmail,
  .dash-meta-row #dashPhone,
  .dash-meta-row #dashGenderRow {
    display: none !important;
  }

  .dash-wallet-chip {
    margin-top: 0 !important;
    margin-right: auto !important;
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #34d399 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 0.74rem !important;
    white-space: nowrap !important;
  }

  /* Hide duplicate dropdown selector and hint on mobile, keep clean pill scroll */
  .dash-mobile-nav-selector-wrap {
    display: none !important;
  }

  .dash-nav-scroll-hint {
    display: none !important;
  }

  /* Scrollable Nav Track with Clean Chips */
  .dash-nav-scroll-container {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
  }

  .dash-app-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding: 4px 2px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  .dash-app-nav::-webkit-scrollbar {
    display: none;
  }

  .dash-nav-btn {
    width: auto !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 7px 14px !important;
    font-size: 0.78rem !important;
    border-radius: var(--radius-full) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.03) !important;
  }

  .dash-nav-btn.active {
    background: rgba(255, 42, 95, 0.18) !important;
    border-color: #ff2a5f !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(255, 42, 95, 0.3) !important;
  }

  .dash-sidebar-logout-wrap {
    display: none !important;
  }

  .dash-nav-btn-mobile-logout {
    display: inline-flex !important;
  }

  .dash-section-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
    margin-bottom: 14px !important;
    padding-bottom: 10px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .dash-section-header-info,
  .dash-section-header > div:first-child,
  .dash-section-title {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
    white-space: normal !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px 8px !important;
    word-break: break-word !important;
    line-height: 1.5 !important;
  }

  .dash-section-title svg {
    flex-shrink: 0 !important;
  }

  .dash-section-title span {
    min-width: 0 !important;
    word-break: break-word !important;
  }

  .dash-section-header .badge,
  .dash-section-header .badge-status-active {
    font-size: 0.72rem !important;
    padding: 4px 12px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    align-self: flex-start !important;
    max-width: 100% !important;
    width: fit-content !important;
    margin-top: 4px !important;
    box-sizing: border-box !important;
  }

  .dash-section-header-btn,
  .dash-section-header > .btn,
  .dash-section-header > a.btn,
  .dash-section-header button.btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.86rem !important;
    padding: 10px 16px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    margin-top: 6px !important;
    flex-shrink: 0 !important;
  }

  /* Wallet Deposit Mode Selector Buttons (Mobile Stack) */
  .wallet-deposit-mode-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .wallet-deposit-mode-grid .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 11px 14px !important;
    font-size: 0.85rem !important;
    box-sizing: border-box !important;
  }

  .dash-sidebar-logout-wrap {
    display: none !important;
  }

  .dash-nav-btn-mobile-logout {
    display: inline-flex !important;
  }

  /* Quick Navigation Cards Grid (Mobile 1-2 Col) */
  .dash-quick-nav-hub {
    background: rgba(14, 18, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 16px 12px;
    margin-bottom: 20px;
  }

  .dash-quick-nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  @media (min-width: 540px) and (max-width: 768px) {
    .dash-quick-nav-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Floating livechat and cart offset */
  body.has-floating-cart-expanded .cynet-chat-launcher {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.has-floating-cart-expanded .cynet-chat-window {
    bottom: calc(144px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .dash-card-section {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }

  .dash-welcome-card {
    padding: 20px 16px;
  }

  .dash-welcome-card h2 {
    font-size: 1.35rem !important;
  }

  /* Modals */
  .modal-box {
    width: 95%;
    max-width: 100%;
    margin: 12px auto;
    padding: 24px 18px;
    max-height: 92vh;
  }

  /* Mobile Auth Modal Ergonomics & Proportion Scaling */
  .auth-modal-box {
    padding: 20px 16px 24px !important;
    width: 95% !important;
    max-width: 440px !important;
    border-radius: 14px !important;
    max-height: 90vh !important;
  }
  .auth-header {
    margin-bottom: 14px !important;
  }
  .auth-brand-badge {
    padding: 3px 10px !important;
    font-size: 0.68rem !important;
    margin-bottom: 8px !important;
  }
  .auth-title {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
    margin-bottom: 4px !important;
  }
  .auth-subtitle {
    font-size: 0.74rem !important;
    line-height: 1.45 !important;
  }
  .auth-tabs {
    margin-bottom: 14px !important;
    padding: 3px !important;
    gap: 4px !important;
  }
  .auth-tab-btn {
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
    gap: 6px !important;
  }
  .auth-tab-btn svg {
    width: 14px !important;
    height: 14px !important;
  }
  .auth-form {
    gap: 10px !important;
  }
  .form-group {
    gap: 4px !important;
    margin-bottom: 0 !important;
  }
  .form-label {
    font-size: 0.74rem !important;
    margin-bottom: 2px !important;
  }
  .form-input {
    padding: 8px 38px 8px 12px !important;
    font-size: 0.82rem !important;
    height: 42px !important;
    border-radius: 8px !important;
  }
  textarea.form-input,
  .form-input[rows] {
    padding: 10px 14px !important;
    height: auto !important;
    min-height: 85px !important;
    line-height: 1.6 !important;
    resize: vertical !important;
  }
  .form-input[dir="ltr"] {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
  .form-input[type="password"] {
    padding-left: 44px !important;
    padding-right: 40px !important;
    letter-spacing: 2px !important;
  }
  .input-icon {
    width: 16px !important;
    height: 16px !important;
    right: 11px !important;
  }
  .btn-toggle-pass {
    padding: 4px 6px !important;
    left: 8px !important;
  }
  .btn-toggle-pass svg {
    width: 14px !important;
    height: 14px !important;
  }
  .auth-otp-card {
    padding: 12px 14px !important;
    margin-bottom: 10px !important;
    border-radius: 12px !important;
  }
  .auth-otp-header {
    margin-bottom: 8px !important;
  }
  .auth-otp-title {
    font-size: 0.76rem !important;
    gap: 6px !important;
  }
  .auth-otp-title svg {
    width: 15px !important;
    height: 15px !important;
  }
  .auth-otp-hint {
    font-size: 0.68rem !important;
    margin-top: 2px !important;
  }
  .auth-phone-row {
    gap: 8px !important;
  }
  .btn-send-otp {
    padding: 8px 12px !important;
    font-size: 0.76rem !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
  }
  .btn-send-otp svg {
    width: 13px !important;
    height: 13px !important;
  }
  .auth-otp-entry-box {
    padding: 10px 12px !important;
    margin-top: 8px !important;
    border-radius: 10px !important;
  }
  .auth-otp-entry-header {
    font-size: 0.7rem !important;
    margin-bottom: 6px !important;
  }
  .auth-otp-entry-row {
    gap: 8px !important;
  }
  .otp-digits-input {
    letter-spacing: 5px !important;
    font-size: 1.05rem !important;
    height: 40px !important;
  }
  .btn-verify-otp {
    padding: 8px 12px !important;
    font-size: 0.76rem !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
  }
  .auth-gender-selector {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
  }
  .gender-pill-box {
    padding: 6px 2px !important;
    font-size: 0.7rem !important;
    gap: 4px !important;
    border-radius: 8px !important;
  }
  .gender-pill-box svg {
    width: 12px !important;
    height: 12px !important;
  }
  .auth-submit-btn {
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
    margin-top: 4px !important;
    border-radius: 8px !important;
  }
  .auth-submit-btn svg {
    width: 16px !important;
    height: 16px !important;
  }
  .auth-switch-link {
    font-size: 0.75rem !important;
    margin-top: 4px !important;
  }
  .auth-switch-link button {
    font-size: 0.75rem !important;
  }

  .exam-modal-box {
    width: 96%;
    padding: 20px 16px;
  }

  .exam-meta-bar {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* 5. Breakpoint: Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {

  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Brand link */
  .brand-title {
    font-size: 1.15rem;
  }

  .brand-sub,
  .brand-subtitle {
    display: none !important;
  }

  .brand-logo-wrapper,
  .brand-logo-wrap {
    width: 36px;
    height: 36px;
  }

  /* Header action buttons */
  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }

  .nav-actions a[href*="t.me"],
  .nav-actions a[href="#challenges"],
  .nav-actions a[href="#pricing"],
  .nav-actions a[href*="course-"],
  .nav-actions button[onclick*="enrollInCourse"],
  .nav-actions .btn-outline {
    display: none !important;
  }

  .nav-container,
  .header-container {
    gap: 8px !important;
  }

  .auth-open-btn {
    padding: 6px 11px !important;
    font-size: 0.78rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    border-radius: 8px !important;
  }

  .auth-open-btn span {
    display: inline !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
  }

  .user-pill {
    padding: 4px 8px !important;
    gap: 5px !important;
  }

  .user-pill-name {
    max-width: 90px !important;
    font-size: 0.74rem !important;
  }

  .user-pill-chevron {
    display: none !important;
  }

  /* Hero Headlines */
  h1,
  .hero-title {
    font-size: 1.48rem !important;
    line-height: 1.34 !important;
  }

  .hero-title strong {
    font-size: 1.58rem !important;
  }

  .section-title {
    font-size: 1.35rem !important;
  }

  .section-subtitle {
    font-size: 0.85rem !important;
  }

  /* Price Displays */
  .price-current {
    font-size: 2.3rem !important;
  }

  .price-unit {
    font-size: 0.95rem !important;
  }

  .price-old {
    font-size: 1rem !important;
  }

  /* Buttons & Inputs */
  .btn {
    padding: 10px 16px;
    font-size: 0.82rem;
  }

  .form-input {
    padding: 11px 12px;
    font-size: 0.84rem;
  }

  /* Stats & Cards: Compact 2x2 Grid on Mobile */
  .dash-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }

  .dash-stat-box {
    padding: 12px 10px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    min-height: 95px !important;
    justify-content: space-between !important;
  }

  .dash-stat-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
  }

  .dash-stat-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .dash-stat-num {
    font-size: 1.1rem !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
  }

  .dash-stat-label {
    font-size: 0.7rem !important;
    line-height: 1.3 !important;
    color: var(--text-muted) !important;
  }

  .dash-support-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ctf-stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* CTF Flag Input Group */
  .flag-input-group {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .flag-input-group input,
  .flag-input-group button {
    width: 100% !important;
  }

  /* Gender Selector */
  .auth-gender-selector {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .gender-pill-box {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 6px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  /* Sticky CTA on tiny screens: compact horizontal bar */
  .sticky-mobile-cta {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    text-align: right !important;
    padding: 8px 14px !important;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .sticky-mobile-cta .btn {
    width: auto !important;
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
    flex-shrink: 0 !important;
  }

  /* Exam Modal */
  .exam-question-item {
    padding: 14px 12px !important;
  }

  .exam-opt-text {
    font-size: 0.8rem !important;
  }

  body.ctf-page {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .ctf-telemetry-hud {
    overflow: hidden !important;
  }

  .ctf-terminal-box {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .terminal-body {
    overflow-x: auto !important;
  }

  .terminal-line {
    word-break: break-all !important;
  }
}

/* 6. Hardware Acceleration for Silky Smooth 60fps Experience */
.nav-menu,
.modal-overlay,
.sticky-mobile-cta,
.toast,
.cart-drawer,
.dash-tab-panel {
  will-change: transform, opacity;
}

/* ==============================================================
   CONTACT & COOPERATION (JOIN CYNET TEAM) STYLES
   ============================================================== */
.coop-roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.coop-role-card {
  background: linear-gradient(145deg, rgba(16, 20, 28, 0.8) 0%, rgba(8, 10, 15, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);

  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.coop-role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 42, 95, 0.5), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.coop-role-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 42, 95, 0.35);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 42, 95, 0.15);
}

.coop-role-card:hover::before {
  opacity: 1;
}

.coop-role-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coop-role-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 42, 95, 0.12);
  border: 1px solid rgba(255, 42, 95, 0.3);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 42, 95, 0.2);
}

.coop-role-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  margin: 0;
}

.coop-role-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.75;
  margin: 0;
  flex: 1;
}

.coop-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

.coop-perks li {
  font-size: 0.8rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.coop-perks .check-icon {
  color: #10b981;
  font-weight: 800;
  font-size: 0.85rem;
}

/* Contact Main Grid: Channels vs Form */
.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.contact-channels-card,
.coop-form-card {
  background: linear-gradient(145deg, rgba(14, 18, 26, 0.85) 0%, rgba(8, 10, 15, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 34px 30px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.contact-card-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.contact-card-sub {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.contact-channel-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 42, 95, 0.35);
  transform: translateX(-4px);
}

.channel-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-tg {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.icon-phone {
  background: rgba(255, 42, 95, 0.12);
  border: 1px solid rgba(255, 42, 95, 0.3);
  color: var(--accent-red);
}

.icon-channel {
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #60a5fa;
}

.icon-github {
  background: rgba(240, 246, 252, 0.12);
  border: 1px solid rgba(240, 246, 252, 0.3);
  color: #f0f6fc;
}

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

.channel-title {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 2px;
}

.channel-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.channel-desc {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
}

.channel-arrow {
  color: #64748b;
  transition: transform 0.2s;
}

.contact-channel-item:hover .channel-arrow {
  color: var(--accent-red);
  transform: translateX(-4px);
}

/* Cooperation Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.coop-form-card .form-group {
  margin-bottom: 16px;
}

.coop-form-card .form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.coop-form-card .form-control {
  width: 100%;
  padding: 11px 14px;
  background: rgba(14, 18, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition-fast);
}

.coop-form-card .form-control:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 14px rgba(255, 42, 95, 0.25);
  background: rgba(14, 18, 26, 0.95);
}

@media (max-width: 991px) {
  .coop-roles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

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

  .contact-channels-card,
  .coop-form-card {
    padding: 24px 18px;
  }
}

/* ==============================================================
   CYNET ACCOUNT HUB & DASHBOARD MODAL STYLES
   ============================================================== */
.account-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0 22px;
}

@media (max-width: 580px) {
  .account-hub-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.account-hub-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: #fff;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.account-hub-item:hover {
  background: rgba(255, 42, 95, 0.08);
  border-color: rgba(255, 42, 95, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

.account-hub-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 42, 95, 0.12);
  border: 1px solid rgba(255, 42, 95, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.account-hub-item:hover .account-hub-icon {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 42, 95, 0.5);
}

.account-hub-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.account-hub-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.account-hub-subtitle {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}


/* ==============================================================
   FEATURED CTF BATTLE CARD & ACTIVE CALLOUT (HIGH-TECH REDESIGN)
   ============================================================== */
.ctf-active-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg, 16px);
  padding: 14px 22px;
  max-width: 880px;
  margin: 0 auto 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(16, 185, 129, 0.12);
  transition: all 0.3s ease;
}
.ctf-active-callout:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 32px rgba(16, 185, 129, 0.2);
}
.ctf-active-callout-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ctf-active-callout-text {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #fff;
}
.ctf-active-callout-text .callout-lead {
  color: #34d399;
  font-weight: 700;
}
.ctf-active-callout-text .callout-tag {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.ctf-active-callout .callout-btn {
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #022c22;
}
.ctf-active-callout .callout-btn:hover {
  background: #34d399;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.5);
  color: #022c22;
}
@media (max-width: 768px) {
  .ctf-active-callout {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  .ctf-active-callout-text {
    justify-content: center;
  }
  .ctf-active-callout .callout-btn {
    width: 100%;
  }
}

/* Featured Battle Station Card */
.ctf-featured-battle-card {
  grid-column: 1 / -1;
  background: linear-gradient(165deg, rgba(20, 27, 45, 0.88) 0%, rgba(9, 13, 22, 0.96) 100%);
  border: 1px solid rgba(255, 42, 95, 0.35);
  border-radius: var(--radius-xl, 20px);
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 42, 95, 0.15);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ctf-featured-battle-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff2a5f, #f59e0b, #10b981);
}
.ctf-featured-battle-card:hover {
  border-color: rgba(255, 42, 95, 0.65);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 42, 95, 0.25);
}
.ctf-featured-battle-card.solved {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(165deg, rgba(8, 28, 22, 0.9) 0%, rgba(9, 13, 22, 0.97) 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(16, 185, 129, 0.2);
}
.ctf-featured-battle-card.solved::before {
  background: linear-gradient(90deg, #10b981, #34d399, #059669);
}

.battle-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.battle-card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #34d399;
}
.battle-card-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.badge-points {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
}
.badge-diff {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}
.badge-code {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.battle-card-title {
  font-size: 1.55rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.35;
  margin: 6px 0 10px;
}
.battle-card-desc {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.85;
  max-width: 980px;
  margin-bottom: 16px;
}

.battle-specs-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #e2e8f0;
}
.spec-pill .spec-label {
  color: #94a3b8;
  font-weight: 500;
}
.spec-pill a {
  text-decoration: none;
  font-weight: 700;
}

.battle-card-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 6px;
}
.battle-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.battle-start-cta {
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 10px;
  box-shadow: 0 0 25px rgba(255, 42, 95, 0.4);
}
.battle-dossier-btn {
  padding: 12px 20px;
  font-size: 0.88rem;
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  gap: 8px;
}
.battle-dossier-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #7dd3fc;
}

.battle-quick-flag-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: var(--radius-md, 12px);
  max-width: 680px;
}
.quick-flag-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
}
.battle-flag-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #34d399;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 8px;
}
.battle-flag-input::placeholder {
  color: #64748b;
  font-family: var(--font-tech);
  font-weight: 400;
}

.battle-solved-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 12px 18px;
  border-radius: 10px;
}
.battle-solved-banner .badge-solved {
  color: #34d399;
  font-weight: 800;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .ctf-featured-battle-card {
    padding: 22px 18px;
  }
  .battle-card-title {
    font-size: 1.25rem;
  }
  .battle-specs-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .spec-pill {
    width: 100%;
    justify-content: space-between;
  }
  .battle-action-row {
    flex-direction: column;
    width: 100%;
  }
  .battle-action-row .btn {
    width: 100%;
    justify-content: center;
  }
  .battle-quick-flag-form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .battle-quick-flag-form .btn {
    width: 100%;
  }
}

/* CTF Arena Challenge Cards */
.ctf-challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: 24px;
}

.ctf-challenge-card {
  background: rgba(14, 18, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.ctf-challenge-card:hover {
  border-color: rgba(255, 42, 95, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.ctf-challenge-card.solved {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, rgba(14, 18, 26, 0.95) 100%);
}

.ctf-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ctf-card-points {
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-red);
  background: rgba(255, 42, 95, 0.12);
  border: 1px solid rgba(255, 42, 95, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
}

.ctf-challenge-card.solved .ctf-card-points {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
}

.ctf-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.ctf-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.ctf-flag-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.ctf-flag-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-tech);
  outline: none;
  direction: ltr;
}

.ctf-flag-input:focus {
  border-color: var(--accent-red);
}

.ctf-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.ctf-filter-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ctf-filter-btn:hover,
.ctf-filter-btn.active {
  background: rgba(255, 42, 95, 0.15);
  border-color: var(--accent-red);
  color: #fff;
}
/* ==============================================================
   CYNET CTF TRIAL CHALLENGE & INTERACTIVE DOSSIER MODAL
   ============================================================== */
.ctf-modal-box {
  max-width: 780px;
  width: 100%;
  background: #090c13;
  border: 1px solid rgba(255, 42, 95, 0.4);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 50px rgba(255, 42, 95, 0.2);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ctf-modal-box::-webkit-scrollbar {
  width: 6px;
}
.ctf-modal-box::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
}
.ctf-modal-box::-webkit-scrollbar-thumb {
  background: rgba(255, 42, 95, 0.45);
  border-radius: 4px;
}
.ctf-modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.ctf-modal-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.ctf-modal-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ctf-modal-nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.ctf-modal-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.ctf-modal-tab-btn:hover {
  color: #fff;
}
.ctf-modal-tab-btn.active {
  color: #ff2a5f;
  border-bottom-color: #ff2a5f;
}
.ctf-modal-pane,
.ctf-inline-pane {
  animation: fadeIn 0.25s ease-out;
}
.ctf-modal-pane {
  display: none;
}
.ctf-modal-pane.active {
  display: block;
}
.ctf-dossier-terminal {
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 18px;
  font-family: var(--font-tech), monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  color: #cbd5e1;
  position: relative;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}
.ctf-dossier-terminal .log-line-alert {
  color: #f43f5e;
  font-weight: 700;
}
.ctf-dossier-terminal .log-line-success {
  color: #10b981;
}
.ctf-dossier-terminal .log-line-cyan {
  color: #38bdf8;
}
.ctf-dossier-terminal .log-line-amber {
  color: #fbbf24;
}
.ctf-clue-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 42, 95, 0.15);
  border: 1px dashed rgba(255, 42, 95, 0.4);
  color: #ff6b8b;
  font-family: var(--font-tech), monospace;
  font-size: 0.8rem;
  user-select: all;
  cursor: pointer;
  direction: ltr;
}
.ctf-clue-chip:hover {
  background: rgba(255, 42, 95, 0.25);
  border-color: #ff2a5f;
}
.ctf-decoder-tool {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 18px;
  margin-top: 14px;
}
.ctf-decoder-input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ctf-decoder-input {
  flex: 1;
  min-width: 220px;
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-tech), monospace;
  font-size: 0.84rem;
  direction: ltr;
  outline: none;
}
.ctf-decoder-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}
.ctf-decoder-result {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  color: #e0f2fe;
  font-family: var(--font-tech), monospace;
  font-size: 0.84rem;
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ctf-submission-box {
  margin-top: 24px;
  padding: 20px;
  background: rgba(14, 18, 26, 0.95);
  border: 1px solid rgba(255, 42, 95, 0.35);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.ctf-flag-submit-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 640px) {
  .ctf-flag-submit-row {
    flex-direction: column;
  }
  .ctf-modal-box {
    padding: 20px 14px;
  }
}
.ctf-flag-big-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.9rem;
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-tech), monospace;
  direction: ltr;
  outline: none;
  transition: all var(--transition-fast);
}
.ctf-flag-big-input:focus {
  border-color: #ff2a5f;
  box-shadow: 0 0 15px rgba(255, 42, 95, 0.3);
}
.ctf-course-bridge-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255, 42, 95, 0.08) 0%, rgba(13, 17, 23, 0.95) 100%);
  border: 1px solid rgba(255, 42, 95, 0.3);
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ==============================================================
   EMERALD / AI THEME VARIANT FOR CERTIFICATE SECTION
   ============================================================== */
.cert-section.cert-theme-emerald .cert-image-frame {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 45px rgba(16, 185, 129, 0.22);
}

.cert-section.cert-theme-emerald .cert-image-frame:hover {
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.95), 0 0 60px rgba(16, 185, 129, 0.35);
}

.cert-section.cert-theme-emerald .cert-feat-icon {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.cert-section.cert-theme-emerald .cert-details-card {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(16, 185, 129, 0.03);
}

.cert-section.cert-theme-emerald .cert-criteria-box {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.3);
}

.cert-section.cert-theme-emerald .cert-criteria-head svg {
  stroke: #10b981;
}

/* ==============================================================
   CYNET SECURE VIDEO CLASSROOM & PLAYER (ANTI-PIRACY SUITE)
   ============================================================== */

.modal-box.classroom-modal-box {
  width: 95vw;
  max-width: 1440px;
  max-height: 94vh;
  height: 94vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #080a0f;
  border: 1px solid rgba(255, 42, 95, 0.35);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 42, 95, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.classroom-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(14, 18, 26, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  gap: 14px;
}

.classroom-top-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.classroom-course-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.classroom-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  white-space: nowrap;
}

.classroom-body-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .classroom-body-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .modal-box.classroom-modal-box {
    height: 96vh;
    max-height: 96vh;
  }
}

@media (max-width: 900px) {
  #secureClassroomModal {
    padding: 0 !important;
  }

  .modal-box.classroom-modal-box {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100% !important;
    max-height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
  }

  .classroom-top-bar {
    padding: 8px 12px !important;
    gap: 8px !important;
    background: #080a0f !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .classroom-top-title-wrap {
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  .classroom-course-title {
    font-size: 0.88rem !important;
    max-width: 160px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .classroom-security-badge span {
    display: none !important;
  }

  .classroom-security-badge {
    padding: 5px !important;
    gap: 0 !important;
  }

  /* Make Video Player Sticky on Mobile directly beneath top bar */
  .cynet-player-wrapper {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    width: 100% !important;
    background: #000 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.9) !important;
  }

  .classroom-body-grid {
    display: block !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .classroom-stage {
    display: block !important;
    overflow: visible !important;
    min-height: auto !important;
  }

  .classroom-sidebar {
    display: block !important;
    overflow: visible !important;
    border-right: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .classroom-stage-details {
    padding: 16px 14px !important;
  }

  .classroom-ep-headline {
    font-size: 1.05rem !important;
  }

  .cynet-buttons-row {
    gap: 6px !important;
  }

  #ctrlVolSlider {
    display: none !important;
  }
}

/* Video Stage Area */
.classroom-stage {
  display: flex;
  flex-direction: column;
  background: #040609;
  min-height: 0;
  overflow-y: auto;
}

.cynet-player-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
}

.cynet-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.cynet-video-stage video,
.cynet-player-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Center Play Button Overlay */
.cynet-center-play-wrap {
  position: absolute;
  inset: 0;
  z-index: 14;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.cynet-center-play-wrap:hover {
  background: rgba(0, 0, 0, 0.25);
}

.cynet-center-play-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2a5f 0%, #b80033 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 42, 95, 0.7), 0 8px 24px rgba(0, 0, 0, 0.8);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}

.cynet-center-play-circle svg {
  margin-left: 4px;
}

.cynet-center-play-wrap:hover .cynet-center-play-circle,
.cynet-center-play-wrap:active .cynet-center-play-circle {
  transform: scale(1.12);
  box-shadow: 0 0 40px rgba(255, 42, 95, 0.95), 0 10px 28px rgba(0, 0, 0, 0.9);
}

.cynet-player-wrapper.is-playing .cynet-center-play-wrap {
  display: none !important;
}

.cynet-player-wrapper.is-paused .cynet-center-play-wrap {
  display: flex !important;
}

@media (max-width: 600px) {
  .cynet-center-play-circle {
    width: 56px !important;
    height: 56px !important;
  }
  .cynet-center-play-circle svg {
    width: 26px !important;
    height: 26px !important;
  }
}

/* Transparent Click & Context Protection Shield */
.cynet-shield-layer {
  position: absolute;
  inset: 0;
  z-index: 12;
  cursor: pointer;
  background: transparent;
}

/* Dynamic Floating Forensic Watermark */
.cynet-watermark-overlay {
  position: absolute;
  top: 25%;
  left: 20%;
  z-index: 15;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  font-family: var(--font-tech), monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.42);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  transition: top 3.5s cubic-bezier(0.25, 1, 0.5, 1), left 3.5s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cynet-watermark-overlay svg {
  opacity: 0.7;
}

/* Focus Blur Overlay */
.cynet-blur-guard {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: rgba(8, 10, 15, 0.88);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cynet-blur-guard.active {
  opacity: 1;
  pointer-events: auto;
}

/* Anti-Tamper Security Lockout Screen */
.cynet-tamper-guard {
  position: absolute;
  inset: 0;
  z-index: 35;
  background: rgba(220, 38, 38, 0.96);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  color: #fff;
}

/* Custom Player Controls Bar */
.cynet-custom-controls {
  position: relative;
  z-index: 18;
  background: rgba(14, 18, 26, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Fullscreen Player Styles */
.cynet-player-wrapper:fullscreen,
.cynet-player-wrapper:-webkit-full-screen,
.cynet-player-wrapper:-moz-full-screen,
.cynet-player-wrapper:-ms-fullscreen,
.cynet-player-wrapper.is-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  background: #000 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

.cynet-player-wrapper:fullscreen .cynet-video-stage,
.cynet-player-wrapper:-webkit-full-screen .cynet-video-stage,
.cynet-player-wrapper:-moz-full-screen .cynet-video-stage,
.cynet-player-wrapper:-ms-fullscreen .cynet-video-stage,
.cynet-player-wrapper.is-fullscreen .cynet-video-stage {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
}

.cynet-player-wrapper:fullscreen .cynet-video-stage video,
.cynet-player-wrapper:-webkit-full-screen .cynet-video-stage video,
.cynet-player-wrapper:-moz-full-screen .cynet-video-stage video,
.cynet-player-wrapper:-ms-fullscreen .cynet-video-stage video,
.cynet-player-wrapper.is-fullscreen .cynet-video-stage video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.cynet-player-wrapper:fullscreen .cynet-custom-controls,
.cynet-player-wrapper:-webkit-full-screen .cynet-custom-controls,
.cynet-player-wrapper:-moz-full-screen .cynet-custom-controls,
.cynet-player-wrapper:-ms-fullscreen .cynet-custom-controls,
.cynet-player-wrapper.is-fullscreen .cynet-custom-controls {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 45 !important;
  background: linear-gradient(to top, rgba(4, 6, 10, 0.96) 0%, rgba(4, 6, 10, 0.75) 65%, transparent 100%) !important;
  border-top: none !important;
  padding: 32px 28px 18px !important;
  transition: opacity 0.35s ease, transform 0.35s ease !important;
}

.cynet-player-wrapper:fullscreen .cynet-progress-row,
.cynet-player-wrapper:fullscreen .cynet-buttons-row,
.cynet-player-wrapper.is-fullscreen .cynet-progress-row,
.cynet-player-wrapper.is-fullscreen .cynet-buttons-row {
  max-width: 1350px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.cynet-player-wrapper:fullscreen .cynet-ctrl-btn,
.cynet-player-wrapper.is-fullscreen .cynet-ctrl-btn {
  padding: 8px 10px !important;
}

.cynet-player-wrapper:fullscreen.hide-controls .cynet-custom-controls,
.cynet-player-wrapper:-webkit-full-screen.hide-controls .cynet-custom-controls,
.cynet-player-wrapper.is-fullscreen.hide-controls .cynet-custom-controls {
  opacity: 0 !important;
  transform: translateY(16px) !important;
  pointer-events: none !important;
}

.cynet-player-wrapper:fullscreen.hide-controls,
.cynet-player-wrapper:-webkit-full-screen.hide-controls,
.cynet-player-wrapper.is-fullscreen.hide-controls {
  cursor: none !important;
}

.cynet-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.cynet-seek-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
  transition: height 0.2s;
}

.cynet-seek-range:hover {
  height: 7px;
}

.cynet-seek-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
  cursor: pointer;
}

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

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

.cynet-ctrl-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.cynet-ctrl-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.cynet-time-display {
  font-family: var(--font-tech), monospace;
  font-size: 0.8rem;
  color: #94a3b8;
  white-space: nowrap;
}

/* Stage Bottom Content: Episode Details & Notes */
.classroom-stage-details {
  padding: 22px 26px;
  flex: 1;
}

.classroom-ep-headline {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}

.classroom-ep-module-tag {
  font-size: 0.8rem;
  color: #38bdf8;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.classroom-ep-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.85;
  margin-bottom: 18px;
}

.classroom-complete-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.classroom-complete-btn.completed {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* Sidebar: Curriculum Navigation */
.classroom-sidebar {
  display: flex;
  flex-direction: column;
  background: rgba(11, 14, 21, 0.98);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 0;
  overflow: hidden;
}

.classroom-sidebar-head {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 26, 0.9);
}

.classroom-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.classroom-curriculum-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
}

.classroom-module-group {
  margin-bottom: 18px;
}

.classroom-module-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.classroom-ep-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 6px;
}

.classroom-ep-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(-2px);
}

.classroom-ep-card.active {
  background: rgba(255, 42, 95, 0.1);
  border-color: rgba(255, 42, 95, 0.45);
  box-shadow: 0 0 15px rgba(255, 42, 95, 0.15);
}

.classroom-ep-card.completed {
  border-right: 3px solid #10b981;
}

.classroom-ep-play-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
  transition: all 0.2s;
}

.classroom-ep-card.active .classroom-ep-play-icon {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 10px var(--accent-red);
}

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

.classroom-ep-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.classroom-ep-meta {
  font-size: 0.72rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}









/* Cart Button & Floating Widget Styles */
.cart-btn-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--accent-red, #ff2a5f);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 10px rgba(255, 42, 95, 0.7);
  pointer-events: none;
  border: 1px solid rgba(0, 0, 0, 0.4);
}

/* Unread Live Chat Badge */
.cynet-chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff2a5f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255, 42, 95, 0.6);
  border: 2px solid #080a0f;
  font-family: monospace;
  z-index: 100000;
  pointer-events: none;
}

/* Offset Chat Launcher when Floating Cart is expanded on Desktop */
body.has-floating-cart-expanded .cynet-chat-launcher {
  bottom: 94px !important;
}
body.has-floating-cart-expanded .cynet-chat-window {
  bottom: 160px !important;
}

.cynet-floating-cart-pill {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: 24px;
  background: rgba(13, 17, 23, 0.96);
  border: 1px solid rgba(255, 42, 95, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 42, 95, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 50px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 998;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulseFloatingCart 3s infinite;
}

.cynet-cart-pill-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.cynet-cart-pill-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
  outline: none;
}

.cynet-cart-pill-close:hover {
  background: rgba(255, 42, 95, 0.35);
  border-color: #ff2a5f;
  color: #fff;
}

/* Minimized Floating Cart Badge - Positioned cleanly ABOVE the chat launcher so they never collide */
.cynet-floating-cart-pill.cynet-cart-minimized {
  bottom: calc(94px + env(safe-area-inset-bottom, 0px)) !important;
  right: 24px !important;
  left: auto !important;
  padding: 0;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 42, 95, 0.6);
  background: rgba(13, 17, 23, 0.95);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 18px rgba(255, 42, 95, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 998;
}

.cynet-cart-mini-bubble {
  background: none;
  border: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  outline: none;
  padding: 0;
}

.cynet-cart-mini-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff2a5f;
  color: #fff;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px #ff2a5f;
}

.cynet-floating-cart-pill:not(.cynet-cart-minimized):hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--accent-red, #ff2a5f);
  box-shadow: 0 15px 40px rgba(255, 42, 95, 0.45);
}

@keyframes pulseFloatingCart {

  0%,
  100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 42, 95, 0.2);
  }

  50% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 42, 95, 0.45);
  }
}

@media (max-width: 768px) {
  .cynet-floating-cart-pill {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    max-width: 440px;
    margin: 0 auto;
    justify-content: space-between;
    padding: 9px 14px;
    border-radius: 14px;
  }

  .cynet-floating-cart-pill.cynet-cart-minimized {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    left: auto !important;
    right: 16px !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    margin: 0 !important;
    z-index: 998 !important;
  }
}

/* Performance Layer Compositing Optimization */
.hero-emblem-card,
.featured-course-card,
.course-card,
.product-card,
.review-card,
.community-card {
  contain: content;
  transform: translateZ(0);
}

/* Course Card Installment Button & Subtitle */
.card-btn-installment {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.card-btn-installment:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #fbbf24;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.price-sub-installment {
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.price-sub-installment:hover {
  opacity: 0.9;
  text-decoration: underline;
}

/* ==============================================================
   SIMPLIFIED & HUMAN-CENTERED CLARITY SYSTEM (2026 OVERHAUL)
   Make CYNET 100% Understandable to 99% of Visitors
   ============================================================== */

/* 1. CYNET At a Glance (ساینت در یک نگاه) */
.cynet-glance-section {
  margin-top: 26px;
  width: 100%;
}

.cynet-glance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .cynet-glance-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.cynet-glance-card {
  position: relative;
  background: rgba(13, 18, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 16px);
  padding: 22px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.cynet-glance-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.cynet-glance-card.pillar-academy { border-color: rgba(16, 185, 129, 0.28); }
.cynet-glance-card.pillar-academy::before { background: linear-gradient(90deg, #10b981, #059669); }
.cynet-glance-card.pillar-ctf { border-color: rgba(245, 158, 11, 0.28); }
.cynet-glance-card.pillar-ctf::before { background: linear-gradient(90deg, #f59e0b, #d97706); }
.cynet-glance-card.pillar-vpn { border-color: rgba(56, 189, 248, 0.28); }
.cynet-glance-card.pillar-vpn::before { background: linear-gradient(90deg, #38bdf8, #0284c7); }

.cynet-glance-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.cynet-glance-card.pillar-academy:hover {
  border-color: rgba(16, 185, 129, 0.65);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(16, 185, 129, 0.15);
}
.cynet-glance-card.pillar-ctf:hover {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(245, 158, 11, 0.15);
}
.cynet-glance-card.pillar-vpn:hover {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(56, 189, 248, 0.15);
}

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

.glance-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glance-icon-academy {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.glance-icon-ctf {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}
.glance-icon-vpn {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.glance-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.4;
}

.glance-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.glance-badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.glance-badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.glance-badge-blue {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.glance-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0 0 14px;
  flex-grow: 1;
}

.glance-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.glance-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.glance-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  margin-top: auto;
}
.pillar-academy .glance-link { color: #34d399; }
.pillar-academy .glance-link:hover { color: #6ee7b7; gap: 9px; }
.pillar-ctf .glance-link { color: #fbbf24; }
.pillar-ctf .glance-link:hover { color: #fde68a; gap: 9px; }
.pillar-vpn .glance-link { color: #38bdf8; }
.pillar-vpn .glance-link:hover { color: #7dd3fc; gap: 9px; }

/* 2. Roadmap Section (نقشه راه گام‌به‌گام) */
.cynet-roadmap-section {
  padding: 44px 0 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.roadmap-header-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px auto;
}

/* Pathway Ribbon */
.roadmap-pathway-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 980px;
  margin: 0 auto 26px;
  padding: 10px 20px;
  background: rgba(11, 15, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}
.pathway-node {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-family: var(--font-tech);
  font-weight: 700;
  color: #94a3b8;
}
.pathway-node .node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #475569;
}
.pathway-node.active .node-dot {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}
.pathway-node.active .node-text {
  color: #34d399;
}
.pathway-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.2), rgba(255,255,255,0.08));
  margin: 0 12px;
}
@media (max-width: 820px) {
  .roadmap-pathway-ribbon {
    display: none;
  }
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

@media (max-width: 1024px) {
  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .roadmap-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.roadmap-card {
  position: relative;
  background: rgba(15, 21, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 16px);
  padding: 20px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.roadmap-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.roadmap-card.step-1 { border-color: rgba(16, 185, 129, 0.35); }
.roadmap-card.step-1:hover { border-color: #10b981; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(16, 185, 129, 0.2); }

.roadmap-card.step-2 { border-color: rgba(56, 189, 248, 0.35); }
.roadmap-card.step-2:hover { border-color: #38bdf8; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(56, 189, 248, 0.2); }

.roadmap-card.step-3 { border-color: rgba(244, 63, 94, 0.35); }
.roadmap-card.step-3:hover { border-color: #f43f5e; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(244, 63, 94, 0.2); }

.roadmap-card.step-4 { border-color: rgba(255, 42, 95, 0.45); }
.roadmap-card.step-4:hover { border-color: #ff2a5f; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 42, 95, 0.25); }

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

.roadmap-cyber-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-ai {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.icon-osint {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}
.icon-server {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
}
.icon-redteam {
  background: rgba(255, 42, 95, 0.18);
  border: 1px solid rgba(255, 42, 95, 0.4);
  color: #ff5e85;
}

.roadmap-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
}
.step-1 .roadmap-step-badge { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.step-2 .roadmap-step-badge { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.step-3 .roadmap-step-badge { background: rgba(244, 63, 94, 0.2); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.4); }
.step-4 .roadmap-step-badge { background: rgba(255, 42, 95, 0.25); color: #ff5e85; border: 1px solid rgba(255, 42, 95, 0.5); }

.roadmap-course-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.4;
}

.roadmap-sub-role {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: var(--font-tech);
}
.step-1 .roadmap-sub-role { color: #34d399; }
.step-2 .roadmap-sub-role { color: #38bdf8; }
.step-3 .roadmap-sub-role { color: #fda4af; }
.step-4 .roadmap-sub-role { color: #ff5e85; }

.roadmap-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.pill-chip {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}
.chip-green { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25); color: #6ee7b7; }
.chip-cyan { background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.25); color: #7dd3fc; }
.chip-rose { background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.25); color: #fca5a5; }
.chip-crimson { background: rgba(255, 42, 95, 0.12); border: 1px solid rgba(255, 42, 95, 0.3); color: #fda4af; }

.roadmap-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.68;
  margin-bottom: 14px;
  flex-grow: 1;
}

.roadmap-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.roadmap-price-pill {
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.step-1 .roadmap-price-pill { color: #34d399; }
.step-2 .roadmap-price-pill { color: #38bdf8; }
.step-3 .roadmap-price-pill { color: #fda4af; }
.step-4 .roadmap-price-pill { color: #ff5e85; }

.roadmap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.step-1 .roadmap-btn { background: #10b981; color: #022c22; }
.step-1 .roadmap-btn:hover { background: #34d399; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4); }

.step-2 .roadmap-btn { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.step-2 .roadmap-btn:hover { background: #38bdf8; color: #082f49; box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4); }

.step-3 .roadmap-btn { background: rgba(244, 63, 94, 0.15); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.4); }
.step-3 .roadmap-btn:hover { background: #f43f5e; color: #fff; box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4); }

.step-4 .roadmap-btn { background: rgba(255, 42, 95, 0.2); color: #ff5e85; border: 1px solid rgba(255, 42, 95, 0.5); }
.step-4 .roadmap-btn:hover { background: #ff2a5f; color: #fff; box-shadow: 0 4px 14px rgba(255, 42, 95, 0.4); }

/* 3. Card Banner Bottom Bar (Cover erroneous AI graphics text seamlessly) */
.card-banner-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(0deg, rgba(7, 9, 14, 0.98) 40%, rgba(7, 9, 14, 0.85) 75%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 8px 12px;
  z-index: 3;
}

.pill-banner-feature {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pill-banner-tag {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* 4. CTF Interactive Showcase Block in Homepage */
.cynet-ctf-showcase {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(26, 16, 37, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg, 16px);
  padding: 36px 32px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(245, 158, 11, 0.1);
}

@media (max-width: 768px) {
  .cynet-ctf-showcase {
    padding: 24px 18px;
  }
}

.cynet-ctf-showcase-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 900px) {
  .cynet-ctf-showcase-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.ctf-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.ctf-showcase-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.35;
}

.ctf-showcase-desc {
  font-size: 0.96rem;
  color: #cbd5e1;
  line-height: 1.85;
  margin-bottom: 20px;
}

.ctf-showcase-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.ctf-showcase-perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #e2e8f0;
}

.ctf-showcase-perk-item svg {
  color: #10b981;
  flex-shrink: 0;
}

.ctf-trial-card-box {
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ctf-trial-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.ctf-trial-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 14px;
}

.ctf-trial-stats {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 0.8rem;
}

.ctf-trial-stat-pill {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  color: #cbd5e1;
}
.ctf-trial-stat-pill strong {
  color: #fbbf24;
}


/* Global Responsive Table & Terminal Safeguards */
.lb-table-responsive {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}
.ctf-terminal-box {
  max-width: 100% !important;
  overflow-x: hidden !important;
}
.terminal-body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}
.terminal-line {
  word-break: break-all !important;
  overflow-wrap: anywhere !important;
  white-space: pre-wrap !important;
  min-width: 0 !important;
}


@media (max-width: 768px) {
  .nav-actions a[href*="t.me"],
  .nav-actions a[href="#challenges"],
  .nav-actions a[href="#pricing"],
  .nav-actions a[href*="course-"],
  .nav-actions button[onclick*="enrollInCourse"],
  .nav-actions .btn-outline,
  .ctf-nav-cta {
    display: none !important;
  }
  .auth-open-btn {
    padding: 6px 11px !important;
    font-size: 0.78rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    border-radius: 8px !important;
  }
  .auth-open-btn span {
    display: inline !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
  }
  .nav-container, .header-container {
    gap: 8px !important;
  }
}

/* CTF Hero Overflow Clip & Mobile Perspective Safeguard */
.ctf-hero {
  overflow: clip !important;
  contain: paint !important;
}
@media (max-width: 768px) {
  .ctf-hero::before {
    display: none !important;
  }
}



/* ==============================================================
   CTF VISUAL SHOWCASE ASSETS (16:9 BANNER & 1:1 POSTER INTEGRATION)
   ============================================================== */
.battle-card-media-banner {
  position: relative;
  width: 100%;
  height: 230px;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.battle-card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ctf-featured-battle-card:hover .battle-card-cover-img {
  transform: scale(1.03);
}
.battle-card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.05) 0%, rgba(5, 7, 12, 0.65) 60%, rgba(9, 13, 22, 0.95) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px 20px;
}
.battle-card-media-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.battle-media-badge {
  background: rgba(255, 42, 95, 0.25);
  border: 1px solid rgba(255, 42, 95, 0.5);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(255, 42, 95, 0.4);
}
.battle-media-tag {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 6px;
}
@media (max-width: 768px) {
  .battle-card-media-banner {
    height: 160px;
  }
}

/* Homepage CTF Trial Card Poster */
.ctf-trial-poster-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.ctf-trial-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.5s ease;
}
.ctf-trial-card-box:hover .ctf-trial-poster-img {
  transform: scale(1.04);
}
.ctf-trial-badge-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(14, 18, 26, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Modal Briefing Banner */
.ctf-modal-banner-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.ctf-modal-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.ctf-modal-banner-badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 42, 95, 0.5);
  color: #ff8da6;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}
@media (max-width: 480px) {
  .ctf-modal-banner-wrap {
    height: 130px;
  }
}

/* ==============================================================
   CYNET MASTER MOBILE & RESPONSIVE UI/UX ENGINE (2026 EDITION)
   High-Precision Density, Compact Spacing & Zero-Overflow Engine
   ============================================================== */

/* Global Anti-Overflow & Flexible Layout Guard */
html, body {
  overflow-x: clip !important;
  max-width: 100vw !important;
}

img, video, canvas, iframe {
  max-width: 100% !important;
  height: auto;
}

/* Tablet & Mobile Section Padding & Spacing Normalization */
@media (max-width: 992px) {
  .section {
    padding: 52px 0 !important;
  }
  .section-header {
    margin: 0 auto 34px !important;
    gap: 10px !important;
  }
  .hero {
    padding: 32px 0 42px !important;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .hero-visual {
    margin-top: 10px !important;
  }
}

@media (max-width: 768px) {
  /* 1. Sections & Spacing: Compact & Modern (Removes empty black voids) */
  .section {
    padding: 38px 0 !important;
  }
  .section-header {
    margin: 0 auto 24px !important;
    gap: 8px !important;
    padding: 0 10px;
  }
  .section-title {
    font-size: 1.48rem !important;
    line-height: 1.34 !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .section-subtitle {
    font-size: 0.88rem !important;
    line-height: 1.68 !important;
  }
  .section-badge, .badge-crimson, .badge-glass {
    font-size: 0.74rem !important;
    padding: 4px 10px !important;
  }

  /* 2. Landing Hero Headlines in Course Pages (Overrides inline 2.7rem/2.6rem) */
  .landing-hero h1,
  h1[style*="font-size: 2.7rem"],
  h1[style*="font-size: 2.6rem"],
  h1[style*="font-size: 2.5rem"],
  h1.hero-title {
    font-size: 1.58rem !important;
    line-height: 1.32 !important;
    margin-bottom: 12px !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .landing-hero h1 span.font-tech,
  .landing-hero h1 span[style*="font-size: 2rem"],
  .landing-hero h1 span[style*="font-size: 1.8rem"] {
    font-size: 1.15rem !important;
    line-height: 1.4 !important;
    display: inline-block;
  }
  .landing-hero p,
  p[style*="font-size: 1.15rem"] {
    font-size: 0.88rem !important;
    line-height: 1.72 !important;
    margin-bottom: 20px !important;
  }

  /* 3. Hero Visual & Live Terminal Card */
  .hero-emblem-card {
    max-width: 100% !important;
    padding: 22px 18px !important;
    border-radius: var(--radius-lg, 16px) !important;
  }
  .hero-emblem-halo {
    width: 170px !important;
    height: 170px !important;
    margin: 0 auto 16px !important;
  }
  .terminal-window {
    padding: 10px 12px !important;
    font-size: 0.72rem !important;
  }

  /* 4. Stats Strip: Clean 2-column Grid */
  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    margin-top: 22px !important;
    border-radius: 14px !important;
  }
  .hero-stats-strip .stat-value {
    font-size: 1.42rem !important;
  }
  .hero-stats-strip .stat-label {
    font-size: 0.72rem !important;
  }
  .hero-stats-strip .stat-item:not(:last-child)::after {
    display: none !important;
  }

  /* 5. CYNET At a Glance (3 Pillars) */
  .cynet-glance-section {
    margin-top: 18px !important;
  }
  .cynet-glance-card {
    padding: 18px 16px !important;
    border-radius: 14px !important;
  }
  .glance-title {
    font-size: 1rem !important;
  }
  .glance-desc {
    font-size: 0.8rem !important;
    line-height: 1.62 !important;
    margin-bottom: 12px !important;
  }
  .glance-tag {
    font-size: 0.68rem !important;
    padding: 2px 7px !important;
  }

  /* 6. Roadmap Cards & Pathway */
  .roadmap-card {
    padding: 18px 16px 16px 16px !important;
    border-radius: 14px !important;
  }
  .roadmap-course-title {
    font-size: 1.1rem !important;
  }
  .roadmap-sub-role {
    font-size: 0.75rem !important;
    margin-bottom: 10px !important;
  }
  .roadmap-desc {
    font-size: 0.82rem !important;
    line-height: 1.65 !important;
    margin-bottom: 14px !important;
  }
  .roadmap-btn {
    font-size: 0.82rem !important;
    padding: 10px 14px !important;
  }
  .roadmap-price-pill {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
  }

  /* 7. Footer: Compact & Elegant */
  .footer {
    padding: 38px 0 24px !important;
    margin-top: 38px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
    margin-bottom: 30px !important;
  }

  /* 8. Course Detail & Featured Cards */
  .featured-course-card {
    padding: 20px 16px !important;
  }
  .course-banner-wrapper {
    margin-bottom: 24px !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 480px) {
  /* Ultra-Mobile Screen Tuning (360px - 480px) */
  .section {
    padding: 30px 0 !important;
  }
  .section-header {
    margin: 0 auto 18px !important;
  }
  .section-title {
    font-size: 1.32rem !important;
  }
  .section-subtitle {
    font-size: 0.82rem !important;
  }

  /* Hero Headline */
  .landing-hero h1,
  h1[style*="font-size: 2.7rem"],
  h1[style*="font-size: 2.6rem"],
  h1.hero-title {
    font-size: 1.38rem !important;
    line-height: 1.3 !important;
  }
  .landing-hero h1 span.font-tech {
    font-size: 1.05rem !important;
  }
  .landing-hero p {
    font-size: 0.82rem !important;
    line-height: 1.65 !important;
  }

  /* Hero Stats */
  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 12px 10px !important;
  }
  .hero-stats-strip .stat-item {
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 10px 6px !important;
  }
  .hero-stats-strip .stat-value {
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    font-size: 1.25rem !important;
  }
  .hero-stats-strip .stat-label {
    text-align: center !important;
    width: 100% !important;
    font-size: 0.65rem !important;
  }

  /* Buttons & CTAs */
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px !important;
  }
  .hero-cta-group .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Roadmap Card */
  .roadmap-card {
    padding: 16px 14px 14px 14px !important;
  }
  .roadmap-pills {
    gap: 4px !important;
  }
  .pill-chip {
    font-size: 0.68rem !important;
    padding: 2px 7px !important;
  }

  /* Modal Windows */
  .modal-container,
  .auth-modal-card,
  .cert-dossier-card,
  .dashboard-modal-box {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    padding: 18px 14px !important;
    border-radius: 14px !important;
    margin: 10px auto !important;
  }
}

/* ==============================================================
   MASTER COMPREHENSIVE RESPONSIVE SUITE (360px - 992px)
   Dashboard, CTF Podium, Course Subpages, Exam Portal, and Modals
   ============================================================== */

/* 1. Dashboard Layout & Sidebar Constraining (Zero Overflow on 360px/390px) */
@media (max-width: 992px) {
  .dash-app-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .dash-app-sidebar {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .dash-nav-scroll-container {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
  }
  .dash-app-nav {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .dash-user-profile-badge,
  .dash-user-profile-info,
  .dash-mobile-nav-selector-wrap,
  .dash-mobile-nav-selector-header,
  .dash-mobile-select-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .dash-mobile-tab-select {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* 2. CTF Podium & Leaderboard Mobile Adaptation */
@media (max-width: 900px) {
  .ctf-podium-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 100% !important;
    width: 100% !important;
    gap: 16px !important;
  }
  .podium-card,
  .podium-card.rank-empty {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 22px 14px !important;
  }
  .podium-card.rank-empty h3 {
    font-size: 1.05rem !important;
    line-height: 1.45 !important;
  }
  .podium-card.rank-empty p {
    font-size: 0.8rem !important;
    line-height: 1.6 !important;
  }
  .ctf-featured-card,
  .ctf-hero-banner {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

/* 3. Global Subpage Headings & Section Scaling (Eliminate oversized texts) */
@media (max-width: 768px) {
  h2,
  .section-title,
  .syllabus-section-title,
  .course-hero-title,
  .pricing-title,
  .faq-title {
    font-size: 1.35rem !important;
    line-height: 1.38 !important;
  }
  .course-hero-desc,
  .section-subtitle,
  .faq-desc {
    font-size: 0.86rem !important;
    line-height: 1.65 !important;
  }
  .feature-item h3,
  .syllabus-accordion-header h3 {
    font-size: 0.98rem !important;
  }
  /* Course Subpages Hero and Section Headlines (Under 768px) */
  h1[style*="font-size: 2.7rem"],
  h1[style*="font-size: 2.6rem"],
  .course-hero h1 {
    font-size: 1.45rem !important;
    line-height: 1.35 !important;
    margin-bottom: 12px !important;
  }
  h1[style*="font-size: 2.7rem"] span,
  h1[style*="font-size: 2.6rem"] span {
    font-size: 1.15rem !important;
  }
  h3[style*="font-size: 1.8rem"] {
    font-size: 1.18rem !important;
    line-height: 1.4 !important;
  }
  .exam-watermark-overlay,
  .watermark-text-grid {
    max-width: 100vw !important;
    overflow: hidden !important;
    clip-path: inset(0) !important;
  }
  #portalNavHeader .nav-container {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    justify-content: space-between !important;
  }
  #portalNavHeader .brand-sub {
    display: none !important;
  }
  #portalNavHeader .nav-actions {
    gap: 6px !important;
  }
  #portalNavHeader .nav-actions .btn {
    padding: 6px 10px !important;
    font-size: 0.74rem !important;
  }
}

@media (max-width: 480px) {
  h2,
  .section-title,
  .syllabus-section-title,
  .course-hero-title,
  .pricing-title,
  .faq-title {
    font-size: 1.22rem !important;
    line-height: 1.34 !important;
  }
  .course-hero-desc,
  .section-subtitle,
  .faq-desc {
    font-size: 0.8rem !important;
    line-height: 1.6 !important;
  }
  .feature-item h3,
  .syllabus-accordion-header h3 {
    font-size: 0.92rem !important;
  }
  /* Course Subpages Hero and Section Headlines (Under 480px) */
  h1[style*="font-size: 2.7rem"],
  h1[style*="font-size: 2.6rem"],
  .course-hero h1 {
    font-size: 1.32rem !important;
    line-height: 1.32 !important;
    margin-bottom: 10px !important;
  }
  h1[style*="font-size: 2.7rem"] span,
  h1[style*="font-size: 2.6rem"] span {
    font-size: 1.02rem !important;
  }
  h3[style*="font-size: 1.8rem"] {
    font-size: 1.08rem !important;
    line-height: 1.4 !important;
  }
}





/* Mobile Refinements for CTF Filters and Course Prereqs */
@media (max-width: 768px) {
  .ctf-filter-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px !important;
    margin-bottom: 18px !important;
    scrollbar-width: none;
  }
  .ctf-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .ctf-filter-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.78rem !important;
    padding: 6px 14px !important;
  }
  .course-prereq-box {
    padding: 20px 16px !important;
  }
  #pricing [style*="border-radius: 18px"],
  .pricing-card {
    padding: 22px 16px !important;
  }
}

/* Universal Desktop Header Single-Row Fit (992px - 1280px) */
@media (min-width: 992px) and (max-width: 1280px) {
  .nav-container, .header-container {
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }
  .nav-menu {
    gap: 6px !important;
  }
  .nav-item-link {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
  }
  .brand-sub, .brand-subtitle {
    display: none !important;
  }
  .nav-actions {
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }
  .nav-actions .btn {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
  }
}

/* ==============================================================
   CYNET ELITE FORUM / COMMUNITY (COMING SOON SHOWCASE)
   ============================================================== */
.nav-pill-badge-soon {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  margin-right: 4px;
  vertical-align: middle;
  letter-spacing: 0.3px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
  animation: pulseAmber 2.5s infinite ease-in-out;
}

@keyframes pulseAmber {
  0%, 100% { border-color: rgba(245, 158, 11, 0.45); box-shadow: 0 0 8px rgba(245, 158, 11, 0.2); }
  50% { border-color: rgba(245, 158, 11, 0.85); box-shadow: 0 0 16px rgba(245, 158, 11, 0.45); }
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.dot-pulse-amber {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulseDot 2s infinite ease-in-out;
}

.text-gradient-amber {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.forum-showcase-section {
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.7) 0%, rgba(5, 7, 11, 0.95) 100%);
}

.forum-ambient-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(255, 42, 95, 0.03) 50%, transparent 75%);
  pointer-events: none;
  filter: blur(50px);
}

.forum-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.forum-preview-card {
  background: rgba(18, 24, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.forum-preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.forum-preview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.1);
}

.forum-preview-card:hover::before {
  opacity: 1;
}

.forum-card-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.badge-lock {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-sub-soon {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 7px;
  border-radius: 6px;
}

.forum-card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-redteam {
  background: rgba(255, 42, 95, 0.12);
  color: #ff2a5f;
  border: 1px solid rgba(255, 42, 95, 0.3);
}

.icon-osint {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.icon-forensic {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.icon-ctf {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.forum-preview-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 10px;
  line-height: 1.5;
}

.forum-preview-card p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.forum-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

/* Forum Coming Soon Banner / Access Policy */
.forum-coming-soon-cta {
  margin-top: 36px;
  background: linear-gradient(135deg, rgba(24, 30, 44, 0.85) 0%, rgba(13, 17, 23, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 18px;
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(245, 158, 11, 0.06);
}

.forum-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.forum-cta-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.forum-cta-content p {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 18px;
}

.forum-cta-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.forum-perk-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.perk-check {
  color: #10b981;
  font-weight: 900;
}

.forum-cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 250px;
}

.forum-timer-box {
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}

.forum-timer-label {
  font-size: 0.72rem;
  color: #64748b;
  display: block;
  margin-bottom: 3px;
}

.forum-timer-val {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fbbf24;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  animation: pulseDot 1.5s infinite ease-in-out;
}

.forum-notify-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #0b0f17 !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35) !important;
  border: none !important;
  width: 100%;
  justify-content: center;
  padding: 12px 20px !important;
}

.forum-notify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5) !important;
}

@media (max-width: 1024px) {
  .forum-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .forum-coming-soon-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .forum-cta-action {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .forum-preview-grid {
    grid-template-columns: 1fr;
  }
  .forum-coming-soon-cta {
    padding: 24px 20px;
  }
}
