/* ============================================================================
   ADYFLY — Design System
   Premium SaaS aesthetic: midnight navy, electric blue, violet/cyan gradients.
   Requires Bootstrap 5 (CDN). Theme Customizer overrides --brand-* vars.
   ========================================================================== */

:root {
  --brand-primary: #4353E8;
  --brand-secondary: #4A2EBA;
  --brand-accent: #1BC8FF;
  --brand-dark: #0B1020;
  --brand-radius: 14px;
  --btn-radius: 999px;
  --brand-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --grad-brand: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-primary) 48%, var(--brand-secondary) 100%);
  --grad-soft: linear-gradient(135deg, rgba(27,200,255,.10), rgba(74,46,186,.10));
  --navy-900: #0B1020;
  --navy-800: #10162E;
  --navy-700: #161D3A;
  --ink-900: #141824;
  --ink-700: #3A4256;
  --ink-500: #6B7488;
  --ink-300: #A8B0C2;
  --line: #E7EAF3;
  --surface: #FFFFFF;
  --canvas: #F5F7FC;
  --success: #0FA36B;
  --warning: #E8930C;
  --danger: #E5484D;

  --shadow-xs: 0 1px 2px rgba(16, 22, 46, .05);
  --shadow-sm: 0 2px 8px rgba(16, 22, 46, .06);
  --shadow-md: 0 10px 30px rgba(16, 22, 46, .08);
  --shadow-lg: 0 24px 60px rgba(16, 22, 46, .13);
  --shadow-glow: 0 12px 32px rgba(67, 83, 232, .32);
}

[data-theme="dark"] {
  --ink-900: #F2F4FB;
  --ink-700: #C6CDDF;
  --ink-500: #8D96AE;
  --ink-300: #5C6478;
  --line: #232B45;
  --surface: #141B33;
  --canvas: #0D1226;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.35);
  --shadow-md: 0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
}

/* ------------------------------------------------------------------ base -- */
* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--brand-font);
  background: var(--canvas);
  color: var(--ink-900);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--ink-900); letter-spacing: -.02em; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-secondary); }
::selection { background: rgba(67,83,232,.22); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C4CBDD; border-radius: 8px; border: 2px solid var(--canvas); }
::-webkit-scrollbar-thumb:hover { background: #9AA3BC; }

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.text-accent { color: var(--brand-accent); }
.text-ink-500 { color: var(--ink-500); }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-primary); background: var(--grad-soft);
  border: 1px solid rgba(67,83,232,.18);
  padding: 6px 14px; border-radius: 999px;
}

/* --------------------------------------------------------------- buttons -- */
.btn { font-weight: 600; border-radius: var(--btn-radius); transition: all .22s ease; }
.btn-brand {
  background: var(--grad-brand); color: #fff; border: none;
  box-shadow: var(--shadow-glow);
}
.btn-brand:hover, .btn-brand:focus { color: #fff; transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 16px 40px rgba(67,83,232,.42); }
.btn-brand:active { transform: translateY(0); }
.btn-outline-brand {
  border: 1.6px solid var(--brand-primary); color: var(--brand-primary); background: transparent;
}
.btn-outline-brand:hover { background: var(--brand-primary); color: #fff; transform: translateY(-2px); }
.btn-soft { background: rgba(67,83,232,.10); color: var(--brand-primary); border: none; }
.btn-soft:hover { background: rgba(67,83,232,.18); color: var(--brand-primary); }
.btn-ghost-dark { color: #C9D2EE; border: 1.6px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.btn-ghost-dark:hover { color: #fff; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.12); }
.btn-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 12px; }

/* ----------------------------------------------------------------- cards -- */
.card { border: 1px solid var(--line); border-radius: var(--brand-radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.card-hover { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(67,83,232,.35); }
.card-pad { padding: 1.5rem; }
.card-glass {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  border-radius: var(--brand-radius);
}
.icon-tile {
  width: 48px; height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
  background: var(--grad-soft); color: var(--brand-primary);
  border: 1px solid rgba(67,83,232,.16);
  flex-shrink: 0;
}
.icon-tile.lg { width: 60px; height: 60px; font-size: 26px; border-radius: 18px; }
.icon-tile.on-dark { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); color: var(--brand-accent); }

/* ---------------------------------------------------------------- badges -- */
.badge { font-weight: 600; border-radius: 999px; padding: .42em .85em; font-size: 11.5px; letter-spacing: .02em; }
.badge-status { color: #fff; background: var(--bs, #64748b); }
.badge-soft-success { background: rgba(15,163,107,.12); color: #0B7A51; }
.badge-soft-warning { background: rgba(232,147,12,.13); color: #A96A08; }
.badge-soft-danger { background: rgba(229,72,77,.12); color: #B93337; }
.badge-soft-info { background: rgba(67,83,232,.12); color: var(--brand-primary); }
.badge-soft-muted { background: rgba(108,117,139,.14); color: #5A6478; }

/* ------------------------------------------------------------ public nav -- */
.nav-ady {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1030;
  padding: 18px 0; transition: all .3s ease;
}
.nav-ady.scrolled, .nav-ady.solid {
  position: fixed; background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm); padding: 10px 0; border-bottom: 1px solid var(--line);
}
.nav-ady .navbar-brand img { height: 38px; }
.nav-ady .nav-link { color: #5B6478; font-weight: 500; padding: .5rem .95rem !important; border-radius: 10px; }
.nav-ady .nav-link:hover, .nav-ady .nav-link.active { color: var(--brand-primary); }
.nav-ady.on-dark .nav-link { color: #C9D2EE; }
.nav-ady.on-dark .nav-link:hover, .nav-ady.on-dark .nav-link.active { color: #fff; }
.nav-ady.scrolled .nav-link, .nav-ady.solid .nav-link { color: #3A4256; }
.navbar-toggler { border: none; padding: .4rem .6rem; }
.navbar-toggler:focus { box-shadow: none; }

/* ------------------------------------------------------------------ hero -- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 520px at 82% -8%, rgba(74,46,186,.5), transparent 60%),
              radial-gradient(900px 480px at -10% 30%, rgba(27,200,255,.24), transparent 55%),
              linear-gradient(180deg, var(--navy-900) 0%, #0E1430 58%, var(--navy-800) 100%);
  color: #E8ECF8;
  padding: 168px 0 120px;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.55rem); line-height: 1.13; font-weight: 800; }
.hero-lead { color: #AAB4D4; font-size: clamp(1rem, 1.5vw, 1.16rem); max-width: 640px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500;
  color: #C9D2EE; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13);
  padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(8px);
}
.hero-mesh { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-mesh::before, .hero-mesh::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: float-orb 14s ease-in-out infinite alternate;
}
.hero-mesh::before { width: 460px; height: 460px; right: -80px; top: -110px; background: rgba(67,83,232,.42); }
.hero-mesh::after { width: 380px; height: 380px; left: -120px; bottom: -140px; background: rgba(27,200,255,.20); animation-delay: -7s; }
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 75%);
}
@keyframes float-orb { from { transform: translateY(0) scale(1); } to { transform: translateY(36px) scale(1.08); } }

/* hero visual panel (analytics mock) */
.hero-panel {
  border-radius: 20px; overflow: hidden;
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(16px); box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform .5s ease;
}
.hero-panel:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1.5deg); }
.mock-chip { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 10px 12px; }
.mock-bar { background: var(--grad-brand); border-radius: 4px; animation: bar-grow 1.1s cubic-bezier(.2,.7,.3,1) both; transform-origin: bottom; }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.mock-line { stroke: var(--brand-accent); stroke-width: 2.5; fill: none; stroke-linecap: round;
  stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw-line 2s .3s ease forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

/* -------------------------------------------------------------- sections -- */
.section { padding: 96px 0; }
.section-dark {
  background: radial-gradient(900px 420px at 85% 0%, rgba(67,83,232,.16), transparent 55%), var(--navy-900);
  color: #DDE3F4;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #A9B3D0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; margin: 14px 0 12px; }
.section-head p { color: var(--ink-500); font-size: 1.06rem; margin: 0; }
.section-dark .section-head p { color: #A9B3D0; }

.feature-card { padding: 28px; height: 100%; }
.feature-card h5 { font-size: 1.05rem; margin: 16px 0 8px; }
.feature-card p { color: var(--ink-500); font-size: .93rem; margin: 0; }

.step-card { position: relative; padding: 26px 24px; height: 100%; }
.step-num {
  font-size: 13px; font-weight: 700; color: #fff;
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--grad-brand); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow); margin-bottom: 14px;
}

.stat-tile { text-align: center; padding: 30px 16px; height: 100%; }
.stat-value { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -.03em; }
.stat-label { color: #A9B3D0; font-size: .9rem; margin-top: 4px; }

/* pricing/service cards */
.price-card { padding: 30px; height: 100%; display: flex; flex-direction: column; position: relative; }
.price-card .price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; }
.price-card .price small { font-size: .85rem; font-weight: 500; color: var(--ink-500); }
.feature-list { list-style: none; padding: 0; margin: 18px 0 24px; flex-grow: 1; }
.feature-list li { padding: 6.5px 0; font-size: .93rem; color: var(--ink-700); display: flex; gap: 10px; align-items: flex-start; }
.feature-list li i { color: var(--success); margin-top: 3px; }
.feature-list li.off { color: var(--ink-300); } .feature-list li.off i { color: var(--ink-300); }
.ribbon {
  position: absolute; top: 18px; right: 18px;
  background: var(--grad-brand); color: #fff; font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; letter-spacing: .04em;
}

/* FAQ */
.accordion-ady .accordion-item { border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: 12px; overflow: hidden; background: var(--surface); }
.accordion-ady .accordion-button { font-weight: 600; color: var(--ink-900); padding: 18px 22px; }
.accordion-ady .accordion-button:not(.collapsed) { background: var(--grad-soft); color: var(--brand-primary); box-shadow: none; }
.accordion-ady .accordion-button:focus { box-shadow: none; }
.accordion-ady .accordion-button::after { background-size: .95rem; }
.accordion-ady .accordion-body { color: var(--ink-500); font-size: .95rem; padding-top: 0; }

/* CTA band */
.cta-band {
  border-radius: 24px; padding: 56px 40px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(700px 320px at 80% -20%, rgba(27,200,255,.28), transparent 60%),
              linear-gradient(135deg, var(--navy-800), var(--brand-secondary));
  color: #fff; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }

/* -------------------------------------------------------------- footer -- */
.footer-ady { background: var(--navy-900); color: #98A2BE; padding: 72px 0 0; position: relative; }
.footer-ady h6 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-ady a { color: #98A2BE; font-size: .92rem; display: inline-block; padding: 3.5px 0; }
.footer-ady a:hover { color: #fff; }
.footer-brand img { height: 34px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 56px; padding: 22px 0; font-size: .84rem; }
.footer-note { font-size: .8rem; color: #6C769A; line-height: 1.6; }

/* --------------------------------------------------------------- auth -- */
.auth-shell { min-height: 100vh; display: flex; }
.auth-brand-side {
  flex: 0 0 46%; position: relative; overflow: hidden; color: #DDE3F4;
  background: radial-gradient(700px 500px at 80% -10%, rgba(74,46,186,.55), transparent 60%),
              radial-gradient(600px 400px at 0% 100%, rgba(27,200,255,.22), transparent 55%),
              linear-gradient(160deg, var(--navy-900), #101736);
  display: flex; flex-direction: column; justify-content: space-between; padding: 48px 52px;
}
.auth-brand-side h2 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.auth-brand-points li { display: flex; gap: 12px; padding: 7px 0; color: #B7C0DC; font-size: .95rem; align-items: flex-start; }
.auth-brand-points li i { color: var(--brand-accent); margin-top: 4px; }
.auth-form-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--canvas); }
.auth-form-box { width: 100%; max-width: 440px; }
@media (max-width: 991.98px) { .auth-brand-side { display: none; } }

.form-label { font-weight: 600; font-size: .86rem; color: var(--ink-700); margin-bottom: 6px; }
.form-control, .form-select {
  border-radius: 12px; border: 1.5px solid var(--line); padding: 10px 14px; font-size: .95rem;
  background: var(--surface); color: var(--ink-900); transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(67,83,232,.13); }
.form-control::placeholder { color: var(--ink-300); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-300); }
.input-icon > .form-control { padding-left: 42px; }
.input-icon > .btn-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: none; background: none; color: var(--ink-300); }
.password-meter { height: 5px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 7px; }
.password-meter > div { height: 100%; width: 0; border-radius: 4px; background: var(--danger); transition: all .3s ease; }

/* ------------------------------------------------------------ dashboard -- */
.shell { display: flex; min-height: 100vh; background: var(--canvas); }
.sidebar {
  width: 264px; flex-shrink: 0; background: var(--navy-900); color: #98A2BE;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 1040;
  transition: margin-left .3s ease;
}
.sidebar-head { padding: 20px 22px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-head img { height: 34px; }
.sidebar-head .brand-name { color: #fff; font-weight: 800; font-size: 1.14rem; letter-spacing: -.02em; }
.sidebar-head .brand-sub { font-size: 10.5px; color: #6C769A; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-nav { padding: 16px 12px; overflow-y: auto; flex: 1; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-color: var(--navy-900); }
.sidebar-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #57618272; color: #56608A; padding: 16px 12px 7px; font-weight: 700; }
.sidebar-link {
  display: flex; align-items: center; gap: 11px; padding: 9.5px 12px; margin: 1.5px 0;
  color: #98A2BE; border-radius: 11px; font-size: .925rem; font-weight: 500; transition: all .18s ease;
}
.sidebar-link i { width: 20px; text-align: center; font-size: 1rem; opacity: .85; }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-link.active { color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-glow); }
.sidebar-link .badge { margin-left: auto; }
.sidebar-foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.07); font-size: .8rem; color: #56608A; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 1030; background: var(--surface);
  border-bottom: 1px solid var(--line); padding: 13px 26px;
  display: flex; align-items: center; gap: 16px;
}
.topbar .page-title { font-size: 1.06rem; font-weight: 700; margin: 0; }
.topbar-search { position: relative; max-width: 340px; width: 100%; }
.topbar-search input { border-radius: 999px; padding-left: 40px; background: var(--canvas); border-color: transparent; }
.topbar-search input:focus { background: var(--surface); }
.topbar-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-300); }
.topbar-search .search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-height: 380px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  display: none; z-index: 50;
}
.topbar-search .search-results.show { display: block; }
.search-result-item { display: flex; gap: 12px; padding: 11px 14px; align-items: center; border-bottom: 1px solid var(--line); color: var(--ink-700); }
.search-result-item:hover { background: var(--canvas); text-decoration: none; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item i { color: var(--brand-primary); }
.search-result-item small { color: var(--ink-500); }

.content { padding: 28px 26px 60px; flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; }

.avatar {
  width: 38px; height: 38px; border-radius: 12px; object-fit: cover;
  background: var(--grad-brand); color: #fff; font-weight: 700; font-size: .84rem;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.avatar.lg { width: 72px; height: 72px; border-radius: 20px; font-size: 1.35rem; }
.avatar.sm { width: 30px; height: 30px; border-radius: 9px; font-size: .7rem; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-700); display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem; position: relative; transition: all .2s; cursor: pointer;
}
.icon-btn:hover { color: var(--brand-primary); border-color: rgba(67,83,232,.4); background: var(--grad-soft); }
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px; min-width: 16px; height: 16px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 9.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
  border: 2px solid var(--surface);
}

/* KPI cards */
.kpi { padding: 22px; height: 100%; position: relative; overflow: hidden; }
.kpi .kpi-icon { width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; }
.kpi .kpi-value { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.kpi .kpi-label { color: var(--ink-500); font-size: .85rem; font-weight: 500; }
.kpi .kpi-trend { font-size: .78rem; font-weight: 600; }
.kpi::after {
  content: ""; position: absolute; right: -34px; top: -34px; width: 110px; height: 110px; border-radius: 50%;
  background: var(--grad-soft); opacity: .7;
}

/* tables */
.table-pro { margin: 0; color: var(--ink-700); font-size: .9rem; }
.table-pro thead th {
  background: var(--canvas); color: var(--ink-500); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .09em; font-weight: 700; border-bottom: 1px solid var(--line); padding: 12px 16px; white-space: nowrap;
}
.table-pro thead th:first-child { border-top-left-radius: 12px; }
.table-pro thead th:last-child { border-top-right-radius: 12px; }
.table-pro tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-pro tbody tr:last-child td { border-bottom: none; }
.table-pro tbody tr { transition: background .15s; }
.table-pro tbody tr:hover { background: var(--canvas); }
.table-wrap { overflow-x: auto; border-radius: 14px; }

/* empty state */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-state .es-icon {
  width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 24px;
  background: var(--grad-soft); border: 1px solid rgba(67,83,232,.16);
  display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--brand-primary);
}
.empty-state h5 { margin-bottom: 6px; }
.empty-state p { color: var(--ink-500); max-width: 380px; margin: 0 auto 20px; }

/* timeline */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline-item { position: relative; padding: 0 0 22px 16px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -26px; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--brand-primary); box-shadow: 0 0 0 4px rgba(67,83,232,.12);
}
.timeline-item.muted::before { border-color: var(--ink-300); box-shadow: none; }
.timeline-item .tl-title { font-weight: 600; font-size: .93rem; }
.timeline-item .tl-time { font-size: .78rem; color: var(--ink-300); }

/* notifications dropdown */
.notif-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 372px; max-width: calc(100vw - 30px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  display: none; z-index: 1060; overflow: hidden;
}
.notif-menu.show { display: block; animation: pop-in .22s ease; }
.notif-menu .notif-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.notif-menu .notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); transition: background .15s; color: var(--ink-700); }
.notif-item:hover { background: var(--canvas); text-decoration: none; }
.notif-item.unread { background: var(--grad-soft); }
.notif-item .ni-icon { width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.notif-item .ni-title { font-weight: 600; font-size: .88rem; color: var(--ink-900); }
.notif-item .ni-msg { font-size: .82rem; color: var(--ink-500); }
.notif-item .ni-time { font-size: .72rem; color: var(--ink-300); }

/* dropdown menus */
.dropdown-menu {
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px;
  font-size: .92rem; background: var(--surface);
}
.dropdown-item { border-radius: 9px; padding: 8px 12px; color: var(--ink-700); display: flex; align-items: center; gap: 10px; }
.dropdown-item i { width: 18px; opacity: .75; }
.dropdown-item:hover { background: var(--grad-soft); color: var(--brand-primary); }
.dropdown-item.text-danger:hover { background: rgba(229,72,77,.09); color: var(--danger) !important; }

/* modal */
.modal-content { border: none; border-radius: 18px; box-shadow: var(--shadow-lg); background: var(--surface); }
.modal-header { border-bottom: 1px solid var(--line); padding: 20px 24px 16px; }
.modal-footer { border-top: 1px solid var(--line); padding: 14px 24px 20px; }
.modal-body { padding: 20px 24px; }

/* toast */
.toast-stack { position: fixed; top: 18px; right: 18px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast-ady {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: slide-in-right .3s cubic-bezier(.2,.8,.3,1); font-size: .9rem; color: var(--ink-700);
}
.toast-ady i { font-size: 18px; margin-top: 1px; }
.toast-ady.success i { color: var(--success); } .toast-ady.danger i { color: var(--danger); }
.toast-ady.warning i { color: var(--warning); } .toast-ady.info i { color: var(--brand-primary); }
.toast-ady .close-x { margin-left: auto; cursor: pointer; color: var(--ink-300); background: none; border: none; }

/* charts */
.chart-box { position: relative; width: 100%; }
.chart-loading { display: flex; align-items: center; justify-content: center; min-height: 260px; color: var(--ink-300); gap: 10px; }

/* analytics KPI row */
.metric-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.metric-tile { padding: 18px; }
.metric-tile .m-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); font-weight: 700; }
.metric-tile .m-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }

/* wizard (request submission) */
.wizard-steps { display: flex; gap: 6px; margin-bottom: 28px; flex-wrap: wrap; }
.wizard-step {
  flex: 1; min-width: 120px; text-align: center; padding: 10px 8px; border-radius: 12px;
  font-size: .8rem; font-weight: 600; color: var(--ink-300); background: var(--canvas);
  border: 1.5px solid var(--line); transition: all .25s; cursor: default;
}
.wizard-step .ws-num { display: block; font-size: 1.15rem; font-weight: 800; margin-bottom: 2px; }
.wizard-step.active { color: var(--brand-primary); border-color: var(--brand-primary); background: var(--grad-soft); }
.wizard-step.done { color: var(--success); border-color: rgba(15,163,107,.4); background: rgba(15,163,107,.07); }

/* chat / support */
.chat-box { display: flex; flex-direction: column; gap: 14px; padding: 22px; max-height: 520px; overflow-y: auto; }
.chat-msg { max-width: 78%; padding: 12px 16px; border-radius: 16px; font-size: .92rem; line-height: 1.55; }
.chat-msg .cm-meta { font-size: .72rem; color: var(--ink-300); margin-top: 5px; }
.chat-msg.from-user { align-self: flex-end; background: var(--grad-brand); color: #fff; border-bottom-right-radius: 5px; }
.chat-msg.from-user .cm-meta { color: rgba(255,255,255,.72); }
.chat-msg.from-admin { align-self: flex-start; background: var(--canvas); border: 1px solid var(--line); border-bottom-left-radius: 5px; }

/* invoice print */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .content { padding: 0; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}
.invoice-logo img { height: 44px; }

/* skeletons */
.skeleton { position: relative; overflow: hidden; background: var(--line); border-radius: 10px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: shimmer 1.6s infinite; transform: translateX(-100%);
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* -------------------------------------------------------------- misc/anims */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; } .reveal[data-delay="4"] { transition-delay: .32s; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slide-in-right { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-inline { width: 17px; height: 17px; border: 2.4px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: -3px; }
.page-fade { animation: page-fade .45s ease; }
@keyframes page-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* mobile */
.mobile-overlay { position: fixed; inset: 0; background: rgba(11,16,32,.55); z-index: 1035; display: none; backdrop-filter: blur(2px); }
@media (max-width: 991.98px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; margin-left: -268px; box-shadow: var(--shadow-lg); }
  .sidebar.open { margin-left: 0; }
  .mobile-overlay.show { display: block; }
  .content { padding: 20px 16px 50px; }
  .topbar { padding: 12px 16px; }
  .hero { padding: 140px 0 84px; }
  .section { padding: 64px 0; }
  .auth-brand-side { display: none; }
  .table-pro tbody td { white-space: nowrap; }
}
@media (max-width: 575.98px) {
  .hero h1 { font-size: 1.95rem; }
  .kpi .kpi-value { font-size: 1.5rem; }
  .hero-panel { transform: none; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* demo mode ribbon */
.demo-ribbon {
  position: fixed; bottom: 18px; left: 18px; z-index: 1900;
  background: rgba(232,147,12,.95); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(232,147,12,.4);
}

/* helper */
.cursor-pointer { cursor: pointer; }
.font-sm { font-size: .84rem; }
.font-xs { font-size: .78rem; }
.fw-800 { font-weight: 800; }
.mw-520 { max-width: 520px; }
.gap-2\.5 { gap: .75rem; }

/* light footer variant (Theme Customizer → Footer style: light) */
.footer-ady-light { background: var(--surface); color: var(--ink-500); border-top: 1px solid var(--line); box-shadow: 0 -1px 0 rgba(16,22,46,.03); }
.footer-ady-light h6 { color: var(--ink-900); }
.footer-ady-light a { color: var(--ink-500); }
.footer-ady-light a:hover { color: var(--brand-primary); }
.footer-ady-light .footer-brand span { color: var(--ink-900) !important; }
.footer-ady-light .footer-note { color: var(--ink-300); }
.footer-ady-light .footer-bottom { border-top: 1px solid var(--line); }
.footer-ady-light .icon-btn { color: var(--ink-700) !important; background: var(--canvas) !important; }
