/* =======================================================================
   WPCLOUD — DESIGN SYSTEM
   Enterprise cloud / cybersecurity SaaS aesthetic.
   Dark navy base, electric blue + cyan accents, restrained glass effects.
   ======================================================================= */

:root {
  --bg-0: #05080f;
  --bg-1: #070c16;
  --bg-2: #0b1220;
  --surface-1: #0f1830;
  --surface-2: #131e38;
  --surface-3: #17233f;
  --border-soft: rgba(148, 178, 224, 0.14);
  --border-strong: rgba(148, 178, 224, 0.26);

  --text-primary: #eef3fb;
  --text-secondary: #a9b7cf;
  --text-muted: #7686a3;

  --accent-blue: #3b82f6;
  --accent-cyan: #37e4ff;
  --accent-violet: #7c6cff;
  --accent-gradient: linear-gradient(120deg, var(--accent-cyan), var(--accent-blue));

  --green: #33d896;
  --green-bg: rgba(51, 216, 150, 0.12);
  --yellow: #f0c93b;
  --yellow-bg: rgba(240, 201, 59, 0.14);
  --orange: #ff9a3d;
  --orange-bg: rgba(255, 154, 61, 0.14);
  --red: #ff5c73;
  --red-bg: rgba(255, 92, 115, 0.14);
  --gray-bg: rgba(148, 178, 224, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px rgba(55, 228, 255, 0.15), 0 12px 40px -12px rgba(55, 228, 255, 0.25);

  --container: 1240px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(ellipse 1200px 700px at 20% -10%, #0d1a30 0%, var(--bg-0) 55%),
    radial-gradient(ellipse 900px 600px at 100% 0%, #0d2333 0%, transparent 55%), var(--bg-0);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; color: var(--text-secondary); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
code { font-family: "SFMono-Regular", Consolas, monospace; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--text-muted); }
.small { font-size: 0.82em; }
section { position: relative; }

.icon { display: inline-flex; width: 1em; height: 1em; }
.icon svg { width: 100%; height: 100%; }
.icon.rot-180 { transform: rotate(180deg); }

/* ------------------------------- BUTTONS ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent-gradient); color: #04101c; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(55, 228, 255, 0.55); }
.btn-glow { box-shadow: 0 0 0 1px rgba(55, 228, 255, 0.35), 0 8px 26px -10px rgba(55, 228, 255, 0.55); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); color: var(--text-primary); border-color: var(--border-soft); }
.btn-ghost:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.06); }
.btn-secondary { background: var(--surface-3); color: var(--text-primary); border-color: var(--border-soft); }
.btn-secondary:hover { border-color: var(--accent-cyan); }
.btn-danger { background: rgba(255, 92, 115, 0.12); color: var(--red); border-color: rgba(255, 92, 115, 0.35); }
.btn-danger:hover { background: rgba(255, 92, 115, 0.2); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #04101c;
  animation: spin 0.7s linear infinite;
}
.btn-ghost.loading::after { border-top-color: var(--accent-cyan); border-color: rgba(255,255,255,0.15); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------- HEADER --------------------------------- */
#site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(6, 10, 18, 0.72);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: 0.01em; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name em { font-style: normal; color: var(--accent-cyan); }
.main-nav { display: flex; gap: 26px; margin-left: 8px; flex: 1; }
.main-nav a { font-size: 14.5px; color: var(--text-secondary); font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--text-primary); border-color: var(--accent-cyan); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; }

/* ------------------------------- HERO ------------------------------------ */
.hero { padding: 84px 0 60px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface-1); border: 1px solid var(--border-soft); color: var(--accent-cyan);
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 { font-size: 48px; line-height: 1.08; margin-bottom: 22px; }
.hero h1 .grad { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 17.5px; max-width: 540px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; margin-bottom: 40px; }
.hero-microtrust { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-microtrust span { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); }
.hero-microtrust .icon { color: var(--accent-cyan); }

.hero-visual { position: relative; height: 460px; }
.hv-card {
  position: absolute; background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
  padding: 18px;
}
.hv-main {
  inset: 30px 10% 60px 0; padding: 22px; display: flex; flex-direction: column; gap: 14px;
  background: radial-gradient(circle at 30% 0%, rgba(55,228,255,0.14), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface-1));
}
.hv-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-soft); }
.hv-row .icon { color: var(--accent-cyan); width: 18px; height: 18px; }
.hv-row strong { font-size: 13px; }
.hv-row span.val { color: var(--green); font-size: 12.5px; font-weight: 700; }
.hv-chart { flex: 1; border-radius: 12px; border: 1px solid var(--border-soft); background: rgba(255,255,255,0.02); position: relative; overflow: hidden; }
.hv-chart::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(148,178,224,0.08) 24px);
}
.hv-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hv-float-1 { top: -18px; right: -10px; width: 190px; animation: float 6s ease-in-out infinite; }
.hv-float-2 { bottom: -10px; left: -18px; width: 210px; animation: float 7s ease-in-out infinite 1s; }
.hv-badge { display: flex; align-items: center; gap: 10px; }
.hv-badge .icon { color: var(--accent-cyan); width: 20px; height: 20px; }
.hv-badge strong { display: block; font-size: 14px; }
.hv-badge span { font-size: 12px; color: var(--text-muted); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-glow { position: absolute; width: 560px; height: 560px; border-radius: 50%; filter: blur(90px); opacity: 0.35; background: var(--accent-gradient); top: -220px; right: -180px; z-index: -1; }

/* ------------------------------- TRUST BAR ------------------------------- */
.trust-bar { padding: 26px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,0.015); }
.trust-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-secondary); }
.trust-item .icon { color: var(--accent-cyan); width: 18px; height: 18px; }

/* ------------------------------- SECTION HEAD ---------------------------- */
.section { padding: 88px 0; }
.section-tight { padding: 60px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-eyebrow { color: var(--accent-cyan); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; display: block; }
.section-head h2 { font-size: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ------------------------------- CATEGORY GRID ---------------------------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card {
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2) 140%);
  border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.category-card:hover { border-color: var(--accent-cyan); transform: translateY(-4px); }
.category-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(55, 228, 255, 0.12); color: var(--accent-cyan); margin-bottom: 18px;
}
.category-icon .icon { width: 22px; height: 22px; }
.category-card h3 { font-size: 17px; margin-bottom: 10px; }
.category-card ul { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.category-card li { font-size: 13.5px; color: var(--text-muted); }
.category-card .cat-link { font-size: 13.5px; font-weight: 700; color: var(--accent-cyan); display: inline-flex; align-items: center; gap: 6px; }
.category-card .cat-link svg { width: 14px; height: 14px; }

/* ------------------------------- PRODUCT CARDS ---------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  background: linear-gradient(180deg, var(--surface-1), var(--bg-2));
  border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { border-color: var(--accent-cyan); box-shadow: var(--shadow-glow); transform: translateY(-3px); }
.product-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.product-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(59,130,246,0.15); color: var(--accent-cyan); display: flex; align-items: center; justify-content: center; }
.product-icon .icon { width: 22px; height: 22px; }
.category-tag { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); background: rgba(255,255,255,0.04); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border-soft); }
.product-card h3 { font-size: 19px; margin-bottom: 8px; }
.product-card .product-desc { font-size: 14px; flex: 1; margin-bottom: 18px; }
.product-features { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.product-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text-secondary); }
.product-features .icon { color: var(--green); width: 15px; height: 15px; margin-top: 2px; flex: none; }
.product-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.product-price strong { font-size: 26px; }
.product-price span { color: var(--text-muted); font-size: 13px; }
.product-card-actions { display: flex; gap: 10px; }
.product-card-actions .btn { flex: 1; }

/* ------------------------------- FILTERS ----------------------------------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border-soft); background: var(--surface-1);
  font-size: 13.5px; font-weight: 600; color: var(--text-secondary);
}
.filter-chip.active, .filter-chip:hover { border-color: var(--accent-cyan); color: var(--text-primary); background: var(--surface-2); }

/* ------------------------------- PLAN CARDS -------------------------------- */
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plan-card {
  background: linear-gradient(180deg, var(--surface-1), var(--bg-2)); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 30px 24px; display: flex; flex-direction: column; position: relative;
}
.plan-card.featured { border-color: var(--accent-cyan); box-shadow: var(--shadow-glow); background: linear-gradient(180deg, #102237, var(--bg-2)); }
.plan-tag { position: absolute; top: -13px; left: 24px; background: var(--accent-gradient); color: #04101c; font-size: 11.5px; font-weight: 800; padding: 5px 12px; border-radius: 999px; letter-spacing: 0.03em; }
.plan-card h3 { font-size: 19px; margin-bottom: 8px; }
.plan-card .plan-desc { font-size: 13.5px; min-height: 58px; }
.plan-price { font-size: 32px; font-weight: 800; margin-bottom: 4px; }
.plan-price span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.plan-features { display: flex; flex-direction: column; gap: 9px; margin: 18px 0 26px; flex: 1; }
.plan-features li { display: flex; gap: 8px; font-size: 13.5px; align-items: flex-start; }
.plan-features .icon { color: var(--accent-cyan); width: 15px; height: 15px; margin-top: 2px; flex: none; }

/* ------------------------------- SPLIT / CONTENT SECTIONS ------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-list { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.split-list-item { display: flex; gap: 14px; }
.split-list-item .icon-badge { width: 36px; height: 36px; border-radius: 10px; background: rgba(55,228,255,0.12); color: var(--accent-cyan); display: flex; align-items: center; justify-content: center; flex: none; }
.split-list-item .icon-badge .icon { width: 18px; height: 18px; }
.split-list-item h4 { font-size: 15.5px; margin-bottom: 4px; }
.split-list-item p { font-size: 13.8px; margin: 0; }

.panel-visual {
  background: linear-gradient(180deg, var(--surface-1), var(--bg-2)); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-1);
}

/* ------------------------------- CTA BAND ---------------------------------- */
.cta-band {
  background: linear-gradient(120deg, #0c2338, #0a1a2c); border: 1px solid var(--border-soft); border-radius: var(--radius-xl);
  padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; overflow: hidden;
}
.cta-band::before { content:""; position:absolute; width:400px; height:400px; background:var(--accent-gradient); opacity:0.18; filter: blur(90px); top:-160px; right:-120px; }
.cta-band h2 { font-size: 28px; margin-bottom: 8px; }
.cta-actions { display: flex; gap: 12px; flex: none; }

/* ------------------------------- FOOTER ------------------------------------ */
#site-footer { border-top: 1px solid var(--border-soft); padding-top: 60px; margin-top: 40px; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 13.5px; margin: 16px 0; max-width: 320px; }
.trust-mini { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.trust-mini .icon { color: var(--accent-cyan); }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13.8px; color: var(--text-secondary); margin-bottom: 11px; }
.footer-col a:hover { color: var(--accent-cyan); }
.footer-bottom { max-width: var(--container); margin: 40px auto 0; padding: 20px 28px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); flex-wrap: wrap; gap: 8px; }
.footer-disclaimer { color: var(--text-faint, var(--text-muted)); font-style: italic; }

/* ------------------------------- TOASTS ------------------------------------ */
#as-toast-host { position: fixed; bottom: 26px; right: 26px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.as-toast {
  display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow-1); font-size: 13.8px; opacity: 0; transform: translateY(10px);
  transition: all 0.3s ease; max-width: 340px;
}
.as-toast.show { opacity: 1; transform: translateY(0); }
.as-toast .icon { color: var(--green); width: 18px; height: 18px; flex: none; }

/* ------------------------------- PAGE HEADER (inner pages) ------------------ */
.page-header { padding: 56px 0 40px; text-align: center; }
.page-header h1 { font-size: 38px; }
.page-header p { max-width: 560px; margin: 0 auto; }

/* ------------------------------- PRODUCT DETAIL ----------------------------- */
.detail-hero { display: grid; grid-template-columns: 1fr 380px; gap: 46px; }
.detail-icon-lg { width: 64px; height: 64px; border-radius: 16px; background: rgba(55,228,255,0.12); color: var(--accent-cyan); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.detail-icon-lg .icon { width: 32px; height: 32px; }
.detail-hero h1 { font-size: 34px; }
.detail-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.detail-feature-grid li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; background: var(--surface-1); border: 1px solid var(--border-soft); border-radius: 10px; padding: 12px 14px; }
.detail-feature-grid .icon { color: var(--green); width: 16px; height: 16px; margin-top: 2px; flex: none; }
.buy-card { background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 28px; height: fit-content; position: sticky; top: 100px; box-shadow: var(--shadow-1); }
.buy-card .price-big { font-size: 38px; font-weight: 800; }
.buy-card .price-period { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; }
.buy-card ul { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 24px; }
.buy-card ul li { font-size: 13.5px; display: flex; gap: 8px; }
.buy-card .icon.check-mini { color: var(--accent-cyan); width: 15px; height: 15px; }

/* ------------------------------- LOGIN --------------------------------------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 420px; background: linear-gradient(180deg, var(--surface-1), var(--bg-2)); border: 1px solid var(--border-soft); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-1); }
.auth-card .brand { justify-content: center; margin-bottom: 26px; font-size: 19px; }
.auth-card h1 { font-size: 23px; text-align: center; margin-bottom: 6px; }
.auth-card > p.muted { text-align: center; margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text-secondary); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-soft); background: var(--bg-2);
  color: var(--text-primary); font-family: inherit; font-size: 14.5px; outline: none; transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-cyan); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { display: none; background: var(--red-bg); border: 1px solid rgba(255,92,115,0.4); color: var(--red); padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.form-error.show { display: block; }
.form-success { background: var(--green-bg); border: 1px solid rgba(51,216,150,0.4); color: var(--green); padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }

.term-cell { min-width: 155px; }
.term-dates { font-size: 11px; color: var(--text-muted); margin-bottom: 5px; white-space: nowrap; }
.term-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 5px; }
.term-bar-fill { height: 100%; border-radius: 999px; }
.term-bar-fill.active { background: var(--green); }
.term-bar-fill.expiring { background: var(--yellow); }
.term-bar-fill.expired { background: var(--red); }
.term-label { font-size: 11px; font-weight: 700; }
.term-label.active { color: var(--green); }
.term-label.expiring { color: var(--yellow); }
.term-label.expired { color: var(--red); }
.demo-hint { margin-top: 22px; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 12px; padding: 14px 16px; font-size: 13px; }
.demo-hint code { color: var(--accent-cyan); }
.demo-hint button { margin-top: 10px; }

/* ------------------------------- CHECKOUT -------------------------------------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.checkout-form-card, .order-summary-card { background: linear-gradient(180deg, var(--surface-1), var(--bg-2)); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 30px; }
.checkout-form-card h3, .order-summary-card h3 { font-size: 17px; margin-bottom: 18px; }
.order-summary-card { position: sticky; top: 100px; }
.summary-product { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.summary-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(55,228,255,0.12); color: var(--accent-cyan); display: flex; align-items: center; justify-content: center; }
.summary-row { display: flex; justify-content: space-between; font-size: 13.8px; padding: 8px 0; color: var(--text-secondary); }
.summary-divider { border-top: 1px solid var(--border-soft); margin: 6px 0; }
.summary-total { font-size: 17px; font-weight: 800; color: var(--text-primary); }
.summary-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--text-muted); margin-top: 18px; }
.summary-note .icon { color: var(--accent-cyan); width: 14px; height: 14px; margin-top: 2px; }

.payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.payment-option { border: 1px solid var(--border-soft); background: var(--bg-2); border-radius: 12px; padding: 16px 12px; text-align: center; font-size: 13px; font-weight: 600; }
.payment-option .icon { width: 22px; height: 22px; margin: 0 auto 8px; color: var(--text-muted); }
.payment-option.selected { border-color: var(--accent-cyan); background: rgba(55,228,255,0.08); }
.payment-option.selected .icon { color: var(--accent-cyan); }
.payment-detail { display: none; margin-top: 4px; }
.payment-detail.show { display: block; }

.processing-overlay {
  position: fixed; inset: 0; background: rgba(4,8,16,0.86); backdrop-filter: blur(6px); display: none;
  align-items: center; justify-content: center; z-index: 500; flex-direction: column; gap: 18px;
}
.processing-overlay.show { display: flex; }
.spinner-ring { width: 56px; height: 56px; border-radius: 50%; border: 3px solid rgba(55,228,255,0.15); border-top-color: var(--accent-cyan); animation: spin 0.9s linear infinite; }

.success-screen { display: none; text-align: center; padding: 60px 30px; background: linear-gradient(180deg, var(--surface-1), var(--bg-2)); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); }
.success-screen.show { display: block; }
.success-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.success-icon .icon { width: 32px; height: 32px; }
.success-screen h2 { font-size: 26px; }
.success-order { color: var(--accent-cyan); font-weight: 700; }
.success-text { color: var(--text-muted); max-width: 460px; margin: 0 auto; line-height: 1.6; }
.success-meta { display: flex; justify-content: center; gap: 34px; margin: 26px 0; flex-wrap: wrap; }
.success-meta div { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-muted); }
.success-meta strong { font-size: 15px; color: var(--text-primary); }
.success-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
#checkout-card.hide { display: none; }

/* ------------------------------- DASHBOARD SHELL --------------------------------- */
#dashboard-shell { display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; }
#sidebar { background: var(--bg-1); border-right: 1px solid var(--border-soft); padding: 24px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
#sidebar .brand { padding: 6px 10px 26px; font-size: 15.5px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.sidebar-nav a, .sidebar-logout { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-secondary); background: none; border: none; text-align: left; width: 100%; }
.sidebar-nav a .icon, .sidebar-logout .icon { width: 18px; height: 18px; flex: none; }
.sidebar-nav a:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.sidebar-nav a.active { background: rgba(55,228,255,0.1); color: var(--accent-cyan); }
.sidebar-logout { margin-top: 12px; border-top: 1px solid var(--border-soft); padding-top: 16px; color: var(--red); }
.sidebar-footer { padding-top: 14px; }
.back-to-site { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.back-to-site .icon { width: 14px; height: 14px; }

.dashboard-main { display: flex; flex-direction: column; min-width: 0; }
#topbar { display: flex; align-items: center; gap: 18px; padding: 20px 32px; border-bottom: 1px solid var(--border-soft); position: sticky; top: 0; background: rgba(6,10,18,0.7); backdrop-filter: blur(14px); z-index: 20; }
.topbar-title { font-size: 19px; font-weight: 700; flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-plan-badge { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--green); background: var(--green-bg); padding: 7px 13px; border-radius: 999px; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-gradient); color: #04101c; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.topbar-user-info { display: flex; flex-direction: column; line-height: 1.25; }
.topbar-user-info strong { font-size: 13.5px; }
.topbar-user-info span { font-size: 11.5px; color: var(--text-muted); }
.mobile-menu-btn { display: none; background: none; border: 1px solid var(--border-soft); border-radius: 8px; padding: 8px; color: var(--text-secondary); }
.dashboard-content { padding: 32px; flex: 1; }

/* ------------------------------- STAT CARDS --------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-bottom: 30px; }
.stat-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.stat-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.stat-card { background: linear-gradient(180deg, var(--surface-1), var(--bg-2)); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 20px; }
.stat-card .stat-label { font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.stat-card .stat-label .icon { width: 14px; height: 14px; color: var(--accent-cyan); }
.stat-card .stat-value { font-size: 24px; font-weight: 800; }

.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.panel-card { background: linear-gradient(180deg, var(--surface-1), var(--bg-2)); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.panel-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-card-head h3 { font-size: 16px; margin: 0; }
.panel-card-head a { font-size: 13px; color: var(--accent-cyan); font-weight: 600; }

.mini-service-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.mini-service-row:last-child { border-bottom: none; }
.mini-service-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(55,228,255,0.1); color: var(--accent-cyan); display: flex; align-items: center; justify-content: center; flex: none; }
.mini-service-icon .icon { width: 18px; height: 18px; }
.mini-service-info { display: flex; flex-direction: column; flex: 1; }
.mini-service-info strong { font-size: 14px; }
.mini-service-renewal { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }

.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.yellow { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.dot.orange { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.dot.red { background: var(--red); box-shadow: 0 0 8px var(--red); }
.dot.cyan { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }
.dot.gray { background: var(--text-muted); }

.event-row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.event-row:last-child { border-bottom: none; }
.event-row p { margin: 0 0 3px; font-size: 13.5px; color: var(--text-secondary); }
.event-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.event-row.severity-info .event-dot { background: var(--accent-cyan); }
.event-row.severity-warning .event-dot { background: var(--yellow); }
.event-row.severity-critical .event-dot { background: var(--red); }

/* ------------------------------- STATUS PILLS -------------------------------------- */
.status-pill { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-pill.green { background: var(--green-bg); color: var(--green); }
.status-pill.yellow { background: var(--yellow-bg); color: var(--yellow); }
.status-pill.orange { background: var(--orange-bg); color: var(--orange); }
.status-pill.red { background: var(--red-bg); color: var(--red); }
.status-pill.gray { background: var(--gray-bg); color: var(--text-muted); }

/* ------------------------------- TABLES -------------------------------------------- */
.table-card { background: linear-gradient(180deg, var(--surface-1), var(--bg-2)); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; }
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
table.data-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
table.data-table td { padding: 16px 20px; border-bottom: 1px solid var(--border-soft); font-size: 13.8px; vertical-align: middle; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: rgba(255,255,255,0.015); }
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table-product { display: flex; align-items: center; gap: 12px; }
.table-product-icon { width: 34px; height: 34px; border-radius: 9px; background: rgba(55,228,255,0.1); color: var(--accent-cyan); display: flex; align-items: center; justify-content: center; flex: none; }
.table-product-icon .icon { width: 16px; height: 16px; }
.empty-cell { text-align: center; color: var(--text-muted); padding: 40px !important; }
.row-inactive { opacity: 0.5; }

/* ------------------------------- SECURITY CENTER ------------------------------------ */
.security-hero { display: grid; grid-template-columns: 320px 1fr; gap: 26px; margin-bottom: 20px; }
.score-card { background: linear-gradient(180deg, var(--surface-1), var(--bg-2)); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 30px; text-align: center; }
.score-gauge {
  --score: 94; width: 190px; height: 190px; border-radius: 50%; margin: 0 auto 18px; position: relative;
  background: conic-gradient(var(--accent-cyan) calc(var(--score) * 1%), rgba(255,255,255,0.06) 0);
  display: flex; align-items: center; justify-content: center;
}
.score-gauge::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--bg-2); }
.score-gauge .score-inner { position: relative; z-index: 1; }
.score-gauge .score-num { font-size: 42px; font-weight: 800; display: block; }
.score-gauge .score-max { font-size: 13px; color: var(--text-muted); }
.indicator-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.indicator-card { background: linear-gradient(180deg, var(--surface-1), var(--bg-2)); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 18px; display: flex; align-items: center; gap: 12px; }
.indicator-card strong { display: block; font-size: 15px; }
.indicator-card .muted { font-size: 12px; }
.security-meta-row { display: flex; gap: 26px; margin-top: 16px; flex-wrap: wrap; }
.security-meta-row div { font-size: 12.5px; color: var(--text-muted); }
.security-meta-row strong { color: var(--text-primary); display: block; font-size: 14px; }

.traffic-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.traffic-stat { background: var(--surface-1); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 18px; }
.traffic-stat .stat-value { font-size: 22px; font-weight: 800; }
.traffic-bars { display: flex; flex-direction: column; gap: 14px; }
.traffic-bar-row { display: flex; align-items: center; gap: 14px; }
.traffic-bar-row .label { width: 120px; font-size: 13px; color: var(--text-secondary); flex: none; }
.traffic-bar-track { flex: 1; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.traffic-bar-fill { height: 100%; border-radius: 999px; background: var(--accent-gradient); }
.traffic-bar-fill.bot { background: linear-gradient(120deg, var(--orange), var(--red)); }
.traffic-bar-row .pct { width: 44px; text-align: right; font-size: 13px; font-weight: 700; flex: none; }

/* ------------------------------- BACKUPS -------------------------------------------- */
.storage-bar-track { height: 12px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; margin-top: 10px; }
.storage-bar-fill { height: 100%; background: var(--accent-gradient); border-radius: 999px; }

/* ------------------------------- DETAIL PAGES --------------------------------------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.detail-card { background: linear-gradient(180deg, var(--surface-1), var(--bg-2)); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 24px; }
.detail-card h4 { font-size: 15px; margin-bottom: 16px; }
.detail-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-soft); font-size: 13.8px; }
.detail-row:last-child { border-bottom: none; }
.detail-row span:first-child { color: var(--text-muted); }
.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; gap: 9px; font-size: 13.8px; align-items: flex-start; }
.feature-list .icon { color: var(--green); width: 15px; height: 15px; margin-top: 2px; flex: none; }
.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-row { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; }
.history-row .dot { margin-top: 5px; }
.detail-actions { display: flex; gap: 12px; margin-top: 6px; }

/* ------------------------------- ADMIN --------------------------------------------- */
.admin-tabs { display: flex; gap: 10px; margin-bottom: 24px; }
.admin-tab { padding: 10px 20px; border-radius: 10px; border: 1px solid var(--border-soft); background: var(--surface-1); font-weight: 600; font-size: 13.8px; color: var(--text-secondary); }
.admin-tab.active { border-color: var(--accent-cyan); color: var(--accent-cyan); background: rgba(55,228,255,0.08); }
.admin-panel {
  position: fixed; top: 0; right: -460px; width: 440px; height: 100vh; background: var(--bg-1); border-left: 1px solid var(--border-strong);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5); z-index: 400; transition: right 0.3s ease; overflow-y: auto; padding: 28px;
}
.admin-panel.open { right: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.panel-close { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 8px; width: 32px; height: 32px; color: var(--text-secondary); }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: auto; }
.panel-actions { display: flex; gap: 12px; margin-top: 22px; }
.admin-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 390; display: none; }
.admin-backdrop.show { display: block; }

/* ------------------------------- RESPONSIVE ---------------------------------------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid, .stat-grid.cols-4, .stat-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary-card { position: static; }
  .split { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .security-hero { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 66px; left: 0; right: 0; background: var(--bg-1); flex-direction: column; padding: 20px 28px; border-bottom: 1px solid var(--border-soft); display: none; gap: 16px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .hero h1 { font-size: 34px; }
  .category-grid, .product-grid, .plans-grid { grid-template-columns: 1fr; }
  .stat-grid, .stat-grid.cols-4, .stat-grid.cols-6 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  #dashboard-shell { grid-template-columns: 1fr; }
  #sidebar { position: fixed; left: -280px; width: 258px; z-index: 300; transition: left 0.25s ease; }
  #dashboard-shell.sidebar-open #sidebar { left: 0; }
  .mobile-menu-btn { display: flex; }
  .dashboard-content { padding: 20px; }
  .detail-grid, .indicator-grid, .traffic-stats { grid-template-columns: 1fr; }
  .admin-panel { width: 100%; right: -100%; }
  .cta-band { flex-direction: column; text-align: center; }
  .field-row { grid-template-columns: 1fr; }
  .payment-methods { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
