/* ==========================================================================
   VEXASOFTWARE - NEXT-GEN HYPER-FUTURISTIC CYBERPUNK DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
  /* Obsidian Core Palette */
  --bg-core: #020408;
  --bg-surface: #060912;
  --bg-surface-elevated: #0b101d;
  --bg-card: rgba(11, 16, 29, 0.85);
  --bg-card-hover: rgba(18, 26, 48, 0.95);
  --bg-input: #04070e;

  /* Neon Border Accents */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-indigo: rgba(99, 102, 241, 0.6);
  --border-cyan: rgba(14, 165, 233, 0.6);
  --border-emerald: rgba(16, 185, 129, 0.6);

  /* Vibrant HSL Gradients */
  --primary: #6366f1;
  --secondary: #0ea5e9;
  --purple: #a855f7;
  --pink: #ec4899;
  --emerald: #10b981;
  --amber: #f59e0b;

  --grad-primary: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
  --grad-secondary: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
  --grad-accent: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  --grad-surface: linear-gradient(180deg, rgba(18, 26, 48, 0.9) 0%, rgba(6, 9, 18, 0.98) 100%);
  --grad-glow: radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.28) 0%, rgba(14, 165, 233, 0.08) 50%, rgba(2, 4, 8, 0) 100%);

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Shadows & Neon Glows */
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  --glow-primary: 0 0 40px rgba(99, 102, 241, 0.4);
  --glow-cyan: 0 0 40px rgba(14, 165, 233, 0.4);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-code: 'Fira Code', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-core);
}
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.35);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Base Reset & Layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-core);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Radial Mesh Backdrop */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--grad-glow);
  pointer-events: none;
  z-index: -1;
}

/* Cyber Grid Background Pattern */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.03em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--secondary);
}

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

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* TOP ANNOUNCEMENT BANNER */
.top-announcement {
  background: linear-gradient(90deg, #1e1b4b 0%, #311b92 50%, #0f172a 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.4);
  padding: 8px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #e0e7ff;
  font-weight: 500;
  position: relative;
  z-index: 1001;
  width: 100%;
}

.top-ann-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  white-space: nowrap !important;
}

.ann-badge,
.announcement-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.top-announcement a,
.ann-link {
  color: #38bdf8 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  white-space: nowrap !important;
}

/* STICKY FROSTED NAVBAR */
.navbar,
.navbar-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 74px;
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(6, 9, 18, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container,
.navbar-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.logo {
  text-decoration: none;
  flex-shrink: 0;
}

.logo-capsule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.logo-capsule:hover {
  border-color: var(--primary);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.1);
}

.logo-img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  height: 74px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-links li {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  white-space: nowrap;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  border-bottom-color: var(--primary);
}

.nav-icon {
  font-size: 0.9rem;
}

/* MEGA MENU DROPDOWN */
.dropdown-parent {
  position: relative;
}

.dropdown-arrow {
  font-size: 0.7rem;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.dropdown-parent:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 340px;
  background: #0b101d;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.95);
  z-index: 999999;
}

/* Hover & Open States */
.dropdown-parent:hover > .dropdown-menu,
.dropdown-menu.is-active-dropdown {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.dropdown-link {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  color: var(--text-main) !important;
  text-decoration: none !important;
  border-bottom: none !important;
  height: auto !important;
  width: 100% !important;
  white-space: normal !important;
  transition: background 0.2s ease;
  cursor: pointer !important;
}

.dropdown-link:hover {
  background: rgba(99, 102, 241, 0.2) !important;
  color: #ffffff !important;
}

/* ANNOUNCEMENTS WIDGET DROPDOWN UNDER BUTTON */
.nav-announcements-wrapper {
  position: relative;
  display: inline-block;
}

.announcements-widget-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 360px;
  background: #0b101d;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.95);
  z-index: 9999999;
}

/* Invisible Mouse Bridge */
.announcements-widget-dropdown::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

.announcements-widget-dropdown.show-widget {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

/* CLICKABLE ANNOUNCEMENT WIDGET CARDS */
.ann-widget-card {
  display: block !important;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  cursor: pointer;
}

.ann-widget-card:hover {
  background: rgba(99, 102, 241, 0.18) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
  transform: translateY(-2px);
}

.ann-card-type {
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.ann-card-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.ann-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.ann-card-action {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
}

.dropdown-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.dropdown-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

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

/* NAV ACTIONS & MOBILE TOGGLE */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none !important;
}

.node-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.8rem;
  color: var(--emerald);
  font-weight: 600;
}

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

@keyframes pulseDot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.4); }
  100% { opacity: 1; transform: scale(1); }
}

/* BUTTON SYSTEM */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.65);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

/* HERO SECTION */
.hero {
  padding: 100px 0 80px 0;
  position: relative;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* HERO TERMINAL WIDGET WITH INTERACTIVE BUTTONS */
.hero-terminal-widget {
  background: #04070e;
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--glow-primary);
  font-family: var(--font-code);
}

.terminal-top-bar {
  background: #0b101d;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.t-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.t-btn.red { background: #ef4444; }
.t-btn.yellow { background: #f59e0b; }
.t-btn.green { background: #10b981; }

.terminal-screen {
  padding: 24px;
  color: #a7f3d0;
  font-size: 0.9rem;
  line-height: 1.8;
  min-height: 320px;
}

.terminal-actions-bar {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  background: #070b14;
  border-top: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.terminal-cmd-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--font-code);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.terminal-cmd-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: transparent;
}

/* INTERACTIVE RESOURCE CONFIGURATOR / CALCULATOR WIDGET */
.resource-calculator-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.calc-slider-group {
  margin-bottom: 28px;
}

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

.calc-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.calc-val {
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary);
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #162035;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-primary);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}

/* PING LATENCY CHECKER WIDGET */
.ping-checker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.ping-card {
  padding: 24px;
  border-radius: 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ping-value {
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--emerald);
}

/* SUBDOMAIN PORTAL GRID (4 Columns) */
.subdomain-portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.portal-card {
  padding: 32px 24px;
  border-radius: 22px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
  background: var(--bg-card-hover);
}

.portal-url-tag {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--secondary);
  background: rgba(14, 165, 233, 0.12);
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(14, 165, 233, 0.25);
  display: inline-block;
  margin-bottom: 16px;
}

/* CATEGORY FILTER TABS */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* 3-COLUMN SIDE-BY-SIDE GRID FIX FOR PRICING & SERVICES */
.services-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.glass-card,
.pricing-box,
.pricing-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.glass-card:hover,
.pricing-card:hover,
.pricing-box:hover {
  border-color: var(--border-indigo);
  background: var(--bg-card-hover);
  box-shadow: var(--glow-primary), var(--shadow-lg);
  transform: translateY(-5px);
}

.pricing-card.featured,
.pricing-box.featured {
  border-color: var(--primary);
  background: var(--grad-surface);
  box-shadow: var(--glow-primary);
}

.popular-badge,
.pricing-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--grad-primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-price,
.price-amount {
  font-size: 2.8rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: #ffffff;
  margin: 14px 0 20px 0;
}

.pricing-price span,
.price-amount span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features,
.features-list {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li,
.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.pricing-features li i,
.features-list li i {
  color: var(--emerald);
}

/* SECTIONS & HEADERS */
.section {
  padding: 95px 0;
}

.section-header,
.section-title {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 55px auto;
}

.section-header h2,
.section-title h2 {
  font-size: 2.6rem;
  margin-bottom: 14px;
}

.section-header p,
.section-title p {
  color: var(--text-muted);
  font-size: 1.08rem;
}

.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.78rem;
  margin-bottom: 14px;
  text-transform: uppercase;
}

/* REAL FULL-PAGE AUTH SPLIT SCREEN */
.full-auth-page {
  width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--bg-core);
}

.auth-hero-side {
  background: linear-gradient(145deg, #0b101d 0%, #020408 100%);
  border-right: 1px solid var(--border-subtle);
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-hero-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.back-link:hover {
  color: #ffffff;
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.15);
}

.auth-hero-visual-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto 0;
}

.auth-hero-visual-box img {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
}

.auth-hero-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-form-side {
  background-color: var(--bg-surface);
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-box {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.auth-header {
  margin-bottom: 30px;
}

.auth-header h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 0.88rem;
}

.checkbox-label {
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 20px;
}

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

.input-with-icon {
  position: relative;
}

.input-with-icon i.fa-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.form-control {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 44px;
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  cursor: pointer;
}

/* DASHBOARD LAYOUT */
.dashboard-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  margin-top: 30px;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
}

.sidebar-menu li a.active,
.sidebar-menu li a:hover {
  background: var(--grad-primary);
  color: #ffffff;
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.data-table th {
  color: var(--text-muted);
  font-weight: 600;
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.footer {
  background: #010204;
  padding: 70px 0 30px 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 90px;
}

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

.footer-bottom {
  text-align: center;
  color: var(--text-dim);
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

/* RESPONSIVE BREAKDOWN */
@media (max-width: 1100px) {
  .subdomain-portal-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .full-auth-page { grid-template-columns: 1fr; }
  .auth-hero-side { display: none; }
  .auth-form-side { padding: 60px 24px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.8rem; }
}

/* ACCOUNT DASHBOARD HERO & TAB NAV STYLES (MATCHING USER SCREENSHOT) */
.account-hero-header {
  background: linear-gradient(135deg, #050b2c 0%, #0a113d 50%, #030617 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 24px;
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(5, 11, 44, 0.8);
  position: relative;
  overflow: hidden;
}

.account-hero-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.account-user-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}

.account-user-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.account-user-info h3 {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
  font-weight: 500;
}

.account-user-info h1 {
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
}

.account-settings-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.account-settings-btn:hover {
  background: var(--primary);
  transform: rotate(45deg);
}

.account-user-email {
  color: var(--secondary);
  font-family: var(--font-code);
  font-size: 0.95rem;
}

.account-balance-box {
  background: rgba(6, 12, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.account-balance-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-balance-icon {
  font-size: 1.8rem;
  color: var(--secondary);
}

.account-balance-text h4 {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2px;
}

.account-balance-text span {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-heading);
}

.btn-add-balance {
  background: #10b981;
  color: #ffffff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-add-balance:hover {
  background: #059669;
  transform: translateY(-2deg);
}

/* HORIZONTAL TABS GRID MATCHING USER SCREENSHOT */
.account-tab-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.account-tab-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
  text-decoration: none;
  color: #334155;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.account-tab-card:hover,
.account-tab-card.active {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
  transform: translateY(-3deg);
  background: #ffffff;
}

.account-tab-card.active {
  border-width: 2px;
  border-color: var(--primary);
}

.account-tab-icon {
  font-size: 1.4rem;
  color: #64748b;
  transition: color 0.2s ease;
}

.account-tab-card:hover .account-tab-icon,
.account-tab-card.active .account-tab-icon {
  color: var(--primary);
}

.account-tab-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
}

@media (max-width: 1024px) {
  .account-tab-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 640px) {
  .account-tab-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-announcement { display: none; }
  .mobile-toggle { display: block !important; }
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    height: auto;
    background: var(--bg-core);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.active { display: flex; }
  .subdomain-portal-grid { grid-template-columns: 1fr; }
  .services-grid, .pricing-grid { grid-template-columns: 1fr; }
}

/* Announcements Dropdown Hover */
.nav-announcements-wrapper:hover .announcements-dropdown-box {
  display: block !important;
  animation: fadeInDown 0.25s ease forwards;
}

