:root {
    --bg: #0b0b0f;
    --surface: #111117;
    --surface-raised: #18181f;
    --border: #292933;
    --text: #f5f5f7;
    --muted: #8f8f9d;
    --disabled: #5c5c6e;
    --pink: #ff3d91;
    --pink-light: #ff70ad;
    --pink-dark: #d92370;
    --pink-soft: #ffb3d1;
    --success: #39d98a;
    --warning: #ffbd4a;
    --danger: #ff5c6c;
    --info: #4aa3ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.shell { width: min(100% - 2rem, 1440px); margin-inline: auto; }
.public-header { position: absolute; inset: 0 0 auto; z-index: 40; border-bottom: 1px solid rgba(255,255,255,.05); background: rgba(11,11,15,.55); backdrop-filter: blur(16px); }
.brand-mark { display: inline-flex; align-items: center; font-weight: 500; font-size: 1.18rem; letter-spacing: .34em; color: #fff; }
.brand-mark::first-letter { color: var(--pink-light); }

.btn { display: inline-flex; align-items: center; gap: .65rem; min-height: 42px; padding: .65rem 1rem; border-radius: 12px; border: 1px solid transparent; font-size: .875rem; font-weight: 650; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--pink-light), var(--pink), var(--pink-dark)); box-shadow: 0 14px 40px rgba(255,61,145,.18); }
.btn-primary:hover { box-shadow: 0 18px 48px rgba(255,61,145,.26); filter: brightness(1.05); }
.btn-secondary, .btn-ghost { border-color: rgba(255,255,255,.10); background: rgba(255,255,255,.025); color: #dddde6; }
.btn-secondary:hover, .btn-ghost:hover { border-color: rgba(255,112,173,.35); background: rgba(255,61,145,.06); }
.btn-large { min-height: 50px; padding-inline: 1.25rem; border-radius: 14px; }

.hero-section { position: relative; background: radial-gradient(circle at 70% 10%, rgba(255,61,145,.07), transparent 28%), var(--bg); }
.hero-section::before { content:""; position:absolute; inset:0; opacity:.14; pointer-events:none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, transparent 5%, black 32%, transparent 100%); }
.hero-glow { position:absolute; border-radius:50%; filter:blur(110px); pointer-events:none; }
.hero-glow-one { width:420px; height:420px; background:rgba(255,61,145,.11); right:8%; top:10%; }
.hero-glow-two { width:260px; height:260px; background:rgba(120,52,255,.08); right:42%; bottom:10%; }
.eyebrow { display:inline-flex; align-items:center; gap:.65rem; color:#bdbdca; font-size:.72rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; }
.eyebrow-dot { width:7px; height:7px; border-radius:50%; background:var(--pink); box-shadow:0 0 20px var(--pink); }
.gradient-text { color: transparent; background: linear-gradient(100deg, var(--pink-soft), var(--pink-light) 42%, var(--pink)); -webkit-background-clip:text; background-clip:text; }
.tick { display:inline-grid; place-items:center; width:19px; height:19px; border-radius:50%; background:rgba(57,217,138,.10); color:var(--success); font-size:.7rem; }

.app-preview { display:flex; overflow:hidden; min-height:490px; border:1px solid rgba(255,255,255,.11); border-radius:24px; background:linear-gradient(145deg, rgba(24,24,31,.92), rgba(13,13,18,.96)); box-shadow:0 50px 120px rgba(0,0,0,.55), 0 0 0 1px rgba(255,61,145,.03) inset; transform:perspective(1200px) rotateY(-3deg) rotateX(1deg); }
.preview-sidebar { width:62px; flex:none; display:flex; align-items:center; flex-direction:column; gap:18px; border-right:1px solid rgba(255,255,255,.07); padding-top:20px; background:rgba(8,8,12,.45); }
.preview-logo { display:grid; place-items:center; width:31px; height:31px; border-radius:10px; background:linear-gradient(135deg,var(--pink-light),var(--pink-dark)); font-weight:800; }
.preview-nav { width:28px; height:28px; border-radius:8px; background:rgba(255,255,255,.04); }
.preview-nav.is-on { background:rgba(255,61,145,.16); border:1px solid rgba(255,61,145,.22); }
.preview-card { border:1px solid rgba(255,255,255,.075); border-radius:15px; padding:15px; background:rgba(255,255,255,.025); }
.preview-card > span, .preview-card small { display:block; color:#757586; font-size:.68rem; }
.preview-card strong { display:block; margin-top:5px; color:white; font-size:1.35rem; }
.fake-chart { height:92px; display:flex; align-items:flex-end; gap:7px; padding-top:7px; border-bottom:1px solid rgba(255,255,255,.08); }
.fake-chart i { flex:1; min-width:4px; border-radius:999px 999px 2px 2px; background:linear-gradient(to top,rgba(217,35,112,.35),rgba(255,112,173,.95)); }
.note-line { display:block; height:7px; border-radius:999px; background:rgba(255,255,255,.07); }
.feature-card { min-height:210px; padding:25px; border:1px solid rgba(255,255,255,.07); border-radius:18px; background:linear-gradient(145deg,rgba(255,255,255,.025),rgba(255,255,255,.012)); }
.feature-card h3 { margin:24px 0 8px; font-size:1.08rem; font-weight:700; color:#f5f5f7; }
.feature-card p { margin:0; color:var(--muted); line-height:1.7; font-size:.9rem; }
.feature-orb { display:block; width:36px; height:36px; border-radius:12px; background:radial-gradient(circle at 32% 28%, var(--pink-soft), var(--pink) 46%, var(--pink-dark)); box-shadow:0 10px 30px rgba(255,61,145,.16); }

.auth-page { position:relative; min-height:100vh; overflow:hidden; background:radial-gradient(circle at 30% 65%,rgba(255,61,145,.12),transparent 30%),radial-gradient(circle at 70% 10%,rgba(120,52,255,.07),transparent 25%),var(--bg); }
.auth-glow { position:absolute; width:520px; height:520px; left:10%; bottom:-22%; border-radius:50%; background:rgba(255,61,145,.09); filter:blur(110px); }
.field { display:block; }
.field > span { display:block; margin-bottom:.55rem; color:#bdbdca; font-size:.82rem; font-weight:650; }
.field input { width:100%; height:50px; border:1px solid rgba(255,255,255,.095); border-radius:13px; padding:0 14px; background:#111117; color:#fff; outline:none; transition:.2s ease; }
.field input::placeholder { color:#555565; }
.field input:focus { border-color:rgba(255,61,145,.55); box-shadow:0 0 0 4px rgba(255,61,145,.08); background:#14141b; }
.password-wrap { position:relative; }
.password-wrap input { padding-right:70px; }
.password-toggle { position:absolute; right:12px; top:50%; transform:translateY(-50%); border:0; background:transparent; color:var(--pink-light); font-size:.75rem; font-weight:700; }
.checkbox-label { display:inline-flex; align-items:center; gap:.55rem; color:#7a7a89; }
.checkbox-label input { accent-color:var(--pink); }
.alert { display:flex; gap:.75rem; align-items:flex-start; border-radius:13px; padding:13px 14px; font-size:.85rem; }
.alert span { display:grid; place-items:center; flex:none; width:22px; height:22px; border-radius:50%; font-weight:800; }
.alert p { margin:1px 0 0; }
.alert-danger { border:1px solid rgba(255,92,108,.20); background:rgba(255,92,108,.07); color:#ffb7bf; }
.alert-danger span { background:rgba(255,92,108,.15); color:var(--danger); }

.app-shell { min-height:100vh; background:var(--bg); }
.app-sidebar { position:fixed; inset:0 auto 0 0; z-index:50; width:260px; display:flex; flex-direction:column; border-right:1px solid rgba(255,255,255,.07); background:#0e0e13; transition:transform .25s ease; }
.app-column { min-height:100vh; padding-left:260px; display:flex; flex-direction:column; }
.app-topbar { position:sticky; top:0; z-index:30; min-height:80px; display:flex; align-items:center; padding:0 28px; border-bottom:1px solid rgba(255,255,255,.07); background:rgba(11,11,15,.82); backdrop-filter:blur(18px); }
.app-main { flex:1; padding:30px 28px 40px; }
.app-footer { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:0 28px; border-top:1px solid rgba(255,255,255,.055); color:#5f5f70; font-size:.72rem; }
.nav-link { min-height:45px; display:flex; align-items:center; gap:12px; padding:0 13px; border:1px solid transparent; border-radius:11px; color:#8f8f9d; font-size:.87rem; font-weight:600; transition:.18s ease; }
.nav-link:hover { color:#dddde5; background:rgba(255,255,255,.03); }
.nav-link.is-active { color:#fff; border-color:rgba(255,61,145,.14); background:linear-gradient(90deg,rgba(255,61,145,.13),rgba(255,61,145,.035)); box-shadow:inset 3px 0 0 var(--pink); }
.nav-link.is-disabled { cursor:default; }
.nav-icon { width:20px; height:20px; display:grid; place-items:center; }
.nav-icon svg { width:19px; height:19px; }
.icon-button { width:40px; height:40px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.08); border-radius:11px; background:rgba(255,255,255,.025); color:#a4a4b2; transition:.18s ease; }
.icon-button:hover { color:white; border-color:rgba(255,61,145,.22); background:rgba(255,61,145,.05); }
.icon-button svg { width:19px; height:19px; }
.search-button { min-width:270px; height:40px; align-items:center; gap:9px; padding:0 10px 0 12px; border:1px solid rgba(255,255,255,.08); border-radius:11px; background:rgba(255,255,255,.02); color:#666677; font-size:.77rem; text-align:left; }
.search-button svg { width:17px; height:17px; }
.search-button span { flex:1; }
.search-button kbd { padding:3px 6px; border:1px solid rgba(255,255,255,.08); border-radius:6px; color:#585868; font-size:.65rem; }
.profile-chip { display:flex; align-items:center; gap:9px; border:0; background:transparent; padding:0; color:inherit; }
.avatar { width:38px; height:38px; display:grid; place-items:center; flex:none; border-radius:50%; background:linear-gradient(135deg,var(--pink-light),var(--pink-dark)); color:white; font-size:.8rem; font-weight:750; box-shadow:0 8px 28px rgba(255,61,145,.14); }
.sidebar-scrim { display:none; }

.stat-card, .dashboard-card { border:1px solid rgba(255,255,255,.07); background:linear-gradient(145deg,rgba(24,24,31,.76),rgba(17,17,23,.82)); box-shadow:inset 0 1px 0 rgba(255,255,255,.012); }
.stat-card { position:relative; min-height:152px; padding:20px; border-radius:16px; overflow:hidden; }
.stat-card::after { content:""; position:absolute; width:90px; height:90px; border-radius:50%; right:-35px; top:-35px; background:rgba(255,61,145,.04); filter:blur(2px); }
.stat-icon { width:35px; height:35px; display:grid; place-items:center; margin-bottom:18px; border-radius:10px; background:rgba(255,61,145,.10); color:var(--pink-light); }
.stat-icon svg { width:18px; height:18px; }
.stat-card p { margin:0; color:#7f7f8f; font-size:.75rem; }
.stat-card strong { display:block; margin-top:3px; font-size:1.48rem; letter-spacing:-.025em; color:#fff; }
.stat-card small { display:block; margin-top:4px; color:#6f6f80; font-size:.69rem; }
.stat-card small.positive { color:var(--success); }
.dashboard-card { border-radius:18px; padding:22px; }
.card-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.card-kicker { display:block; margin-bottom:4px; color:var(--pink-light); font-size:.65rem; font-weight:750; letter-spacing:.16em; text-transform:uppercase; }
.card-heading h2 { margin:0; font-size:1.02rem; font-weight:700; color:#f4f4f7; }
.chip { min-height:32px; padding:0 10px; border:1px solid rgba(255,255,255,.08); border-radius:9px; background:rgba(255,255,255,.025); color:#777788; font-size:.68rem; }
.link-button { border:0; background:transparent; color:var(--pink-light); font-size:.72rem; font-weight:650; }
.chart-placeholder { position:relative; min-height:290px; margin-top:22px; border-top:1px solid rgba(255,255,255,.05); }
.chart-summary { position:absolute; z-index:2; top:16px; left:0; }
.chart-summary span, .chart-summary small { display:block; color:#6f6f80; font-size:.67rem; }
.chart-summary strong { display:block; margin:2px 0; color:white; font-size:1.45rem; }
.line-chart { position:absolute; inset:88px 0 25px; background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px); background-size:100% 25%; }
.line-chart svg { width:100%; height:100%; overflow:visible; }
.line-chart .area { fill:url(#fill); stroke:none; }
.line-chart .stroke { fill:none; stroke:var(--pink-light); stroke-width:3; vector-effect:non-scaling-stroke; filter:drop-shadow(0 0 8px rgba(255,61,145,.25)); }
.chart-axis { position:absolute; inset:auto 0 0; display:flex; justify-content:space-between; color:#555565; font-size:.6rem; }
.timeline { margin-top:25px; }
.timeline-item { position:relative; display:grid; grid-template-columns:47px 12px 1fr; gap:10px; padding-bottom:27px; }
.timeline-item:not(:last-child)::after { content:""; position:absolute; left:62px; top:14px; bottom:0; width:1px; background:rgba(255,255,255,.075); }
.timeline-item time { padding-top:1px; color:#6c6c7c; font-size:.67rem; }
.timeline-dot { position:relative; z-index:2; width:9px; height:9px; margin-top:4px; border-radius:50%; box-shadow:0 0 0 4px #15151c; }
.timeline-dot.pink { background:var(--pink); }.timeline-dot.purple { background:#9568ff; }.timeline-dot.green { background:var(--success); }
.timeline-item strong { display:block; color:#dfdfe7; font-size:.79rem; }
.timeline-item p { margin:4px 0 0; color:#6e6e7d; font-size:.7rem; }
.note-list { margin-top:15px; }
.note-list button { width:100%; display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:11px; padding:13px 0; border:0; border-bottom:1px solid rgba(255,255,255,.055); background:transparent; text-align:left; }
.note-list button:last-child { border-bottom:0; }
.note-icon { width:32px; height:32px; display:grid; place-items:center; border-radius:9px; background:rgba(255,61,145,.08); color:var(--pink-light); font-size:.7rem; font-weight:800; }
.note-list strong, .note-list small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.note-list strong { color:#d7d7df; font-size:.77rem; }.note-list small { margin-top:3px; color:#636373; font-size:.67rem; }.note-list time { color:#555565; font-size:.62rem; }
.spending-list { display:grid; gap:19px; margin-top:25px; }
.spending-row span { color:#bdbdc7; font-size:.76rem; }.spending-row strong { color:#e6e6eb; font-size:.75rem; }
.progress { height:6px; margin-top:8px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.045); }.progress i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--pink-dark),var(--pink-light)); }

@media (max-width: 1023px) {
    .app-sidebar { transform:translateX(-100%); box-shadow:30px 0 90px rgba(0,0,0,.45); }
    .app-sidebar[data-open="true"] { transform:translateX(0); }
    .app-column { padding-left:0; }
    .sidebar-scrim { position:fixed; inset:0; z-index:45; background:rgba(0,0,0,.58); backdrop-filter:blur(2px); }
    .sidebar-open .sidebar-scrim { display:block; }
}

@media (max-width: 639px) {
    .shell { width:min(100% - 1.25rem, 1440px); }
    .app-main { padding:22px 14px 30px; }
    .app-topbar { min-height:68px; padding:0 14px; }
    .app-footer { padding:0 14px; }
    .dashboard-card { padding:18px; }
    .app-preview { transform:none; min-height:450px; }
}
