/* ============================================================
   SD Solutions — Premium SaaS Design System
   Dark theme • Glassmorphism • Blue/Purple gradients
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #07070f;
  --bg-2: #0a0a18;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(139, 92, 246, 0.45);
  --text: #eef0ff;
  --text-dim: #9aa0c3;
  --text-faint: #5d6285;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --cyan: #22d3ee;
  --green: #34d399;
  --red: #f87171;
  --yellow: #fbbf24;
  --grad: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(59,130,246,.15), rgba(139,92,246,.15));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.25);
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: rgba(139, 92, 246, .4); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26264a; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3b3b6e; }

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: #7ca9ff; }
img { max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.2; }

.grad-text {
  background: linear-gradient(120deg, #7cb3ff, #a78bfa 55%, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------- Animated background ---------------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 20% -5%, rgba(59, 130, 246, .16), transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 10%, rgba(139, 92, 246, .14), transparent 60%),
    radial-gradient(ellipse 60% 45% at 50% 110%, rgba(99, 102, 241, .12), transparent 65%),
    var(--bg);
}
.bg-fx::before {
  content: ''; position: absolute; inset: -50%;
  background-image:
    linear-gradient(rgba(139, 92, 246, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 10%, transparent 70%);
  animation: gridDrift 60s linear infinite;
}
@keyframes gridDrift { to { transform: translate(56px, 56px); } }

.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: orbFloat 14s ease-in-out infinite alternate; }
.orb-1 { width: 480px; height: 480px; background: rgba(59, 130, 246, .22); top: -160px; left: -120px; }
.orb-2 { width: 420px; height: 420px; background: rgba(139, 92, 246, .2); top: 20%; right: -140px; animation-delay: -5s; }
.orb-3 { width: 380px; height: 380px; background: rgba(34, 211, 238, .12); bottom: -120px; left: 30%; animation-delay: -9s; }
@keyframes orbFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 60px) scale(1.15); } }

#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------------- Glass ---------------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ---------------- Reveal animations ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-in { animation: fadeUp .8s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------------- Loading splash ---------------- */
#splash {
  position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  background: var(--bg); transition: opacity .5s, visibility .5s;
}
#splash.hide { opacity: 0; visibility: hidden; }
#splash .logo-img { width: 84px; height: 84px; animation: splashPulse 1.6s ease-in-out infinite; }
@keyframes splashPulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(59, 130, 246, .6)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 34px rgba(139, 92, 246, .9)); transform: scale(1.06); }
}
#splash .splash-bar { width: 160px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
#splash .splash-bar::after { content: ''; display: block; height: 100%; width: 40%; background: var(--grad); border-radius: 3px; animation: splashLoad 1.1s ease-in-out infinite; }
@keyframes splashLoad { 0% { transform: translateX(-120%); } 100% { transform: translateX(420%); } }

/* ---------------- Logo ---------------- */
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text) !important; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.logo-img { width: 40px; height: 40px; transition: filter .3s, transform .3s; filter: drop-shadow(0 0 6px rgba(59, 130, 246, .35)); }
.brand:hover .logo-img { filter: drop-shadow(0 0 16px rgba(59, 130, 246, .9)); transform: scale(1.06); }
.logo-lg { width: 88px; height: 88px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 12px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px; cursor: pointer;
  transition: transform .2s, box-shadow .25s, background .25s, border-color .25s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff !important; box-shadow: 0 6px 24px rgba(99, 102, 241, .35); }
.btn-primary:hover { box-shadow: 0 8px 34px rgba(139, 92, 246, .55); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text) !important; backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-2px); }
.btn-danger { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .35); color: var(--red) !important; }
.btn-danger:hover { background: rgba(248, 113, 113, .22); }
.btn-success { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .35); color: var(--green) !important; }
.btn-success:hover { background: rgba(52, 211, 153, .22); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 15px 34px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------------- Navbar ---------------- */
.navbar {
  position: sticky; top: 0; z-index: 500;
  background: rgba(7, 7, 15, .72);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 16px; flex: 1; }
.nav-links a {
  color: var(--text-dim); font-size: 14.5px; font-weight: 500; padding: 8px 13px; border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; color: var(--text); cursor: pointer; }

.announce-bar {
  background: linear-gradient(90deg, rgba(59, 130, 246, .18), rgba(139, 92, 246, .18));
  border-bottom: 1px solid var(--border);
  text-align: center; padding: 9px 16px; font-size: 13.5px; color: #c7d4ff;
}

/* ---------------- Layout ---------------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head .eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple); background: rgba(139, 92, 246, .1); border: 1px solid rgba(139, 92, 246, .3);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.section-head p { color: var(--text-dim); font-size: 16.5px; }

/* ---------------- Hero ---------------- */
.hero { padding: 110px 0 80px; text-align: center; position: relative; }
.hero .logo-img { width: 108px; height: 108px; margin-bottom: 28px; animation: heroLogo 4s ease-in-out infinite; }
@keyframes heroLogo {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(59, 130, 246, .5)); transform: translateY(0); }
  50% { filter: drop-shadow(0 0 34px rgba(139, 92, 246, .8)); transform: translateY(-8px); }
}
.hero h1 { font-size: clamp(36px, 6vw, 64px); max-width: 850px; margin: 0 auto 22px; font-weight: 700; }
.hero p { color: var(--text-dim); font-size: clamp(16px, 2vw, 19px); max-width: 620px; margin: 0 auto 38px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  font-size: 13px; color: #a5b4fc; background: rgba(99, 102, 241, .1);
  border: 1px solid rgba(99, 102, 241, .35); padding: 7px 16px; border-radius: 100px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 1.8s infinite; }
@keyframes blink { 50% { opacity: .4; } }

/* ---------------- Highlights strip ---------------- */
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 70px; }
.highlight {
  padding: 22px; display: flex; align-items: flex-start; gap: 14px; text-align: left;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.highlight:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.highlight .h-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(139, 92, 246, .3); color: #a5b4fc;
}
.highlight h4 { font-size: 15px; margin-bottom: 4px; }
.highlight p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* ---------------- Feature cards ---------------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { padding: 28px 24px; position: relative; overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s; }
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, .6), transparent);
  opacity: 0; transition: opacity .3s;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.feature-card:hover::before { opacity: 1; }
.feature-card .f-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-soft); border: 1px solid rgba(139, 92, 246, .3); color: #a5b4fc;
  transition: transform .3s, box-shadow .3s;
}
.feature-card:hover .f-icon { transform: scale(1.08) rotate(-4deg); box-shadow: 0 0 22px rgba(139, 92, 246, .4); }
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--text-dim); }

/* ---------------- Video ---------------- */
.video-wrap { max-width: 880px; margin: 0 auto; padding: 12px; position: relative; }
.video-wrap::before {
  content: ''; position: absolute; inset: -2px; border-radius: 20px; z-index: -1;
  background: var(--grad); opacity: .35; filter: blur(22px);
}
.video-frame { position: relative; width: 100%; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------- Pricing ---------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: stretch; }
.price-card { padding: 30px 22px; display: flex; flex-direction: column; text-align: center; position: relative; transition: transform .3s, border-color .3s, box-shadow .3s; }
.price-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.price-card.popular { border-color: rgba(139, 92, 246, .6); background: linear-gradient(180deg, rgba(139, 92, 246, .1), rgba(59, 130, 246, .04)); box-shadow: 0 0 44px rgba(139, 92, 246, .22); }
.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 100px; box-shadow: 0 4px 16px rgba(139, 92, 246, .5); white-space: nowrap;
}
.price-card h3 { font-size: 17px; color: var(--text-dim); font-weight: 600; }
.price-card .price { font-family: var(--font-display); font-size: 40px; font-weight: 700; margin: 12px 0 2px; }
.price-card .price small { font-size: 14px; color: var(--text-faint); font-weight: 500; }
.price-card ul { list-style: none; margin: 22px 0; text-align: left; flex: 1; }
.price-card ul li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-dim); padding: 6px 0; }
.price-card ul li .ic-yes { color: var(--green); flex-shrink: 0; }
.price-card ul li .ic-no { color: var(--text-faint); flex-shrink: 0; }
.price-card ul li.li-no { color: var(--text-faint); text-decoration: line-through; }
.pay-methods { display: flex; justify-content: center; gap: 16px; margin-top: 34px; color: var(--text-dim); font-size: 14px; align-items: center; flex-wrap: wrap; }
.pay-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border); }

/* ---------------- Reviews ---------------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { padding: 26px; transition: transform .3s, border-color .3s, box-shadow .3s; }
.review-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.review-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.review-head img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(139, 92, 246, .5); object-fit: cover; }
.review-head .rname { font-weight: 600; font-size: 15px; }
.stars { display: flex; gap: 2px; margin-top: 3px; }
.review-card > p { font-size: 14px; color: var(--text-dim); }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { overflow: hidden; transition: border-color .3s; }
.faq-item.open { border-color: var(--border-strong); }
.faq-q {
  width: 100%; background: none; border: 0; color: var(--text); font-family: var(--font-display);
  font-size: 16px; font-weight: 600; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; text-align: left; gap: 12px;
}
.faq-q .chev { transition: transform .3s; color: var(--purple); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a-inner { padding: 0 24px 20px; color: var(--text-dim); font-size: 14.5px; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--border); padding: 46px 0 34px; margin-top: 40px; background: rgba(10, 10, 24, .6); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer .copy { color: var(--text-faint); font-size: 13px; width: 100%; text-align: center; margin-top: 26px; }

/* ---------------- Flash / alerts ---------------- */
.flash-stack { position: fixed; top: 86px; right: 22px; z-index: 800; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.alert {
  padding: 14px 18px; border-radius: 13px; font-size: 14px; backdrop-filter: blur(16px);
  border: 1px solid; animation: slideIn .4s cubic-bezier(.2, .7, .3, 1) both; display: flex; gap: 10px; align-items: flex-start;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.alert-success { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .4); color: #a7f3d0; }
.alert-error { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .4); color: #fecaca; }
.alert-info { background: rgba(59, 130, 246, .12); border-color: rgba(59, 130, 246, .4); color: #bfdbfe; }
.alert-inline { position: static; animation: none; margin-bottom: 18px; }

/* ---------------- Forms ---------------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.input, select.input, textarea.input {
  width: 100%; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; color: var(--text); font-family: var(--font-body); font-size: 14.5px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139, 92, 246, .18); background: rgba(255, 255, 255, .06); }
.input::placeholder { color: var(--text-faint); }
select.input option { background: #14142c; }
textarea.input { resize: vertical; min-height: 110px; }

/* ---------------- Auth pages ---------------- */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 40px 18px; }
.auth-card { width: 100%; max-width: 430px; padding: 42px 38px; text-align: center; }
.auth-card .logo-img { width: 68px; height: 68px; margin-bottom: 16px; }
.auth-card h1 { font-size: 25px; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-dim); font-size: 14px; margin-bottom: 28px; }
.auth-card form { text-align: left; }
.auth-alt { margin-top: 22px; font-size: 13.5px; color: var(--text-dim); }

/* ---------------- Dashboard layout ---------------- */
.dash-body { display: flex; min-height: 100vh; }
.sidebar {
  width: 262px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: rgba(10, 10, 24, .8); border-right: 1px solid var(--border); backdrop-filter: blur(20px);
  padding: 22px 16px; z-index: 400;
}
.sidebar .brand { padding: 4px 10px 20px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.side-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  color: var(--text-dim); font-size: 14.5px; font-weight: 500; transition: background .2s, color .2s;
}
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.active { background: var(--grad-soft); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, .3); }
.side-nav .nav-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); padding: 16px 14px 6px; }
.side-profile { position: relative; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 12px; }
.side-profile-btn {
  width: 100%; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 12px;
  background: none; border: 1px solid transparent; cursor: pointer; text-align: left; transition: background .2s, border-color .2s;
}
.side-profile-btn:hover { background: var(--surface-2); border-color: var(--border); }
.side-profile-btn img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(139, 92, 246, .5); }
.side-profile-btn .sp-name { font-size: 14px; font-weight: 600; color: var(--text); }
.side-profile-btn .sp-mail { font-size: 12px; color: var(--text-faint); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-profile-menu {
  position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; padding: 8px; display: none;
  background: #14142c; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
}
.side-profile-menu.open { display: block; animation: fadeUp .25s both; }
.side-profile-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--text-dim); }
.side-profile-menu a:hover { background: var(--surface-2); color: var(--text); }

.dash-main { flex: 1; min-width: 0; padding: 34px 38px 60px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.dash-head h1 { font-size: 27px; }
.dash-head .crumb { color: var(--text-faint); font-size: 13.5px; margin-top: 4px; }

.card { padding: 26px; margin-bottom: 22px; }
.card h2 { font-size: 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.card h2 svg { color: var(--purple); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat { padding: 22px; display: flex; align-items: center; gap: 15px; transition: border-color .3s, transform .3s; }
.stat:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.stat .s-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(139, 92, 246, .3); color: #a5b4fc; flex-shrink: 0; }
.stat .s-val { font-family: var(--font-display); font-size: 23px; font-weight: 700; }
.stat .s-label { font-size: 12.5px; color: var(--text-dim); }

.license-key-box {
  font-family: 'Consolas', monospace; font-size: 17px; letter-spacing: 1px; color: #c4b5fd;
  background: rgba(139, 92, 246, .08); border: 1px dashed rgba(139, 92, 246, .45);
  padding: 14px 20px; border-radius: 12px; display: inline-flex; align-items: center; gap: 14px; user-select: all;
}

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; border: 1px solid; }
.badge-green { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .4); color: #6ee7b7; }
.badge-red { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .4); color: #fca5a5; }
.badge-blue { background: rgba(59, 130, 246, .12); border-color: rgba(59, 130, 246, .4); color: #93c5fd; }
.badge-gray { background: rgba(255, 255, 255, .06); border-color: var(--border); color: var(--text-dim); }
.badge-yellow { background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .4); color: #fcd34d; }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.data th {
  text-align: left; padding: 13px 16px; color: var(--text-faint); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--border);
}
table.data td { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .05); color: var(--text-dim); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(255, 255, 255, .025); }
table.data .mono { font-family: 'Consolas', monospace; color: #c4b5fd; font-size: 13px; }
.row-actions { display: flex; gap: 7px; flex-wrap: wrap; }

/* ---------------- Tabs ---------------- */
.tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tabs a {
  padding: 11px 20px; font-size: 14.5px; font-weight: 600; color: var(--text-dim);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a.active { color: var(--text); border-bottom-color: var(--purple); }

/* ---------------- Changelog ---------------- */
.changelog-item { padding: 26px; margin-bottom: 20px; position: relative; }
.changelog-item .cl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.changelog-item .cl-version { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.changelog-item .cl-date { color: var(--text-faint); font-size: 13.5px; }
.changelog-item ul { margin: 0 0 0 18px; color: var(--text-dim); font-size: 14.5px; }
.changelog-item ul li { padding: 3px 0; }

/* ---------------- Profile ---------------- */
.avatar-xl { width: 92px; height: 92px; border-radius: 50%; border: 3px solid rgba(139, 92, 246, .5); object-fit: cover; box-shadow: 0 0 24px rgba(139, 92, 246, .3); }
.profile-hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 20px; }
.info-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.info-tile .label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 4px; }
.info-tile .value { font-size: 16px; font-weight: 600; }

/* ---------------- Payment ---------------- */
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.pay-option {
  padding: 22px; text-align: center; cursor: pointer; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); transition: border-color .25s, background .25s, transform .2s;
}
.pay-option:hover { transform: translateY(-3px); }
.pay-option.selected { border-color: var(--purple); background: var(--grad-soft); box-shadow: 0 0 24px rgba(139, 92, 246, .25); }
.pay-option .p-icon { font-size: 30px; margin-bottom: 8px; }
.checkout-summary { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 22px; }
.checkout-summary .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14.5px; color: var(--text-dim); }
.checkout-summary .row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; color: var(--text); font-weight: 700; font-size: 17px; }

/* ---------------- Maintenance ---------------- */
.maintenance-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; background: var(--bg); }
.maintenance-box { max-width: 480px; text-align: center; padding: 52px 42px; }
.maintenance-box h1 { font-size: 30px; margin: 18px 0 12px; }
.maintenance-box p { color: var(--text-dim); margin-bottom: 26px; }

/* ---------------- Empty state ---------------- */
.empty { text-align: center; padding: 54px 24px; color: var(--text-dim); }
.empty .e-icon { width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-faint); }
.empty h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }

/* ---------------- Utility ---------------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.text-dim { color: var(--text-dim); } .text-faint { color: var(--text-faint); }
.text-sm { font-size: 13.5px; } .text-center { text-align: center; }
.w-full { width: 100%; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: rgba(10, 10, 24, .97); border-bottom: 1px solid var(--border); padding: 14px 20px 20px; gap: 6px; margin: 0;
    backdrop-filter: blur(24px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-burger { display: block; }
  .nav-actions .btn-ghost { display: none; }
  .reviews-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -280px; transition: left .3s; }
  .sidebar.open { left: 0; box-shadow: 20px 0 60px rgba(0, 0, 0, .6); }
  .dash-main { padding: 24px 18px 50px; }
  .dash-mobile-bar { display: flex !important; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .pay-options { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .auth-card { padding: 34px 24px; }
}

.dash-mobile-bar {
  display: none; position: sticky; top: 0; z-index: 300; align-items: center; gap: 12px;
  background: rgba(7, 7, 15, .85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 13px 18px;
}
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 350; }
.sidebar-overlay.show { display: block; }
