﻿:root {
    --kf-orange: #ff8a00;
    --kf-orange-dark: #db6f00;
    --kf-green: #18b957;
    --kf-red: #f04444;
    --kf-ink: #111827;
    --kf-muted: #64748b;
    --kf-soft: #f6f7f3;
    --kf-line: #e5e7eb;
    --kf-sidebar: #111827;
    --kf-card: #ffffff;
    --kf-shadow: 0 22px 60px rgba(15, 23, 42, .10);
}


#blazor-error-ui {
    display: none;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f7f8f5;
    color: var(--kf-ink);
    letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }

button, input { font: inherit; }

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    background:
        radial-gradient(circle at top right, rgba(255, 138, 0, .10), transparent 34rem),
        linear-gradient(180deg, #fbfcf8 0%, #f5f7f2 100%);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 22px;
    background:
        linear-gradient(180deg, #161a22 0%, #101722 42%, #0f1f17 100%);
    color: #fff;
    overflow-y: auto;
}

.brand-block { display: grid; gap: 10px; margin-bottom: 24px; }

.logo-card {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 4px 0;
}

.logo-card img {
    width: 206px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .24));
}

.brand-block p {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: .88rem;
    line-height: 1.5;
}

.admin-nav { display: grid; gap: 9px; }

.admin-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: rgba(255, 255, 255, .72);
    font-weight: 750;
}

.admin-nav .nav-link:hover,
.admin-nav .nav-link.active {
    color: #111827;
    background: #fff;
    border-color: rgba(255, 255, 255, .7);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
}

.nav-icon {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(255, 138, 0, .16);
    color: var(--kf-orange);
    font-weight: 900;
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
}

.sidebar-footer strong,
.sidebar-footer small { display: block; }
.sidebar-footer small { color: rgba(255, 255, 255, .58); margin-top: 3px; }
.logout-link { color: #fff; font-weight: 800; font-size: .86rem; }

.admin-main { min-width: 0; }

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, .84);
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    backdrop-filter: blur(16px);
}

.topbar-kicker {
    margin: 0 0 4px;
    color: var(--kf-muted);
    font-size: .82rem;
    font-weight: 750;
    text-transform: uppercase;
}

.admin-topbar strong { text-transform: capitalize; font-size: 1.05rem; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    background: #f0fdf4;
    color: #15803d;
    font-weight: 800;
    font-size: .86rem;
}

.status-pill span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--kf-green);
    box-shadow: 0 0 0 5px rgba(24, 185, 87, .12);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px 7px 7px;
    border: 1px solid var(--kf-line);
    border-radius: 999px;
    background: #fff;
}

.user-chip > span,
.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--kf-orange), #ffb241);
    color: #fff;
    font-weight: 900;
}

.user-chip strong,
.user-chip small { display: block; line-height: 1.1; }
.user-chip small { color: var(--kf-muted); font-size: .78rem; margin-top: 3px; }

.admin-content { padding: 28px 32px 42px; }

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .72fr);
    background:
        radial-gradient(circle at 14% 20%, rgba(255, 138, 0, .13), transparent 25rem),
        radial-gradient(circle at 80% 70%, rgba(24, 185, 87, .14), transparent 23rem),
        #fffaf3;
}

.login-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 6vw, 88px);
    position: relative;
    overflow: hidden;
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    right: 7%;
    bottom: -80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 138, 0, .10);
}

.login-brand-mark img {
    width: min(280px, 58vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 32px rgba(15, 23, 42, .16));
}

.login-copy { max-width: 680px; margin-top: 42px; position: relative; z-index: 1; }
.login-copy h1 { margin: 0; max-width: 620px; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .95; font-weight: 950; }
.login-copy h1::after { content: ""; display: block; width: 190px; height: 7px; margin-top: 22px; border-radius: 999px; background: var(--kf-green); }
.login-copy p { max-width: 560px; color: #475569; font-size: 1.2rem; line-height: 1.6; }

.login-proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 720px; margin-top: 44px; position: relative; z-index: 1; }
.login-proof-grid div { padding: 18px; border: 1px solid #ffe0b8; border-radius: 18px; background: rgba(255,255,255,.75); }
.login-proof-grid strong, .login-proof-grid span { display: block; }
.login-proof-grid strong { font-size: 1.4rem; color: var(--kf-orange); }
.login-proof-grid span { color: var(--kf-muted); margin-top: 5px; }

.login-card {
    align-self: center;
    margin: 28px clamp(24px, 5vw, 72px) 28px 0;
    padding: 34px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 28px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--kf-shadow);
    backdrop-filter: blur(18px);
}

.login-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.login-card h2 { margin: 0; font-size: 1.8rem; }
.login-card p { margin: 4px 0 0; color: var(--kf-muted); }

.login-form { display: grid; gap: 16px; }
.login-form label span { display: block; margin-bottom: 8px; color: #475569; font-weight: 800; }
.login-form input {
    width: 100%;
    min-height: 52px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0 16px;
    background: #f8fafc;
    outline: none;
}
.login-form input:focus { border-color: var(--kf-orange); box-shadow: 0 0 0 4px rgba(255, 138, 0, .12); background: #fff; }

.primary-action {
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--kf-orange), #ff9f1c);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 18px 30px rgba(255, 138, 0, .25);
}

.login-note { font-size: .9rem; }
.form-alert { padding: 14px 16px; border-radius: 16px; background: #fff4ed; color: #c2410c; border: 1px solid #fed7aa; margin-bottom: 16px; font-weight: 750; }
.loading-panel, .empty-state { padding: 28px; border: 1px dashed #cbd5e1; border-radius: 18px; color: var(--kf-muted); background: rgba(255,255,255,.7); }

.eyebrow { margin: 0 0 9px; color: var(--kf-orange); font-weight: 950; text-transform: uppercase; font-size: .78rem; }

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: stretch;
    padding: 30px;
    border-radius: 26px;
    background: linear-gradient(135deg, #ffffff 0%, #fff7ec 50%, #effaf2 100%);
    border: 1px solid #f6dfbf;
    box-shadow: var(--kf-shadow);
}

.dashboard-hero h1 { margin: 0; max-width: 780px; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; font-weight: 950; }
.dashboard-hero h1::after { content: ""; display: block; width: 150px; height: 6px; margin-top: 18px; border-radius: 999px; background: var(--kf-green); }
.dashboard-hero p { max-width: 660px; color: #475569; font-size: 1.05rem; line-height: 1.6; }

.hero-balance { display: grid; align-content: center; padding: 24px; border-radius: 22px; background: #111827; color: #fff; }
.hero-balance span, .hero-balance small { color: rgba(255,255,255,.65); }
.hero-balance strong { font-size: 2.35rem; margin: 6px 0; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.premium-metrics { margin-top: 20px; }
.metric-card { position: relative; overflow: hidden; padding: 22px; border: 1px solid var(--kf-line); border-radius: 22px; background: #fff; box-shadow: 0 14px 38px rgba(15,23,42,.06); }
.metric-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--accent, var(--kf-orange)); }
.metric-card span, .metric-card small { display: block; color: var(--kf-muted); }
.metric-card strong { display: block; margin: 8px 0 5px; font-size: 1.8rem; }
.accent-green { --accent: var(--kf-green); }
.accent-red { --accent: var(--kf-red); }
.accent-orange { --accent: var(--kf-orange); }
.accent-dark { --accent: #111827; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr); gap: 20px; margin-top: 20px; }
.panel { padding: 22px; border: 1px solid var(--kf-line); border-radius: 24px; background: #fff; box-shadow: 0 14px 38px rgba(15,23,42,.06); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.panel h2 { margin: 0; font-size: 1.22rem; }
.text-action { color: var(--kf-orange); font-weight: 900; }

.transaction-list { display: grid; gap: 10px; }
.transaction-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #f8fafc; }
.transaction-row strong, .transaction-row small { display: block; }
.transaction-row small { color: var(--kf-muted); margin-top: 3px; }
.transaction-type { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 14px; font-weight: 950; }
.transaction-type.income { background: #dcfce7; color: #16a34a; }
.transaction-type.expense { background: #fee2e2; color: #ef4444; }
.transaction-type.adjustment { background: #ffedd5; color: #f97316; }

.brand-panel { background: #111827; color: #fff; }
.brand-panel p { color: rgba(255,255,255,.68); line-height: 1.6; }
.feature-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.feature-stack span { padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-weight: 850; }

.page-head { margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 2.4rem; font-weight: 950; }
.page-head p { margin: 8px 0 0; color: var(--kf-muted); }
.table-wrap { overflow-x: auto; }
.premium-table { width: 100%; border-collapse: collapse; }
.premium-table th { color: var(--kf-muted); font-size: .78rem; text-align: left; text-transform: uppercase; padding: 12px; border-bottom: 1px solid var(--kf-line); }
.premium-table td { padding: 15px 12px; border-bottom: 1px solid #f1f5f9; }
.text-end, .amount { text-align: right; }
.amount { font-weight: 950; }
.amount.income { color: var(--kf-green); }
.amount.expense { color: var(--kf-red); }

.wallet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.wallet-card { display: flex; align-items: center; gap: 14px; padding: 22px; border: 1px solid var(--kf-line); border-radius: 22px; background: #fff; box-shadow: 0 14px 38px rgba(15,23,42,.06); }
.wallet-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; background: #fff7ed; color: var(--kf-orange); font-weight: 950; }
.wallet-card small, .wallet-card strong { display: block; }
.wallet-card small { color: var(--kf-muted); }
.wallet-card strong { font-size: 1.5rem; margin-top: 4px; }

@media (max-width: 1040px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: relative; height: auto; }
    .dashboard-hero, .content-grid, .login-shell { grid-template-columns: 1fr; }
    .login-card { margin: 0 clamp(20px, 6vw, 60px) 40px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .admin-topbar { align-items: flex-start; flex-direction: column; padding: 16px 20px; }
    .topbar-actions { width: 100%; justify-content: space-between; }
    .admin-content { padding: 20px; }
    .metric-grid, .login-proof-grid { grid-template-columns: 1fr; }
    .dashboard-hero { padding: 22px; }
}



.success-alert {
    padding: 14px 16px;
    border-radius: 16px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
    margin-bottom: 16px;
    font-weight: 750;
}

.config-form { max-width: 980px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-grid label,
.toggle-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-grid span,
.toggle-row strong {
    color: #334155;
    font-weight: 800;
}

.form-grid input {
    min-height: 48px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 0 14px;
    color: #111827;
    background: #fff;
    outline: none;
}

.form-grid input:focus {
    border-color: #ff8a00;
    box-shadow: 0 0 0 4px rgba(255, 138, 0, .12);
}

.form-grid .field-note {
    color: #64748b;
    font-size: .82rem;
    font-weight: 650;
    line-height: 1.35;
}

.toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.toggle-row {
    flex-direction: row;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fffaf3;
}

.toggle-row input { margin-top: 4px; accent-color: #ff8a00; }
.toggle-row small { display: block; color: #64748b; margin-top: 3px; }

@media (max-width: 820px) {
    .form-grid,
    .toggle-grid { grid-template-columns: 1fr; }
}

/* Public website */
.public-shell {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(255, 138, 0, .12) 0%, rgba(255,255,255,0) 34%),
        linear-gradient(315deg, rgba(24, 185, 87, .11) 0%, rgba(255,255,255,0) 38%),
        #fffaf3;
    color: #101827;
}

.public-shell * { box-sizing: border-box; }
.public-shell a { text-decoration: none; }
.public-shell :focus { outline: none; }
.public-shell :focus-visible { outline: 3px solid rgba(255, 138, 0, .45); outline-offset: 4px; }
.public-hero-copy,
.public-hero-copy h1 { outline: none !important; border: 0 !important; box-shadow: none; }

.public-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    min-height: 78px;
    padding: 14px clamp(20px, 5vw, 76px);
    background: rgba(255, 250, 243, .90);
    border-bottom: 1px solid rgba(241, 223, 198, .92);
    backdrop-filter: blur(18px);
}

.public-brand img {
    width: 184px;
    max-width: 36vw;
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 18px rgba(15, 23, 42, .10));
}

.public-nav {
    display: flex;
    justify-content: center;
    gap: 22px;
    color: #475569;
    font-weight: 850;
    font-size: .94rem;
}

.public-nav a,
.public-footer a { color: inherit; }
.public-nav a:hover,
.public-admin-link:hover,
.public-footer a:hover { color: var(--kf-orange); }

.public-admin-link,
.public-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #ffd7a8;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: #111827;
    font-weight: 900;
    white-space: nowrap;
}

.public-main { overflow: hidden; }

.public-hero {
    min-height: calc(100vh - 78px);
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, .74fr);
    align-items: center;
    gap: clamp(28px, 5vw, 82px);
    padding: clamp(44px, 7vw, 96px) clamp(20px, 5vw, 76px) 72px;
}

.premium-hero { position: relative; }
.premium-hero::before {
    content: "";
    position: absolute;
    inset: 24px clamp(16px, 4vw, 64px) auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 138, 0, .32), transparent);
    pointer-events: none;
}

.public-hero-copy { max-width: 790px; position: relative; z-index: 1; }
.public-eyebrow {
    margin: 0 0 12px;
    color: var(--kf-orange);
    font-weight: 950;
    text-transform: uppercase;
    font-size: .82rem;
    letter-spacing: .04em;
}

.public-hero h1,
.legal-hero h1,
.seo-hero-panel h1 {
    margin: 0;
    color: #101827;
    font-size: clamp(2.65rem, 5.55vw, 5.15rem);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: 0;
}

.public-hero h1::after,
.legal-hero h1::after,
.seo-hero-panel h1::after,
.section-heading h2::after {
    content: "";
    display: block;
    width: 150px;
    height: 6px;
    margin-top: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--kf-green), #65d88d);
}

.public-lead,
.section-heading p,
.legal-hero p,
.seo-hero-panel p {
    color: #516178;
    font-size: clamp(1.02rem, 1.5vw, 1.20rem);
    line-height: 1.7;
}

.public-lead { max-width: 690px; margin: 18px 0 0; }
.public-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.compact-cta { margin-top: 16px; }
.public-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--kf-orange), #ffab30);
    color: #fff;
    font-weight: 950;
    box-shadow: 0 20px 34px rgba(255, 138, 0, .25);
}

.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.trust-row span {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--kf-green);
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.phone-showcase { display: flex; justify-content: center; position: relative; z-index: 1; }
.phone-frame {
    width: min(364px, 88vw);
    padding: 18px;
    border: 10px solid #111827;
    border-radius: 44px;
    background: #fffaf3;
    box-shadow: 0 34px 80px rgba(15, 23, 42, .22);
}
.premium-phone { transform: rotate(.8deg); }
.phone-topbar { display: flex; align-items: center; gap: 9px; padding: 8px 4px 18px; }
.phone-topbar img { width: 34px; height: 34px; object-fit: contain; }
.phone-topbar strong { font-size: 1.12rem; }
.phone-topbar span { margin-left: auto; padding: 7px 10px; border-radius: 999px; background: #ffedd5; color: var(--kf-orange); font-weight: 950; font-size: .76rem; }
.phone-balance-card { padding: 20px; border-radius: 26px; background: #111827; color: #fff; }
.phone-balance-card small,
.phone-balance-card span { color: rgba(255,255,255,.72); }
.phone-balance-card strong { display: block; margin: 10px 0; font-size: 2.05rem; }
.phone-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.phone-actions span { display: grid; place-items: center; min-height: 50px; border-radius: 18px; color: #fff; font-weight: 950; }
.phone-actions .expense { background: var(--kf-red); }
.phone-actions .income { background: var(--kf-green); }
.phone-list { display: grid; gap: 10px; }
.phone-list div { display: flex; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 18px; background: #fff; font-weight: 850; }
.phone-list b { color: var(--kf-red); }
.phone-list .green { color: var(--kf-green); }

.public-section { padding: 66px clamp(20px, 5vw, 76px); }
.public-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 26px; }
.public-proof article,
.feature-grid-public article,
.steps-grid article,
.about-card-public,
.legal-content,
.download-panel,
.faq-grid article,
.seo-link-grid a,
.seo-hero-panel,
.seo-mini-card {
    border: 1px solid #f1dfc6;
    border-radius: 28px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 18px 52px rgba(15, 23, 42, .08);
}
.public-proof article { padding: 24px; }
.public-proof strong { display: block; color: var(--kf-orange); font-size: 2rem; }
.public-proof span { display: block; color: var(--kf-muted); margin-top: 8px; line-height: 1.55; }

.section-heading { max-width: 820px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 4.35rem); line-height: 1; font-weight: 950; letter-spacing: 0; }
.feature-grid-public,
.steps-grid,
.faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid-public article,
.steps-grid article,
.faq-grid article { padding: 24px; }
.feature-grid-public span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 14px; background: #ffedd5; color: var(--kf-orange); font-weight: 950; }
.feature-grid-public h3,
.steps-grid h3,
.faq-grid h3 { margin: 18px 0 8px; font-size: 1.22rem; font-weight: 950; }
.feature-grid-public p,
.steps-grid p,
.faq-grid p,
.legal-content p,
.about-card-public p { color: var(--kf-muted); line-height: 1.65; }


.app-preview-section {
    background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,247,235,.62));
}
.app-screen-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.app-screen-card {
    padding: 18px;
    border: 1px solid #f1dfc6;
    border-radius: 28px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 20px 55px rgba(15, 23, 42, .08);
}
.app-screen-card h3 {
    margin: 18px 0 8px;
    font-size: 1.15rem;
    font-weight: 950;
    color: #111827;
}
.app-screen-card p {
    margin: 0;
    color: var(--kf-muted);
    line-height: 1.58;
}
.mini-phone-screen {
    min-height: 330px;
    padding: 14px;
    border: 8px solid #111827;
    border-radius: 34px;
    background: #fffaf3;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06);
    overflow: hidden;
}
.mini-appbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.mini-appbar img { width: 28px; height: 28px; object-fit: contain; }
.mini-appbar span { font-weight: 950; }
.mini-appbar b { margin-left: auto; padding: 6px 8px; border-radius: 999px; background: #ffedd5; color: var(--kf-orange); font-size: .72rem; }
.mini-balance { padding: 16px; border-radius: 22px; background: #111827; color: #fff; }
.mini-balance small, .mini-balance span { color: rgba(255,255,255,.72); }
.mini-balance strong { display: block; margin: 8px 0; font-size: 1.55rem; }
.mini-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.mini-actions span { height: 42px; border-radius: 16px; }
.mini-actions .red { background: var(--kf-red); }
.mini-actions .green { background: var(--kf-green); }
.mini-row { display: flex; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 16px; background: #fff; margin-top: 8px; }
.mini-row b { color: #111827; }
.mini-row em { color: var(--kf-red); font-style: normal; font-weight: 950; }
.mini-row .plus { color: var(--kf-green); }
.entry-title, .insight-title { font-size: 1.45rem; font-weight: 950; margin: 4px 0 18px; }
.entry-field { padding: 14px; border: 1px solid #f1dfc6; border-radius: 17px; background: #fff; margin-bottom: 10px; font-weight: 850; color: #334155; }
.entry-field.wide { color: #111827; }
.entry-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.entry-chip-row span { padding: 8px 11px; border-radius: 999px; background: #ffedd5; color: var(--kf-orange); font-weight: 950; font-size: .82rem; }
.entry-save { display: grid; place-items: center; min-height: 46px; border-radius: 16px; background: var(--kf-red); color: #fff; font-weight: 950; margin-top: 24px; }
.ledger-search { padding: 12px 14px; border-radius: 17px; border: 1px solid #e2e8f0; color: #64748b; background: #fff; }
.ledger-tabs { display: flex; gap: 8px; margin: 12px 0; }
.ledger-tabs span { padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid #f1dfc6; font-weight: 850; color: #64748b; }
.ledger-tabs span:first-child { color: var(--kf-orange); border-color: var(--kf-orange); }
.ledger-total { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 14px 10px; border-radius: 20px; background: #111827; color: #fff; font-size: .76rem; text-align: center; }
.ledger-item { margin-top: 10px; padding: 13px; border-radius: 17px; background: #fff; }
.ledger-item strong { display: block; color: var(--kf-red); }
.ledger-item.green strong { color: var(--kf-green); }
.ledger-item span { display: block; margin-top: 4px; color: #64748b; font-weight: 850; }
.bar-row { margin: 18px 0; }
.bar-row span { display: block; margin-bottom: 8px; font-weight: 950; }
.bar-row b { display: block; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--kf-red) 68%, #fee2e2 68%); }
.bar-row.small b { background: linear-gradient(90deg, var(--kf-orange) 42%, #ffedd5 42%); }
.bar-row.tiny b { background: linear-gradient(90deg, var(--kf-green) 28%, #dcfce7 28%); }
.budget-alert { padding: 14px; border-radius: 18px; background: #111827; color: #ff8585; font-weight: 950; }
.waitlist-section { padding-top: 30px; }
.waitlist-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: center;
    gap: 28px;
    padding: clamp(26px, 5vw, 46px);
    border: 1px solid #f1dfc6;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(17,24,39,.96), rgba(30,41,59,.96));
    box-shadow: 0 28px 80px rgba(15, 23, 42, .16);
    color: #fff;
}
.waitlist-panel h2 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.04; font-weight: 950; }
.waitlist-panel p:not(.public-eyebrow):not(.waitlist-message) { color: rgba(255,255,255,.74); line-height: 1.65; }
.waitlist-form { padding: 18px; border-radius: 24px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.waitlist-form label { display: block; margin-bottom: 10px; color: rgba(255,255,255,.82); font-weight: 900; }
.waitlist-form div { display: flex; gap: 10px; }
.waitlist-form input { min-width: 0; flex: 1; min-height: 52px; padding: 0 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.96); color: #111827; font: inherit; }
.waitlist-form button { min-height: 52px; padding: 0 20px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--kf-orange), #ffab30); color: #fff; font-weight: 950; cursor: pointer; }
.waitlist-message { margin: 12px 0 0; color: #bbf7d0; font-weight: 900; }
.how-section,
.seo-band { background: rgba(255,255,255,.36); }
.steps-grid b { color: var(--kf-orange); font-size: 1.4rem; }

.seo-link-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.seo-link-grid a { display: block; padding: 18px; color: #111827; }
.seo-link-grid strong { display: block; font-weight: 950; }
.seo-link-grid span { display: block; margin-top: 8px; color: var(--kf-muted); line-height: 1.45; }

.download-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px; }
.download-panel h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 950; }
.download-panel p { color: var(--kf-muted); margin: 8px 0 0; }

.public-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px clamp(20px, 5vw, 76px);
    border-top: 1px solid #f1dfc6;
    background: rgba(255,255,255,.72);
}
.public-footer img { width: 170px; }
.public-footer p { color: var(--kf-muted); margin: 6px 0 0; }
.public-footer nav { display: flex; flex-wrap: wrap; gap: 16px; color: #475569; font-weight: 850; }

.legal-page { padding: 70px clamp(20px, 5vw, 76px); }
.legal-hero { max-width: 900px; margin-bottom: 30px; }
.legal-hero h1 { font-size: clamp(2.6rem, 5vw, 5.6rem); }
.legal-content { max-width: 900px; padding: 34px; }
.legal-content h2 { margin: 24px 0 8px; font-size: 1.25rem; font-weight: 950; }
.legal-content h2:first-child { margin-top: 0; }
.about-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1000px; }
.about-card-public { padding: 30px; }
.about-card-public.dark { background: #111827; color: #fff; }
.about-card-public.dark p { color: rgba(255,255,255,.72); }
.about-card-public h2 { margin: 0 0 10px; font-weight: 950; }

.seo-page { padding-top: 46px; }
.seo-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: center;
    gap: 28px;
    padding: clamp(26px, 5vw, 52px);
    margin-bottom: 12px;
}
.seo-hero-panel h1 { font-size: clamp(2.6rem, 5vw, 5.8rem); }
.seo-mini-card { display: grid; place-items: center; text-align: center; padding: 26px; min-height: 250px; }
.seo-mini-card img { width: 104px; height: 104px; object-fit: contain; }
.seo-mini-card strong { display: block; margin-top: 14px; font-size: 1.35rem; font-weight: 950; }
.seo-mini-card span { color: var(--kf-muted); font-weight: 800; }
.seo-detail-section { padding-left: 0; padding-right: 0; }

@media (max-width: 1120px) {
    .seo-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .public-header { grid-template-columns: 1fr auto; }
    .public-nav { display: none; }
    .public-hero,
    .seo-hero-panel { grid-template-columns: 1fr; min-height: auto; }
    .public-proof,
    .feature-grid-public,
    .steps-grid,
    .faq-grid,
    .about-split { grid-template-columns: 1fr; }
    .download-panel,
    .public-footer { align-items: flex-start; flex-direction: column; }
    .premium-phone { transform: none; }
    .app-screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .public-brand img { width: 148px; max-width: 50vw; }
    .public-admin-link { min-height: 38px; padding: 0 12px; font-size: .85rem; }
    .public-hero { padding-top: 34px; }
    .public-hero h1 { font-size: 2.65rem; line-height: 1.08; }
    .phone-frame { border-width: 8px; border-radius: 36px; }
    .public-section { padding-top: 42px; padding-bottom: 42px; }
    .seo-link-grid { grid-template-columns: 1fr; }
    .app-screen-grid { grid-template-columns: 1fr; }
    .waitlist-form div { flex-direction: column; }
}

.store-coming {
    margin-top: 20px;
}
.hero-store {
    margin-top: 22px;
}
.store-coming p {
    margin: 0 0 12px;
    color: #334155;
    font-weight: 950;
    letter-spacing: 0;
}
.store-coming.compact { margin-top: 18px; }
.store-badges {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    max-width: 100%;
}
.store-badges-panel {
    justify-content: flex-end;
    min-width: min(840px, 100%);
}
.store-badge.asset-badge {
    display: block;
    flex: 0 0 260px;
    width: 260px;
    height: 78px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
    overflow: hidden;
}
.store-badge.asset-badge img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.store-badge.indus-asset {
    background: transparent;
}
.store-badge.indus-asset img {
    padding: 0;
    object-fit: contain;
}

@media (min-width: 981px) {
    .hero-store .store-badges { max-width: 840px; flex-wrap: nowrap; }
}

@media (max-width: 980px) {
    .store-badges {
        flex-wrap: wrap;
    }
    .store-badges-panel {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .store-badge.asset-badge {
        width: min(100%, 230px);
        height: 64px;
    }
    .hero-store .store-badges {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: start;
    }
}










