/* ================================================================
   EAsyTrade — Stylesheet utama
   Tema: fintech bersih, biru profesional
   ================================================================ */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-deep: #1e3a8a;
  --blue-700: #1e40af;
  --navy: #0f1e3d;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f1f5f9;
  --bg-blue: #eff4ff;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #f59e0b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 61, .06);
  --shadow: 0 8px 24px rgba(15, 30, 61, .08);
  --shadow-lg: 0 20px 50px rgba(15, 30, 61, .14);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); font-weight: 800; letter-spacing: -.02em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }

.text-green { color: var(--green); font-weight: 700; }
.text-red { color: var(--red); font-weight: 700; }
.text-blue { color: var(--blue); }
.muted { color: var(--muted); }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px;
  font-weight: 700; font-size: 14px; font-family: var(--font);
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.32); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 10px 26px rgba(37,99,235,.42); }
.btn-outline { background: #fff; color: var(--blue); border-color: #c7d6f5; }
.btn-outline:hover { border-color: var(--blue); background: var(--bg-blue); }
.btn-ghost { background: var(--bg-soft); color: var(--ink); }
.btn-ghost:hover { background: #e2e8f0; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: #f1f5f9; }
.btn-danger { background: var(--red); color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 15px 30px; font-size: 15px; }

/* ----------------------------- Navbar ------------------------------ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 21px; color: var(--navy); }
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  display: grid; place-items: center; color: #fff;
}
.brand .logo-mark svg { width: 19px; height: 19px; }
.brand b { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 14.5px;
  color: #475569; transition: .15s;
}
.nav-links a:hover { color: var(--blue); background: var(--bg-blue); }
.nav-links a.active { color: var(--blue); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; color: var(--navy); }

/* ------------------------------ Hero ------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% -8%, #dbe7ff 0%, transparent 60%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: 70px 0 84px;
}
.hero h1 { font-size: 47px; line-height: 1.12; }
.hero h1 .accent { color: var(--blue); }
.hero-desc { color: var(--muted); margin: 22px 0 28px; font-size: 16px; max-width: 480px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-trust { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.avatars { display: flex; }
.avatars span {
  width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid #fff;
  margin-left: -10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px;
}
.avatars span:first-child { margin-left: 0; }
.hero-trust small { color: var(--muted); font-weight: 600; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px; font-size: 12.5px; font-weight: 600; color: #475569;
  box-shadow: var(--shadow-sm);
}
.hero-tag svg { width: 14px; height: 14px; color: var(--blue); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-card {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  border: 1px solid #eef2f9; padding: 18px;
}
.hero-chart {
  height: 200px; border-radius: 12px;
  background: linear-gradient(180deg, #eff4ff, #fff);
  position: relative; overflow: hidden; border: 1px solid #eef2f9;
}
.hero-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-stat-row { display: flex; gap: 10px; margin-top: 14px; }
.hero-mini {
  flex: 1; background: var(--bg-soft); border-radius: 10px; padding: 12px;
}
.hero-mini small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.hero-mini .big { font-size: 19px; font-weight: 800; color: var(--navy); }

.hero-badge {
  position: absolute; background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  padding: 12px 14px; border: 1px solid #eef2f9; display: flex; gap: 10px; align-items: center;
}
.hero-badge .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--bg-blue);
  display: grid; place-items: center; color: var(--blue); }
.hero-badge .ic svg { width: 18px; height: 18px; }
.hero-badge small { color: var(--muted); font-size: 11px; font-weight: 600; display: block; }
.hero-badge b { font-size: 15px; color: var(--navy); }
.hero-badge.top { top: 14px; right: -14px; }
.hero-badge.bot { bottom: 30px; left: -22px; }

/* --------------------------- Section head -------------------------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue); font-weight: 700; font-size: 13px; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 10px;
}
.section-head .eyebrow::before, .section-head .eyebrow::after {
  content: ''; width: 22px; height: 2px; background: #bcd0f7; border-radius: 2px;
}
.section-head h2 { font-size: 33px; }
.section-head p { color: var(--muted); margin-top: 10px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 34px; gap: 16px; flex-wrap: wrap; }
.head-row h2 { font-size: 30px; }

/* -------------------------- Feature cards -------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: .2s; text-align: center;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: #cdddfb; }
.feature-card .ic {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px;
  background: linear-gradient(135deg, var(--bg-blue), #dbe7ff);
  display: grid; place-items: center; color: var(--blue);
}
.feature-card .ic svg { width: 27px; height: 27px; }
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 13.7px; }
.feature-card .pill {
  display: inline-block; margin-top: 14px; background: var(--bg-blue); color: var(--blue);
  font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
}

/* --------------------------- Product card -------------------------- */
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative; transition: .2s; display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: #cdddfb; }
.product-card .badge {
  position: absolute; top: -11px; left: 20px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff;
  font-size: 10.5px; font-weight: 800; padding: 5px 12px; border-radius: 999px;
  letter-spacing: .04em; box-shadow: 0 6px 14px rgba(37,99,235,.4);
}
.product-card .badge.free { background: linear-gradient(135deg, var(--green), #15803d); box-shadow: 0 6px 14px rgba(22,163,74,.4); }
.product-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.product-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  display: grid; place-items: center; color: #fff;
}
.product-icon svg { width: 24px; height: 24px; }
.product-head h3 { font-size: 17px; }
.product-head small { color: var(--muted); font-weight: 600; }

.stat-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px;
}
.stat-line:last-of-type { border-bottom: none; }
.stat-line span { color: var(--muted); font-weight: 600; }
.price-box {
  background: var(--bg-soft); border-radius: 10px; padding: 11px 14px;
  display: flex; justify-content: space-between; align-items: center; margin: 10px 0 16px;
}
.price-box small { color: var(--muted); font-weight: 600; }
.price-box .price { font-size: 19px; font-weight: 800; color: var(--navy); }
.product-card .btn { margin-top: auto; }

.guarantee-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 34px;
}
.guarantee-row div { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.guarantee-row svg { width: 17px; height: 17px; color: var(--blue); }

/* ----------------------------- Stats bar --------------------------- */
.stats-bar {
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  border-radius: 18px; padding: 30px; display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 14px; box-shadow: var(--shadow-lg);
}
.stat-item { text-align: center; color: #fff; }
.stat-item .ic { margin: 0 auto 8px; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.15); display: grid; place-items: center; }
.stat-item .ic svg { width: 20px; height: 20px; }
.stat-item .num { font-size: 26px; font-weight: 800; line-height: 1; }
.stat-item .lbl { font-size: 12.5px; opacity: .85; margin-top: 4px; }

/* --------------------------- Service card -------------------------- */
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .2s; display: flex; flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.service-thumb {
  height: 130px; background: linear-gradient(135deg, var(--bg-blue), #dbe7ff);
  display: grid; place-items: center; color: var(--blue);
}
.service-thumb svg { width: 48px; height: 48px; }
.service-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 16.5px; margin-bottom: 8px; }
.service-body p { color: var(--muted); font-size: 13.5px; flex: 1; margin-bottom: 14px; }

/* --------------------------- Testimonials -------------------------- */
.testi-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.testi-card .quote { font-size: 34px; color: #cdddfb; line-height: 1; font-weight: 800; }
.testi-card p { color: #334155; font-size: 14px; margin: 8px 0 18px; }
.testi-foot { display: flex; align-items: center; justify-content: space-between; }
.testi-person { display: flex; align-items: center; gap: 11px; }
.testi-person .av {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}
.testi-person b { display: block; font-size: 14px; color: var(--navy); }
.testi-person small { color: var(--muted); }
.stars { color: var(--amber); font-size: 13px; letter-spacing: 1px; }

/* ----------------------------- CTA banner -------------------------- */
.cta-banner {
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  border-radius: 20px; padding: 44px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; color: #fff; position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
}
.cta-banner h2 { color: #fff; font-size: 27px; }
.cta-banner p { opacity: .9; margin-top: 6px; }

/* ------------------------------ Footer ----------------------------- */
.footer { background: #0c1a36; color: #94a3b8; padding: 56px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr; gap: 30px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer p { font-size: 13.5px; line-height: 1.7; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 13.5px; transition: .15s; }
.footer-links a:hover { color: var(--blue); }
.footer-info b { color: #cbd5e1; display: block; font-size: 13px; margin-top: 10px; }
.footer-info span { font-size: 13px; }
.social-row { display: flex; gap: 9px; margin-top: 16px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; transition: .15s;
}
.social-row a:hover { background: var(--blue); }
.social-row svg { width: 17px; height: 17px; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 38px; padding-top: 20px;
  text-align: center; font-size: 13px;
}

/* --------------------------- Flash messages ------------------------ */
.flash { padding: 13px 18px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 9px; }
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ----------------------------- Page hero --------------------------- */
.page-hero {
  background: radial-gradient(700px 350px at 80% -20%, #dbe7ff, transparent 60%),
              linear-gradient(180deg, #f7faff, #fff);
  padding: 50px 0; text-align: center; border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: 36px; }
.page-hero p { color: var(--muted); margin-top: 8px; }
.breadcrumb { color: var(--muted); font-size: 13px; margin-top: 8px; }
.breadcrumb a:hover { color: var(--blue); }

/* ========================= AUTH PAGES ============================== */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  background: linear-gradient(150deg, var(--blue), var(--blue-deep));
  color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.auth-side::after {
  content: ''; position: absolute; bottom: -60px; right: -60px; width: 280px; height: 280px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.auth-side .brand { color: #fff; margin-bottom: 28px; }
.auth-side h2 { color: #fff; font-size: 30px; }
.auth-side p { opacity: .9; margin-top: 12px; max-width: 380px; }
.auth-feat { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.auth-feat div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.auth-feat svg { width: 20px; height: 20px; flex-shrink: 0; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 26px; }
.auth-box > p { color: var(--muted); margin: 6px 0 24px; }

/* ----------------------------- Forms ------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #334155; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 9px;
  font-family: var(--font); font-size: 14px; background: #fff; color: var(--ink); transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.field textarea { resize: vertical; min-height: 90px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.check-row input { width: auto; }
.form-foot { margin-top: 8px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--blue); font-weight: 700; }

/* ========================= DASHBOARD =============================== */
.dash { display: flex; min-height: 100vh; background: var(--bg-soft); }
.sidebar {
  width: 250px; background: var(--navy); color: #cbd5e1; flex-shrink: 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
}
.sidebar .side-brand {
  padding: 22px; display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 19px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar .side-brand .logo-mark { width: 32px; height: 32px; }
.side-section { padding: 16px 14px 6px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .08em; color: #64748b; font-weight: 700; }
.side-nav { padding: 6px 12px; flex: 1; }
.side-nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: #cbd5e1; margin-bottom: 3px; transition: .15s;
}
.side-nav a svg { width: 18px; height: 18px; opacity: .85; }
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a.active { background: var(--blue); color: #fff; }
.side-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }

.dash-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: #fff; border-bottom: 1px solid var(--line); height: 66px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 26px;
  position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 19px; }
.topbar-user { display: flex; align-items: center; gap: 11px; }
.topbar-user .av {
  width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  display: grid; place-items: center; color: #fff; font-weight: 700;
}
.topbar-user b { font-size: 13.5px; }
.topbar-user small { color: var(--muted); font-size: 12px; }
.dash-body { padding: 26px; flex: 1; }

.menu-btn { display: none; background: none; border: none; cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; color: var(--navy); }

/* Dashboard cards */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.dash-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.dash-card .ic {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px;
}
.dash-card .ic svg { width: 22px; height: 22px; }
.ic-blue { background: var(--bg-blue); color: var(--blue); }
.ic-green { background: #dcfce7; color: var(--green); }
.ic-amber { background: #fef3c7; color: var(--amber); }
.ic-red { background: #fee2e2; color: var(--red); }
.dash-card .num { font-size: 25px; font-weight: 800; color: var(--navy); }
.dash-card .lbl { color: var(--muted); font-size: 13px; }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 22px; overflow: hidden;
}
.panel-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.panel-head h3 { font-size: 16px; }
.panel-body { padding: 20px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  text-align: left; padding: 12px 16px; background: var(--bg-soft); color: #475569;
  font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em;
  white-space: nowrap;
}
table.data td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #f8fafc; }

.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
}
.tag-green { background: #dcfce7; color: #166534; }
.tag-amber { background: #fef3c7; color: #92400e; }
.tag-red { background: #fee2e2; color: #991b1b; }
.tag-blue { background: var(--bg-blue); color: var(--blue); }
.tag-gray { background: #f1f5f9; color: #475569; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; color: #cbd5e1; margin-bottom: 10px; }

.actions-inline { display: flex; gap: 6px; flex-wrap: wrap; }

/* Inline form in tables */
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form select, .inline-form input {
  padding: 6px 9px; border: 1.5px solid var(--line); border-radius: 7px; font-size: 12.5px;
  font-family: var(--font);
}

/* Modal */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(15,23,42,.55);
  z-index: 200; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius); width: 100%; max-width: 540px;
  box-shadow: var(--shadow-lg);
}
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex;
  justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 17px; }
.modal-head button { background: none; border: none; cursor: pointer; font-size: 22px; color: var(--muted); line-height: 1; }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* ----------------------------- Chat AI ----------------------------- */
.chat-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; height: 560px; overflow: hidden;
}
.chat-head {
  padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 11px;
}
.chat-head .av {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  display: grid; place-items: center; color: #fff;
}
.chat-head .av svg { width: 21px; height: 21px; }
.chat-head b { font-size: 15px; color: var(--navy); }
.chat-head small { color: var(--green); font-weight: 600; font-size: 12px; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; background: var(--bg-soft); }
.msg { margin-bottom: 14px; display: flex; }
.msg.me { justify-content: flex-end; }
.bubble {
  max-width: 78%; padding: 11px 15px; border-radius: 14px; font-size: 14px; line-height: 1.6;
  white-space: pre-wrap; word-wrap: break-word;
}
.msg.bot .bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.me .bubble { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.chat-input { padding: 14px; border-top: 1px solid var(--line); display: flex; gap: 9px; background: #fff; }
.chat-input input {
  flex: 1; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font); font-size: 14px;
}
.chat-input input:focus { outline: none; border-color: var(--blue); }
.typing { display: flex; gap: 4px; padding: 4px 0; }
.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: #94a3b8;
  animation: bounce 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); opacity:.5; } 30% { transform: translateY(-6px); opacity:1; } }

.chat-suggest { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 14px 12px; background: #fff; }
.chat-suggest button {
  background: var(--bg-blue); color: var(--blue); border: none; border-radius: 999px;
  padding: 7px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: var(--font);
}
.chat-suggest button:hover { background: #dbe7ff; }

/* Floating chat widget (public) */
.fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff; box-shadow: 0 12px 30px rgba(37,99,235,.45);
  display: grid; place-items: center; transition: transform .2s;
}
.fab:hover { transform: scale(1.07); }
.fab svg { width: 26px; height: 26px; }
.widget {
  position: fixed; bottom: 92px; right: 22px; z-index: 150; width: 360px; max-width: calc(100vw - 44px);
  display: none; box-shadow: var(--shadow-lg); border-radius: var(--radius); overflow: hidden;
}
.widget.open { display: block; }
.widget .chat-box { height: 480px; border: none; }

/* Misc */
.info-box {
  background: var(--bg-blue); border: 1px solid #cdddfb; border-radius: 10px;
  padding: 14px 16px; font-size: 13.5px; color: #1e40af; margin-bottom: 16px;
}
.code-pill {
  font-family: 'Courier New', monospace; background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 9px; font-size: 18px; font-weight: 700;
  letter-spacing: 2px; display: inline-block;
}
.section-title-sm { font-size: 16px; margin-bottom: 14px; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }

/* ----------------------------- Responsive -------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .hero-visual { max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px;
  }
  .section { padding: 56px 0; }
  .hero h1 { font-size: 31px; }
  .section-head h2, .head-row h2 { font-size: 25px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 24px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 300; transform: translateX(-100%);
    transition: transform .25s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .menu-btn { display: block; }
  .hero-badge.top { right: 6px; }
  .hero-badge.bot { left: 6px; }
  .dash-body { padding: 16px; }
}

/* ================================================================
   Rebate 95% — menu unggulan & halaman
   ================================================================ */

/* Tombol menu menonjol di navbar */
.nav-links a.nav-highlight {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  font-weight: 700;
  padding: 9px 15px;
  box-shadow: 0 6px 16px rgba(22, 163, 74, .35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: rebatePulse 2.6s ease-in-out infinite;
}
.nav-links a.nav-highlight svg { width: 15px; height: 15px; }
.nav-links a.nav-highlight:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  color: #fff;
}
.nav-links a.nav-highlight.active { color: #fff; }
@keyframes rebatePulse {
  0%, 100% { box-shadow: 0 6px 16px rgba(22, 163, 74, .35); }
  50% { box-shadow: 0 6px 22px rgba(22, 163, 74, .6); }
}

/* Hero halaman rebate */
.rebate-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 460px at 85% -10%, #bbf7d0 0%, transparent 60%),
    linear-gradient(160deg, #052e16 0%, #14532d 55%, #166534 100%);
  color: #fff;
  padding: 64px 0 70px;
}
.rebate-hero::after {
  content: '';
  position: absolute;
  left: -60px; bottom: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}
.rebate-hero .container { position: relative; z-index: 1; }
.rebate-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: center;
}
.rebate-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13px; font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 18px;
}
.rebate-hero h1 { color: #fff; font-size: 44px; line-height: 1.12; }
.rebate-hero h1 .hl { color: #4ade80; }
.rebate-hero p.lead {
  color: #d1fae5; font-size: 16px; margin: 18px 0 26px; max-width: 480px;
}
.rebate-hero .hero-cta .btn-white { color: #15803d; }
.rebate-hero .hero-cta .btn-outline {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5);
}
.rebate-hero .hero-cta .btn-outline:hover { background: rgba(255, 255, 255, .12); }

/* Kartu angka besar 95% */
.rebate-badge-card {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 22px;
  padding: 36px 28px;
  text-align: center;
  backdrop-filter: blur(6px);
}
.rebate-big {
  font-size: 96px; font-weight: 800; line-height: 1;
  color: #fff;
  letter-spacing: -.04em;
}
.rebate-big small { font-size: 40px; }
.rebate-badge-card .cap { color: #bbf7d0; font-weight: 700; margin-top: 6px; }
.rebate-badge-card .sub { color: #86efac; font-size: 13px; margin-top: 10px; }

/* Highlight strip angka */
.rebate-points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 30px;
}
.rebate-point {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  padding: 14px 16px;
}
.rebate-point b { color: #fff; font-size: 17px; display: block; }
.rebate-point span { color: #a7f3d0; font-size: 12.5px; }

/* Alur Rebate — langkah-langkah */
.flow-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 8px;
  margin-top: 12px;
}
.flow-step {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  position: relative;
}
.flow-step .step-no {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-size: 13px; font-weight: 800;
  display: grid; place-items: center;
}
.flow-step .step-ic {
  width: 60px; height: 60px; margin: 6px auto 14px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: var(--green);
}
.flow-step .step-ic svg { width: 30px; height: 30px; }
.flow-step h3 { font-size: 17px; margin-bottom: 6px; }
.flow-step p { color: var(--muted); font-size: 13.3px; }
.flow-step .step-tag {
  display: inline-block; margin-top: 12px;
  background: #f0fdf4; color: #15803d;
  font-size: 11.5px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}
.flow-arrow {
  display: grid; place-items: center;
  color: var(--green);
}
.flow-arrow svg { width: 30px; height: 30px; }

/* Box perbandingan / simulasi */
.rebate-calc {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 28px;
}
.calc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed #bbf7d0;
}
.calc-row:last-child { border-bottom: none; }
.calc-row span { color: #166534; font-weight: 600; }
.calc-row b { color: #14532d; font-size: 16px; }
.calc-total {
  background: var(--green); color: #fff;
  border-radius: 10px; padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px;
}
.calc-total span { font-weight: 700; }
.calc-total b { font-size: 22px; }

@media (max-width: 980px) {
  .rebate-hero-grid { grid-template-columns: 1fr; }
  .rebate-hero h1 { font-size: 35px; }
  .flow-steps { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); margin: 4px 0; }
}
@media (max-width: 720px) {
  .nav-links a.nav-highlight { justify-content: center; }
  .rebate-big { font-size: 74px; }
  .rebate-points { grid-template-columns: 1fr; }
}
