/* ============================================================
   SECPUSE design system
   Mid-dark orange primary + off-white, light & dark themes
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #D9650D;
  --primary-hover: #B85409;
  --primary-soft: rgba(217, 101, 13, .12);
  --primary-grad: linear-gradient(135deg, #E8791F 0%, #C2570A 100%);

  --bg: #FAF6F0;
  --bg-2: #F3ECE2;
  --card: #FFFFFF;
  --card-2: #FBF7F1;
  --border: #ECE3D6;
  --text: #241C14;
  --text-2: #6B6055;
  --text-3: #A89C8E;

  --green: #16A34A;  --green-soft: rgba(22,163,74,.12);
  --red: #DC2626;    --red-soft: rgba(220,38,38,.12);
  --amber: #D97706;  --amber-soft: rgba(217,119,6,.14);
  --blue: #0284C7;   --blue-soft: rgba(2,132,199,.12);

  --shadow: 0 1px 3px rgba(36,28,20,.06), 0 8px 24px -12px rgba(36,28,20,.12);
  --shadow-lg: 0 24px 60px -20px rgba(36,28,20,.25);
  --primary-glow: rgba(217,101,13,.5);
  --btn-text: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --sidebar-w: 248px;
}

[data-theme="dark"] {
  --bg: #161210;
  --bg-2: #1D1814;
  --card: #211B17;
  --card-2: #2A221C;
  --border: #352B23;
  --text: #F4EDE4;
  --text-2: #B3A595;
  --text-3: #7D7164;
  --primary: #E8791F;
  --primary-hover: #F18A35;
  --primary-soft: rgba(232, 121, 31, .15);
  --shadow: 0 1px 3px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.6);
  --primary-glow: rgba(232,121,31,.5);
  --green: #22C55E; --red: #F87171; --amber: #FBBF24; --blue: #38BDF8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm); border: none;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  cursor: pointer; text-decoration: none !important; transition: all .18s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary-grad); color: var(--btn-text); box-shadow: 0 4px 14px -4px var(--primary-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px var(--primary-glow); filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--text-2); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 7px; color: var(--text); }
.field .hint { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 15px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--card); color: var(--text);
  font-family: var(--font-body); font-size: 14.5px; transition: border .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.input-group { position: relative; }
.input-group .prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-weight: 600;
}
.input-group .input { padding-left: 38px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 28px 16px;
  background:
    radial-gradient(900px 500px at 85% -10%, var(--primary-soft), transparent 60%),
    radial-gradient(700px 460px at -10% 105%, var(--primary-soft), transparent 60%),
    var(--bg);
}
.auth-card {
  width: 100%; max-width: 430px; background: var(--card);
  border: 1px solid var(--border); border-radius: 22px; padding: 38px 36px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 26px; }
.auth-card h1 { font-size: 23px; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-2); font-size: 14px; margin-bottom: 26px; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-2); }

.logo-text {
  font-family: var(--font-display); font-weight: 800; font-size: 21px;
  letter-spacing: 2.5px; color: var(--text); text-decoration: none !important;
}
.logo-text span { color: var(--primary); }

/* OTP boxes */
.otp-row { display: flex; gap: 10px; justify-content: center; margin: 10px 0 6px; }
.otp-box {
  width: 50px; height: 58px; text-align: center; font-size: 24px; font-weight: 700;
  font-family: var(--font-display); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--card); color: var(--text);
}
.otp-box:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }

/* ---------- App layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); position: fixed; inset: 0 auto 0 0; z-index: 50;
  background: var(--card); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 22px 14px;
  transition: transform .25s;
}
.sidebar .logo-text { padding: 2px 12px 20px; display: block; }
.nav-group { flex: 1; overflow-y: auto; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-3); padding: 14px 12px 6px; font-weight: 600; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10.5px 12px;
  border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500;
  font-size: 14.5px; text-decoration: none !important; margin-bottom: 2px; transition: all .15s;
}
.nav-item:hover { background: var(--bg-2); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-item .ico { width: 20px; text-align: center; font-size: 16px; }
.nav-item .badge { margin-left: auto; }

.main { flex: 1; margin-left: var(--sidebar-w); padding: 26px 32px 60px; min-width: 0; }

.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.topbar h1 { font-size: 24px; }
.topbar .spacer { flex: 1; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--card); color: var(--text-2); cursor: pointer; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  transition: all .15s; text-decoration: none !important;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px; width: 8px; height: 8px;
  background: var(--red); border-radius: 50%; border: 2px solid var(--card);
}

/* Workspace switcher */
.ws-switch {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-radius: 12px; background: var(--card); border: 1.5px solid var(--border);
  font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer;
}
.ws-switch .chip { font-size: 11px; padding: 2px 8px; }

/* ---------- Cards & stats ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card h3 { font-size: 16px; margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-head h3 { margin-bottom: 0; }

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-main { grid-template-columns: 1.6fr 1fr; }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .s-label { font-size: 13px; color: var(--text-2); font-weight: 500; display:flex; align-items:center; gap:8px; }
.stat .s-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.stat .s-sub { font-size: 12.5px; color: var(--text-3); }
.s-ico {
  width: 38px; height: 38px; border-radius: 11px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 17px; margin-bottom: 10px;
}

/* Progress bars */
.progress { height: 9px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; border-radius: 99px; background: var(--primary-grad); transition: width .5s ease; }
.progress.danger > div { background: linear-gradient(135deg,#F87171,#DC2626); }
.progress.warn > div { background: linear-gradient(135deg,#FBBF24,#D97706); }
.progress.ok > div { background: linear-gradient(135deg,#4ADE80,#16A34A); }

/* Chips / badges */
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px;
  border-radius: 99px; font-size: 12px; font-weight: 600;
}
.chip-orange { background: var(--primary-soft); color: var(--primary); }
.chip-green { background: var(--green-soft); color: var(--green); }
.chip-red { background: var(--red-soft); color: var(--red); }
.chip-amber { background: var(--amber-soft); color: var(--amber); }
.chip-blue { background: var(--blue-soft); color: var(--blue); }
.chip-gray { background: var(--bg-2); color: var(--text-2); }
.badge {
  min-width: 19px; height: 19px; padding: 0 6px; border-radius: 99px;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--text-3); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--bg-2); }
.tbl .amount { font-family: var(--font-display); font-weight: 700; }
.cat-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,10,6,.55); z-index: 100;
  display: none; align-items: flex-start; justify-content: center; padding: 60px 16px;
  backdrop-filter: blur(3px); overflow-y: auto;
}
.modal-overlay.open { display: flex; animation: fadeIn .18s; }
.modal {
  background: var(--card); border-radius: 20px; border: 1px solid var(--border);
  width: 100%; max-width: 480px; padding: 28px; box-shadow: var(--shadow-lg);
  animation: slideUp .22s ease;
}
.modal h3 { font-size: 19px; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Toasts & alerts ---------- */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: 12px; padding: 13px 18px; min-width: 270px; max-width: 360px;
  box-shadow: var(--shadow-lg); font-size: 14px; animation: slideIn .25s ease;
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } }

.alert { padding: 13px 17px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; font-weight: 500; }
.alert-error { background: var(--red-soft); color: var(--red); }
.alert-success { background: var(--green-soft); color: var(--green); }
.alert-info { background: var(--blue-soft); color: var(--blue); }
.alert-warn { background: var(--amber-soft); color: var(--amber); }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--text-2); }
.empty .big { font-size: 46px; margin-bottom: 12px; }
.empty h4 { font-size: 17px; color: var(--text); margin-bottom: 6px; }
.empty p { font-size: 14px; max-width: 340px; margin: 0 auto 18px; }

/* ---------- Landing page ---------- */
.land-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; max-width: 1100px; margin: 0 auto; gap: 16px;
}
.land-wrap { padding: 0 24px; }
.hero { max-width: 1100px; margin: 0 auto; text-align: center; padding: 76px 0 50px; }
.hero-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center; text-align: left; padding-top: 50px; }
.hero-split h1 { margin-left: 0; }
.hero-split p.lead { margin-left: 0; }
.hero-split .hero-cta { justify-content: flex-start; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg, .illus { max-width: 100%; height: auto; }
.illus { filter: grayscale(1) contrast(1.05); }
[data-theme="dark"] .illus [fill="#FAF6F0"] { fill: #F4EDE4; }
.land-cta-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; text-align: left; }
.land-cta-split .cta-art { display: flex; justify-content: center; }
.page-art { display: flex; justify-content: center; margin: 6px 0 18px; }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero-split h1, .hero-split p.lead { margin-left: auto; margin-right: auto; }
  .hero-split .hero-cta { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art svg { width: 320px; }
  .land-cta-split { grid-template-columns: 1fr; text-align: center; }
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px); font-weight: 800; letter-spacing: -1.5px;
  max-width: 760px; margin: 0 auto 22px;
}
.hero h1 .hl { color: var(--primary); position: relative; }
.hero p.lead { font-size: 18px; color: var(--text-2); max-width: 560px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-panel {
  max-width: 940px; margin: 60px auto 0; background: var(--card);
  border: 1px solid var(--border); border-radius: 24px; padding: 26px;
  box-shadow: var(--shadow-lg); text-align: left;
}
.hero-split .hero-panel { grid-column: 1 / -1; max-width: none; width: 100%; margin-top: 44px; }
.progress.mono > div { background: var(--text); }
.features { max-width: 1100px; margin: 70px auto; }
.features h2, .section-title { text-align: center; font-size: clamp(26px, 4vw, 36px); margin-bottom: 14px; letter-spacing: -.5px; }
.section-sub { text-align: center; color: var(--text-2); max-width: 520px; margin: 0 auto 44px; }
.feature-card { padding: 26px; }
.feature-card .f-ico {
  width: 46px; height: 46px; border-radius: 13px; background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 16px;
}
.feature-card h4 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-2); }
.land-cta {
  max-width: 1100px; margin: 40px auto 70px; text-align: center;
  background: var(--primary-grad); border-radius: 26px; padding: 60px 30px; color: #fff;
}
.land-cta h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 12px; }
.land-cta p { opacity: .9; margin-bottom: 26px; }
.land-cta .btn { background: #fff; color: var(--primary); }
.land-foot { text-align: center; color: var(--text-3); font-size: 13px; padding: 26px 0 38px; }
.land-links { display: flex; gap: 26px; flex: 1; justify-content: center; }
.land-links a { color: var(--text-2); font-weight: 500; font-size: 14.5px; text-decoration: none; }
.land-links a:hover, .land-links a.active { color: var(--primary); }

/* ---------- Public site footer ---------- */
.site-foot { max-width: 1100px; margin: 0 auto; padding-top: 20px; }
.site-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; padding: 30px 0 10px; }
.site-foot-grid a { display: block; color: var(--text-2); font-size: 14px; padding: 4px 0; text-decoration: none; }
.site-foot-grid a:hover { color: var(--primary); }
.site-foot .foot-head { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-3); margin-bottom: 10px; }

/* ---------- Prose pages (privacy/terms/about) ---------- */
.prose-wrap { max-width: 780px; margin: 0 auto; padding: 40px 0 70px; }
.prose-wrap .page-kicker { color: var(--primary); font-weight: 600; font-size: 13.5px; text-transform: uppercase; letter-spacing: 1.5px; }
.prose-wrap h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -1px; margin: 10px 0 8px; }
.prose-wrap .page-sub { color: var(--text-2); font-size: 16px; margin-bottom: 36px; }
.prose h2 { font-size: 21px; margin: 34px 0 12px; }
.prose h3 { font-size: 16.5px; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--text-2); font-size: 15px; line-height: 1.75; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--text); }

/* Marketing nav — mobile menu */
.land-menu-btn { display: none; }
.land-mobile {
  display: none; max-width: 1100px; margin: 0 auto 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px; box-shadow: var(--shadow-lg);
  animation: slideUp .22s ease;
}
.land-mobile a:not(.btn) {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: 14.5px;
  text-decoration: none;
}
.land-mobile a:not(.btn):hover, .land-mobile a:not(.btn).active { background: var(--primary-soft); color: var(--primary); }

@media (max-width: 768px) {
  .land-links { display: none; }
  .hide-mobile { display: none; }
  .land-menu-btn { display: inline-flex; }
  .land-mobile.open { display: block; }
  .site-foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Misc ---------- */
.txt-green { color: var(--green); } .txt-red { color: var(--red); } .txt-amber { color: var(--amber); }
.txt-2 { color: var(--text-2); } .txt-3 { color: var(--text-3); }
.fs-12 { font-size: 12.5px; } .fs-13 { font-size: 13px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary-grad);
  color: #fff; font-weight: 700; font-size: 14px; font-family: var(--font-display);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.divider { height: 1px; background: var(--border); margin: 18px 0; border: none; }

/* ---------- SVG icons ---------- */
svg.ic { vertical-align: middle; flex-shrink: 0; }
.nav-item .ico { display: inline-flex; align-items: center; justify-content: center; }
.icon-btn svg, .theme-btn svg { display: block; }
.theme-btn .when-light, .theme-btn .when-dark { display: none; line-height: 0; }
[data-theme="light"] .theme-btn .when-light { display: block; }
[data-theme="dark"] .theme-btn .when-dark { display: block; }
.s-ico svg { display: block; }
.chip svg { margin-right: 2px; }
.btn svg { flex-shrink: 0; }

/* ---------- Theme studio swatches ---------- */
input.theme-swatch {
  width: 46px; height: 34px; padding: 2px; border: 1.5px solid var(--border);
  border-radius: 9px; background: var(--card); cursor: pointer;
}
input.theme-swatch::-webkit-color-swatch { border: none; border-radius: 6px; }
input.theme-swatch::-webkit-color-swatch-wrapper { padding: 2px; }

/* ---------- Motion design ---------- */
@keyframes floatY  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatYr { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes floatYs { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes wiggle  { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes twinkle { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.78); } }
@keyframes heartbeat { 0%,40%,100% { transform: scale(1); } 10% { transform: scale(1.12); } 22% { transform: scale(1.04); } }
@keyframes barGrow { from { transform: scaleY(.2); } }

.illus [class^="fl-"], .illus [class^="tw-"], .illus .spin-slow, .illus .wig, .illus .pulse,
.illus [class^="bar-"] { transform-box: fill-box; transform-origin: center; }
.illus .fl-a { animation: floatY 5s ease-in-out infinite; }
.illus .fl-b { animation: floatYr 6.5s ease-in-out -1.6s infinite; }
.illus .fl-c { animation: floatYs 7s ease-in-out -3s infinite; }
.illus .spin-slow { animation: spinSlow 36s linear infinite; }
.illus .wig { animation: wiggle 3.4s ease-in-out infinite; }
.illus .pulse { animation: heartbeat 2.6s ease-in-out infinite; }
.illus .tw-a { animation: twinkle 3s ease-in-out infinite; }
.illus .tw-b { animation: twinkle 4s ease-in-out -1s infinite; }
.illus .tw-c { animation: twinkle 3.6s ease-in-out -2s infinite; }
.illus .bar-1 { animation: barGrow .9s cubic-bezier(.2,.8,.3,1) both; transform-origin: bottom; }
.illus .bar-2 { animation: barGrow .9s .12s cubic-bezier(.2,.8,.3,1) both; transform-origin: bottom; }
.illus .bar-3 { animation: barGrow .9s .24s cubic-bezier(.2,.8,.3,1) both; transform-origin: bottom; }
.illus .bar-4 { animation: barGrow .9s .36s cubic-bezier(.2,.8,.3,1) both; transform-origin: bottom; }
.illus .bar-5 { animation: barGrow .9s .48s cubic-bezier(.2,.8,.3,1) both; transform-origin: bottom; }

/* Scroll-reveal (applied by app.js) */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1); transition-delay: var(--d, 0s); }

/* Hover micro-interactions */
.card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s; }
.feature-card:hover, .grid .card.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card .f-ico { transition: transform .25s cubic-bezier(.2,.8,.3,1); }
.feature-card:hover .f-ico { transform: rotate(-8deg) scale(1.12); }
.nav-item { transition: all .15s, transform .15s; }
.nav-item:active { transform: scale(.97); }
.tbl tbody tr { transition: background .15s; }
.chip { transition: transform .15s; }
.land-cta { position: relative; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .illus * { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card, .feature-card .f-ico { transition: none; }
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Responsive ---------- */
.menu-toggle { display: none; }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-main, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 18px 16px 50px; }
  .menu-toggle { display: inline-flex; }
  .grid-4, .grid-2, .form-row { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 20px; }
  .otp-box { width: 42px; height: 52px; font-size: 20px; }
  .auth-card { padding: 30px 22px; }
}
.sidebar-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(15,10,6,.4); z-index: 49;
}
.sidebar-backdrop.open { display: block; }
