/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    -webkit-tap-highlight-color:transparent;
}

body{
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:#F8FAFC;
    color:#1E293B;
}

/* =========================
   LINKS
========================= */

a{
    color:inherit;
    text-decoration:none;
}

/* =========================
   APP CONTAINER
========================= */

.mobile-app{
    width:100%;
    max-width:480px;
    margin:0 auto;
    min-height:100vh;

    padding:22px;
    padding-bottom:110px;
}

/* =========================
   TOPBAR
========================= */

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;

    margin-bottom:28px;
}

.topbar h1{
    font-size:28px;
    font-weight:800;
    color:#0F172A;

    margin-bottom:4px;
}

.topbar p{
    color:#94A3B8;
    font-size:14px;
}

.logout-btn{
    background:#FFE5E5;
    color:#DC2626;

    padding:12px 16px;

    border-radius:16px;

    font-size:14px;
    font-weight:700;

    transition:0.2s;
}

.logout-btn:hover{
    transform:translateY(-1px);
}

/* =========================
   BALANCE CARD
========================= */

.balance-card{
    background:linear-gradient(
        135deg,
        #6BCB77,
        #7ED957
    );

    color:white;

    border-radius:32px;

    padding:30px 28px;

    margin-bottom:26px;

    box-shadow:
        0 15px 40px rgba(107,203,119,0.25);
}

.balance-card p{
    opacity:0.9;
    font-size:15px;
    margin-bottom:10px;
}

.balance-card h2{
    font-size:44px;
    font-weight:800;
    line-height:1.1;
}

.balance-card span{
    display:inline-block;

    margin-top:14px;

    background:rgba(255,255,255,0.18);

    padding:10px 14px;

    border-radius:999px;

    font-size:13px;
    font-weight:600;
}

/* =========================
   STATS GRID
========================= */

.stats-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;

    margin-bottom:28px;
}

.stat-card{
    background:white;

    border-radius:26px;

    padding:20px;

    min-height:130px;

    box-shadow:
        0 8px 25px rgba(15,23,42,0.04);

    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.stat-card span{
    color:#94A3B8;

    font-size:13px;
    font-weight:600;
}

.stat-card strong{
    font-size:18px;
    font-weight:700;

    color:#0F172A;

    line-height:1.3;

    margin:10px 0;
}

.stat-card p{
    color:#6BCB77;

    font-size:26px;
    font-weight:800;
}

/* =========================
   BUTTONS
========================= */

button,
.main-button,
.scan-button,
.ocr-button{
    border:none;
    outline:none;
    cursor:pointer;

    transition:0.2s;
}

.scan-button{
    width:100%;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#0F172A;
    color:white;

    padding:20px;

    border-radius:24px;

    font-size:17px;
    font-weight:700;

    margin-bottom:30px;

    box-shadow:
        0 10px 25px rgba(15,23,42,0.10);
}

.scan-button:hover{
    transform:translateY(-2px);
}

.ocr-button{
    width:100%;

    background:#DBEAFE;
    color:#1D4ED8;

    padding:18px;

    border-radius:18px;

    font-size:16px;
    font-weight:700;
}

.ocr-button:hover{
    background:#BFDBFE;
}

button:disabled,
.ocr-button:disabled{
    opacity:0.7;
    cursor:not-allowed;
}

/* =========================
   SECTION TITLE
========================= */

.section-title-row{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:16px;
}

.section-title-row h3{
    font-size:22px;
    font-weight:800;
}

.section-title-row a{
    color:#6BCB77;
    font-size:14px;
    font-weight:700;
}

/* =========================
   EXPENSE CARD
========================= */

.expense-item{
    background:white;

    border-radius:24px;

    padding:18px;

    margin-bottom:16px;

    box-shadow:
        0 8px 24px rgba(15,23,42,0.04);
}

.expense-row{
    display:flex;
    justify-content:space-between;
    align-items:center;

    gap:12px;
}

.expense-item strong{
    display:block;

    font-size:16px;
    font-weight:700;

    margin-bottom:6px;
}

.expense-item p{
    color:#94A3B8;

    font-size:13px;
    line-height:1.5;
}

.expense-amount{
    color:#6BCB77;

    font-size:18px;
    font-weight:800;

    white-space:nowrap;
}

.expense-link{
    color:inherit;
    text-decoration:none;
}

/* =========================
   FORM CARD
========================= */

.expense-form-card{
    background:white;

    border-radius:28px;

    padding:24px;

    box-shadow:
        0 10px 28px rgba(15,23,42,0.04);
}

form{
    display:flex;
    flex-direction:column;
    gap:16px;
}

label{
    font-size:14px;
    font-weight:700;

    color:#334155;
}

input,
select,
textarea{
    width:100%;

    background:#F8FAFC;

    border:2px solid transparent;

    border-radius:18px;

    padding:16px;

    font-size:16px;

    font-family:inherit;

    color:#0F172A;

    transition:0.2s;
}

input:focus,
select:focus,
textarea:focus{
    border-color:#B9FBC0;
    background:white;

    outline:none;
}

textarea{
    resize:none;
    min-height:120px;
}

button,
.main-button{
    width:100%;

    background:#6BCB77;
    color:white;

    padding:18px;

    border-radius:20px;

    font-size:16px;
    font-weight:800;
}

button:hover,
.main-button:hover{
    transform:translateY(-1px);
}

/* =========================
   ALERTS
========================= */

.alert{
    padding:16px;

    border-radius:18px;

    margin-bottom:18px;

    font-size:14px;
    font-weight:600;
}

.alert.error{
    background:#FEE2E2;
    color:#991B1B;
}

.alert.success{
    background:#DCFCE7;
    color:#166534;
}

/* =========================
   OCR STATUS
========================= */

.ocr-status{
    display:none;

    padding:16px;

    border-radius:18px;

    font-size:14px;
    line-height:1.7;
    font-weight:600;
}

.ocr-status.loading,
.ocr-status.success,
.ocr-status.error{
    display:block;
}

.ocr-status.loading{
    background:#DBEAFE;
    color:#1D4ED8;
}

.ocr-status.success{
    background:#DCFCE7;
    color:#166534;
}

.ocr-status.error{
    background:#FEE2E2;
    color:#991B1B;
}

/* =========================
   IMAGES
========================= */

.receipt-image{
    width:100%;

    max-height:700px;

    object-fit:contain;

    border-radius:24px;

    margin-top:16px;

    background:#F1F5F9;
}

.preview-image{
    width:100%;

    max-height:320px;

    object-fit:cover;

    border-radius:24px;

    margin-top:10px;

    border:2px dashed #D1D5DB;
}

/* =========================
   ACTIONS
========================= */

.expense-actions{
    display:flex;
    flex-direction:column;

    gap:14px;

    margin:20px 0;
}

.expense-actions a{
    width:100%;

    display:flex;
    justify-content:center;
    align-items:center;

    min-height:58px;

    border-radius:20px;

    font-size:16px;
    font-weight:700;
}

.action-edit{
    background:#E2E8F0;
    color:#0F172A;
}

.action-delete{
    background:#FEE2E2;
    color:#DC2626;
}

/* =========================
   AUTH
========================= */

.auth-container{
    width:100%;
    max-width:430px;

    margin:0 auto;

    min-height:100vh;

    display:flex;
    flex-direction:column;
    justify-content:center;

    padding:24px;
}

.auth-container h1{
    color:#6BCB77;

    font-size:44px;
    font-weight:900;

    margin-bottom:10px;
}

.auth-container h2{
    font-size:28px;
    font-weight:800;

    margin-bottom:22px;
}

.auth-container p{
    margin-top:18px;

    text-align:center;

    color:#64748B;
}

.auth-container a{
    color:#6BCB77;
    font-weight:700;
}

/* =========================
   BOTTOM NAV
========================= */

.bottom-nav{
    position:fixed;

    bottom:18px;
    left:50%;

    transform:translateX(-50%);

    width:calc(100% - 28px);
    max-width:450px;

    background:rgba(255,255,255,0.92);

    backdrop-filter:blur(20px);

    border:1px solid rgba(255,255,255,0.4);

    border-radius:28px;

    padding:14px 10px;

    display:flex;
    justify-content:space-around;

    z-index:999;

    box-shadow:
        0 10px 35px rgba(15,23,42,0.08);
}

.bottom-nav a{
    display:flex;
    flex-direction:column;
    align-items:center;

    gap:6px;

    color:#94A3B8;

    font-size:12px;
    font-weight:700;

    transition:0.2s;
}

.bottom-nav a.active{
    color:#6BCB77;
}

/* =========================
   SPINNER
========================= */

.spinner{
    display:inline-block;

    width:16px;
    height:16px;

    border:3px solid rgba(255,255,255,0.35);
    border-top-color:white;

    border-radius:50%;

    animation:spin 0.8s linear infinite;

    margin-right:8px;

    vertical-align:middle;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:380px){

    .stats-grid{
        grid-template-columns:1fr;
    }

    .topbar h1{
        font-size:24px;
    }

    .balance-card h2{
        font-size:36px;
    }

    .auth-container h1{
        font-size:38px;
    }
}








/* =========================
   LANDING PAGE
========================= */

.landing-page{
    width:100%;
    min-height:100vh;
    background:
        radial-gradient(circle at top left, rgba(185,251,192,0.45), transparent 30%),
        radial-gradient(circle at top right, rgba(219,234,254,0.65), transparent 28%),
        #F8FAFC;
    color:#0F172A;
}

.landing-header{
    width:100%;
    max-width:1100px;
    margin:0 auto;
    padding:24px 22px;

    display:flex;
    align-items:center;
    justify-content:space-between;
}

.landing-logo{
    display:flex;
    align-items:center;
    gap:10px;

    font-size:22px;
    font-weight:900;
}

.landing-logo span{
    width:34px;
    height:34px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#6BCB77;
    color:white;

    border-radius:12px;

    font-size:14px;
}

.landing-login{
    background:white;
    color:#0F172A;

    padding:12px 18px;

    border-radius:999px;

    font-size:14px;
    font-weight:800;

    box-shadow:0 8px 25px rgba(15,23,42,0.06);
}

.landing-hero{
    width:100%;
    max-width:1100px;
    margin:0 auto;

    padding:50px 22px 40px;

    display:grid;
    grid-template-columns:1.1fr 0.9fr;
    gap:50px;
    align-items:center;
}

.landing-badge{
    display:inline-flex;
    align-items:center;

    background:white;
    color:#16A34A;

    padding:10px 14px;

    border-radius:999px;

    font-size:14px;
    font-weight:800;

    box-shadow:0 8px 25px rgba(15,23,42,0.05);

    margin-bottom:24px;
}

.landing-copy h1{
    font-size:58px;
    line-height:1.02;
    letter-spacing:-2px;
    font-weight:900;

    margin-bottom:24px;
}

.landing-copy p{
    max-width:560px;

    color:#64748B;

    font-size:19px;
    line-height:1.7;

    margin-bottom:30px;
}

.landing-actions{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
}

.landing-primary,
.landing-secondary{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:17px 22px;

    border-radius:18px;

    font-size:16px;
    font-weight:900;
}

.landing-primary{
    background:#6BCB77;
    color:white;

    box-shadow:0 12px 30px rgba(107,203,119,0.28);
}

.landing-secondary{
    background:white;
    color:#0F172A;

    box-shadow:0 8px 25px rgba(15,23,42,0.06);
}

.landing-phone{
    display:flex;
    justify-content:center;
}

.phone-mockup{
    width:310px;
    min-height:620px;

    background:#FFFFFF;

    border-radius:42px;

    padding:22px;

    box-shadow:
        0 30px 80px rgba(15,23,42,0.18);

    border:8px solid #0F172A;
}

.phone-top{
    display:flex;
    justify-content:center;

    margin-bottom:24px;
}

.phone-top span{
    width:80px;
    height:6px;

    background:#CBD5E1;

    border-radius:999px;
}

.phone-card.green{
    background:linear-gradient(135deg,#6BCB77,#7ED957);

    color:white;

    padding:24px;

    border-radius:28px;

    margin-bottom:18px;
}

.phone-card p{
    opacity:0.9;
    margin-bottom:8px;
}

.phone-card h2{
    font-size:34px;
    margin-bottom:8px;
}

.phone-card small{
    background:rgba(255,255,255,0.2);

    padding:8px 10px;

    border-radius:999px;

    display:inline-block;
}

.phone-button{
    background:#0F172A;
    color:white;

    padding:18px;

    border-radius:22px;

    text-align:center;

    font-weight:900;

    margin-bottom:18px;
}

.phone-list{
    background:#F8FAFC;

    border-radius:20px;

    padding:16px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:14px;
}

.phone-list strong{
    display:block;
    margin-bottom:5px;
}

.phone-list span{
    color:#94A3B8;
    font-size:13px;
}

.phone-list b{
    color:#6BCB77;
}

.phone-ai{
    background:#DBEAFE;
    color:#1D4ED8;

    padding:15px;

    border-radius:18px;

    text-align:center;

    font-weight:900;
}

.landing-features{
    width:100%;
    max-width:1100px;

    margin:0 auto;

    padding:40px 22px 70px;

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.feature-card{
    background:white;

    border-radius:28px;

    padding:28px;

    box-shadow:0 10px 30px rgba(15,23,42,0.05);
}

.feature-card span{
    font-size:32px;

    display:block;

    margin-bottom:18px;
}

.feature-card h3{
    font-size:21px;

    margin-bottom:12px;
}

.feature-card p{
    color:#64748B;
    line-height:1.6;
}

.landing-footer{
    text-align:center;

    color:#94A3B8;

    padding:30px 22px;
}

/* LANDING RESPONSIVE */

@media (max-width:850px){

    .landing-hero{
        grid-template-columns:1fr;
        padding-top:30px;
    }

    .landing-copy h1{
        font-size:42px;
        letter-spacing:-1px;
    }

    .landing-copy p{
        font-size:17px;
    }

    .landing-phone{
        margin-top:20px;
    }

    .landing-features{
        grid-template-columns:1fr;
    }
}

@media (max-width:420px){

    .landing-header{
        padding:20px;
    }

    .landing-logo{
        font-size:20px;
    }

    .landing-copy h1{
        font-size:38px;
    }

    .landing-actions{
        flex-direction:column;
    }

    .landing-primary,
    .landing-secondary{
        width:100%;
    }

    .phone-mockup{
        width:100%;
        max-width:320px;
        min-height:auto;
    }
}

/* =========================
   LANDING EXTRA
========================= */

.landing-mini-benefits{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;

    margin-bottom:30px;
}

.landing-mini-benefits div{
    background:white;

    padding:14px;

    border-radius:18px;

    font-size:14px;
    font-weight:700;

    box-shadow:0 8px 20px rgba(15,23,42,0.04);
}

.landing-problems,
.landing-how{
    width:100%;
    max-width:1100px;

    margin:0 auto;

    padding:20px 22px 60px;
}

.landing-section-title{
    margin-bottom:28px;
}

.landing-section-title span{
    color:#6BCB77;

    font-size:14px;
    font-weight:800;

    text-transform:uppercase;
}

.landing-section-title h2{
    font-size:40px;
    line-height:1.1;

    margin-top:10px;
}

.problem-grid,
.how-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.problem-card,
.how-card{
    background:white;

    border-radius:28px;

    padding:28px;

    box-shadow:0 10px 30px rgba(15,23,42,0.05);
}

.problem-card span{
    font-size:34px;

    display:block;

    margin-bottom:18px;
}

.problem-card h3,
.how-card h3{
    font-size:22px;

    margin-bottom:14px;
}

.problem-card p,
.how-card p{
    color:#64748B;

    line-height:1.7;
}

.how-number{
    width:48px;
    height:48px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#B9FBC0;
    color:#166534;

    border-radius:16px;

    font-size:18px;
    font-weight:900;

    margin-bottom:18px;
}

@media (max-width:850px){

    .landing-mini-benefits{
        grid-template-columns:1fr;
    }

    .problem-grid,
    .how-grid{
        grid-template-columns:1fr;
    }

    .landing-section-title h2{
        font-size:32px;
    }
}


/* =========================
   PREMIUM HERO
========================= */

body{
    font-family:'Plus Jakarta Sans', sans-serif;

    background:
    radial-gradient(circle at top left,
    rgba(107,203,119,0.16),
    transparent 30%),

    radial-gradient(circle at bottom right,
    rgba(22,101,52,0.08),
    transparent 30%),

    #F8FAF7;

    color:#0F172A;

    overflow-x:hidden;
}

.premium-hero{
    position:relative;

    width:100%;

    min-height:100vh;

    padding:40px 24px 80px;

    overflow:hidden;
}

.hero-content{
    width:100%;
    max-width:1280px;

    margin:0 auto;

    display:grid;
    grid-template-columns:1fr 1fr;

    align-items:center;

    gap:60px;
}

.hero-left{
    position:relative;
    z-index:2;
}

.hero-badge{
    display:inline-flex;

    align-items:center;

    padding:12px 18px;

    border-radius:999px;

    background:rgba(255,255,255,0.75);

    backdrop-filter:blur(14px);

    border:1px solid rgba(255,255,255,0.7);

    box-shadow:
    0 10px 30px rgba(15,23,42,0.05);

    font-size:14px;
    font-weight:700;

    margin-bottom:28px;

    color:#166534;
}

.hero-left h1{
    font-size:78px;

    line-height:0.95;

    letter-spacing:-4px;

    font-weight:800;

    margin-bottom:28px;
}

.hero-description{
    max-width:560px;

    font-size:21px;

    line-height:1.7;

    color:#64748B;

    margin-bottom:34px;
}

.hero-trust{
    display:grid;

    grid-template-columns:1fr 1fr;

    gap:14px;

    margin-bottom:42px;
}

.hero-trust div{
    background:rgba(255,255,255,0.72);

    backdrop-filter:blur(16px);

    border:1px solid rgba(255,255,255,0.7);

    padding:16px 18px;

    border-radius:18px;

    font-size:15px;
    font-weight:700;

    box-shadow:
    0 10px 40px rgba(15,23,42,0.04);
}

.hero-actions{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
}

.hero-primary{
    background:#6BCB77;

    color:white;

    padding:18px 28px;

    border-radius:18px;

    font-weight:800;

    text-decoration:none;

    box-shadow:
    0 20px 40px rgba(107,203,119,0.35);

    transition:0.25s ease;
}

.hero-primary:hover{
    transform:translateY(-2px);

    background:#5AB867;
}

.hero-secondary{
    background:rgba(255,255,255,0.75);

    color:#0F172A;

    padding:18px 28px;

    border-radius:18px;

    font-weight:800;

    text-decoration:none;

    backdrop-filter:blur(16px);

    border:1px solid rgba(255,255,255,0.7);

    transition:0.25s ease;
}

.hero-secondary:hover{
    transform:translateY(-2px);
}

.hero-right{
    position:relative;

    display:flex;
    justify-content:center;
}

.hero-image-wrapper{
    position:relative;

    z-index:2;
}

.hero-image{
    width:100%;
    max-width:760px;

    filter:
    drop-shadow(0 40px 90px rgba(15,23,42,0.18));
}

.hero-glow{
    position:absolute;

    border-radius:999px;

    filter:blur(90px);

    opacity:0.5;
}

.hero-glow-1{
    width:420px;
    height:420px;

    background:#6BCB77;

    top:-120px;
    left:-120px;
}

.hero-glow-2{
    width:500px;
    height:500px;

    background:#B9FBC0;

    right:-160px;
    bottom:-120px;
}

@media (max-width:980px){

    .hero-content{
        grid-template-columns:1fr;
    }

    .hero-left{
        order:2;

        text-align:center;
    }

    .hero-right{
        order:1;
    }

    .hero-left h1{
        font-size:58px;
    }

    .hero-description{
        margin:0 auto 34px;
    }

    .hero-trust{
        grid-template-columns:1fr;
    }

    .hero-actions{
        justify-content:center;
    }
}

@media (max-width:640px){

    .hero-left h1{
        font-size:44px;

        letter-spacing:-2px;
    }

    .hero-description{
        font-size:18px;
    }

    .hero-image{
        max-width:100%;
    }

    .hero-primary,
    .hero-secondary{
        width:100%;

        text-align:center;
    }
}


.hero-description strong{
    color:#166534;
    font-weight:800;
}




/* =========================
   CAMERA FIRST UX
========================= */

.camera-launch{

    background:white;

    border-radius:28px;

    padding:40px 24px;

    text-align:center;

    margin-bottom:24px;

    box-shadow:
    0 10px 40px rgba(15,23,42,0.05);
}

.camera-button{

    width:100%;

    border:none;

    background:
    linear-gradient(
        135deg,
        #6BCB77,
        #57B96A
    );

    color:white;

    font-size:20px;

    font-weight:800;

    padding:22px;

    border-radius:22px;

    cursor:pointer;

    box-shadow:
    0 20px 40px rgba(107,203,119,0.30);

    transition:0.25s ease;
}

.camera-button:hover{

    transform:translateY(-2px);
}

.camera-helper{

    margin-top:18px;

    color:#64748B;

    font-size:15px;
}
.hidden-camera-input{
    position:absolute;
    width:1px;
    height:1px;
    opacity:0;
    overflow:hidden;
    pointer-events:none;
}

.camera-button{
    display:flex;
    align-items:center;
    justify-content:center;
}





