/* ═══════════════════════════════════════════
   FinanceKu — main.css
   Design tokens + reset + landing + auth
═══════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  --bg:          #f7f8fc;
  --bg-card:     #ffffff;
  --bg-surface:  #eef0f8;
  --text:        #111827;
  --text-muted:  #6b7280;
  --text-light:  #9ca3af;
  --border:      #e5e7eb;
  --accent:      #534AB7;
  --accent2:     #7F77DD;
  --accent-glow: rgba(83,74,183,.18);
  --green:       #22c55e;
  --green-bg:    rgba(34,197,94,.12);
  --red:         #ef4444;
  --red-bg:      rgba(239,68,68,.12);
  --yellow:      #f59e0b;
  --yellow-bg:   rgba(245,158,11,.12);
  --blue:        #3b82f6;
  --blue-bg:     rgba(59,130,246,.12);
  --shadow-sm:   0 1px 3px rgba(0,0,0,.07);
  --shadow:      0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --transition:  .22s cubic-bezier(.4,0,.2,1);
}
[data-theme="dark"] {
  --bg:          #0d0f14;
  --bg-card:     #161921;
  --bg-surface:  #1e2230;
  --text:        #f1f5f9;
  --text-muted:  #94a3b8;
  --text-light:  #64748b;
  --border:      #2a2f45;
  --accent:      #7F77DD;
  --accent2:     #AFA9EC;
  --accent-glow: rgba(127,119,221,.22);
  --green:       #4ade80;
  --green-bg:    rgba(74,222,128,.12);
  --red:         #f87171;
  --red-bg:      rgba(248,113,113,.12);
  --yellow:      #fbbf24;
  --yellow-bg:   rgba(251,191,36,.12);
  --blue:        #60a5fa;
  --blue-bg:     rgba(96,165,250,.12);
  --shadow-sm:   0 1px 3px rgba(0,0,0,.3);
  --shadow:      0 4px 20px rgba(0,0,0,.4);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.5);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  line-height: 1.6;
}
a  { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, select, textarea { font-family: inherit; outline: none; }
ul  { list-style: none; }
img { display: block; max-width: 100%; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1.3rem;
  border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 3px 12px var(--accent-glow);
  transition: all var(--transition);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.btn-lg { padding: .8rem 2rem; font-size: 1rem; border-radius: 12px; }
.btn-outline-lg {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .8rem 2rem;
  border-radius: 12px;
  font-size: 1rem; font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.btn-outline-lg:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); transform: translateY(-1px); }
.btn-full {
  width: 100%; padding: .8rem;
  border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-full:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-full.btn-green { background: linear-gradient(135deg, var(--green), #16a34a); }
.btn-sm {
  padding: .35rem .8rem;
  border-radius: 7px;
  font-size: .78rem; font-weight: 600;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  background: var(--accent-glow);
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: .3rem;
}
.btn-sm:hover { background: var(--accent); color: #fff; }
.btn-danger {
  padding: .4rem 1rem;
  border-radius: 7px;
  font-size: .82rem; font-weight: 600;
  color: var(--red);
  border: 1.5px solid var(--red);
  background: var(--red-bg);
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: .35rem;
}
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-add {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: .85rem; font-weight: 600;
  box-shadow: 0 2px 8px var(--accent-glow);
  transition: all var(--transition);
}
.btn-add:hover { transform: translateY(-1px); box-shadow: 0 4px 14px var(--accent-glow); }
.btn-outline {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: .85rem; font-weight: 600;
  transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* ─── FORM ─── */
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-label  { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.form-input {
  width: 100%; padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  font-size: .9rem;
  transition: all var(--transition);
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: var(--bg-card); }
.form-input::placeholder { color: var(--text-light); }
.form-select { appearance: none; cursor: pointer; }
.form-error { color: var(--red); font-size: .78rem; margin-top: .2rem; display: none; }
.form-error.show { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }

/* ─── THEME TOGGLE ─── */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.theme-toggle:hover { background: var(--accent-glow); border-color: var(--accent); }

/* ─── LANDING NAV ─── */
.lp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 68px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
[data-theme="dark"] .lp-nav { background: rgba(13,15,20,.9); }

.lp-nav-links { display: flex; align-items: center; gap: 2rem; }
.lp-nav-links a { color: var(--text-muted); font-size: .9rem; font-weight: 500; transition: color var(--transition); }
.lp-nav-links a:hover { color: var(--accent); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; display: block; transition: all var(--transition); }

/* ─── HERO ─── */
.lp-hero {
  padding-top: 120px; padding-bottom: 80px;
  text-align: center;
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .22; pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 { width:500px;height:500px;background:var(--accent);top:-150px;left:-100px;animation-delay:0s; }
.blob-2 { width:400px;height:400px;background:var(--green);bottom:0;right:-100px;animation-delay:3s; }
.blob-3 { width:300px;height:300px;background:var(--accent2);top:40%;left:60%;animation-delay:5s; }
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(20px,-20px) scale(1.05); }
  66%      { transform: translate(-15px,15px) scale(.97); }
}
.hero-content { position:relative;z-index:1;max-width:800px;margin:0 auto;padding:0 5%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .9rem;
  border-radius: 99px;
  background: var(--accent-glow); border: 1px solid var(--accent);
  color: var(--accent2);
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 1.5rem;
  animation: fadeUp .6s ease both;
}
.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.03em;
  animation: fadeUp .7s .1s ease both;
}
.hero-title .ht-accent { color: var(--accent); }
.hero-title .ht-green  { color: var(--green); }
.hero-sub {
  margin: 1.25rem auto 0;
  font-size: 1.08rem; color: var(--text-muted); line-height: 1.7; max-width: 520px;
  animation: fadeUp .7s .2s ease both;
}
.hero-cta {
  margin-top: 2.2rem;
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp .7s .3s ease both;
}
.hero-stats {
  margin-top: 3.5rem;
  display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
  animation: fadeUp .7s .4s ease both;
}
.stat-num { font-family:'Sora',sans-serif;font-size:1.9rem;font-weight:800;color:var(--accent); }
.stat-label { font-size:.78rem;color:var(--text-muted);margin-top:.15rem; }

/* ─── PREVIEW WINDOW ─── */
.hero-preview {
  position:relative;z-index:1;
  margin:3.5rem auto 0;max-width:860px;padding:0 5%;
  animation:fadeUp .8s .5s ease both;
}
.preview-window {
  background:var(--bg-card);border-radius:var(--radius-lg);
  border:1px solid var(--border);box-shadow:var(--shadow-lg);overflow:hidden;
}
.preview-bar {
  background:var(--bg-surface);padding:.6rem 1rem;
  display:flex;align-items:center;gap:.5rem;border-bottom:1px solid var(--border);
}
.preview-dot { width:10px;height:10px;border-radius:50%; }
.d-red{background:#ef4444}.d-yellow{background:#f59e0b}.d-green{background:#22c55e}
.preview-url {
  flex:1;margin-left:.5rem;background:var(--bg);
  border-radius:6px;padding:.2rem .6rem;font-size:.72rem;
  color:var(--text-muted);font-family:monospace;
}
.preview-body { padding:1.2rem;display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem; }
.preview-card {
  background:var(--bg-surface);border-radius:10px;
  padding:.9rem 1rem;border:1px solid var(--border);
}
.preview-card-label { font-size:.65rem;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.05em; }
.preview-card-amount { font-family:'Sora',sans-serif;font-size:1.1rem;font-weight:700;margin-top:.2rem; }
.preview-card-amount.green { color:var(--green); }
.preview-card-amount.red   { color:var(--red); }
.preview-card-amount.accent{ color:var(--accent); }
.preview-bar-chart { display:flex;align-items:flex-end;gap:4px;height:50px;margin-top:.4rem; }
.preview-bar-item { flex:1;border-radius:3px 3px 0 0;background:var(--accent);opacity:.5; }

/* ─── SECTIONS ─── */
.lp-section { padding:90px 5%;max-width:1140px;margin:0 auto; }
.section-eyebrow {
  display:inline-block;font-size:.78rem;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-bottom:.75rem;
}
.section-title {
  font-family:'Sora',sans-serif;font-size:clamp(1.8rem,3.5vw,2.8rem);
  font-weight:800;letter-spacing:-.02em;line-height:1.2;
}
.section-sub { color:var(--text-muted);margin-top:.75rem;font-size:1rem;line-height:1.7;max-width:520px; }

/* Features grid */
.features-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.2rem;margin-top:3rem; }
.feature-card {
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius);padding:1.75rem;
  transition:all var(--transition);position:relative;overflow:hidden;
}
.feature-card::before {
  content:'';position:absolute;inset:0;
  background:linear-gradient(135deg,var(--accent-glow),transparent 60%);
  opacity:0;transition:opacity var(--transition);
}
.feature-card:hover { transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:var(--accent); }
.feature-card:hover::before { opacity:1; }
.feature-icon { width:44px;height:44px;border-radius:10px;background:var(--accent-glow);color:var(--accent);display:flex;align-items:center;justify-content:center;font-size:1.3rem;margin-bottom:1rem; }
.feature-title { font-weight:700;font-size:1rem;margin-bottom:.4rem; }
.feature-desc  { color:var(--text-muted);font-size:.88rem;line-height:1.6; }

/* How-it-works */
.how-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem;margin-top:3rem;counter-reset:step; }
.how-card {
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius);padding:1.75rem;position:relative;
}
.how-card::before {
  counter-increment:step;content:counter(step,decimal-leading-zero);
  position:absolute;top:1.2rem;right:1.2rem;
  font-family:'Sora',sans-serif;font-size:2rem;font-weight:800;color:var(--border);line-height:1;
}
.how-icon  { width:52px;height:52px;border-radius:50%;background:var(--accent-glow);color:var(--accent);display:flex;align-items:center;justify-content:center;margin:0 auto 1rem; }
.how-title { font-weight:700;margin-bottom:.4rem; }
.how-desc  { color:var(--text-muted);font-size:.88rem;line-height:1.6; }

/* Testimonials */
.testimonials-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.2rem;margin-top:3rem; }
.testi-card { background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:1.75rem; }
.testi-stars { color:var(--yellow);font-size:.9rem;margin-bottom:.8rem; }
.testi-text  { color:var(--text-muted);font-size:.9rem;line-height:1.65; }
.testi-author{ display:flex;align-items:center;gap:.75rem;margin-top:1.2rem; }
.testi-avatar{ width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.85rem;font-weight:700;color:#fff; }
.testi-name  { font-weight:600;font-size:.88rem; }
.testi-role  { font-size:.75rem;color:var(--text-muted); }

/* CTA */
.lp-cta {
  text-align:center;padding:90px 5%;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  position:relative;overflow:hidden;
}
.lp-cta::before {
  content:'';position:absolute;inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/svg%3E");
}
.lp-cta h2 { font-family:'Sora',sans-serif;font-size:clamp(1.8rem,4vw,3rem);font-weight:800;color:#fff;position:relative;z-index:1; }
.lp-cta p  { color:rgba(255,255,255,.78);margin-top:.75rem;font-size:1rem;position:relative;z-index:1; }
.btn-white {
  display:inline-flex;align-items:center;gap:.5rem;
  margin-top:2rem;padding:.85rem 2.2rem;
  border-radius:12px;background:#fff;color:var(--accent);
  font-weight:700;font-size:1rem;position:relative;z-index:1;
  transition:all var(--transition);
}
.btn-white:hover { transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.2); }

/* ─── FOOTER ─── */
.lp-footer { background:var(--bg-card);border-top:1px solid var(--border);padding:4rem 5% 2rem; }
.footer-inner { display:flex;flex-wrap:wrap;gap:3rem;justify-content:space-between;align-items:flex-start;max-width:1100px;margin:0 auto 2.5rem; }
.footer-logo  { font-family:'Sora',sans-serif;font-size:1.25rem;font-weight:800;color:var(--accent); }
.footer-brand p { color:var(--text-muted);font-size:.85rem;margin-top:.5rem;max-width:240px;line-height:1.6; }
.footer-social { display:flex;gap:.5rem;margin-top:1rem; }
.social-btn { width:34px;height:34px;border-radius:50%;background:var(--bg-surface);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:.9rem;transition:all var(--transition); }
.social-btn:hover { background:var(--accent-glow);border-color:var(--accent); }
.footer-links h3 { font-size:.85rem;font-weight:700;margin-bottom:.9rem; }
.footer-links ul li { margin-bottom:.45rem; }
.footer-links a { color:var(--text-muted);font-size:.83rem;transition:color var(--transition); }
.footer-links a:hover { color:var(--accent); }
.footer-bottom { text-align:center;padding-top:2rem;border-top:1px solid var(--border);font-size:.78rem;color:var(--text-muted);max-width:1100px;margin:0 auto; }

/* ─── AUTH ─── */
.auth-page {
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  padding:5rem 1rem 2rem;background:var(--bg);position:relative;overflow:hidden;
}
.auth-bg { position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 60% 60% at 70% 30%,var(--accent-glow),transparent 70%); }
.auth-card {
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius-lg);padding:2.5rem 2.2rem;
  width:100%;max-width:420px;box-shadow:var(--shadow-lg);
  position:relative;z-index:1;animation:fadeUp .5s ease both;
}
.auth-logo { text-align:center;margin-bottom:1.8rem; }
.auth-logo-text { font-family:'Sora',sans-serif;font-size:1.5rem;font-weight:800;color:var(--accent); }
.auth-title { font-family:'Sora',sans-serif;font-size:1.4rem;font-weight:800;text-align:center; }
.auth-sub   { color:var(--text-muted);font-size:.85rem;text-align:center;margin-top:.3rem; }
.auth-form  { margin-top:1.8rem;display:flex;flex-direction:column;gap:1rem; }
.auth-back  { display:flex;align-items:center;gap:.4rem;color:var(--text-muted);font-size:.82rem;margin-bottom:1rem;cursor:pointer;transition:color var(--transition); }
.auth-back:hover { color:var(--accent); }
.auth-switch { text-align:center;font-size:.84rem;color:var(--text-muted);margin-top:1.2rem; }
.auth-switch a { color:var(--accent);font-weight:600; }
.auth-switch a:hover { text-decoration:underline; }
.auth-divider { display:flex;align-items:center;gap:.75rem;margin:.25rem 0; }
.auth-divider::before,.auth-divider::after { content:'';flex:1;height:1px;background:var(--border); }
.auth-divider span { font-size:.75rem;color:var(--text-muted);white-space:nowrap; }
.alert { padding:.75rem 1rem;border-radius:var(--radius-sm);font-size:.85rem;margin-bottom:.5rem; }
.alert-error   { background:var(--red-bg);color:var(--red);border:1px solid var(--red); }
.alert-success { background:var(--green-bg);color:var(--green);border:1px solid var(--green); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity:0;transform:translateY(20px); }
  to   { opacity:1;transform:translateY(0); }
}
@keyframes spin { to { transform:rotate(360deg); } }
.loader { width:18px;height:18px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;display:inline-block; }
.anim-reveal { opacity:0;transform:translateY(24px);transition:opacity .55s ease, transform .55s ease; }
.anim-reveal.visible { opacity:1;transform:translateY(0); }

/* ─── TOAST ─── */
.toast-container { position:fixed;bottom:1.5rem;right:1.5rem;z-index:1000;display:flex;flex-direction:column;gap:.5rem; }
.toast {
  display:flex;align-items:center;gap:.75rem;
  padding:.85rem 1.1rem;
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);
  font-size:.85rem;font-weight:500;max-width:300px;
  animation:toastIn .3s ease;
}
.toast-success { border-left:3px solid var(--green); }
.toast-error   { border-left:3px solid var(--red); }
.toast-info    { border-left:3px solid var(--accent); }
@keyframes toastIn { from { transform:translateX(20px);opacity:0; } to { transform:translateX(0);opacity:1; } }

/* ─── SECTION ALTERNATING BG ─── */
.section-alt { background:var(--bg-surface); }

/* ─── RESPONSIVE ─── */
@media (max-width:768px) {
  .preview-body { grid-template-columns:1fr 1fr; }
  .preview-body .preview-card:last-child { grid-column:1/-1; }
  .hero-stats { gap:1.5rem; }
  .lp-nav-actions .btn-ghost { display:none; }
  .form-row { grid-template-columns:1fr; }
}
@media (max-width:480px) {
  .auth-card { padding:1.75rem 1.2rem; }
}

/* ─── WA FLOAT BUTTON ─── */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(37,211,102,.55); }
.wa-float:active { transform: scale(.97); }

/* ─── WA LINK dalam teks ─── */
.wa-link {
  color: #25d366 !important; font-weight: 600;
  display: inline-flex; align-items: center; gap: .3rem;
}
.wa-link:hover { text-decoration: underline; }

/* ─── KONTAK SECTION ─── */
.kontak-section {
  background: var(--bg-surface);
  padding: 80px 5%;
}
.kontak-inner {
  max-width: 680px; margin: 0 auto; text-align: center;
}
.kontak-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; margin-top: 2.5rem;
}
.kontak-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all var(--transition);
  text-decoration: none; color: inherit;
  display: block;
}
.kontak-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.kontak-card .k-icon { width:56px;height:56px;border-radius:50%;background:var(--accent-glow);color:var(--accent);display:flex;align-items:center;justify-content:center;margin:0 auto .8rem; }
.kontak-card .k-title { font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.kontak-card .k-desc { font-size: .78rem; color: var(--text-muted); }
.kontak-card.wa-card { border-color: #25d366; }
.kontak-card.wa-card:hover { background: #f0fff4; box-shadow: 0 4px 20px rgba(37,211,102,.15); }
[data-theme="dark"] .kontak-card.wa-card:hover { background: rgba(37,211,102,.08); }
.kontak-card.wa-card .k-title { color: #16a34a; }
[data-theme="dark"] .kontak-card.wa-card .k-title { color: #4ade80; }

/* ─── FOOTER WA link ─── */
.lp-footer .footer-links a { transition: color var(--transition); }
.footer-bottom a { transition: color var(--transition); }
.footer-bottom a:hover { color: var(--accent2) !important; }

/* ─── SMOOTH SCROLL pada anchor ─── */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* ================================================================
   MOBILE RESPONSIVE — Semua ukuran HP (320px s/d 768px)
   ================================================================ */

/* Tombol masuk di dropdown mobile */
.nav-mobile-auth {
    display: none;
    flex-direction: column;
    gap: .5rem;
    padding: 0 .3rem .3rem;
}
.nav-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .8rem 1rem;
    border-radius: 12px;
    font-size: .92rem;
    font-weight: 700;
    text-align: center;
    color: var(--text);
    border: 1.5px solid var(--border);
    background: var(--bg-surface);
    transition: all var(--transition);
    text-decoration: none;
}
.nav-mobile-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.nav-mobile-btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 10px var(--accent-glow);
}
.nav-mobile-btn--primary:hover { color: #fff; background: linear-gradient(135deg, var(--accent2), var(--accent)); }

@media (max-width: 768px) {
    /* Navbar */
    .lp-nav { padding: 0 4%; height: 60px; }
    .lp-nav-links { display: none; }
    .hamburger { display: flex !important; }

    /* Sembunyikan tombol di header, tampilkan di dropdown */
    .lp-nav-actions .btn-ghost,
    .lp-nav-actions .btn-primary { display: none !important; }
    .lp-nav-actions .theme-toggle { display: flex; }

    /* Mobile dropdown menu — panel mengambang dengan jarak dari tepi layar */
    .lp-nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        gap: .35rem;
        position: fixed;
        top: 72px;
        left: 3.5%; right: 3.5%;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: .6rem;
        z-index: 199;
        box-shadow: 0 16px 48px rgba(20,17,60,.18), 0 4px 14px rgba(20,17,60,.1);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        animation: navDropIn .28s cubic-bezier(.2,.8,.2,1) both;
    }
    [data-theme="dark"] .lp-nav-links.mobile-open {
        box-shadow: 0 16px 48px rgba(0,0,0,.45), 0 4px 14px rgba(0,0,0,.3);
    }
    @keyframes navDropIn {
        from { opacity: 0; transform: translateY(-10px) scale(.97); }
        to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    .lp-nav-links.mobile-open a:not(.nav-mobile-btn) {
        padding: .8rem .9rem;
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: .75rem;
        font-size: .95rem;
        font-weight: 600;
        color: var(--text);
        background: transparent;
        opacity: 0;
        animation: navItemIn .35s cubic-bezier(.2,.8,.2,1) both;
    }
    .lp-nav-links.mobile-open a:nth-of-type(1) { animation-delay: .04s; }
    .lp-nav-links.mobile-open a:nth-of-type(2) { animation-delay: .08s; }
    .lp-nav-links.mobile-open a:nth-of-type(3) { animation-delay: .12s; }
    .lp-nav-links.mobile-open a:nth-of-type(4) { animation-delay: .16s; }
    .lp-nav-links.mobile-open a:nth-of-type(5) { animation-delay: .20s; }
    @keyframes navItemIn {
        from { opacity: 0; transform: translateX(-8px); }
        to   { opacity: 1; transform: translateX(0); }
    }
    .lp-nav-links.mobile-open a:not(.nav-mobile-btn):hover,
    .lp-nav-links.mobile-open a:not(.nav-mobile-btn):active {
        color: var(--accent);
        background: var(--accent-glow);
        transform: translateX(2px);
    }
    .nav-link-ico {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px; height: 34px;
        flex-shrink: 0;
        border-radius: 10px;
        background: var(--accent-glow);
        color: var(--accent);
    }
    .lp-nav-links.mobile-open .nav-mobile-auth { display: flex; }
    .nav-mobile-divider {
        height: 1px;
        background: var(--border);
        margin: .5rem .3rem .35rem;
    }

    /* Hero */
    .lp-hero { padding-top: 80px; padding-bottom: 40px; min-height: auto; }
    .hero-content { padding: 0 4%; }
    .hero-title { font-size: clamp(1.9rem, 7vw, 2.8rem); }
    .hero-sub { font-size: .95rem; }
    .hero-cta { flex-direction: column; align-items: center; gap: .75rem; }
    .hero-cta .btn-primary,
    .hero-cta .btn-outline-lg { width: 100%; max-width: 320px; justify-content: center; }
    .hero-stats { gap: 1.2rem; }
    .stat-num { font-size: 1.5rem; }
    .hero-preview { padding: 0 4%; margin-top: 2.5rem; }
    .preview-body { grid-template-columns: 1fr 1fr; }
    .preview-body .preview-card:last-child { grid-column: 1 / -1; }

    /* Sections */
    .lp-section { padding: 60px 4%; }
    .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
    .features-grid { grid-template-columns: 1fr; gap: 1rem; }
    .how-grid { grid-template-columns: 1fr; gap: 1rem; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 1rem; }

    /* Auth pages */
    .auth-page { padding: 4.5rem 1rem 2rem; }
    .auth-card { padding: 1.75rem 1.2rem; }
    .auth-title { font-size: 1.25rem; }
    .form-row { grid-template-columns: 1fr; }

    /* Footer */
    .footer-inner { flex-direction: column; gap: 1.5rem; }
    .footer-brand p { max-width: 100%; }
    .footer-bottom { font-size: .75rem; }

    /* CTA section */
    .lp-cta { padding: 60px 4%; }
    .lp-cta h2 { font-size: 1.6rem; }
    .btn-white { padding: .75rem 1.5rem; font-size: .9rem; }

    /* WA float lebih kecil */
    .wa-float { width: 50px; height: 50px; bottom: 1.2rem; right: 1.2rem; }
}

@media (max-width: 480px) {
    /* Navbar */
    .lp-nav { padding: 0 3%; }

    /* Hero */
    .hero-title { font-size: clamp(1.65rem, 8vw, 2.2rem); letter-spacing: -.02em; }
    .hero-badge { font-size: .72rem; padding: .3rem .75rem; }
    .hero-stats { gap: 1rem; flex-wrap: wrap; justify-content: center; }
    .hero-stat-item { min-width: 80px; text-align: center; }
    .stat-num { font-size: 1.3rem; }
    .preview-body { grid-template-columns: 1fr; }

    /* Sections */
    .lp-section { padding: 50px 3%; }
    .section-title { font-size: 1.5rem; }
    .feature-card { padding: 1.3rem; }
    .how-card { padding: 1.3rem; }
    .testi-card { padding: 1.3rem; }

    /* Auth */
    .auth-card { padding: 1.5rem 1rem; margin: 0 .25rem; }
    .auth-title { font-size: 1.1rem; }
    .auth-sub { font-size: .8rem; }
    .form-input { font-size: .88rem; padding: .65rem .85rem; }
    .btn-full { font-size: .9rem; padding: .75rem; }

    /* Footer */
    .footer-bottom p { line-height: 1.7; text-align: center; }
    .footer-social { justify-content: center; }
    .lp-footer { padding: 2.5rem 3% 1.5rem; }
}

@media (max-width: 360px) {
    .hero-title { font-size: 1.55rem; }
    .hero-sub { font-size: .88rem; }
    .auth-card { padding: 1.25rem .85rem; }
    .lp-section { padding: 40px 3%; }
}

/* ================================================================
   DASHBOARD MOBILE — Sidebar, topbar, cards
   ================================================================ */
@media (max-width: 1024px) {
    .dash-row-2 { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
    /* Sidebar */
    .dash-sidebar {
        width: 260px;
        transform: translateX(-100%);
        box-shadow: none;
        z-index: 200;
    }
    .dash-sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }
    .sidebar-overlay {
        display: none;
        position: fixed; inset: 0; z-index: 199;
        background: rgba(0,0,0,.55);
        backdrop-filter: blur(2px);
    }
    .sidebar-overlay.mobile-open { display: block; }

    /* Topbar */
    .dash-topbar { left: 0 !important; padding: 0 1rem; }
    .topbar-breadcrumb { display: none; }
    .hamburger-dash { display: flex !important; }

    /* Main content */
    .dash-main { margin-left: 0 !important; padding: 1rem; margin-top: 60px; }

    /* Overview cards */
    .overview-cards { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .ov-amount { font-size: 1.25rem; }
    .ov-card { padding: 1rem; }

    /* Tables */
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .data-table { min-width: 520px; font-size: .8rem; }
    .data-table th, .data-table td { padding: .65rem .75rem; }

    /* Search filter */
    .search-filter { flex-wrap: wrap; gap: .5rem; }
    .search-input { width: 100% !important; }
    .filter-select { flex: 1; min-width: 0; font-size: .82rem; }

    /* Page header */
    .page-header { flex-direction: column; align-items: flex-start; gap: .75rem; }
    .page-header-title { font-size: 1.1rem; }

    /* Bar chart */
    .bar-chart { height: 110px; }

    /* Budget grid */
    .budget-grid { grid-template-columns: 1fr; }

    /* Profile grid */
    .profile-grid { grid-template-columns: 1fr; }
    .profile-avatar-section { flex-direction: column; text-align: center; }

    /* Modal */
    .modal { padding: 1.5rem 1.2rem; margin: 1rem; max-width: calc(100vw - 2rem); }
    .modal-form .form-row { grid-template-columns: 1fr; }

    /* Report */
    .report-summary { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .dash-main { padding: .75rem; }
    .overview-cards { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .ov-card { padding: .85rem; }
    .ov-label { font-size: .65rem; }
    .ov-amount { font-size: 1.1rem; }
    .dash-card { padding: 1rem; }
    .dash-card-title { font-size: .88rem; }
    .topbar-title { font-size: .9rem; }
    .report-summary { grid-template-columns: 1fr; }
    .sidebar-logo { font-size: 1rem; }
    .sidebar-logo-icon { font-size: 1.1rem; }
    .bar-chart { height: 90px; }
}

@media (max-width: 360px) {
    .overview-cards { grid-template-columns: 1fr; }
    .dash-main { padding: .6rem; }
    .ov-amount { font-size: 1rem; }
    .btn-add { font-size: .78rem; padding: .5rem .85rem; }
    .data-table { min-width: 460px; font-size: .75rem; }
}

/* ── NAVBAR: theme toggle di kiri hamburger ── */
.nav-auth-desktop {
  display: flex; align-items: center; gap: .75rem;
}
.lp-nav-actions {
  display: flex; align-items: center; gap: .6rem;
}
/* Mobile: sembunyikan auth desktop, tampilkan theme + hamburger */
@media (max-width: 768px) {
  .nav-auth-desktop { display: none; }
  .theme-toggle { display: flex !important; }
  .hamburger    { display: flex !important; }
}
/* Desktop: sembunyikan hamburger */
@media (min-width: 769px) {
  .hamburger { display: none !important; }
}

/* ── AMOUNT PREVIEW (konfirmasi nominal sebelum simpan) ── */
.amount-preview {
    display: none;
    font-size: .8rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: .35rem;
    padding: .28rem .65rem;
    background: var(--accent-glow);
    border-radius: 6px;
    border: 1px solid var(--accent);
    width: fit-content;
}

/* ================================================================
   LOGO & BRAND — Menyesuaikan logo baru FinanceKu
   ================================================================ */


/* Gold accent — digunakan untuk fitur tabungan highlight */
:root {
    --gold:    #FAC775;
    --gold-bg: rgba(250,199,117,.15);
    --brand-dark: #26215C;
}

/* Sidebar dark mode — warna mengikuti logo navbar */
[data-theme="dark"] .dash-sidebar {
    background: #1A1649;
    border-right-color: #2d2870;
}
[data-theme="dark"] .sidebar-header {
    border-bottom-color: #2d2870;
}
[data-theme="dark"] .sidebar-footer {
    border-top-color: #2d2870;
}
[data-theme="dark"] .sidebar-item:hover {
    background: rgba(83,74,183,.2);
}
[data-theme="dark"] .sidebar-item.active {
    background: rgba(83,74,183,.3);
    color: #AFA9EC;
}
[data-theme="dark"] .sidebar-item.active::before {
    background: #AFA9EC;
}
[data-theme="dark"] .sidebar-section-label {
    color: #4a4585;
}

/* Overview card balance */
.ov-card.ov-balance::after { background: #534AB7; }

/* Sidebar active item border */
.sidebar-item.active::before { background: #534AB7; }

/* Badge */
.si-badge { background: #534AB7; }

/* Gold accent untuk savings */
.saving-card-top-bar { background: var(--gold); }

/* ── LOGO NAVBAR — 1 Logo untuk semua kondisi ── */
.nav-logo-img,
.sidebar-logo-img,
.footer-logo-img {
    display: block;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    background: transparent;
}
.nav-logo-img      { height: 64px; }
.sidebar-logo-img  { height: 82px; }
.footer-logo-img   { height: 56px; }

/* ================================================================
   LOGO BARU — financeku-tagline-gelap.png
   Logo dirancang untuk background gelap, perlu container agar
   terlihat rapi di mode terang maupun gelap
   ================================================================ */

/* Container logo di navbar — dark pill agar logo terlihat di bg terang */
.lp-nav-logo {
    display: inline-flex;
    align-items: center;
    background: transparent;
    text-decoration: none;
    transition: all .22s ease;
}
.lp-nav-logo:hover {
    transform: translateY(-1px);
}

/* Sidebar logo */
.sidebar-logo-wrap {
    display: inline-flex;
    align-items: center;
    background: transparent;
    text-decoration: none;
    transition: all .22s ease;
}

/* Auth pages — logo di nav mini */
.auth-page .lp-nav-logo {
    background: transparent;
}

/* Logo di auth card — lebih besar */
.auth-logo img {
    filter: drop-shadow(0 2px 8px rgba(38,33,92,.3));
}

/* Dark mode: sidebar background matching logo */
[data-theme="dark"] .dash-sidebar {
    background: linear-gradient(180deg, #1A1648 0%, #161430 100%);
    border-right-color: #2d2870;
}
[data-theme="dark"] .sidebar-header {
    border-bottom-color: #2d2870;
    background: rgba(38,33,92,.3);
}
/* Warna palette menyesuaikan logo */
:root {
    --accent:       #534AB7;
    --accent2:      #7F77DD;
    --accent-soft:  #AFA9EC;
    --brand-dark:   #26215C;
    --brand-darker: #1E1B50;
    --accent-glow:  rgba(83,74,183,.18);
    --gold:         #FAC775;
}

/* Heading brand color */
.hero-title .ht-accent { color: #7F77DD; }
.hero-title .ht-green  { color: #AFA9EC; }

/* Sidebar active item */
[data-theme="dark"] .sidebar-item.active {
    background: rgba(175,169,236,.15);
    color: #AFA9EC;
}
[data-theme="dark"] .sidebar-item.active::before { background: #AFA9EC; }
[data-theme="dark"] .user-name  { color: #EEEDFE; }
[data-theme="dark"] .user-email { color: #AFA9EC; }

/* ── Responsive Logo Sizes ── */
@media (max-width: 768px) {
  .nav-logo-img      { height: 54px; }
  .sidebar-logo-img  { height: 66px; }
}
@media (max-width: 480px) {
  .nav-logo-img      { height: 48px; }
  .sidebar-logo-img  { height: 56px; }
}

/* ================================================================
   PWA — Install Banner
   ================================================================ */
.install-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 980;
  display: none;
  align-items: center;
  gap: .85rem;
  background: linear-gradient(135deg, #26215C, #534AB7);
  border-radius: 18px;
  padding: .85rem 1rem;
  box-shadow: 0 10px 34px rgba(30,27,80,.4);
  max-width: 460px;
  margin: 0 auto;
  animation: installBannerIn .35s cubic-bezier(.4,0,.2,1);
}
.install-banner.show { display: flex; }
@keyframes installBannerIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.install-banner-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #AFA9EC;
}
.install-banner-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.install-banner-text {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}
.install-banner-text strong { color: #fff; font-size: .88rem; font-weight: 700; }
.install-banner-text span {
  color: #C7C2ED; font-size: .74rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.install-banner-btn {
  background: #FAC775;
  color: #26215C;
  border: none;
  padding: .5rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .15s ease;
}
.install-banner-btn:hover { transform: translateY(-1px); }
.install-banner-btn:active { transform: translateY(0) scale(.97); }
.install-banner-close {
  background: rgba(255,255,255,.12);
  border: none;
  color: #C7C2ED;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.install-banner-close:hover { background: rgba(255,255,255,.22); color: #fff; }

@media (max-width: 480px) {
  .install-banner { left: .6rem; right: .6rem; bottom: .6rem; padding: .7rem .85rem; gap: .6rem; }
  .install-banner-text span { display: none; }
  .install-banner-icon { width: 38px; height: 38px; }
}

/* Kalau install banner tampil bersamaan WA float, geser WA float ke atas dikit di mobile */
@media (max-width: 768px) {
  body:has(.install-banner.show) .wa-float { bottom: 5.5rem; }
}
