:root{
    --primary:#ff7a00;
    --secondary:#ffb347;
    --bg:#fffaf5;
    --card:#ffffff;
    --text:#1f2937;
    --muted:#6b7280;
    --border:#f3e8dc;
    --soft:#fff3e6;

    --shadow:
        0 14px 36px rgba(255,122,0,.13);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    -webkit-tap-highlight-color:transparent;
}

html,
body{
    width:100%;
    min-height:100%;
}

body{
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255,122,0,.13), transparent 34%),
        linear-gradient(135deg,#fff7ed 0%,#ffffff 46%,#fff1e6 100%);
    color:var(--text);
    padding-bottom:env(safe-area-inset-bottom);
}

/*
|--------------------------------------------------------------------------
| App Shell
|--------------------------------------------------------------------------
*/

.app-shell{
    width:100%;
    min-height:100vh;
}

/*
|--------------------------------------------------------------------------
| Auth
|--------------------------------------------------------------------------
*/

.auth-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.auth-page .card{
    width:100%;
    max-width:420px;
    background:rgba(255,255,255,.9);
    backdrop-filter:blur(18px);
    border-radius:32px;
    padding:32px 24px;
    border:1px solid rgba(255,255,255,.85);
    box-shadow:var(--shadow);
}

.card h1{
    font-size:42px;
    line-height:1.1;
    margin-bottom:24px;
    color:var(--text);
    font-weight:800;
}

.card input{
    width:100%;
    border:none;
    background:#fff;
    padding:18px;
    border-radius:18px;
    margin-top:14px;
    font-size:16px;
    border:1px solid #f1f1f1;
    outline:none;
}

.card input:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(255,122,0,.12);
}

.card button{
    width:100%;
    border:none;
    padding:18px;
    border-radius:18px;
    margin-top:18px;
    font-size:16px;
    font-weight:800;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    cursor:pointer;
    box-shadow:0 12px 24px rgba(255,122,0,.25);
    transition:.22s ease;
}

.card button:hover{
    transform:translateY(-2px);
}

.auth-link{
    margin-top:20px;
    text-align:center;
}

.auth-link a{
    color:var(--primary);
    font-weight:800;
    text-decoration:none;
}

/*
|--------------------------------------------------------------------------
| Mobile App Dashboard
|--------------------------------------------------------------------------
*/

.mobile-app{
    max-width:480px;
    min-height:100vh;
    margin:0 auto;
    padding:28px 18px 118px;
}

.app-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:22px;
}

.eyebrow{
    color:var(--primary);
    font-weight:900;
    font-size:13px;
    margin-bottom:4px;
}

.app-header h1{
    font-size:26px;
    line-height:1.2;
    letter-spacing:-.4px;
}

.avatar{
    width:56px;
    height:56px;
    border-radius:20px;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    font-weight:900;
    box-shadow:0 14px 28px rgba(255,122,0,.28);
}

.user-card,
.section-card,
.mini-card,
.hero-card{
    background:rgba(255,255,255,.94);
    border:1px solid rgba(243,232,220,.95);
    box-shadow:var(--shadow);
    transition:.25s ease;
}

.user-card,
.section-card{
    border-radius:28px;
    padding:22px;
    margin-bottom:18px;
}

.user-card{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.muted{
    color:var(--muted);
    font-size:14px;
}

.badge{
    background:var(--soft);
    color:var(--primary);
    border-radius:999px;
    padding:8px 14px;
    font-size:13px;
    font-weight:900;
}

.grid-cards{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin-bottom:18px;
}

.mini-card{
    border-radius:26px;
    padding:20px;
}

.mini-card:active{
    transform:scale(.97);
}

.mini-card:hover{
    transform:translateY(-3px);
}

.mini-card span{
    font-size:30px;
}

.mini-card h3{
    margin-top:12px;
    font-size:17px;
}

.mini-card p{
    color:var(--muted);
    margin-top:4px;
    font-size:14px;
}

.task-item{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:14px;
}

.task-item span{
    width:30px;
    height:30px;
    border-radius:12px;
    background:var(--soft);
    color:var(--primary);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
}

/*
|--------------------------------------------------------------------------
| Bottom Navigation
|--------------------------------------------------------------------------
*/

.bottom-nav{
    position:fixed;
    left:16px;
    right:16px;
    bottom:16px;
    max-width:460px;
    margin:0 auto;
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(20px);
    border-radius:28px;
    display:flex;
    justify-content:space-around;
    align-items:center;
    padding:18px 12px;
    border:1px solid rgba(255,255,255,.86);
    box-shadow:0 18px 42px rgba(0,0,0,.09);
    z-index:999;
}

.bottom-nav a{
    text-decoration:none;
    color:var(--text);
    font-size:14px;
    font-weight:800;
}

.bottom-nav a.active{
    color:var(--primary);
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media(max-width:768px){
    .card h1{
        font-size:36px;
    }

    .app-header h1{
        font-size:25px;
    }
}

@media(max-width:380px){
    .mobile-app{
        padding-left:14px;
        padding-right:14px;
    }

    .bottom-nav a{
        font-size:13px;
    }
}

/*
|--------------------------------------------------------------------------
| Hero Banner
|--------------------------------------------------------------------------
*/

.hero-banner{
    position:relative;

    overflow:hidden;

    border-radius:34px;

    padding:28px;

    margin-bottom:18px;

    background:
        linear-gradient(
            135deg,
            #ff7a00,
            #ffb347
        );

    color:#fff;

    box-shadow:
        0 18px 45px rgba(255,122,0,.22);
}

.hero-banner::before{
    content:'';

    position:absolute;

    width:180px;
    height:180px;

    border-radius:50%;

    background:rgba(255,255,255,.14);

    right:-60px;
    top:-60px;
}

.hero-banner::after{
    content:'';

    position:absolute;

    width:120px;
    height:120px;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    left:-30px;
    bottom:-30px;
}

.hero-content{
    position:relative;
    z-index:2;
}

.hero-pill{
    display:inline-flex;

    align-items:center;
    gap:6px;

    padding:8px 14px;

    border-radius:999px;

    background:rgba(255,255,255,.18);

    font-size:13px;
    font-weight:800;

    margin-bottom:16px;
}

.hero-banner h2{
    font-size:32px;
    line-height:1.2;
    margin-bottom:12px;
}

.hero-banner p{
    font-size:15px;
    line-height:1.6;
    opacity:.95;
}

/*
|--------------------------------------------------------------------------
| Mini Icon
|--------------------------------------------------------------------------
*/

.mini-icon{
    width:54px;
    height:54px;

    border-radius:18px;

    background:#fff3e6;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:26px;

    margin-bottom:14px;
}

/*
|--------------------------------------------------------------------------
| Section Header
|--------------------------------------------------------------------------
*/

.section-title{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:10px;
}

.section-title span{
    color:var(--primary);

    font-size:13px;
    font-weight:800;
}

/*
|--------------------------------------------------------------------------
| Phase 1.2A Native App Upgrade
|--------------------------------------------------------------------------
*/

.sticky-header{
    position:sticky;
    top:0;
    z-index:50;
    padding-top:8px;
    background:linear-gradient(
        180deg,
        rgba(255,250,245,.96),
        rgba(255,250,245,.72),
        transparent
    );
    backdrop-filter:blur(10px);
}

.header-actions{
    display:flex;
    align-items:center;
    gap:12px;
}

.notify-btn{
    position:relative;
    width:48px;
    height:48px;
    border:none;
    border-radius:18px;
    background:#fff;
    box-shadow:var(--shadow);
    font-size:20px;
    cursor:pointer;
}

.notify-btn span{
    position:absolute;
    top:10px;
    right:10px;
    width:9px;
    height:9px;
    border-radius:50%;
    background:#ef4444;
    border:2px solid #fff;
}

.stats-row{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    margin-bottom:18px;
}

.stat-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:22px;
    padding:16px 10px;
    text-align:center;
    box-shadow:var(--shadow);
}

.stat-card strong{
    display:block;
    font-size:24px;
    color:var(--primary);
    line-height:1;
}

.stat-card span{
    display:block;
    margin-top:6px;
    font-size:13px;
    color:var(--muted);
    font-weight:700;
}

.grid-cards a{
    color:inherit;
    text-decoration:none;
}

.fab{
    position:fixed;
    right:26px;
    bottom:96px;
    width:62px;
    height:62px;
    border-radius:24px;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    font-weight:700;
    text-decoration:none;
    box-shadow:0 18px 36px rgba(255,122,0,.34);
    z-index:998;
    transition:.22s ease;
}

.fab:active{
    transform:scale(.94);
}

.native-nav{
    gap:4px;
}

.native-nav a{
    min-width:58px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:4px;
    padding:8px 8px;
    border-radius:18px;
    font-size:12px;
    transition:.22s ease;
}

.native-nav a span{
    font-size:18px;
    line-height:1;
}

.native-nav a.active{
    background:#fff3e6;
    color:var(--primary);
}

.app-fade-up{
    animation:fadeUp .45s ease both;
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(12px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media(max-width:380px){
    .native-nav a{
        min-width:auto;
        font-size:11px;
        padding:8px 6px;
    }

    .fab{
        right:20px;
        bottom:92px;
    }
}

/*
|--------------------------------------------------------------------------
| Progress
|--------------------------------------------------------------------------
*/

.progress-wrap{
    margin-top:16px;
}

.progress-bar{
    width:100%;
    height:12px;
    border-radius:999px;
    background:#f4ede6;
    overflow:hidden;
}

.progress-fill{
    width:68%;
    height:100%;

    border-radius:999px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    animation:progressMove 1s ease;
}

@keyframes progressMove{
    from{
        width:0;
    }

    to{
        width:68%;
    }
}

.progress-text{
    margin-top:12px;
    color:var(--muted);
    font-size:14px;
}

/*
|--------------------------------------------------------------------------
| Activity Feed
|--------------------------------------------------------------------------
*/

.feed-item{
    display:flex;
    gap:14px;
    align-items:flex-start;
    margin-top:18px;
}

.feed-dot{
    width:14px;
    height:14px;
    border-radius:50%;
    background:#22c55e;
    margin-top:4px;

    box-shadow:
        0 0 0 6px rgba(34,197,94,.12);
}

.feed-dot.orange{
    background:#ff7a00;

    box-shadow:
        0 0 0 6px rgba(255,122,0,.12);
}

.feed-dot.blue{
    background:#3b82f6;

    box-shadow:
        0 0 0 6px rgba(59,130,246,.12);
}

.feed-item strong{
    display:block;
    margin-bottom:4px;
}

.feed-item p{
    color:var(--muted);
    font-size:14px;
}

/*
|--------------------------------------------------------------------------
| Native Card Interaction
|--------------------------------------------------------------------------
*/

.mini-card,
.section-card,
.stat-card,
.user-card{
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.mini-card:hover,
.section-card:hover,
.stat-card:hover{
    transform:translateY(-4px);

    box-shadow:
        0 20px 40px rgba(0,0,0,.08);
}

.mini-card:active{
    transform:scale(.97);
}

/*
|--------------------------------------------------------------------------
| Phase 1.3 Native App Polish
|--------------------------------------------------------------------------
*/

.hero-banner{
    margin-top:12px;
}

.grid-cards{
    margin-top:6px;
}

.mobile-app{
    padding-top:22px;
}

.sticky-header{
    margin-bottom:14px;
}

.native-nav{
    padding:12px;
}

.native-nav a{
    position:relative;
}

.native-nav a.active{
    background:linear-gradient(135deg,#fff3e6,#fff8f0);
    box-shadow:inset 0 0 0 1px rgba(255,122,0,.08);
}

.native-nav a.active::after{
    content:'';
    position:absolute;
    bottom:4px;
    width:18px;
    height:3px;
    border-radius:999px;
    background:var(--primary);
}

.fab{
    border:4px solid rgba(255,255,255,.9);
}

.fab::after{
    content:'';
    position:absolute;
    inset:-10px;
    border-radius:30px;
    background:rgba(255,122,0,.16);
    z-index:-1;
}

.quick-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin-bottom:18px;
}

.quick-action{
    background:linear-gradient(135deg,#ffffff,#fff7ed);
    border:1px solid var(--border);
    border-radius:26px;
    padding:18px;
    box-shadow:var(--shadow);
    text-decoration:none;
    color:var(--text);
    transition:.22s ease;
}

.quick-action:active{
    transform:scale(.97);
}

.quick-action span{
    display:flex;
    width:46px;
    height:46px;
    border-radius:16px;
    align-items:center;
    justify-content:center;
    background:#fff3e6;
    font-size:24px;
    margin-bottom:12px;
}

.quick-action strong{
    display:block;
    font-size:16px;
}

.quick-action small{
    display:block;
    margin-top:4px;
    color:var(--muted);
    font-weight:600;
}

/*
|--------------------------------------------------------------------------
| Invite Box
|--------------------------------------------------------------------------
*/

.invite-box{
    display:flex;
    gap:10px;
    margin-top:14px;
}

.invite-box input{
    flex:1;
    min-width:0;
    border:none;
    outline:none;
    background:#fff7ed;
    border:1px solid var(--border);
    border-radius:18px;
    padding:14px;
    font-size:14px;
    color:var(--text);
}

.invite-box button{
    border:none;
    border-radius:18px;
    padding:0 16px;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 10px 22px rgba(255,122,0,.22);
}

/*
|--------------------------------------------------------------------------
| Invite Register Page
|--------------------------------------------------------------------------
*/

.invite-register-card{
    text-align:center;
}

.invite-header{
    margin-bottom:20px;
}

.invite-avatar{
    width:74px;
    height:74px;
    margin:0 auto 16px;

    border-radius:26px;

    background:linear-gradient(135deg,var(--primary),var(--secondary));

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:32px;
    font-weight:900;

    box-shadow:0 16px 34px rgba(255,122,0,.28);
}

.invite-subtitle{
    color:var(--muted);
    margin-top:-12px;
    margin-bottom:12px;
}

.invite-subtitle strong{
    color:var(--primary);
}

/*
|--------------------------------------------------------------------------
| Phase 2.1C Invite Landing Page
|--------------------------------------------------------------------------
*/

.invite-landing{
    max-width:480px;
    margin:0 auto;
    min-height:100vh;
    padding:26px 18px 40px;
}

.invite-hero{
    text-align:center;
    background:
        linear-gradient(135deg,#ffffff,#fff7ed);
    border:1px solid var(--border);
    border-radius:34px;
    padding:34px 24px;
    box-shadow:var(--shadow);
    margin-bottom:18px;
}

.invite-hero h1{
    font-size:36px;
    line-height:1.18;
    margin:14px 0 12px;
    letter-spacing:-.6px;
}

.invite-cta-row{
    margin-top:24px;
}

.primary-cta{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    padding:18px;
    border-radius:20px;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    text-decoration:none;
    font-weight:900;
    box-shadow:0 14px 30px rgba(255,122,0,.28);
}

.invite-section{
    background:#fff;
    border:1px solid var(--border);
    border-radius:30px;
    padding:24px;
    margin-bottom:18px;
    box-shadow:var(--shadow);
}

.invite-section h2{
    font-size:22px;
    margin-bottom:16px;
}

.benefit-list{
    display:grid;
    gap:14px;
}

.benefit-card{
    display:flex;
    gap:14px;
    align-items:flex-start;
    padding:16px;
    border-radius:22px;
    background:#fff7ed;
}

.benefit-card span{
    font-size:28px;
}

.benefit-card h3{
    font-size:17px;
    margin-bottom:4px;
}

.benefit-card p,
.form-note{
    color:var(--muted);
    font-size:14px;
    line-height:1.6;
}

.form-section input{
    width:100%;
    border:none;
    outline:none;
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    padding:17px;
    margin-top:14px;
    font-size:16px;
}

.form-section input:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(255,122,0,.12);
}

.form-section button{
    width:100%;
    border:none;
    margin-top:18px;
    padding:18px;
    border-radius:18px;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    font-size:16px;
    font-weight:900;
    box-shadow:0 14px 30px rgba(255,122,0,.25);
}