/*
Theme Name: AVA Portal
Description: Telecom customer & admin portal for AVA Group.
Version: 3.0.0
Requires at least: 5.5
Requires PHP: 7.0
Text Domain: ava-portal
*/

/* ── FONTS ────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ── TOKENS ───────────────────────────────────────────────────────────── */
:root {
  --brand:       #350090;
  --brand-dark:  #220060;
  --brand-mid:   #4A00C8;
  --brand-lite:  #7B2FFF;
  --brand-soft:  #F0EAFF;
  --brand-soft2: #E4D8FF;
  --brand-bdr:   #C4A8FF;
  --white:  #FFFFFF;
  --off:    #FAFAF8;
  --bg:     #F5F3F9;
  --bdr:    #E8E2F5;
  --bdr2:   #D4CCEB;
  --ink:    #0F0820;
  --ink2:   #2D1A5E;
  --ink3:   #5B4487;
  --muted:  #8B78BA;
  --ghost:  #C4B8E0;
  --green:  #059669; --green-bg: #ECFDF5; --green-bdr: #A7F3D0;
  --red:    #DC2626; --red-bg:   #FEF2F2; --red-bdr:   #FECACA;
  --amber:  #D97706; --amber-bg: #FFFBEB;
  --blue:   #1D4ED8; --blue-bg:  #EFF6FF;
  --sh-xs: 0 1px 3px rgba(53,0,144,.06);
  --sh-sm: 0 2px 8px rgba(53,0,144,.08);
  --sh-md: 0 6px 24px rgba(53,0,144,.10);
  --sh-lg: 0 16px 48px rgba(53,0,144,.14);
  --sh-xl: 0 32px 80px rgba(53,0,144,.18);
  --r-sm: 6px; --r: 10px; --r-lg: 16px; --r-xl: 24px;
  --font-d: 'DM Serif Display', Georgia, serif;
  --font-u: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-m: 'DM Mono', monospace;
  --sidebar: 240px;
  --topbar:  64px;
}

/* ── RESET ────────────────────────────────────────────────────────────── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:var(--font-u); background:#fff; color:var(--ink); font-size:15px; line-height:1.65; -webkit-font-smoothing:antialiased; }
img { max-width:100%; height:auto; display:block; }
a { color:var(--brand); text-decoration:none; }
a:hover { text-decoration:underline; }
h1,h2,h3,h4 { font-family:var(--font-d); line-height:1.15; letter-spacing:-.02em; color:var(--ink); }

/* ── LAYOUT ───────────────────────────────────────────────────────────── */
.container { max-width:1200px; margin:0 auto; padding:0 32px; }
.container-wide { max-width:1380px; margin:0 auto; padding:0 40px; }

/* ── BUTTONS ──────────────────────────────────────────────────────────── */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; font-family:var(--font-u); font-weight:700; font-size:.875rem; padding:10px 22px; border-radius:var(--r); border:none; cursor:pointer; transition:all .18s; white-space:nowrap; text-decoration:none; line-height:1; }
.btn:hover { text-decoration:none; }
.btn-primary { background:var(--brand); color:#fff; box-shadow:0 4px 14px rgba(53,0,144,.3); }
.btn-primary:hover { background:var(--brand-mid); transform:translateY(-1px); box-shadow:0 8px 20px rgba(53,0,144,.38); color:#fff; }
.btn-secondary { background:transparent; border:2px solid var(--brand); color:var(--brand); }
.btn-secondary:hover { background:var(--brand-soft); }
.btn-soft { background:var(--brand-soft); color:var(--brand); border:1px solid var(--brand-bdr); }
.btn-soft:hover { background:var(--brand-soft2); }
.btn-ghost { background:transparent; border:1.5px solid var(--bdr2); color:var(--ink3); }
.btn-ghost:hover { border-color:var(--brand); color:var(--brand); }
.btn-white { background:#fff; color:var(--brand); border:1px solid var(--bdr); box-shadow:var(--sh-xs); }
.btn-white:hover { box-shadow:var(--sh-sm); color:var(--brand); }
.btn-danger { background:var(--red); color:#fff; }
.btn-danger:hover { background:#b91c1c; color:#fff; }
.btn-success { background:var(--green); color:#fff; }
.btn-sm { padding:6px 14px; font-size:.8rem; }
.btn-lg { padding:14px 32px; font-size:.95rem; border-radius:var(--r-lg); }
.btn-xl { padding:16px 40px; font-size:1rem; border-radius:var(--r-lg); }
.btn-full { width:100%; }

/* ── BADGES ───────────────────────────────────────────────────────────── */
.badge { display:inline-flex; align-items:center; gap:5px; font-size:.68rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; padding:3px 10px; border-radius:100px; white-space:nowrap; }
.badge-brand  { background:var(--brand-soft);  color:var(--brand-mid); }
.badge-green  { background:var(--green-bg);    color:var(--green); }
.badge-red    { background:var(--red-bg);      color:var(--red); }
.badge-amber  { background:var(--amber-bg);    color:var(--amber); }
.badge-blue   { background:var(--blue-bg);     color:var(--blue); }
.badge-ghost  { background:var(--bg);          color:var(--ink3); border:1px solid var(--bdr2); }

/* ── FORMS ────────────────────────────────────────────────────────────── */
.form-group { margin-bottom:18px; }
.form-label { display:block; font-size:.78rem; font-weight:600; color:var(--ink2); margin-bottom:6px; letter-spacing:.02em; }
.form-control { width:100%; background:#fff; border:1.5px solid var(--bdr2); color:var(--ink); font-family:var(--font-u); font-size:.9rem; padding:10px 13px; border-radius:var(--r); transition:border-color .15s, box-shadow .15s; outline:none; }
.form-control:focus { border-color:var(--brand); box-shadow:0 0 0 3px rgba(53,0,144,.1); }
.form-control::placeholder { color:var(--ghost); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
textarea.form-control { resize:vertical; min-height:90px; }
select.form-control { appearance:none; cursor:pointer; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238B78BA' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:34px; }

/* ── PROGRESS BAR ─────────────────────────────────────────────────────── */
.pbar { height:5px; background:var(--bdr); border-radius:3px; overflow:hidden; }
.pfill { height:100%; border-radius:3px; transition:width .4s; }
.pfill-green  { background:var(--green); }
.pfill-amber  { background:var(--amber); }
.pfill-brand  { background:var(--brand); }
.pfill-red    { background:var(--red); }

/* ── STATUS DOT ───────────────────────────────────────────────────────── */
.sdot { width:8px; height:8px; border-radius:50%; display:inline-block; flex-shrink:0; }
.sdot-green { background:var(--green); }
.sdot-amber { background:var(--amber); }
.sdot-red   { background:var(--red); }

/* ── ALERTS ───────────────────────────────────────────────────────────── */
.alert { padding:12px 16px; border-radius:var(--r); border:1px solid transparent; font-size:.87rem; margin-bottom:18px; }
.alert-error   { background:var(--red-bg);   border-color:var(--red-bdr);   color:var(--red);   border-left:3px solid var(--red);   border-left-color:var(--red);   border-radius:0 var(--r) var(--r) 0; }
.alert-success { background:var(--green-bg); border-color:var(--green-bdr); color:var(--green); border-left:3px solid var(--green); border-radius:0 var(--r) var(--r) 0; }
.alert-info    { background:var(--blue-bg);  border-color:rgba(29,78,216,.2); color:var(--ink2); border-left:3px solid var(--blue);  border-radius:0 var(--r) var(--r) 0; }

/* ══════════════════════════════════════════════════════
   PUBLIC SITE HEADER
══════════════════════════════════════════════════════ */
#site-header { position:sticky; top:0; z-index:1000; background:rgba(255,255,255,.97); border-bottom:1px solid var(--bdr); backdrop-filter:blur(12px); transition:box-shadow .2s; }
#site-header.scrolled { box-shadow:var(--sh-md); }
.header-inner { display:flex; align-items:center; justify-content:space-between; height:72px; max-width:1380px; margin:0 auto; padding:0 40px; }

/* LOGO — fixed sizing, flex-safe */
.site-logo { display:flex; align-items:center; gap:12px; text-decoration:none; flex-shrink:0; }
.site-logo img { height:42px; width:auto; display:block; }
.logo-domain { font-family:var(--font-m); font-size:.65rem; color:var(--muted); border-left:1px solid var(--bdr); padding-left:12px; line-height:1; white-space:nowrap; }

#primary-nav { display:flex; align-items:center; gap:4px; }
#primary-nav a { font-size:.875rem; font-weight:600; color:var(--ink2); padding:8px 14px; border-radius:var(--r-sm); transition:all .15s; }
#primary-nav a:hover { background:var(--brand-soft); color:var(--brand); text-decoration:none; }
.nav-dropdown { position:relative; }
.nav-dropdown>a::after { content:' ▾'; font-size:.65rem; }
.dropdown-menu { position:absolute; top:calc(100% + 8px); left:0; background:#fff; border:1px solid var(--bdr); border-radius:var(--r); box-shadow:var(--sh-lg); min-width:240px; padding:8px; opacity:0; visibility:hidden; transform:translateY(-6px); transition:all .15s; z-index:200; }
.nav-dropdown:hover .dropdown-menu { opacity:1; visibility:visible; transform:translateY(0); }
.dropdown-menu a { display:block; padding:9px 14px; border-radius:var(--r-sm); font-size:.86rem; font-weight:500; color:var(--ink2); }
.dropdown-menu a:hover { background:var(--brand-soft); color:var(--brand); text-decoration:none; }
.header-cta { display:flex; align-items:center; gap:10px; flex-shrink:0; }

/* ══════════════════════════════════════════════════════
   PUBLIC FOOTER
══════════════════════════════════════════════════════ */
#site-footer { background:var(--ink); color:rgba(255,255,255,.65); padding:80px 0 40px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1.4fr; gap:48px; margin-bottom:56px; }

/* FOOTER LOGO — explicit sizing */
.footer-logo-wrap { display:flex; align-items:center; margin-bottom:16px; }
.footer-logo { height:36px; width:auto; display:block; object-fit:contain; filter:brightness(0) invert(1); }

.footer-tagline { font-size:.86rem; line-height:1.75; max-width:280px; color:rgba(255,255,255,.55); }
.footer-col-title { font-family:var(--font-u); font-weight:700; font-size:.75rem; letter-spacing:.1em; text-transform:uppercase; color:#fff; margin-bottom:16px; }
.footer-links { list-style:none; }
.footer-links li { margin-bottom:9px; }
.footer-links a { font-size:.86rem; color:rgba(255,255,255,.52); transition:color .15s; }
.footer-links a:hover { color:#fff; text-decoration:none; }
.footer-address { font-size:.84rem; line-height:1.9; }
.footer-address strong { color:rgba(255,255,255,.55); font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; display:block; margin-bottom:2px; }
.footer-divider { height:1px; background:rgba(255,255,255,.1); margin-bottom:28px; }
.footer-bottom { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.82rem; }
.cert-badge { background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15); border-radius:var(--r-sm); padding:4px 12px; font-size:.68rem; font-weight:700; color:rgba(255,255,255,.55); letter-spacing:.06em; text-transform:uppercase; }

/* ══════════════════════════════════════════════════════
   AUTH PAGES (Login / Register)
══════════════════════════════════════════════════════ */
body.auth-page { background:var(--bg); min-height:100vh; }
.auth-layout { min-height:100vh; display:grid; grid-template-columns:460px 1fr; }
.auth-panel { background:linear-gradient(160deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-lite) 100%); padding:52px 44px; display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden; }
.auth-logo { height:38px; width:auto; display:block; filter:brightness(0) invert(1); margin-bottom:40px; }
.auth-panel-headline { font-family:var(--font-d); font-size:2.1rem; color:#fff; line-height:1.2; margin-bottom:16px; letter-spacing:-.02em; }
.auth-panel-headline em { font-style:italic; color:rgba(255,255,255,.7); }
.auth-panel-sub { font-size:.92rem; color:rgba(255,255,255,.6); line-height:1.75; margin-bottom:32px; }
.auth-features { list-style:none; display:flex; flex-direction:column; gap:12px; }
.auth-features li { display:flex; align-items:center; gap:12px; font-size:.875rem; color:rgba(255,255,255,.78); }
.auth-feature-icon { width:32px; height:32px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18); border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:.9rem; flex-shrink:0; }
.auth-trust { display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.trust-item { font-size:.72rem; color:rgba(255,255,255,.4); font-weight:600; letter-spacing:.05em; }
.auth-form-area { display:flex; align-items:center; justify-content:center; padding:52px 60px; background:#fff; }
.auth-form-inner { width:100%; max-width:400px; }
.auth-tabs { display:flex; border:1.5px solid var(--bdr2); border-radius:var(--r); overflow:hidden; margin-bottom:28px; }
.auth-tab { flex:1; padding:10px; text-align:center; font-size:.86rem; font-weight:600; color:var(--muted); cursor:pointer; transition:all .15s; text-decoration:none; display:block; }
.auth-tab.active, .auth-tab:hover { background:var(--brand); color:#fff; text-decoration:none; }
.auth-form-title { font-family:var(--font-d); font-size:1.9rem; margin-bottom:6px; }
.auth-form-sub { font-size:.88rem; color:var(--muted); margin-bottom:28px; }
.auth-footer-link { text-align:center; font-size:.86rem; color:var(--muted); margin-top:22px; }
.auth-footer-link a { color:var(--brand); font-weight:600; }

/* ══════════════════════════════════════════════════════
   DASHBOARD LAYOUT
══════════════════════════════════════════════════════ */
body.dash-body { background:#F2EFF9; overflow-x:hidden; }

/* Topbar */
.dash-topbar { position:fixed; top:0; left:0; right:0; z-index:300; height:var(--topbar); background:#fff; border-bottom:1px solid var(--bdr); display:flex; align-items:center; padding:0 0 0 0; box-shadow:var(--sh-xs); }
.dash-topbar-logo { width:var(--sidebar); height:100%; display:flex; align-items:center; padding:0 20px; border-right:1px solid var(--bdr); flex-shrink:0; }
.dash-topbar-logo img { height:28px; width:auto; display:block; }
.dash-topbar-right { flex:1; display:flex; align-items:center; justify-content:space-between; padding:0 24px; min-width:0; }
.dash-topbar-title { font-family:var(--font-d); font-size:.95rem; color:var(--ink3); font-style:italic; white-space:nowrap; }
.dash-topbar-actions { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.dash-notif { position:relative; width:36px; height:36px; background:var(--bg); border:1px solid var(--bdr); border-radius:var(--r); display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:.95rem; flex-shrink:0; }
.dash-notif-badge { position:absolute; top:-4px; right:-4px; width:15px; height:15px; background:var(--red); border-radius:50%; border:2px solid #fff; font-size:.55rem; font-weight:700; color:#fff; display:flex; align-items:center; justify-content:center; }
.dash-user { display:flex; align-items:center; gap:9px; background:var(--brand-soft); border:1px solid var(--brand-bdr); border-radius:100px; padding:5px 14px 5px 5px; cursor:pointer; flex-shrink:0; }
.dash-avatar { width:28px; height:28px; background:var(--brand); border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:.7rem; flex-shrink:0; }
.dash-username { font-size:.82rem; font-weight:700; color:var(--brand); line-height:1.2; }
.dash-role { font-size:.65rem; color:var(--muted); }

/* Sidebar */
.dash-sidebar { position:fixed; top:var(--topbar); left:0; bottom:0; width:var(--sidebar); background:#fff; border-right:1px solid var(--bdr); overflow-y:auto; z-index:200; padding:16px 10px 20px; display:flex; flex-direction:column; }
.dash-nav-section { margin-bottom:20px; }
.dash-nav-label { font-size:.6rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--ghost); padding:0 10px; margin-bottom:4px; display:block; }
.dash-nav-item { display:flex; align-items:center; gap:9px; padding:8px 10px; border-radius:var(--r); font-size:.85rem; font-weight:500; color:var(--ink3); text-decoration:none; transition:all .15s; margin-bottom:2px; line-height:1.3; cursor:pointer; }
.dash-nav-item:hover { background:var(--bg); color:var(--ink); text-decoration:none; }
.dash-nav-item.active { background:var(--brand-soft); color:var(--brand); font-weight:700; }
.dash-nav-icon { font-size:.9rem; width:20px; text-align:center; flex-shrink:0; }
.dash-nav-badge { margin-left:auto; background:var(--red); color:#fff; font-size:.58rem; font-weight:700; padding:2px 7px; border-radius:100px; }
.dash-sidebar-footer { margin-top:auto; padding-top:14px; border-top:1px solid var(--bdr); }
.dash-sidebar-user { display:flex; align-items:center; gap:9px; padding:9px 10px; border-radius:var(--r); background:var(--bg); }
.dash-sidebar-avatar { width:32px; height:32px; background:var(--brand); border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:.72rem; flex-shrink:0; }
.dash-sidebar-name { font-size:.83rem; font-weight:600; color:var(--ink); line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dash-sidebar-email { font-size:.68rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dash-signout { display:flex; align-items:center; gap:8px; padding:8px 10px; margin-top:4px; border-radius:var(--r); font-size:.82rem; color:var(--red); font-weight:500; text-decoration:none; transition:background .15s; }
.dash-signout:hover { background:var(--red-bg); text-decoration:none; color:var(--red); }

/* Main content area */
.dash-main { margin-left:var(--sidebar); padding-top:var(--topbar); min-height:100vh; }
.dash-content { padding:26px 28px; }

/* Page header */
.dash-page-header { margin-bottom:24px; }
.dash-page-header-row { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.dash-page-title { font-family:var(--font-d); font-size:1.55rem; color:var(--ink); margin-bottom:4px; }
.dash-page-sub { font-size:.84rem; color:var(--muted); }

/* KPI cards */
.kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:20px; }
.kpi-card { background:#fff; border:1px solid var(--bdr); border-radius:var(--r-lg); padding:20px 22px; box-shadow:var(--sh-xs); position:relative; overflow:hidden; }
.kpi-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--brand); }
.kpi-card.kpi-green::before { background:var(--green); }
.kpi-card.kpi-blue::before  { background:var(--blue); }
.kpi-card.kpi-amber::before { background:var(--amber); }
.kpi-card.kpi-red::before   { background:var(--red); }
.kpi-card-icon { font-size:1.25rem; margin-bottom:10px; }
.kpi-label { font-size:.68rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:7px; }
.kpi-value { font-family:var(--font-d); font-size:1.9rem; color:var(--ink); line-height:1; margin-bottom:7px; }
.kpi-trend { font-size:.75rem; font-weight:600; color:var(--muted); }
.kpi-trend.up { color:var(--green); }
.kpi-trend.dn { color:var(--red); }

/* Panels */
.dash-panel { background:#fff; border:1px solid var(--bdr); border-radius:var(--r-lg); box-shadow:var(--sh-xs); overflow:hidden; margin-bottom:20px; }
.dash-panel-header { display:flex; align-items:center; justify-content:space-between; padding:14px 20px; border-bottom:1px solid var(--bdr); flex-wrap:wrap; gap:8px; }
.dash-panel-title { font-family:var(--font-d); font-size:.95rem; font-style:italic; color:var(--ink2); display:flex; align-items:center; gap:7px; }
.dash-panel-body { padding:18px 20px; }

/* Dashboard grids */
.dash-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:20px; }
.dash-grid-3 { display:grid; grid-template-columns:2fr 1fr; gap:20px; margin-bottom:20px; }

/* Tables */
.dash-table-wrap { overflow-x:auto; }
.dash-table { width:100%; border-collapse:collapse; font-size:.86rem; }
.dash-table th { text-align:left; padding:10px 16px; font-size:.63rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); background:var(--off); border-bottom:1px solid var(--bdr); white-space:nowrap; }
.dash-table td { padding:11px 16px; border-bottom:1px solid var(--bdr); color:var(--ink2); vertical-align:middle; }
.dash-table tr:last-child td { border-bottom:none; }
.dash-table tbody tr:hover td { background:var(--brand-soft); }

/* Admin badge */
.admin-badge { background:var(--brand); color:#fff; font-size:.58rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; padding:3px 9px; border-radius:100px; font-family:var(--font-u); }

/* Credential card */
.cred-card { background:#fff; border:1px solid var(--bdr); border-radius:var(--r-lg); overflow:hidden; margin-bottom:18px; box-shadow:var(--sh-xs); }
.cred-card-header { background:var(--brand-soft); border-bottom:1px solid var(--brand-bdr); padding:13px 20px; display:flex; align-items:center; gap:10px; }
.cred-card-title { font-family:var(--font-d); font-size:.9rem; font-style:italic; color:var(--brand); }
.cred-row { display:flex; align-items:center; justify-content:space-between; padding:10px 20px; border-bottom:1px solid var(--bdr); flex-wrap:wrap; gap:8px; }
.cred-row:last-child { border-bottom:none; }
.cred-key { font-size:.78rem; font-weight:600; color:var(--ink3); }
.cred-val { font-family:var(--font-m); font-size:.8rem; color:var(--brand-mid); word-break:break-all; }
.cred-copy-btn { background:none; border:1px solid var(--bdr2); border-radius:var(--r-sm); padding:3px 9px; font-size:.7rem; color:var(--ink3); cursor:pointer; font-family:var(--font-u); white-space:nowrap; }
.cred-copy-btn:hover { border-color:var(--brand); color:var(--brand); }

/* Code block */
.code-block { background:var(--ink); border-radius:var(--r); padding:18px 22px; font-family:var(--font-m); font-size:.78rem; color:#C4B8E0; line-height:1.9; overflow-x:auto; margin:14px 0; white-space:pre; }
.http-method { font-family:var(--font-m); font-size:.65rem; font-weight:700; padding:3px 8px; border-radius:4px; text-transform:uppercase; }
.method-get  { background:#DCFCE7; color:#15803D; }
.method-post { background:var(--blue-bg); color:var(--blue); }

/* Onboarding wizard */
body.wizard-body { background:var(--bg); }
.wizard-topbar { background:#fff; border-bottom:1px solid var(--bdr); height:66px; display:flex; align-items:center; justify-content:space-between; padding:0 40px; box-shadow:var(--sh-xs); }
.wizard-topbar-logo { height:32px; width:auto; display:block; }
.wizard-body-inner { display:flex; align-items:center; justify-content:center; padding:48px 32px; min-height:calc(100vh - 66px); }
.wizard-wrap { width:100%; max-width:680px; }
.wizard-progress { margin-bottom:36px; }
.wiz-nodes { display:flex; align-items:center; }
.wiz-node { width:34px; height:34px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:.72rem; font-weight:700; border:2px solid var(--bdr2); background:#fff; color:var(--muted); position:relative; z-index:1; }
.wiz-node.done   { background:var(--brand); border-color:var(--brand); color:#fff; }
.wiz-node.active { border-color:var(--brand); color:var(--brand); box-shadow:0 0 0 4px rgba(53,0,144,.12); }
.wiz-line { flex:1; height:2px; background:var(--bdr); }
.wiz-line.done { background:var(--brand); }
.wiz-labels { display:flex; margin-top:8px; }
.wiz-lbl { flex:1; text-align:center; font-size:.62rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.wiz-lbl.active { color:var(--brand); }
.wizard-card { background:#fff; border:1px solid var(--bdr); border-radius:var(--r-xl); padding:44px; box-shadow:var(--sh-xl); }
.wiz-icon { font-size:2rem; margin-bottom:12px; }
.wiz-title { font-family:var(--font-d); font-size:1.65rem; color:var(--ink); margin-bottom:8px; }
.wiz-desc { font-size:.9rem; color:var(--muted); line-height:1.7; margin-bottom:28px; }
.wiz-nav { display:flex; align-items:center; justify-content:space-between; margin-top:28px; padding-top:22px; border-top:1px solid var(--bdr); }
.svc-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:24px; }
.svc-option { border:2px solid var(--bdr2); border-radius:var(--r-lg); padding:24px 16px; text-align:center; cursor:pointer; transition:all .2s; background:var(--bg); }
.svc-option:hover { border-color:var(--brand-bdr); background:var(--brand-soft); }
.svc-option.selected { border-color:var(--brand); background:var(--brand-soft); box-shadow:0 0 0 1px var(--brand); }
.svc-option-icon { font-size:2rem; margin-bottom:10px; }
.svc-option-name { font-family:var(--font-d); font-size:1.05rem; margin-bottom:5px; }
.svc-option.selected .svc-option-name { color:var(--brand); }
.svc-option-desc { font-size:.77rem; color:var(--muted); line-height:1.5; }

/* ── ANIMATIONS ───────────────────────────────────────────────────────── */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes spin  { to{transform:rotate(360deg)} }

/* ── SCROLLBAR ────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width:5px; height:5px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:var(--bdr2); border-radius:3px; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width:1100px) {
  .footer-grid { grid-template-columns:1fr 1fr; gap:28px; }
  .kpi-row { grid-template-columns:1fr 1fr; }
}
@media (max-width:768px) {
  :root { --sidebar:0px; }
  .dash-sidebar { display:none; }
  .header-inner { padding:0 20px; height:62px; }
  .auth-layout { grid-template-columns:1fr; }
  .auth-panel { display:none; }
  .auth-form-area { padding:40px 24px; }
  .dash-grid-2, .dash-grid-3 { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .container, .container-wide { padding:0 20px; }
  .svc-grid { grid-template-columns:1fr 1fr; }
}

/* ══════════════════════════════════════════════════════
   HOMEPAGE STYLES
══════════════════════════════════════════════════════ */

/* Shared section primitives */
.section { padding: 96px 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-header p { font-size: .95rem; color: var(--muted); line-height: 1.75; margin-top: 14px; }
.section-label { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-bdr); padding: 4px 14px; border-radius: 100px; margin-bottom: 16px; }
.display-lg { font-family: var(--font-d); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.03em; color: var(--ink); }

/* ── HERO ─────────────────────────────────────────── */
.hero-section { background: linear-gradient(145deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-lite) 100%); min-height: 92vh; display: flex; align-items: center; padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { max-width: 1380px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 480px; gap: 64px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 100px; padding: 6px 18px; font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: .04em; margin-bottom: 24px; }
.hero-eyebrow span { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; }
.hero-title { font-family: var(--font-d); font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.1; color: #fff; letter-spacing: -.03em; margin-bottom: 20px; }
.hero-title em { font-style: italic; color: rgba(255,255,255,.75); }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,.7); line-height: 1.8; margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-val { font-family: var(--font-d); font-size: 1.6rem; color: #fff; line-height: 1; }
.hero-stat-lbl { font-size: .72rem; color: rgba(255,255,255,.55); margin-top: 4px; font-weight: 600; letter-spacing: .04em; }

/* Hero live-status card */
.hero-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: var(--r-xl); backdrop-filter: blur(20px); padding: 24px; animation: float 6s ease-in-out infinite; }
.hero-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.hero-card-title { font-family: var(--font-d); font-size: .95rem; color: #fff; font-style: italic; }
.live-dot { display: flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700; color: #4ade80; letter-spacing: .06em; text-transform: uppercase; }
.live-dot::before { content: ''; width: 6px; height: 6px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; }
.hero-metric-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.hero-metric-row:last-child { border-bottom: none; padding-bottom: 0; }
.hero-metric-name { display: flex; align-items: center; gap: 10px; }
.hero-metric-icon { font-size: .9rem; }
.hero-metric-label { display: block; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.9); line-height: 1.2; }
.hero-metric-sub { display: block; font-size: .68rem; color: rgba(255,255,255,.45); margin-top: 2px; }
.hero-metric-val { font-size: .8rem; font-weight: 700; color: #fff; }
.hero-metric-trend { font-size: .68rem; color: #4ade80; font-weight: 600; }

/* ── STATS BAR ────────────────────────────────────── */
.stats-bar { background: var(--ink); border-top: 1px solid rgba(255,255,255,.08); padding: 28px 0; }
.stats-grid { max-width: 1380px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; }
.stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-val { font-family: var(--font-d); font-size: 1.75rem; color: #fff; line-height: 1; }
.stat-lbl { font-size: .72rem; color: rgba(255,255,255,.45); margin-top: 5px; font-weight: 600; letter-spacing: .04em; }

/* ── SERVICES GRID ────────────────────────────────── */
.services-section { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service-card { background: #fff; border: 1px solid var(--bdr); border-radius: var(--r-xl); padding: 36px 30px; transition: all .2s; }
.service-card:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); border-color: var(--brand-bdr); }
.service-icon { font-size: 2rem; margin-bottom: 18px; width: 56px; height: 56px; background: var(--brand-soft); border-radius: var(--r); display: flex; align-items: center; justify-content: center; }
.service-card h3 { font-family: var(--font-d); font-size: 1.2rem; color: var(--ink); margin-bottom: 10px; }
.service-card p { font-size: .88rem; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.service-features { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.service-features li { font-size: .82rem; color: var(--ink2); display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.service-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; font-size: .8rem; }

/* ── PRICING ──────────────────────────────────────── */
.pricing-section { background: var(--bg); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 860px; margin: 0 auto; }
.pricing-card { background: #fff; border: 1px solid var(--bdr); border-radius: var(--r-xl); padding: 40px 36px; }
.pricing-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--sh-lg); }
.pricing-badge { margin-bottom: 18px; }
.pricing-type { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pricing-offer { font-family: var(--font-d); font-size: 2.4rem; color: var(--ink); line-height: 1; margin-bottom: 6px; }
.pricing-term { font-size: .82rem; color: var(--muted); margin-bottom: 28px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-features li { font-size: .88rem; color: var(--ink2); display: flex; align-items: flex-start; gap: 9px; }
.pricing-features li .icon { color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── HOW IT WORKS ─────────────────────────────────── */
.hiw-section { background: var(--brand-soft); }
.hiw-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.hiw-step { text-align: center; padding: 32px 24px; }
.hiw-num { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-d); font-size: 1.3rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 4px 14px rgba(53,0,144,.3); }
.hiw-step h3 { font-family: var(--font-d); font-size: 1.2rem; margin-bottom: 10px; color: var(--ink); }
.hiw-step p { font-size: .88rem; color: var(--ink3); line-height: 1.75; }

/* ── INDUSTRIES ───────────────────────────────────── */
.industries-section { background: var(--ink); }
.industries-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.industry-item { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 22px 20px; display: flex; align-items: flex-start; gap: 14px; transition: background .2s; }
.industry-item:hover { background: rgba(255,255,255,.09); }
.industry-icon { font-size: 1.4rem; flex-shrink: 0; }
.industry-name { font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.industry-desc { font-size: .76rem; color: rgba(255,255,255,.5); line-height: 1.5; }

/* ── LOCATIONS ────────────────────────────────────── */
.locations-section { background: var(--bg); }
.locations-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.location-card { background: #fff; border: 1px solid var(--bdr); border-radius: var(--r-lg); padding: 24px 20px; text-align: center; transition: all .2s; }
.location-card:hover { box-shadow: var(--sh-md); border-color: var(--brand-bdr); }
.location-flag { font-size: 2.2rem; margin-bottom: 10px; }
.location-city { font-family: var(--font-d); font-size: 1.05rem; color: var(--ink); margin-bottom: 3px; }
.location-country { font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.location-tag { }

/* ── TESTIMONIALS ─────────────────────────────────── */
.testimonials-section { background: #fff; }
.testimonials-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.testimonial-card { background: var(--bg); border: 1px solid var(--bdr); border-radius: var(--r-xl); padding: 32px; }
.testimonial-text { font-size: .92rem; color: var(--ink2); line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .78rem; flex-shrink: 0; }
.testimonial-name { font-weight: 700; font-size: .88rem; color: var(--ink); }
.testimonial-role { font-size: .76rem; color: var(--muted); }

/* ── CTA SECTION ──────────────────────────────────── */
.cta-section { background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, var(--brand-lite) 100%); padding: 100px 0; text-align: center; }
.cta-content { max-width: 700px; margin: 0 auto; padding: 0 32px; }
.cta-title { font-family: var(--font-d); font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; margin-bottom: 16px; }
.cta-sub { font-size: 1rem; color: rgba(255,255,255,.7); line-height: 1.75; margin-bottom: 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── HOMEPAGE RESPONSIVE ──────────────────────────── */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { display: none; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .industries-grid { grid-template-columns: repeat(2,1fr); }
  .locations-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero-section { padding: 80px 0 60px; min-height: auto; }
  .hero-content { padding: 0 20px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hiw-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: repeat(2,1fr); }
  .hero-stats { gap: 20px; }
}
