/* ============================================================
   Blueprint Hosting — Main Stylesheet
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --primary:       #2563eb;
  --primary-dark:  #1d4ed8;
  --primary-light: #3b82f6;
  --accent:        #06b6d4;
  --accent-dark:   #0891b2;
  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --bg:            #0a0f1e;
  --bg-card:       #0f172a;
  --bg-card2:      #1e293b;
  --border:        #1e293b;
  --border-light:  #334155;
  --text:          #f1f5f9;
  --text-muted:    #94a3b8;
  --text-dim:      #64748b;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 4px 24px rgba(0,0,0,.4);
  --shadow-lg:     0 8px 48px rgba(0,0,0,.6);
  --transition:    .25s ease;
  --font:          'Inter', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }

/* --- Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- Typography --- */
h1,h2,h3,h4,h5 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { margin-bottom: .75rem; }
.section-title p  { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light);
}
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); }

.btn-ghost {
  background: transparent;
  color: var(--primary-light);
  border-color: transparent;
}
.btn-ghost:hover { background: rgba(37,99,235,.1); }

/* --- Top Bar --- */
.topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: .5rem 0;
  font-size: .8rem;
  color: var(--text-muted);
}
.topbar .container { display: flex; gap: 2rem; justify-content: flex-end; }
.topbar span i { margin-right: .35rem; color: var(--primary-light); }

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,15,30,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--text); }
.logo-icon { font-size: 1.5rem; color: var(--primary-light); }
.logo-accent { color: var(--accent); }
.logo:hover { color: var(--text); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}
.nav-links > li > a {
  padding: .5rem .85rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--text); background: rgba(255,255,255,.06); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle .fa-chevron-down { font-size: .7rem; transition: transform var(--transition); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  /* Padding-top creates the visual gap WITHOUT a real gap the mouse can fall through */
  padding: .5rem .5rem .5rem;
  padding-top: .75rem;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  box-shadow: var(--shadow-lg);
  /* Invisible bridge above the menu so the mouse can travel from button to menu */
  margin-top: 0;
}
/* Pseudo-element fills the gap so hover doesn't break mid-travel */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
}
.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .9rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: .9rem;
  transition: all var(--transition);
}
.dropdown-menu li a:hover { background: rgba(255,255,255,.06); color: var(--text); }
.dropdown-menu li a i { width: 18px; color: var(--primary-light); }

/* Nav Auth */
.nav-auth { display: flex; align-items: center; gap: .75rem; margin-left: 1.5rem; flex-shrink: 0; }

/* User menu */
.user-menu { position: relative; }
.btn-user {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: .45rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.btn-user:hover { border-color: var(--primary-light); }

.user-dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  background: var(--bg-card2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: .5rem;
  min-width: 180px;
  display: none;
  box-shadow: var(--shadow-lg);
}
.user-dropdown.open { display: block; }
.user-dropdown li a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .9rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: .9rem;
}
.user-dropdown li a:hover { background: rgba(255,255,255,.06); color: var(--text); }
.user-dropdown li a i { width: 16px; color: var(--primary-light); }
.user-dropdown .divider { border-top: 1px solid var(--border); margin: .35rem 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 50%, rgba(6,182,212,.2) 0%, transparent 60%),
    var(--bg);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 5rem 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(37,99,235,.15);
  border: 1px solid rgba(37,99,235,.4);
  color: var(--primary-light);
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
}

.hero-title { margin-bottom: 1.25rem; }
.hero-title span { display: block; }

.hero-desc { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; max-width: 520px; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: left; }
.stat-num  { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .15rem; }

/* Hero visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card-stack { position: relative; width: 380px; height: 380px; }
.hero-card {
  position: absolute;
  background: var(--bg-card2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.hero-card.main  { width: 280px; top: 50px; left: 50px; z-index: 3; }
.hero-card.float1 { width: 160px; top: 20px; right: 10px; z-index: 2; animation: float1 4s ease-in-out infinite; }
.hero-card.float2 { width: 160px; bottom: 30px; left: 10px; z-index: 2; animation: float2 5s ease-in-out infinite; }

@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }

.hero-card .card-icon { font-size: 2rem; margin-bottom: .75rem; }
.hero-card h4 { font-size: 1rem; margin-bottom: .35rem; }
.hero-card p  { font-size: .8rem; color: var(--text-muted); }
.hero-card .card-stat { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.hero-card .card-up   { font-size: .75rem; color: var(--success); }

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(37,99,235,.08), var(--bg-card));
  position: relative;
}
.card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem 1rem;
  border-radius: 0 0 8px 8px;
  letter-spacing: .05em;
}

/* Service cards grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover { border-color: var(--border-light); transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.service-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
}
.icon-blue   { background: rgba(37,99,235,.15);  color: var(--primary-light); }
.icon-cyan   { background: rgba(6,182,212,.15);  color: var(--accent); }
.icon-green  { background: rgba(16,185,129,.15); color: var(--success); }
.icon-orange { background: rgba(245,158,11,.15); color: var(--warning); }
.icon-purple { background: rgba(139,92,246,.15); color: #a78bfa; }

.service-card h3 { margin-bottom: .6rem; }
.service-card p  { color: var(--text-muted); font-size: .92rem; margin-bottom: 1.5rem; }
.service-card .price { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: 1rem; }
.service-card .price span { font-size: .85rem; font-weight: 400; color: var(--text-muted); }

/* Pricing cards */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; align-items: start; }

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
}
.pricing-card.featured { border-color: var(--primary); }
.pricing-card:hover { border-color: var(--border-light); box-shadow: var(--shadow-lg); }
.pricing-card .plan-name { font-size: .85rem; font-weight: 600; color: var(--primary-light); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.pricing-card h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.pricing-card .price-val { font-size: 2.8rem; font-weight: 900; margin: 1rem 0; }
.pricing-card .price-val sup { font-size: 1.2rem; font-weight: 600; vertical-align: super; }
.pricing-card .price-val small { font-size: .9rem; font-weight: 400; color: var(--text-muted); }
.pricing-card .plan-desc { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.pricing-card ul { margin-bottom: 2rem; }
.pricing-card ul li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 0;
  font-size: .92rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.pricing-card ul li:last-child { border: none; }
.pricing-card ul li i { color: var(--success); font-size: .85rem; flex-shrink: 0; }
.pricing-card ul li.unavailable { opacity: .4; }
.pricing-card ul li.unavailable i { color: var(--text-dim); }

/* --- Feature / Info Sections --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.feature-item {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.feature-item:hover { border-color: var(--border-light); }
.feature-item .fi { font-size: 2rem; color: var(--primary-light); margin-bottom: .75rem; }
.feature-item h4 { margin-bottom: .4rem; }
.feature-item p  { color: var(--text-muted); font-size: .88rem; }

/* Two-col split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split.reverse .split-visual { order: -1; }
.split-visual {
  background: var(--bg-card2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary-light);
  position: relative;
  overflow: hidden;
}
.split-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(37,99,235,.15) 0%, transparent 70%);
}

/* --- Integration Logos --- */
.integrations { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.integrations-inner { display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; padding: 2.5rem 0; }
.integration-badge {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .95rem;
  opacity: .7;
  transition: opacity var(--transition);
}
.integration-badge:hover { opacity: 1; }
.integration-badge i { font-size: 1.6rem; color: var(--primary-light); }

/* --- Testimonials --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.testimonial-card .stars { color: var(--warning); margin-bottom: .75rem; }
.testimonial-card blockquote { color: var(--text-muted); font-size: .95rem; font-style: italic; margin-bottom: 1.25rem; }
.testimonial-card .author { display: flex; align-items: center; gap: .75rem; }
.testimonial-card .author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: #fff; flex-shrink: 0;
}
.testimonial-card .author-name { font-weight: 600; font-size: .9rem; }
.testimonial-card .author-role { font-size: .8rem; color: var(--text-dim); }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), #1e40af 50%, var(--accent-dark));
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
}
.cta-banner h2 { margin-bottom: .75rem; }
.cta-banner p  { color: rgba(255,255,255,.8); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Alerts --- */
.alert {
  padding: .9rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: .92rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.alert-success { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }
.alert-error   { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.alert-info    { background: rgba(37,99,235,.12);  border: 1px solid rgba(37,99,235,.3);  color: #93c5fd; }
.alert-warning { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3); color: #fcd34d; }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 500; color: var(--text-muted); margin-bottom: .45rem; }
.form-control {
  width: 100%;
  background: var(--bg-card2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text);
  padding: .75rem 1rem;
  font-size: .95rem;
  font-family: var(--font);
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: .9rem; pointer-events: none; }
.input-icon .form-control { padding-left: 2.75rem; }

/* --- Auth pages --- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37,99,235,.2) 0%, transparent 60%), var(--bg);
  padding: 2rem 1rem;
}
.auth-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-box .logo { justify-content: center; margin-bottom: 1.75rem; font-size: 1.4rem; }
.auth-box h2 { text-align: center; margin-bottom: .4rem; }
.auth-box .auth-sub { text-align: center; color: var(--text-muted); font-size: .9rem; margin-bottom: 2rem; }
.auth-box .auth-footer { text-align: center; margin-top: 1.5rem; color: var(--text-muted); font-size: .88rem; }
.auth-box .auth-footer a { color: var(--primary-light); }

/* --- Dashboard --- */
.dashboard { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar .logo { margin-bottom: 2rem; padding: 0 .5rem; }
.sidebar-nav { display: flex; flex-direction: column; gap: .25rem; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 500;
  transition: all var(--transition);
}
.sidebar-nav a:hover,
.sidebar-nav a.active { background: rgba(37,99,235,.12); color: var(--primary-light); }
.sidebar-nav a i { width: 18px; text-align: center; }
.sidebar-section { font-size: .72rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; padding: 1.25rem 1rem .4rem; }

.dashboard-main { padding: 2.5rem; overflow-y: auto; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.dashboard-header h1 { font-size: 1.6rem; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.stat-card .stat-num  { font-size: 1.6rem; font-weight: 800; }
.stat-card .stat-lbl  { font-size: .8rem; color: var(--text-muted); }

/* --- Tables --- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead th { background: var(--bg-card2); color: var(--text-muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: .85rem 1.25rem; text-align: left; }
tbody td { padding: 1rem 1.25rem; border-top: 1px solid var(--border); font-size: .92rem; color: var(--text-muted); }
tbody tr:hover td { background: rgba(255,255,255,.02); }
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .7rem; border-radius: 50px; font-size: .75rem; font-weight: 600;
}
.badge-green  { background: rgba(16,185,129,.12); color: #6ee7b7; }
.badge-blue   { background: rgba(37,99,235,.12);  color: #93c5fd; }
.badge-yellow { background: rgba(245,158,11,.12); color: #fcd34d; }
.badge-red    { background: rgba(239,68,68,.12);  color: #fca5a5; }
.badge-gray   { background: rgba(100,116,139,.12); color: var(--text-muted); }

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(37,99,235,.25) 0%, transparent 70%);
  position: relative;
}
.page-hero .breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  color: var(--text-dim); font-size: .85rem; margin-bottom: 1rem;
}
.page-hero .breadcrumb a { color: var(--text-muted); }
.page-hero .breadcrumb a:hover { color: var(--primary-light); }
.page-hero .breadcrumb i { font-size: .65rem; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p  { color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; font-size: 1.05rem; }

/* --- Contact Section --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-info h3 { margin-bottom: 1rem; }
.contact-info p  { color: var(--text-muted); margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.contact-item .ci-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--radius); background: rgba(37,99,235,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light); font-size: 1.1rem;
}
.contact-item h4 { font-size: .9rem; margin-bottom: .2rem; }
.contact-item p  { color: var(--text-muted); font-size: .88rem; margin: 0; }

/* --- Footer --- */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p  { color: var(--text-muted); font-size: .9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.social-links { display: flex; gap: .75rem; }
.social-links a {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: var(--bg-card2); border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .95rem; transition: all var(--transition);
}
.social-links a:hover { border-color: var(--primary-light); color: var(--primary-light); }
.footer-col h4 { font-size: .9rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }
.footer-col ul li a { color: var(--text-muted); font-size: .88rem; display: block; padding: .3rem 0; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-contact p { color: var(--text-muted); font-size: .85rem; margin-top: 1rem; display: flex; align-items: center; gap: .5rem; }
.footer-contact i { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text-dim); font-size: .85rem;
}
.payment-badges { display: flex; align-items: center; gap: .75rem; }
.badge-text { color: var(--text-muted); font-size: .82rem; }

/* --- Scroll to top --- */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 44px; height: 44px;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius); cursor: pointer;
  font-size: 1rem; display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: all var(--transition);
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--primary-dark); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner  { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .split       { grid-template-columns: 1fr; }
  .split.reverse .split-visual { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-auth { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 1rem; gap: .25rem; z-index: 999; }
  .nav-toggle { display: flex; }
  .nav-inner  { position: relative; }
  .pricing-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .dashboard-main { padding: 1.5rem 1rem; }
  .topbar .container { justify-content: center; flex-wrap: wrap; gap: .75rem; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .auth-box { padding: 1.75rem 1.25rem; }
}

/* --- Plan cards (dynamic) --- */
.plan-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .9rem;
  border-radius: 50px;
  letter-spacing: .06em;
  margin-bottom: .75rem;
}
.pricing-card.featured .plan-badge { background: var(--accent); }

.plan-image {
  width: 100%;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--bg-card2);
  border: 1px solid var(--border);
}
.plan-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.plan-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--text-dim);
  font-size: .85rem;
}
.plan-image-placeholder i { font-size: 2.5rem; color: var(--primary-light); }

/* Admin plans manager */
.admin-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.admin-plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.admin-plan-card:hover { border-color: var(--border-light); }
.admin-plan-card .apc-img {
  height: 140px;
  background: var(--bg-card2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 3rem;
  overflow: hidden;
}
.admin-plan-card .apc-img img { width:100%; height:100%; object-fit:cover; }
.admin-plan-card .apc-body { padding: 1.25rem; }
.admin-plan-card .apc-cat  { font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--primary-light); margin-bottom:.35rem; }
.admin-plan-card .apc-name { font-size:1.05rem; font-weight:700; margin-bottom:.25rem; }
.admin-plan-card .apc-price { font-size:1.5rem; font-weight:800; color:var(--accent); }
.admin-plan-card .apc-price small { font-size:.8rem; font-weight:400; color:var(--text-muted); }
.admin-plan-card .apc-actions { display:flex; gap:.5rem; margin-top:1rem; }
.admin-plan-card .apc-status { display:inline-flex; align-items:center; gap:.3rem; font-size:.75rem; font-weight:600; }

/* Plan form modal */
.modal-overlay {
  position: fixed; inset:0; background:rgba(0,0,0,.7); z-index:2000;
  display:flex; align-items:center; justify-content:center; padding:1rem;
}
.modal-overlay.hidden { display:none; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 680px;
  max-height: 90vh; overflow-y:auto;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.modal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:1.5rem; }
.modal-header h3 { font-size:1.2rem; }
.modal-close { background:none; border:none; color:var(--text-muted); font-size:1.25rem; cursor:pointer; }
.modal-close:hover { color:var(--text); }

/* Features list in plan form */
.features-editor { display:flex; flex-direction:column; gap:.5rem; margin-bottom:.75rem; }
.feature-row { display:flex; align-items:center; gap:.6rem; }
.feature-row input[type=text] { flex:1; }
.feature-row select { width:90px; flex-shrink:0; }
.feature-row .btn-rm { background:none; border:none; color:var(--danger); cursor:pointer; font-size:1rem; padding:.25rem; }

/* Category tabs in admin */
.cat-tabs { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:2rem; }
.cat-tab {
  padding:.45rem 1.1rem; border-radius:var(--radius); font-size:.88rem; font-weight:600;
  background:var(--bg-card2); border:1px solid var(--border); color:var(--text-muted);
  cursor:pointer; transition:all var(--transition);
}
.cat-tab:hover { border-color:var(--border-light); color:var(--text); }
.cat-tab.active { background:var(--primary); border-color:var(--primary); color:#fff; }

/* ============================================================
   Game Servers Page — Featured Slider + Game Cards
   ============================================================ */

/* Hero slider */
.game-hero {
  position: relative;
  background: linear-gradient(135deg, #0a0f1e 0%, #0d1b2e 100%);
  overflow: hidden;
  min-height: 520px;
}
.game-hero-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.game-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  position: relative;
}
.game-slide-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
  width: 100%;
}
.game-slide-content { z-index: 2; }
.game-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(37,99,235,.2);
  border: 1px solid rgba(37,99,235,.5);
  color: #60a5fa;
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 50px;
  letter-spacing: .06em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.game-slide h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #f1f5f9;
}
.game-slide p {
  color: #94a3b8;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
  line-height: 1.7;
}
.game-slide-features {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.75rem;
}
.game-slide-features li {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #cbd5e1;
  font-size: .9rem;
}
.game-slide-features li i { color: #22c55e; font-size: .85rem; flex-shrink: 0; }
.game-slide-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 1.25rem;
}
.game-slide-price span { color: #06b6d4; font-size: 2rem; }
.game-slide-price small { font-size: .9rem; font-weight: 400; color: #64748b; }
.game-slide-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.game-slide-trial {
  color: #94a3b8;
  font-size: .82rem;
  margin-top: 1rem;
  font-style: italic;
}

.game-slide-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.game-slide-image img {
  width: 100%;
  max-width: 400px;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  filter: brightness(.95);
}
.game-slide-image .img-placeholder {
  width: 380px;
  height: 280px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 16px;
  border: 1px solid #334155;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #475569;
}
.game-slide-image .img-placeholder i { font-size: 4rem; color: #3b82f6; }
.game-slide-image .img-placeholder span { font-size: 1.2rem; font-weight: 700; color: #64748b; }

/* Slider controls */
.slider-nav {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}
.slider-dots { display: flex; gap: .5rem; }
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: all .3s;
  border: none;
  padding: 0;
}
.slider-dot.active { background: #3b82f6; width: 24px; border-radius: 4px; }
.slider-arrow {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.slider-arrow:hover { background: rgba(37,99,235,.4); border-color: #3b82f6; }

/* Game card grid */
.game-cards-section { padding: 4rem 0; }
.game-cards-section .section-title { margin-bottom: 2rem; }
.game-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.game-card:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(37,99,235,.2);
}
.game-card-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  background: #1e293b;
}
.game-card-img-placeholder {
  width: 100%;
  height: 130px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.game-card-body { padding: .9rem 1rem; }
.game-card-name { font-size: .92rem; font-weight: 700; color: #f1f5f9; margin-bottom: .25rem; }
.game-card-price { font-size: .85rem; color: #06b6d4; font-weight: 600; }
.game-card-price span { font-size: .75rem; color: #64748b; font-weight: 400; }
.game-card-btn {
  display: block;
  text-align: center;
  margin: .5rem .75rem .75rem;
  padding: .4rem;
  background: rgba(37,99,235,.12);
  border: 1px solid rgba(37,99,235,.3);
  border-radius: 6px;
  color: #60a5fa;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.game-card-btn:hover { background: #2563eb; border-color: #2563eb; color: #fff; }

/* Features banner */
.game-features-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
}
.game-features-banner .gfb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.game-features-banner h2 { margin-bottom: 1rem; }
.game-features-banner p  { color: #94a3b8; margin-bottom: 1.5rem; }
.game-features-list { display: flex; flex-direction: column; gap: .6rem; }
.game-features-list li {
  display: flex; align-items: center; gap: .75rem;
  color: #cbd5e1; font-size: .92rem;
}
.game-features-list li i { color: #22c55e; flex-shrink: 0; }
.game-features-badge {
  display: inline-block;
  margin-top: 1.5rem;
  background: rgba(6,182,212,.1);
  border: 1px solid rgba(6,182,212,.3);
  color: #06b6d4;
  font-size: .85rem;
  font-weight: 700;
  padding: .5rem 1.25rem;
  border-radius: 50px;
}
.gfb-visual {
  background: var(--bg-card2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.gfb-stat {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem;
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.15);
  border-radius: var(--radius);
}
.gfb-stat-label { color: #94a3b8; font-size: .88rem; }
.gfb-stat-val   { color: #06b6d4; font-weight: 700; font-size: 1rem; }

@media (max-width: 900px) {
  .game-slide-inner { grid-template-columns: 1fr; }
  .game-slide-image { display: none; }
  .game-features-banner .gfb-grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .game-card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
