/* ============================================
   SKAIFR — Design System
   Brand colors & typography for SKAIFR
   ============================================ */

:root {
  /* Core palette (SKAIFR) */
  --background: #040710;
  --foreground: #e1e9ef;
  --card: #080f19;
  --card-foreground: #e1e9ef;
  --primary: #4be3eb;
  --primary-foreground: #010f18;
  --primary-glow: #92f1f6;
  --secondary: #111a25;
  --secondary-foreground: #d7dfe5;
  --muted: #0f1621;
  --muted-foreground: #a4b4c4;
  --accent: #13202e;
  --accent-foreground: #e1e9ef;
  --destructive: #de3b3d;
  --border: #1e2733;
  --input: #1e2733;
  --ring: #4be3eb;

  /* Semantic trading colors */
  --launch: #fd8537;
  --starlink: #54d0ec;
  --ai: #b58bf9;
  --finance: #4ad496;
  --bull: #38d080;
  --bear: #fc4f4e;

  /* Mapped aliases for components */
  --bg-primary: var(--background);
  --bg-secondary: var(--secondary);
  --bg-card: var(--card);
  --bg-card-hover: #0d1520;
  --bg-elevated: var(--muted);

  --border-light: #2a3544;

  --text-primary: var(--foreground);
  --text-secondary: var(--secondary-foreground);
  --text-muted: var(--muted-foreground);

  --accent-light: var(--primary);
  --accent-dark: #2bb8c0;
  --accent-glow: rgba(75, 227, 235, 0.35);

  --success: var(--bull);
  --success-bg: rgba(56, 208, 128, 0.12);
  --warning: var(--launch);
  --warning-bg: rgba(253, 133, 55, 0.12);
  --danger: var(--bear);
  --danger-bg: rgba(252, 79, 78, 0.12);
  --info: var(--starlink);
  --info-bg: rgba(84, 208, 236, 0.12);

  --gradient-primary: linear-gradient(135deg, #4be3eb 0%, #54d0ec 50%, #92f1f6 100%);
  --gradient-text: linear-gradient(135deg, #4be3eb 0%, #92f1f6 100%);
  --gradient-card: linear-gradient(165deg, rgba(75, 227, 235, 0.06) 0%, var(--card) 65%);

  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: calc(var(--radius) + 4px);
  --radius-xl: calc(var(--radius) + 8px);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --sidebar-width: 260px;
  --sidebar-bg: #060c16;
  --header-height: 76px;
  --transition: 0.2s ease;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --font-display: 'Chakra Petch', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -30%, rgba(75, 227, 235, 0.09), transparent 55%),
    linear-gradient(rgba(75, 227, 235, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 227, 235, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body.home-page {
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(75, 227, 235, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 50%, rgba(84, 208, 236, 0.05), transparent 50%),
    linear-gradient(rgba(75, 227, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 227, 235, 0.03) 1px, transparent 1px);
}

body.dashboard-page {
  background-image:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(75, 227, 235, 0.06), transparent 50%),
    linear-gradient(rgba(75, 227, 235, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 227, 235, 0.018) 1px, transparent 1px);
  overflow-x: hidden;
}

body.dashboard-page.admin-dashboard {
  overflow-x: auto;
  overflow-y: auto;
}

body.auth-page {
  background-image:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(75, 227, 235, 0.07), transparent 55%),
    linear-gradient(rgba(75, 227, 235, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 227, 235, 0.02) 1px, transparent 1px);
}

body.auth-page-admin .auth-visual {
  background:
    radial-gradient(circle at 20% 80%, rgba(252, 79, 78, 0.08), transparent 45%),
    var(--bg-secondary);
}

body.auth-page-admin .auth-visual-glow {
  background: rgba(75, 227, 235, 0.06);
}

.auth-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
  background: rgba(252, 79, 78, 0.12);
  border: 1px solid rgba(252, 79, 78, 0.35);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--danger);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
}

::selection {
  background: rgba(75, 227, 235, 0.35);
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 15px var(--accent-glow);
  font-family: var(--font-display);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #3dd4dc;
  box-shadow: 0 6px 25px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  background: rgba(75, 227, 235, 0.08);
  border-color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

/* ---- Logo ---- */
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

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

.logo-img--full {
  width: min(100%, 420px);
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

.logo-img--icon {
  height: 48px;
  width: 48px;
}

.footer-brand .logo-img--full {
  width: min(100%, 460px);
  max-height: 76px;
}

.auth-logo .logo-img--full {
  width: min(100%, 480px);
  max-height: 100px;
}

.sidebar-header .logo-img--full {
  width: min(100%, 220px);
  max-height: 48px;
}

.navbar .logo-img--full {
  width: min(100%, 380px);
  max-height: 64px;
}

.logo-icon-svg {
  color: var(--primary);
  flex-shrink: 0;
}

.logo-accent {
  color: var(--primary);
}

/* ---- Promo / announcement bar ---- */
.promo-bar,
.announcement-bar {
  background: var(--primary);
  color: var(--primary-foreground);
  text-align: center;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.announcement-bar.is-feature {
  background: linear-gradient(90deg, #1a6fd4 0%, #4be3eb 100%);
}

.announcement-bar.is-update {
  background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
}

.announcement-bar.is-info {
  background: linear-gradient(120deg, #4338ca 0%, #6366f1 45%, #818cf8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.announcement-bar.is-warning {
  background: linear-gradient(90deg, #b45309 0%, #f59e0b 100%);
}

.promo-badge,
.announcement-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.announcement-headline {
  font-weight: 600;
}

.promo-link,
.announcement-link {
  text-decoration: underline;
  font-weight: 600;
  color: inherit;
}

.promo-link:hover,
.announcement-link:hover {
  opacity: 0.9;
}

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 7, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-links-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links-menu a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: rgba(75, 227, 235, 0.08);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(84, 208, 236, 0.06);
  bottom: 0;
  right: 10%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.gradient-text {
  color: var(--primary);
  text-shadow: 0 0 28px rgba(75, 227, 235, 0.55);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.hero-feature svg {
  color: var(--accent-light);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Stats ---- */
.stats-section {
  padding: 0 0 80px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Sections ---- */
.section {
  padding: var(--space-8) 0;
}

.section-dark {
  background: var(--bg-secondary);
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgba(75, 227, 235, 0.6);
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}

/* ---- Steps ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.step-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.step-number {
  font-size: 48px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ---- Challenges ---- */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.challenge-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all var(--transition);
}

.challenge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.challenge-card.featured {
  border-color: var(--primary);
  background: var(--gradient-card);
  box-shadow: var(--shadow-glow);
}

.challenge-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.challenge-type {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.challenge-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.challenge-amount {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 24px;
}

.challenge-features {
  margin-bottom: 28px;
}

.challenge-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.challenge-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* ---- Community ---- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.community-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.community-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.community-icon.discord { background: rgba(88, 101, 242, 0.15); color: #5865f2; }
.community-icon.youtube { background: rgba(255, 0, 0, 0.15); color: #ff0000; }
.community-icon.telegram { background: rgba(0, 136, 204, 0.15); color: #0088cc; }

.community-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.community-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.link-arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition);
}

.link-arrow:hover {
  color: var(--primary-glow);
}

/* ---- Support ---- */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.support-content h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.support-content p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.support-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
}

.support-stat-value {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--primary);
}

.support-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.support-contact-info {
  margin-top: 18px;
}

.support-contact-info__address {
  display: block;
  margin: 0 0 10px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.support-contact-info__emails {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-contact-info__emails a {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  word-break: break-word;
}

.support-contact-info__emails a:hover {
  text-decoration: underline;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.support-agent {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.agent-name {
  font-size: 14px;
  font-weight: 600;
}

.agent-status {
  font-size: 12px;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 8px;
  max-width: 85%;
}

.agent-msg {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.user-msg {
  background: var(--primary);
  color: var(--primary-foreground);
  margin-left: auto;
}

/* ---- CTA ---- */
.cta-section {
  padding: 80px 0;
}

.cta-box {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.25fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-contact-info__address,
.company-address {
  display: block;
  margin: 0 0 12px;
  font-style: normal;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.footer-contact-info__emails,
.support-email-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact-info__emails a,
.support-email-links a {
  display: block;
  font-size: 13px;
  color: var(--primary);
  padding: 2px 0;
  word-break: break-word;
  transition: color var(--transition);
}

.footer-contact-info__emails a:hover,
.support-email-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Social icons ---- */
.spcx-social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 0 36px;
  padding: 22px 20px;
  border: 1px solid rgba(75, 227, 235, 0.16);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(75, 227, 235, 0.08), rgba(124, 58, 237, 0.08));
}

.footer-social-label,
.spcx-cs-social-label,
.support-social-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.spcx-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.spcx-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.spcx-social-link:hover {
  transform: translateY(-2px);
  color: #fff;
  filter: brightness(1.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.spcx-social--vivid .spcx-social-link--facebook {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 8px 22px rgba(24, 119, 242, 0.35);
}

.spcx-social--vivid .spcx-social-link--instagram {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(221, 42, 123, 0.32);
}

.spcx-social--vivid .spcx-social-link--telegram {
  background: #229ed9;
  border-color: #229ed9;
  box-shadow: 0 8px 22px rgba(34, 158, 217, 0.32);
}

.spcx-social--medium .spcx-social-link {
  width: 42px;
  height: 42px;
}

.spcx-social--medium .spcx-social-link svg {
  width: 19px;
  height: 19px;
}

.spcx-social--compact .spcx-social-link {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.spcx-social--compact .spcx-social-link svg {
  width: 16px;
  height: 16px;
}

.spcx-cs-social,
.support-social-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
}

.support-social-wrap {
  margin-top: 22px;
}

.footer-contact-info__emails a,
.support-contact-info__emails a {
  color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .challenge-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .community-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--bg-secondary);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
  }
  .nav-links-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .nav-links-menu a {
    padding: 4px 0;
  }
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }
  .nav-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .mobile-toggle { display: flex; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 60px 0 40px; }
  .hero-features { flex-direction: column; align-items: center; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 24px; }
}

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

/* ---- Trust Section ---- */
.trust-section {
  padding: 24px 0 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  color: var(--text-secondary);
}

.trust-stars {
  color: #fbbf24;
  letter-spacing: 2px;
  font-size: 16px;
}

/* ---- Recognition ---- */
.recognition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.recognition-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}

.recognition-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.recognition-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.recognition-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.recognition-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Company Stats ---- */
.company-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.company-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}

.company-stat-value {
  font-size: 36px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 4px;
}

.company-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Auth Pages ---- */
.auth-page {
  min-height: 100vh;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.auth-visual {
  position: relative;
  background: var(--bg-secondary);
  padding: 48px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.auth-visual-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(75, 227, 235, 0.08);
  border-radius: 50%;
  filter: blur(120px);
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.auth-logo {
  position: relative;
  z-index: 1;
  margin-bottom: auto;
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.auth-visual-content h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.auth-visual-content p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 400px;
}

.auth-stats {
  display: flex;
  gap: 40px;
}

.auth-stat-value {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--primary);
}

.auth-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.auth-benefits {
  list-style: none;
}

.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-benefits li svg {
  color: var(--success);
  flex-shrink: 0;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-7) var(--space-6);
  background: var(--bg-primary);
}

.auth-form-wrapper {
  width: 100%;
  max-width: 420px;
}

.auth-form-header {
  margin-bottom: var(--space-6);
}

.auth-form-header .auth-admin-badge {
  margin-bottom: 16px;
}

.auth-form-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-form-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

.auth-form .form-group {
  margin-bottom: var(--space-5);
}

.auth-forgot-row {
  margin: calc(var(--space-4) * -1) 0 var(--space-5);
  text-align: right;
  font-size: 13px;
}

/* ---- Shared Form Styles ---- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-input::placeholder {
  color: var(--text-muted);
}

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

.auth-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 24px;
}

.auth-checkbox input {
  accent-color: var(--primary);
}

/* ---- Register terms agreement ---- */
.auth-terms {
  margin-bottom: 22px;
}

.auth-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(75, 227, 235, 0.07), rgba(8, 15, 25, 0.92));
  border: 1px solid rgba(75, 227, 235, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-terms-label:hover {
  border-color: rgba(75, 227, 235, 0.38);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.auth-terms-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.auth-terms-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1.5px solid rgba(75, 227, 235, 0.45);
  background: rgba(4, 7, 16, 0.85);
  color: transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.auth-terms-box svg {
  width: 14px;
  height: 14px;
}

.auth-terms-input:checked + .auth-terms-box {
  background: var(--primary);
  border-color: var(--primary);
  color: #040710;
  transform: scale(1.04);
}

.auth-terms-input:focus-visible + .auth-terms-box {
  outline: 2px solid rgba(75, 227, 235, 0.55);
  outline-offset: 2px;
}

.auth-terms-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.auth-terms-lead {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
}

.auth-terms-links {
  display: block;
}

.auth-terms-link {
  display: inline;
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(75, 227, 235, 0.35);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.auth-terms-link:hover {
  color: var(--primary-glow);
  text-decoration-color: currentColor;
}

.auth-terms-note {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .auth-terms-label {
    gap: 12px;
    padding: 12px 14px;
  }

  .auth-terms-copy {
    font-size: 12px;
  }
}

.auth-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  transition: color var(--transition);
}

.auth-link:hover {
  color: var(--primary-glow);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer-text {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .recognition-grid { grid-template-columns: repeat(2, 1fr); }
  .company-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .recognition-grid { grid-template-columns: 1fr; }
  .company-stats { grid-template-columns: 1fr; }
}

/* ---- Register form extras ---- */
.auth-form-wrapper-wide {
  max-width: 480px;
}

.form-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-optional {
  font-weight: 400;
  color: var(--text-muted);
}

.alert {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert ul {
  margin: 0;
  padding-left: 18px;
}

.alert-error {
  background: var(--danger-bg);
  border: 1px solid rgba(252, 79, 78, 0.35);
  color: #ffb4b4;
}

.alert-success {
  background: var(--success-bg);
  border: 1px solid rgba(56, 208, 128, 0.35);
  color: var(--success);
}

.alert-warning {
  background: rgba(255, 176, 32, 0.1);
  border: 1px solid rgba(255, 176, 32, 0.32);
  color: #ffd98a;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.captcha-image {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  display: block;
  min-width: 180px;
  min-height: 52px;
}

.captcha-input {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: var(--font-mono);
}

.captcha-refresh {
  flex-shrink: 0;
}

/* intl-tel-input — overrides loaded after plugin CSS on register.php (css/intl-tel-overrides.css) */

/* ---- Install / Utility Pages ---- */
.utility-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
}

.utility-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.utility-card-header {
  margin-bottom: 28px;
}

.utility-card-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--primary);
}

.utility-card-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

.utility-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.utility-message:last-of-type {
  margin-bottom: 24px;
}

.utility-message-success {
  background: var(--success-bg);
  border: 1px solid rgba(56, 208, 128, 0.35);
  color: var(--success);
}

.utility-message-error {
  background: var(--danger-bg);
  border: 1px solid rgba(252, 79, 78, 0.35);
  color: #ffb4b4;
}

.utility-message a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.utility-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Customer Service section */
.spcx-cs {
  padding: 56px 0;
}

.spcx-cs--homepage {
  background: var(--bg-secondary, #0f1419);
}

.spcx-cs--dashboard {
  margin-top: 20px;
}

.spcx-cs-inner {
  max-width: 720px;
}

.spcx-cs-copy h2 {
  margin: 8px 0 12px;
}

.spcx-cs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
  color: var(--text-primary, #fff);
}

.spcx-cs-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.spcx-cs-list a:hover {
  color: var(--primary, #4be3eb);
  text-decoration: underline;
}

.spcx-cs-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Floating Customer Service button */
.spcx-support-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.spcx-support-float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #1f9d6a, #0f766e 55%, #0b5c55);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spcx-support-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.65);
}

.spcx-support-float-btn-open {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.spcx-support-agent-icon {
  display: block;
  width: 34px;
  height: 34px;
}

.spcx-support-float-btn-close {
  display: none;
}

.spcx-support-float.is-open .spcx-support-float-btn-open {
  display: none;
}

.spcx-support-float.is-open .spcx-support-float-btn-close {
  display: block;
}

.spcx-support-float-menu {
  display: none;
  flex-direction: column;
  gap: 10px;
  min-width: 230px;
}

.spcx-support-float.is-open .spcx-support-float-menu {
  display: flex;
}

.spcx-support-float-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  background: #10151f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.spcx-support-float-item:hover {
  transform: translateX(-4px);
}

.spcx-support-float-item--wa svg {
  color: #25d366;
  flex-shrink: 0;
}

.spcx-support-float-item--wa:hover {
  border-color: rgba(37, 211, 102, 0.6);
}

.spcx-support-float-item--email svg {
  color: #5ef0ff;
  flex-shrink: 0;
}

.spcx-support-float-item--email:hover {
  border-color: rgba(94, 240, 255, 0.6);
}

.spcx-support-float-item-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.spcx-support-float-item-copy strong {
  font-size: 14px;
}

.spcx-support-float-item-copy small {
  font-size: 12px;
  color: var(--text-muted, #8ba3b8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .spcx-support-float {
    right: 14px;
    bottom: 84px;
  }

  .spcx-support-float-btn {
    width: 50px;
    height: 50px;
  }

  .spcx-support-float-menu {
    min-width: 210px;
  }
}
