@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/lipis/flag-icons@7.2.3/css/flag-icons.min.css');

/* ─── CSS Custom Properties ──────────────────────────────── */
/* ─── CSS Custom Properties ──────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-void:     #05050A;
  --bg-base:     #0A0A12;
  --bg-elevated: #0F0F1A;
  --bg-card:     #141420;
  --bg-card-2:   #18182A;
  --bg-input:    #0C0C18;

  /* Glassmorphism */
  --glass-bg:     rgba(255, 255, 255, 0.03);
  --glass-bg-2:   rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover:  rgba(255, 255, 255, 0.07);

  /* Primary — Violet Electric */
  --primary:       #7C6EF0;
  --primary-light: #9B8FF5;
  --primary-dark:  #5B50CC;
  --primary-dim:   rgba(124, 110, 240, 0.15);
  --primary-glow:  rgba(124, 110, 240, 0.35);

  /* Accent — Cyan Neon */
  --accent:       #00C8F5;
  --accent-light: #40D9F8;
  --accent-dark:  #009AC0;
  --accent-dim:   rgba(0, 200, 245, 0.12);
  --accent-glow:  rgba(0, 200, 245, 0.3);

  /* Semantic Colors */
  --success:      #00D4A0;
  --success-dim:  rgba(0, 212, 160, 0.12);
  --warning:      #FFB347;
  --warning-dim:  rgba(255, 179, 71, 0.12);
  --danger:       #FF6B6B;
  --danger-dim:   rgba(255, 107, 107, 0.12);
  --info:         #7C6EF0;

  /* Text */
  --text-primary:   #EEEEFF;
  --text-secondary: #9090B5;
  --text-muted:     #60607A;
  --text-disabled:  #40405A;

  /* Borders */
  --border:       rgba(124, 110, 240, 0.12);
  --border-light: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(124, 110, 240, 0.35);
  --border-focus: rgba(124, 110, 240, 0.6);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #7C6EF0 0%, #00C8F5 100%);
  --grad-primary-soft: linear-gradient(135deg, rgba(124,110,240,0.8) 0%, rgba(0,200,245,0.8) 100%);
  --grad-hero: radial-gradient(ellipse 120% 80% at 20% 0%, rgba(124,110,240,0.18) 0%, transparent 60%),
               radial-gradient(ellipse 80% 60% at 80% 100%, rgba(0,200,245,0.10) 0%, transparent 60%);
  --grad-card: linear-gradient(135deg, rgba(124,110,240,0.08) 0%, rgba(0,200,245,0.04) 100%);
  --grad-text: linear-gradient(135deg, #9B8FF5 0%, #00C8F5 100%);

  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.5);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg:      0 8px 40px rgba(0,0,0,0.7);
  --shadow-primary: 0 4px 24px rgba(124,110,240,0.4);
  --shadow-accent:  0 4px 24px rgba(0,200,245,0.3);
  --shadow-card:    0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 32px rgba(0,0,0,0.5);

  /* Typography */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing Scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;
  --s16: 64px; --s20: 80px; --s24: 96px; --s32: 128px;

  /* Border Radius */
  --r-sm: 6px;  --r: 12px; --r-lg: 18px;
  --r-xl: 24px; --r-2xl: 32px; --r-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --t-fast: 0.15s var(--ease);
  --t:      0.25s var(--ease);
  --t-slow: 0.45s var(--ease);

  /* Z-Index Scale */
  --z-base: 1; --z-raised: 10; --z-dropdown: 100;
  --z-sticky: 200; --z-modal: 300; --z-toast: 400; --z-top: 500;

  /* Layout */
  --container: 1280px;
  --nav-height: 72px;
  --sidebar-width: 260px;
}

/* ─── Light Mode Overrides ───────────────────────────────── */
html[data-theme="light"],
body[data-theme="light"],
[data-theme="light"] {
  /* Backgrounds */
  --bg-void:     #E8ECF5 !important;
  --bg-base:     #F1F4FA !important;
  --bg-elevated: #FFFFFF !important;
  --bg-card:     #FFFFFF !important;
  --bg-card-2:   #F8F9FE !important;
  --bg-input:    #F8F9FE !important;

  /* Glassmorphism */
  --glass-bg:     rgba(255, 255, 255, 0.85) !important;
  --glass-bg-2:   rgba(255, 255, 255, 0.95) !important;
  --glass-border: rgba(108, 92, 231, 0.18) !important;
  --glass-hover:  rgba(108, 92, 231, 0.08) !important;

  /* Primary & Accent — Vibrant & Elegant */
  --primary:       #6C5CE7 !important;
  --primary-light: #8B77F7 !important;
  --primary-dark:  #5041C7 !important;
  --primary-dim:   rgba(108, 92, 231, 0.12) !important;
  --primary-glow:  rgba(108, 92, 231, 0.25) !important;

  --accent:       #00B894 !important;
  --accent-light: #00CEC9 !important;
  --accent-dark:  #00896F !important;
  --accent-dim:   rgba(0, 184, 148, 0.12) !important;
  --accent-glow:  rgba(0, 184, 148, 0.25) !important;

  /* Semantic Colors */
  --success:      #00B894 !important;
  --success-dim:  rgba(0, 184, 148, 0.12) !important;
  --warning:      #E67E22 !important;
  --warning-dim:  rgba(230, 126, 34, 0.12) !important;
  --danger:       #E74C3C !important;
  --danger-dim:   rgba(231, 76, 60, 0.12) !important;
  --info:         #6C5CE7 !important;

  /* Text */
  --text-primary:   #1A1A2E !important;
  --text-secondary: #4A4A68 !important;
  --text-muted:     #787898 !important;
  --text-disabled:  #A0A0BA !important;

  /* Borders */
  --border:       rgba(108, 92, 231, 0.16) !important;
  --border-light: rgba(0, 0, 0, 0.08) !important;
  --border-hover: rgba(108, 92, 231, 0.35) !important;
  --border-focus: rgba(108, 92, 231, 0.6) !important;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  --shadow-md: 0 4px 16px rgba(108, 92, 231, 0.08) !important;
  --shadow-lg: 0 8px 32px rgba(108, 92, 231, 0.12) !important;
  --shadow-primary: 0 4px 20px rgba(108, 92, 231, 0.22) !important;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}


/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global Container & Section Horizontal Containment */
.site-header,
.site-wrapper,
.page-wrapper,
.hero-wrapper,
section,
main,
header,
footer,
.container,
.whmcs-footer {
  max-width: 100% !important;
  overflow-x: clip !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  html, body {
    overflow-x: clip !important;
    max-width: 100% !important;
    width: 100% !important;
    touch-action: pan-y !important;
  }
}

img, video, svg { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.9rem; }

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

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-primary   { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-accent    { color: var(--accent) !important; }
.text-violet    { color: var(--primary) !important; }
.text-success   { color: var(--success) !important; }
.text-warning   { color: var(--warning) !important; }
.text-danger    { color: var(--danger) !important; }
.text-center    { text-align: center; }
.text-sm        { font-size: 0.875rem; }
.text-xs        { font-size: 0.75rem; }
.fw-500         { font-weight: 500; }
.fw-600         { font-weight: 600; }
.fw-700         { font-weight: 700; }

/* ─── Layout Utilities ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s6);
}

.section {
  padding-block: var(--s24);
}

.section-sm {
  padding-block: var(--s16);
}

.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--s2); }
.gap-3 { gap: var(--s3); }
.gap-4 { gap: var(--s4); }
.gap-6 { gap: var(--s6); }
.gap-8 { gap: var(--s8); }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--s6); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--s6); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--primary-dim); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--t);
}

.btn:hover::before { background: rgba(255,255,255,0.05); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,110,240,0.5); }

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

.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--glass-hover); color: var(--text-primary); border-color: var(--border-hover); }

.btn-accent {
  background: linear-gradient(135deg, #00C8F5, #009AC0);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,200,245,0.5); }

.btn-danger {
  background: linear-gradient(135deg, #FF6B6B, #CC4444);
  color: #fff;
}
.btn-danger:hover { transform: translateY(-2px); }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: var(--r-sm); }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; border-radius: var(--r-lg); }
.btn-xl { padding: 18px 52px; font-size: 1.1rem; border-radius: var(--r-lg); letter-spacing: 0.02em; }
.btn-icon { padding: 10px; border-radius: var(--r); }
.btn-full { width: 100%; }

/* Gradient border button */
.btn-glow {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 0 30px rgba(124,110,240,0.4), 0 0 60px rgba(0,200,245,0.2);
  animation: btnGlowPulse 3s ease-in-out infinite;
}
@keyframes btnGlowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(124,110,240,0.4), 0 0 40px rgba(0,200,245,0.2); }
  50%       { box-shadow: 0 0 40px rgba(124,110,240,0.6), 0 0 80px rgba(0,200,245,0.3); }
}

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s6);
  transition: var(--t);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,110,240,0.4), transparent);
  opacity: 0;
  transition: var(--t);
}

.card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }

.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: var(--s6);
}

.card-glow {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s6);
  box-shadow: var(--shadow-card);
  transition: var(--t);
}
.card-glow:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card), 0 0 30px var(--primary-glow);
}

/* ─── Forms ──────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-bottom: var(--s5);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.form-label.required::after {
  content: ' *';
  color: var(--danger);
}

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--t);
  width: 100%;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-control::placeholder { color: var(--text-muted); }
.form-control:hover { border-color: rgba(124,110,240,0.3); }
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
  background: rgba(124,110,240,0.05);
}

.form-control.error { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-dim); }
.form-control.success { border-color: var(--success); box-shadow: 0 0 0 3px var(--success-dim); }

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239090B5' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select option {
  background-color: #141420 !important;
  color: #EEEEFF !important;
}

textarea.form-control { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-hint { font-size: 0.8rem; color: var(--text-muted); }
.form-error { font-size: 0.8rem; color: var(--danger); }

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.input-group .form-control { padding-left: 44px; }
.input-group .input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
  transition: var(--t);
}
.input-group:focus-within .input-icon { color: var(--primary); }

/* Checkbox & Radio */
.form-check { display: flex; align-items: center; gap: var(--s3); cursor: pointer; }
.form-check-input {
  width: 18px; height: 18px;
  appearance: none; -webkit-appearance: none;
  background: var(--bg-input);
  border: 1px solid var(--border-hover);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--t);
  flex-shrink: 0;
  position: relative;
}
.form-check-input:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.form-check-input:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3 4L11 1' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--r-full);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-primary  { background: var(--primary-dim); color: var(--primary-light); }
.badge-accent   { background: var(--accent-dim); color: var(--accent); }
.badge-success  { background: var(--success-dim); color: var(--success); }
.badge-warning  { background: var(--warning-dim); color: var(--warning); }
.badge-danger   { background: var(--danger-dim); color: var(--danger); }
.badge-info     { background: rgba(0,200,245,0.12); color: var(--accent); }
.badge-muted    { background: rgba(96,96,122,0.15); color: var(--text-muted); }

/* ─── Avatars ─────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-initials {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

/* ─── Tables ─────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
  color: var(--text-secondary);
  transition: var(--t-fast);
}

.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: rgba(124,110,240,0.04); color: var(--text-primary); }
.table td strong { color: var(--text-primary); font-weight: 500; }

/* ─── Pagination ─────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.page-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--t-fast);
  text-decoration: none;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ─── Flash Messages ─────────────────────────────────────── */
.flash-container {
  position: fixed;
  top: calc(var(--nav-height) + 16px);
  right: var(--s6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  max-width: 400px;
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: 14px 16px;
  border-radius: var(--r);
  border-left: 3px solid;
  backdrop-filter: blur(20px);
  animation: flashSlideIn 0.3s var(--ease-out);
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
}

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

.flash-success { background: rgba(0,212,160,0.1); border-color: var(--success); }
.flash-error   { background: rgba(255,107,107,0.1); border-color: var(--danger); }
.flash-warning { background: rgba(255,179,71,0.1); border-color: var(--warning); }
.flash-info    { background: rgba(124,110,240,0.1); border-color: var(--primary); }
.flash-icon    { flex-shrink: 0; font-weight: 700; }
.flash-message { flex: 1; color: var(--text-primary); }
.flash-close   { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; padding: 0; line-height: 1; flex-shrink: 0; }
.flash-close:hover { color: var(--text-primary); }

/* ─── Navigation ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: var(--z-sticky);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.navbar.scrolled {
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), var(--shadow-sm);
}

.nav-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s8);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand-logo {
  width: 36px; height: 36px;
  background: var(--grad-primary);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-primary);
}

.nav-brand-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.8vw, 10px);
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}

.nav-link {
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  transition: var(--t);
  position: relative;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.1px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--grad-primary);
  border-radius: var(--r-full);
  transition: var(--t);
}

.nav-link:hover { color: var(--text-primary); background: var(--glass-bg); }
.nav-link:hover::after, .nav-link.active::after { left: 14px; right: 14px; }
.nav-link.active { color: var(--text-primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--glass-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: 3px;
}
.lang-btn {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--t-fast);
  background: none;
  border: none;
  letter-spacing: 0.05em;
}
.lang-btn.active { background: var(--primary); color: #fff; }
.lang-btn:hover:not(.active) { color: var(--text-primary); }

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: var(--r-full);
  transition: var(--t);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Hero Section ───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-base);
  z-index: 0;
}

/* Animated gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; left: -100px;
  animation: orbFloat1 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: var(--accent);
  bottom: -100px; right: -50px;
  animation: orbFloat2 10s ease-in-out infinite;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: var(--primary);
  top: 60%; left: 60%;
  opacity: 0.08;
  animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(60px, 40px) scale(1.1); }
  66%       { transform: translate(-40px, 80px) scale(0.9); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-80px, -60px) scale(1.15); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-60px, 40px); }
}

/* Particle canvas */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,110,240,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,110,240,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
  padding-block: var(--s16);
}

.hero-text { max-width: 600px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 6px 16px;
  background: var(--primary-dim);
  border: 1px solid var(--primary-glow);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.05em;
  margin-bottom: var(--s6);
  animation: badgePulse 2s ease-in-out infinite;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: dotBlink 1.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,110,240,0); }
  50%       { box-shadow: 0 0 0 4px rgba(124,110,240,0.1); }
}
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: var(--s6);
  color: var(--text-primary);
}

.hero-title .line-accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: var(--s10);
}

.hero-actions {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--s10);
}

.hero-stats {
  display: flex;
  gap: var(--s8);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

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

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

.hero-mockup {
  width: 100%;
  max-width: 480px;
  position: relative;
}

.mockup-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(124,110,240,0.15);
  animation: mockupFloat 6s ease-in-out infinite;
}

@keyframes mockupFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-12px) rotate(0.5deg); }
  66%       { transform: translateY(-6px) rotate(-0.5deg); }
}

.mockup-header {
  background: var(--bg-elevated);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: var(--s3);
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mockup-body { padding: var(--s5); }

.mockup-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.mockup-stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--s3);
  text-align: center;
}
.mockup-stat-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mockup-stat-lbl { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }

.mockup-chart {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--s3);
  height: 80px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: var(--s3);
}
.chart-bar {
  flex: 1;
  background: var(--grad-primary);
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
  transition: var(--t);
  animation: chartGrow 1.5s ease-out forwards;
}
@keyframes chartGrow { from { height: 0; } }

/* ─── Section Headers ────────────────────────────────────── */
.section-header { text-align: center; max-width: 700px; margin-inline: auto; margin-bottom: var(--s16); }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 5px 16px;
  background: var(--primary-dim);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s5);
}
.section-title { margin-bottom: var(--s4); }
.section-desc  { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.75; }

/* ─── Services Grid ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s8);
  transition: var(--t-slow);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  group: 1;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: var(--t);
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-primary);
}
.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s5);
  position: relative;
  z-index: 1;
  transition: var(--t);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-5deg); }

.service-icon-violet { background: var(--primary-dim); color: var(--primary-light); }
.service-icon-cyan   { background: var(--accent-dim); color: var(--accent); }
.service-icon-coral  { background: var(--danger-dim); color: var(--danger); }
.service-icon-green  { background: var(--success-dim); color: var(--success); }
.service-icon-orange { background: var(--warning-dim); color: var(--warning); }
.service-icon-purple { background: rgba(155,89,182,0.12); color: #9B59B6; }

.service-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--s3);
  position: relative;
  z-index: 1;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--s5);
  position: relative;
  z-index: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  transition: var(--t);
  position: relative;
  z-index: 1;
}
.service-link svg { transition: var(--t); }
.service-card:hover .service-link { color: var(--accent); }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* ─── Stats Section ──────────────────────────────────────── */
.stats-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: var(--s16);
}

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

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

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--s2);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* ─── Why Us ─────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
  align-items: center;
}

.feature-list { display: flex; flex-direction: column; gap: var(--s5); }

.feature-item {
  display: flex;
  gap: var(--s4);
  padding: var(--s5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: var(--t);
}
.feature-item:hover { border-color: var(--primary); background: var(--bg-card-2); }

.feature-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--primary-dim);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light);
}

.feature-title { font-weight: 600; font-size: 1rem; margin-bottom: 4px; color: var(--text-primary); }
.feature-desc  { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }

/* ─── Portfolio ──────────────────────────────────────────── */
.portfolio-filters {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--s10);
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--t);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary-light); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: var(--t);
  cursor: pointer;
}
.portfolio-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-primary); }

.portfolio-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.portfolio-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.4;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,18,0.9) 0%, transparent 100%);
  opacity: 0;
  transition: var(--t);
  display: flex;
  align-items: flex-end;
  padding: var(--s5);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-info { padding: var(--s5); }
.portfolio-category { font-size: 0.75rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--s2); }
.portfolio-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.portfolio-tags { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }
.portfolio-tag { padding: 2px 8px; background: var(--primary-dim); color: var(--primary-light); border-radius: var(--r-full); font-size: 0.72rem; }

/* ─── Testimonials ───────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s8);
  position: relative;
  transition: var(--t);
}
.testimonial-card:hover { border-color: var(--primary); box-shadow: var(--shadow-primary); }

.testimonial-quote {
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: var(--s4);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--s4);
  color: var(--warning);
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--s6);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.testimonial-name { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* ─── CTA Section ────────────────────────────────────────── */
.cta-section {
  padding-block: var(--s24);
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(124,110,240,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--r-2xl);
  padding: var(--s16) var(--s24);
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin-inline: auto;
  box-shadow: var(--shadow-lg);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
}

.cta-title { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: var(--s4); }
.cta-desc  { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: var(--s10); max-width: 500px; margin-inline: auto; margin-bottom: var(--s10); }
.cta-actions { display: flex; gap: var(--s4); justify-content: center; flex-wrap: wrap; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--bg-void);
  border-top: 1px solid var(--border);
  padding-top: var(--s16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s12);
  margin-bottom: var(--s12);
}

.footer-brand { }
.footer-brand .nav-brand { margin-bottom: var(--s4); }
.footer-brand-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; max-width: 280px; margin-bottom: var(--s6); }

.social-links { display: flex; gap: var(--s3); }
.social-link {
  width: 38px; height: 38px;
  border-radius: var(--r);
  background: var(--glass-bg);
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: var(--t);
  font-size: 0.9rem;
}
.social-link:hover { background: var(--primary-dim); border-color: var(--primary); color: var(--primary-light); }

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s5);
}

.footer-links { display: flex; flex-direction: column; gap: var(--s3); }
.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--t-fast);
  text-decoration: none;
}
.footer-link:hover { color: var(--primary-light); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: var(--s5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s3);
}

.footer-copy { font-size: 0.85rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: var(--s6); }
.footer-bottom-link { font-size: 0.85rem; color: var(--text-muted); transition: var(--t-fast); }
.footer-bottom-link:hover { color: var(--primary-light); }

/* ─── Mobile Navigation ──────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(10,10,18,0.98);
  backdrop-filter: blur(24px);
  padding: var(--s6);
  border-bottom: 1px solid var(--border);
  z-index: calc(var(--z-sticky) - 1);
  flex-direction: column;
  gap: var(--s2);
  transform: translateY(-100%);
  transition: var(--t);
}
.mobile-nav.open { display: flex; transform: translateY(0); }

.mobile-nav-link {
  padding: var(--s4);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r);
  transition: var(--t-fast);
  border-left: 2px solid transparent;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--primary-light);
  background: var(--primary-dim);
  border-color: var(--primary);
  padding-left: var(--s5);
}

/* ─── Loading Spinner ────────────────────────────────────── */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Responsive ─────────────────────────────────────────── */
.partner-invite-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s12);
  align-items: center;
}
.partner-perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.partner-invite-text {
  padding-left: 20px;
}

@media (max-width: 900px) {
  .partner-invite-grid {
    grid-template-columns: 1fr !important;
    gap: var(--s8);
  }
  .partner-invite-grid > .partner-perks-grid {
    order: 2;
  }
  .partner-invite-text {
    order: 1;
    padding-left: 0 !important;
    text-align: center;
  }
  .partner-invite-text .section-tag {
    margin-inline: auto;
  }
  .partner-perks-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { display: none !important; }
  .nav-actions .btn,
  .nav-desktop-btn,
  #nav-dashboard,
  #nav-login,
  #nav-register {
    display: none !important;
  }
  .nav-toggle { display: flex !important; }
  .hero-inner    { grid-template-columns: 1fr; gap: var(--s8); }
  .hero-text     { max-width: 100%; order: 1; }
  .hero-visual   { order: 2; width: 100%; margin-top: var(--s4); }
  .hero-mockup   { max-width: 100%; width: 100%; margin-inline: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .why-grid      { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .cta-card      { padding: var(--s12) var(--s10); }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  .nav-links { display: none !important; }
  .nav-actions .btn,
  .nav-desktop-btn,
  #nav-dashboard,
  #nav-login,
  #nav-register {
    display: none !important;
  }
  .nav-toggle { display: flex !important; }
  .lang-switcher { display: flex !important; }
  .nav-container { padding-inline: 14px !important; }
  .nav-actions { gap: 8px !important; }
  .lang-dropdown-trigger { padding: 5px 9px !important; font-size: 12px !important; gap: 5px !important; }
  .nav-brand img { height: 26px !important; }

  .hero-inner    { padding-block: var(--s6); min-height: auto; padding-top: calc(var(--nav-height) + var(--s6)); gap: var(--s6); }
  .hero-badge    { margin-bottom: var(--s3); font-size: 0.75rem; padding: 5px 14px; }
  .hero-title    { font-size: clamp(2.2rem, 8vw, 2.9rem); line-height: 1.12; margin-bottom: var(--s4); letter-spacing: -0.03em; }
  .hero-desc     { font-size: 0.98rem; line-height: 1.6; margin-bottom: var(--s6); max-width: 100%; }
  
  .hero-actions  { display: flex; flex-direction: column; width: 100%; gap: var(--s3); margin-bottom: var(--s6); }
  .hero-actions .btn { width: 100%; justify-content: center; text-align: center; padding: 14px var(--s6); font-size: 0.95rem; }

  .hero-stats    { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); background: rgba(22, 22, 38, 0.6); border: 1px solid rgba(255, 255, 255, 0.08); padding: var(--s4); border-radius: var(--r-lg); backdrop-filter: blur(10px); }
  .hero-stats > div[style*="width:1px"], .hero-stat-divider { display: none !important; }
  .hero-stat     { text-align: center; }
  .hero-stat-value { font-size: 1.5rem; }
  .hero-stat-label { font-size: 0.72rem; }

  .hero-mockup   { transform: none !important; animation: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 110, 240, 0.15); }
  .mockup-stat-row { grid-template-columns: repeat(3, 1fr); padding: var(--s3); gap: var(--s2); }
  .mockup-stat   { padding: 8px 4px; }
  .mockup-stat-val { font-size: 1rem; }
  .mockup-stat-lbl { font-size: 0.65rem; }

  .services-grid { grid-template-columns: 1fr !important; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
  .portfolio-grid { grid-template-columns: 1fr !important; }
  .testimonials-grid { grid-template-columns: 1fr !important; }
  .footer-grid   { grid-template-columns: 1fr !important; gap: var(--s8); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-card      { padding: var(--s10) var(--s6); text-align: center; }
  .cta-actions   { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-actions .btn { width: 100%; justify-content: center; text-align: center; }

  .stat-divider  { display: none; }
  .section       { padding-block: var(--s16); }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--s4); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats   { grid-template-columns: repeat(2, 1fr); gap: var(--s3); padding: var(--s3); }
  .grid-2       { grid-template-columns: 1fr; }
}

/* ─── Print ──────────────────────────────────────────────── */
@media print {
  .navbar, .footer, .btn, .flash-container { display: none; }
  body { background: #fff; color: #000; }
}

/* ─── Centralized Flag Styling Override ──────────────────── */
.fi {
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  vertical-align: middle;
}

/* ─── Premium Country Badge ──────────────────────────────── */
.lead-country-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 110, 240, 0.08) !important;
  border: 1px solid rgba(124, 110, 240, 0.25) !important;
  color: #b8b0ff !important;
  font-weight: 600 !important;
  padding: 3px 10px !important;
  border-radius: 8px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(124, 110, 240, 0.05);
}
.lead-country-badge:hover {
  background: rgba(124, 110, 240, 0.16) !important;
  border-color: rgba(124, 110, 240, 0.45) !important;
  box-shadow: 0 4px 12px rgba(124, 110, 240, 0.25);
  transform: translateY(-1.5px);
  color: #d1ccff !important;
}

/* ─── WHMCS Mega Animated Footer ──────────────────────────── */
.whmcs-footer {
  background: #080811;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(124, 110, 240, 0.25);
  color: #a0a0c0;
  font-family: var(--font-body, 'Inter', sans-serif);
}

.whmcs-footer-shimmer {
  height: 2px;
  background: linear-gradient(90deg, #7C6EF0 0%, #00C8F5 33%, #FF416C 66%, #7C6EF0 100%);
  background-size: 200% 100%;
  animation: whmcs-gradient-shift 4s linear infinite;
}

@keyframes whmcs-gradient-shift {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.whmcs-container {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--s6, 28px);
}

/* SVG Helpers */
.ft-svg-icon {
  width: 15px; height: 15px;
  flex-shrink: 0;
  color: #7C6EF0;
  display: inline-block;
  vertical-align: middle;
}

.ft-title-svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: #7C6EF0;
}

.ft-pay-icon {
  width: 14px; height: 14px;
  flex-shrink: 0;
  color: #7C6EF0;
}

/* Topbar */
.whmcs-footer-topbar {
  background: rgba(14, 14, 24, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-block: 10px;
}

.whmcs-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  width: 100%;
}

.whmcs-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 160, 0.08);
  border: 1px solid rgba(0, 212, 160, 0.25);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #00D4A0;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.whmcs-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #00D4A0;
  box-shadow: 0 0 10px #00D4A0;
  animation: whmcs-pulse-dot 1.8s infinite;
  flex-shrink: 0;
}

@keyframes whmcs-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.whmcs-status-text {
  white-space: nowrap;
}

.whmcs-status-pill {
  background: rgba(0, 212, 160, 0.2);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.whmcs-topbar-quicklinks {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  row-gap: 8px;
}

.whmcs-topbar-link {
  color: #b0b0d0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}
.whmcs-topbar-link span {
  white-space: nowrap;
}
.whmcs-topbar-link:hover { color: #fff; transform: translateY(-1px); }
.whmcs-topbar-divider {
  color: rgba(255, 255, 255, 0.15);
  user-select: none;
  flex-shrink: 0;
}

.whmcs-topbar-link.highlight-jobs {
  color: #FFB347;
  font-weight: 600;
  background: rgba(255, 179, 71, 0.12);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 179, 71, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s;
}
.whmcs-topbar-link.highlight-jobs .ft-svg-icon { color: #FFB347; flex-shrink: 0; }
.whmcs-topbar-link.highlight-jobs:hover {
  background: rgba(255, 179, 71, 0.25);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 179, 71, 0.3);
}

/* Footer Body & Grid */
.whmcs-footer-body {
  padding-block: 46px 40px;
}

.whmcs-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr 1fr;
  gap: 32px;
}

.whmcs-footer-col {
  display: flex;
  flex-direction: column;
}

/* Brand col */
.whmcs-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}

.whmcs-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #7C6EF0, #00C8F5);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(124, 110, 240, 0.4);
}

.whmcs-logo-text {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 40%, #a0a0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.whmcs-brand-desc {
  font-size: 0.84rem;
  line-height: 1.65;
  color: #8c8cb0;
  margin-bottom: 16px;
}

.whmcs-contact-mini {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}

.whmcs-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #9a9ab8;
}

.whmcs-social-row {
  display: flex;
  gap: 10px;
}

.whmcs-social-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  color: #a0a0c0;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.whmcs-social-btn svg { width: 17px; height: 17px; }

.whmcs-social-btn.social-fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4); transform: translateY(-3px); }
.whmcs-social-btn.social-ig:hover { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); border-color: #fd1d1d; color: #fff; box-shadow: 0 4px 14px rgba(253, 29, 29, 0.4); transform: translateY(-3px); }
.whmcs-social-btn.social-tt:hover { background: #000000; border-color: #00f2fe; color: #fff; box-shadow: 0 4px 14px rgba(0, 242, 254, 0.4), 0 0 10px rgba(255, 0, 80, 0.3); transform: translateY(-3px); }
.whmcs-social-btn.social-li:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; box-shadow: 0 4px 14px rgba(10, 102, 194, 0.4); transform: translateY(-3px); }
.whmcs-social-btn.social-gh:hover { background: #24292e; border-color: #444d56; color: #fff; box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2); transform: translateY(-3px); }
.whmcs-social-btn.social-dc:hover { background: #5865F2; border-color: #5865F2; color: #fff; box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4); transform: translateY(-3px); }
.whmcs-social-btn.social-tg:hover { background: #229ED9; border-color: #229ED9; color: #fff; box-shadow: 0 4px 14px rgba(34, 158, 217, 0.4); transform: translateY(-3px); }

/* Titles */
.whmcs-col-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.whmcs-col-title.title-jobs {
  color: #FFB347;
}
.whmcs-col-title .icon-jobs {
  color: #FFB347;
}

.whmcs-col-badge {
  background: linear-gradient(135deg, #FF416C, #FF4B2B);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(255, 65, 108, 0.4);
  animation: whmcs-bounce 2s infinite;
}

@keyframes whmcs-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Links List */
.whmcs-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.whmcs-links-list li a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: #8c8ca8;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-arrow {
  color: #7C6EF0;
  opacity: 0.5;
  font-weight: 800;
  font-size: 0.9rem;
  transition: transform 0.2s, color 0.2s, opacity 0.2s;
}

.whmcs-links-list li a:hover {
  color: #ffffff;
  background: rgba(124, 110, 240, 0.08);
  transform: translateX(4px);
}

.whmcs-links-list li a:hover .link-arrow {
  opacity: 1;
  color: #00C8F5;
  transform: translateX(2px);
}

.whmcs-link-promo {
  color: #FF416C !important;
  font-weight: 600;
}
.whmcs-link-promo .link-arrow { color: #FF416C !important; opacity: 1; }

.whmcs-jobs-featured {
  color: #00D4A0 !important;
  font-weight: 600;
}
.whmcs-jobs-featured .link-arrow { color: #00D4A0 !important; opacity: 1; }

/* Badges */
.whmcs-mini-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  line-height: 1.3;
}
.badge-fire { background: rgba(255, 65, 108, 0.2); color: #FF416C; border: 1px solid rgba(255, 65, 108, 0.3); }
.badge-blue { background: rgba(0, 200, 245, 0.15); color: #00C8F5; border: 1px solid rgba(0, 200, 245, 0.3); }
.badge-purple { background: rgba(124, 110, 240, 0.15); color: #9B8FF0; border: 1px solid rgba(124, 110, 240, 0.3); }
.badge-warning { background: rgba(255, 179, 71, 0.15); color: #FFB347; border: 1px solid rgba(255, 179, 71, 0.3); }
.badge-green { background: rgba(0, 212, 160, 0.15); color: #00D4A0; border: 1px solid rgba(0, 212, 160, 0.3); }
.badge-grey { background: rgba(255, 255, 255, 0.06); color: #8a8aa8; }

/* Jobs Callout Box */
.whmcs-jobs-box {
  background: linear-gradient(135deg, rgba(124, 110, 240, 0.12), rgba(0, 200, 245, 0.06));
  border: 1px solid rgba(124, 110, 240, 0.3);
  border-radius: 12px;
  padding: 14px;
  margin-top: 16px;
}

.jobs-box-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.jobs-box-text {
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 10px;
}

.btn-jobs-box {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #7C6EF0, #6355d8);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(124, 110, 240, 0.3);
}
.btn-jobs-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124, 110, 240, 0.5);
  filter: brightness(1.1);
}

/* Bottom Bar */
.whmcs-footer-bottom {
  background: #05050a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: 16px;
}

.whmcs-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.whmcs-copyright {
  font-size: 0.82rem;
  color: #707090;
}
.whmcs-copyright strong { color: #d0d0e0; }

.whmcs-dev-credit {
  display: block;
  font-size: 0.74rem;
  color: #505070;
  margin-top: 2px;
}

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

.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 0.76rem;
  color: #9090b0;
  font-weight: 600;
  transition: all 0.2s;
}
.payment-badge:hover {
  border-color: rgba(124, 110, 240, 0.4);
  color: #fff;
}
.payment-badge.badge-crypto {
  background: rgba(255, 179, 71, 0.08);
  border-color: rgba(255, 179, 71, 0.25);
  color: #FFB347;
}

/* Back to Top */
#whmcs-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C6EF0, #00C8F5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(124, 110, 240, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#whmcs-back-to-top svg { width: 20px; height: 20px; }
#whmcs-back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
#whmcs-back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 28px rgba(124, 110, 240, 0.6);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .whmcs-footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
  .whmcs-footer-col.brand-col {
    grid-column: span 3;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .whmcs-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .whmcs-footer-col.brand-col {
    grid-column: span 1;
  }
  .whmcs-topbar-inner,
  .whmcs-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .whmcs-topbar-quicklinks {
    flex-wrap: wrap;
    gap: 10px 14px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .whmcs-status-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    gap: 6px;
  }
  .whmcs-status-pill {
    font-size: 0.68rem;
    padding: 2px 6px;
  }
  .whmcs-topbar-quicklinks {
    font-size: 0.78rem;
    gap: 8px 12px;
  }
  .whmcs-topbar-divider {
    display: none;
  }
}

/* ─── GDPR Floating Fixed Cookie Banner ─── */
#ssa-cookie-banner {
  position: fixed !important;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 32px) !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  background: rgba(14, 11, 28, 0.98) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 20px !important;
  padding: 18px 22px !important;
  z-index: 2147483647 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(124, 110, 240, 0.3) !important;
  display: none;
}

@media (max-width: 640px) {
  #ssa-cookie-banner {
    bottom: 12px !important;
    width: calc(100% - 20px) !important;
    padding: 14px 16px !important;
    border-radius: 16px !important;
  }
}
