:root {
    --p-50: #f0fdf4;
    --p-100: #dcfce7;
    --p-500: #22c55e;
    --p-600: #16a34a;
    --p-700: #15803d;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --radius: 14px;
    --radius-lg: 18px;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; -webkit-tap-highlight-color: transparent; }

body { background: var(--bg-light); color: var(--text-dark); overflow: hidden; height: 100dvh; }

/* ── Splash ────────────────────── */
.splash-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: white;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}
.splash-content { text-align: center; }
.splash-logo { font-size: 4rem; color: var(--p-500); animation: pulse 1.5s ease-in-out infinite; margin-bottom: 1rem; }
.animate-text {
    font-size: 2rem; font-weight: 800;
    background: linear-gradient(135deg, var(--p-700), var(--p-500));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: fadeUp 0.8s ease-out;
}
.loader {
    width: 36px; height: 36px; margin: 1.5rem auto 0;
    border: 3px solid var(--p-100); border-top-color: var(--p-500);
    border-radius: 50%; animation: spin 1s linear infinite;
}

/* ── Screens ───────────────────── */
.screen { position: fixed; inset: 0; display: none; background: var(--bg-light); flex-direction: column; overflow-y: auto; overflow-x: hidden; }
.screen.active { display: flex; }

/* ── Onboarding ────────────────── */
.onboarding-content {
    min-height: 100dvh; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 2rem 1.5rem; text-align: center;
}
.logo-sm { font-size: 3rem; color: var(--p-500); margin-bottom: 1.5rem; }
.onboarding-content h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.onboarding-content > p { color: var(--text-muted); margin-bottom: 2rem; }

.lang-options { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 0.9rem; }
.btn-onboard {
    padding: 0.95rem 1.5rem;
    background: white; border: 1.5px solid #e2e8f0; border-radius: var(--radius);
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; gap: 12px; justify-content: center;
}
.btn-onboard:hover { border-color: var(--p-500); background: var(--p-50); color: var(--p-700); }
.btn-onboard img { border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.btn-onboard:active { transform: scale(0.97); }

.role-options { display: flex; gap: 1rem; width: 100%; max-width: 400px; }
.role-card {
    flex: 1; background: white; padding: 1.5rem 1rem; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); border: 1.5px solid transparent; cursor: pointer;
    transition: all 0.2s;
}
.role-card:hover { border-color: var(--p-500); transform: translateY(-5px); }
.role-icon { font-size: 2rem; color: var(--p-500); margin-bottom: 1rem; }
.role-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.role-card p { font-size: 0.75rem; color: var(--text-muted); }

/* ── App Chrome ────────────────── */
.app-header {
    background: white; padding: 1rem 1.25rem;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #f1f5f9; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    flex-shrink: 0; z-index: 100;
}
.header-brand { display: flex; align-items: center; gap: 10px; }
.header-brand i { font-size: 1.4rem; color: var(--p-500); }
.header-brand span { font-size: 1.15rem; font-weight: 800; color: var(--text-dark); }
.header-icons i { font-size: 1.25rem; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.header-icons i:hover { color: var(--p-600); }

#content-area { 
    flex-grow: 1; overflow-y: auto; 
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px; 
}

.bottom-nav {
    background: white; display: flex; justify-content: space-around; align-items: center;
    padding: 0.65rem 0.5rem calc(0.85rem + env(safe-area-inset-bottom));
    border-top: 1px solid #f1f5f9; box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
    flex-shrink: 0; z-index: 100;
}
.nav-item { display: flex; flex-direction: column; align-items: center; color: var(--text-muted); font-size: 0.7rem; cursor: pointer; gap: 3px; flex: 1; }
.nav-item i { font-size: 1.2rem; }
.nav-item.active { color: var(--p-600); }

.form-container { width: 100%; max-width: 400px; margin: 0 auto; }
.input-group { margin-bottom: 1.25rem; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
.input-group input {
    width: 100%; padding: 1rem; border: 1.5px solid #e2e8f0; border-radius: var(--radius);
    font-size: 1rem; background: white; transition: all 0.2s; outline: none;
}
.input-group input:focus { border-color: var(--p-500); box-shadow: 0 0 0 4px var(--p-50); }

.payment-notice { 
    display: flex; align-items: flex-start; gap: 12px;
    background: var(--p-50); padding: 1.25rem; border-radius: var(--radius);
    border-left: 5px solid var(--p-500); margin-bottom: 2rem;
}
.payment-notice i { font-size: 1.25rem; margin-top: 2px; }

/* ── Dashboard Stats ───────────── */
.p-4 { padding: 1rem; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: white; padding: 1.25rem; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.stat-card i { font-size: 1.75rem; margin-bottom: 0.5rem; display: block; color: var(--p-600); }
.stat-val { font-size: 1.6rem; font-weight: 800; display: block; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

/* ── Category Grid ─────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-card {
    padding: 1.25rem 1rem; border-radius: var(--radius);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    box-shadow: var(--shadow); text-align: center; font-weight: 600;
    font-size: 0.85rem; cursor: pointer; transition: transform 0.15s;
    background: white;
}
.cat-card:active { transform: scale(0.96); }
.cat-card i { font-size: 1.75rem; }
.cat-card.small { padding: 1rem 0.75rem; }

/* ── List Views ────────────────── */
.section-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.list-view { display: flex; flex-direction: column; gap: 10px; }
.list-item {
    background: white; padding: 1rem; border-radius: var(--radius);
    display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
}
.list-item i { font-size: 1.25rem; color: var(--p-500); }
.item-info h4 { font-size: 0.95rem; font-weight: 600; }
.item-info p { font-size: 0.8rem; color: var(--text-muted); }

/* ── Animations ────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ── Desktop & Tablet Centering ─────────── */
@media (min-width: 768px) {
    body { 
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); 
        overflow: auto; 
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100dvh;
        padding: 20px;
    }
    #app-container {
        width: 100%;
        max-width: 450px;
        height: 90vh;
        background: white;
        position: relative;
        border-radius: 40px;
        overflow: hidden;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        border: 8px solid #1e293b;
    }
    .splash-screen, .screen { 
        position: absolute;
        width: 100%;
        height: 100%;
    }
    .bottom-nav, .app-header { 
        position: absolute;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .grid-2 { gap: 8px; }
    .cat-card { padding: 1rem 0.5rem; }
    .btn-onboard { padding: 0.8rem 1rem; font-size: 0.9rem; }
    .stats-grid { gap: 0.75rem; }
    .stat-card { padding: 1rem 0.5rem; }
    .app-header { padding: 0.75rem 1rem; }
}

/* Content area padding to clear bottom nav */
#content-area { padding-bottom: 90px !important; }

/* ── Interactive Elements ────────── */
.btn-action {
    width: 100%; margin-top: 1rem; padding: 1.1rem;
    background: linear-gradient(135deg, var(--p-600), var(--p-500));
    color: white; border: none; border-radius: var(--radius);
    font-weight: 700; font-size: 1rem; cursor: pointer;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-action:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4); }

.btn-onboard, .role-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-action:active, .btn-onboard:active, .role-card:active {
    transform: scale(0.95);
}



/* ── Price Options ───────────── */
.price-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}
.price-card {
    background: white;
    padding: 1.25rem 1rem;
    border-radius: var(--radius);
    border: 2px solid #f1f5f9;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.price-card.active {
    border-color: var(--p-500);
    background: var(--p-50);
    transform: scale(1.05);
}
.price-card h4 { font-size: 0.9rem; margin-bottom: 5px; }
.price-card p { font-size: 0.8rem; font-weight: 700; color: var(--p-700); }

/* ── Profile View Update ────────── */
.profile-view { padding: 1.5rem; }
.avatar-wrap { text-align: center; margin-bottom: 2rem; }
.avatar-circle {
    width: 80px; height: 80px; background: var(--p-100);
    border-radius: 50%; margin: 0 auto 1rem; display: flex;
    align-items: center; justify-content: center; font-size: 2rem; color: var(--p-600);
}
.avatar-wrap h3 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.avatar-wrap p { color: var(--text-muted); font-size: 0.9rem; }

.menu-list { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.menu-item {
    display: flex; align-items: center; gap: 14px; padding: 1rem 1.25rem;
    border-bottom: 1px solid #f8fafc; cursor: pointer; font-size: 0.95rem; transition: background 0.15s;
}
.menu-item:hover { background: var(--p-50); }
.menu-item.danger { color: #dc2626; }

/* ── Textarea styling ─────────── */
textarea {
    width: 100%; min-height: 100px; padding: 1rem;
    border: 1.5px solid #e2e8f0; border-radius: var(--radius);
    font-size: 1rem; background: white; outline: none;
    font-family: inherit; resize: none;
}
textarea:focus { border-color: var(--p-500); box-shadow: 0 0 0 4px var(--p-50); }

/* ── New Stats & Dashboard ── */
.demand-card { background: white; padding: 1.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.demand-item { margin-bottom: 1.25rem; }
.demand-item:last-child { margin-bottom: 0; }
.demand-item span { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.bar-wrap { width: 100%; height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.bar { height: 100%; background: linear-gradient(90deg, var(--p-500), #10b981); border-radius: 4px; }

.request-item { background: white; padding: 1.25rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 1rem; border: 1px solid #f1f5f9; }
.req-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.req-user { font-weight: 700; font-size: 0.9rem; color: var(--p-700); }
.req-time { font-size: 0.75rem; color: var(--text-muted); }
.req-msg { font-size: 0.9rem; line-height: 1.5; margin-bottom: 10px; }
.req-tag { font-size: 0.7rem; font-weight: 700; background: var(--p-50); color: var(--p-600); padding: 4px 8px; border-radius: 6px; }

.dash-ad-card { background: white; padding: 1.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.dash-ad-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }
.badge.active { background: #dcfce7; color: #15803d; }
.dash-ad-progress { margin-bottom: 1rem; }
.prog-label { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.prog-bar-wrap { width: 100%; height: 10px; background: #f1f5f9; border-radius: 5px; overflow: hidden; }
.prog-bar { height: 100%; background: var(--p-600); border-radius: 5px; }
.dash-ad-footer { display: flex; gap: 1.5rem; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.dash-ad-footer i { color: var(--p-500); }

.graph-container { display: flex; align-items: flex-end; justify-content: space-between; height: 160px; background: white; padding: 1.5rem 1rem 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.graph-bar { width: 28px; background: var(--p-500); border-radius: 4px 4px 0 0; position: relative; transition: height 0.5s ease; }
.graph-bar span { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font-size: 0.75rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }

/* ── Elon Type Grid ── */
.elon-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.elon-type-btn { background: white; padding: 2rem 1rem; border-radius: 20px; border: 1.5px solid #f1f5f9; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer; transition: all 0.3s; }
.elon-type-btn:hover { border-color: var(--p-500); transform: translateY(-5px); }
.elon-type-btn i { font-size: 2.5rem; color: var(--p-600); }
.elon-type-btn span { font-weight: 800; font-size: 0.95rem; }

/* ── Redesigned Profile/Resume ── */
.profile-resume-sketch { background: white; border-radius: 24px; box-shadow: var(--shadow-md); min-height: 100%; }
.res-header { display: flex; gap: 1.5rem; align-items: center; border-bottom: 2px solid #f1f5f9; padding-bottom: 1.5rem; }
.res-photo { width: 100px; height: 120px; background: #f8fafc; border: 3px solid #e2e8f0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #94a3b8; overflow: hidden; }
.res-photo i { font-size: 3.5rem; }
.res-main-info { flex: 1; }
.res-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 5px; }
.res-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.res-profession-box { display: inline-block; padding: 6px 12px; background: var(--p-50); color: var(--p-700); border-radius: 8px; font-size: 0.8rem; font-weight: 700; border: 1px solid var(--p-100); }

.res-meta-row { display: flex; gap: 1rem; }
.res-meta-item { flex: 1; background: #f8fafc; padding: 10px; border-radius: 12px; border: 1px solid #f1f5f9; text-align: center; }
.res-meta-item span { display: block; font-size: 0.65rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 2px; }
.res-meta-item b { font-size: 0.95rem; color: var(--text-dark); }

.res-grid-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; }
.res-box { background: #f8fafc; padding: 1.25rem; border-radius: 16px; border: 1px solid #f1f5f9; height: 100%; }
.res-box h4 { font-size: 0.85rem; font-weight: 800; margin-bottom: 10px; color: var(--p-700); text-transform: uppercase; }
.cert-item { font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.cert-item i { color: #f59e0b; }
.res-about-text { font-size: 0.85rem; line-height: 1.6; color: #475569; }

.res-footer h4 { font-size: 0.85rem; font-weight: 800; margin-bottom: 12px; text-transform: uppercase; color: var(--text-muted); }
.res-social-row { display: flex; gap: 12px; }
.social-link { width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: white; text-decoration: none; transition: transform 0.2s; }
.social-link:active { transform: scale(0.9); }
.social-link.tg { background: #0088cc; }
.social-link.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-link.ph { background: var(--p-600); }

/* ── Form Sketch ── */
.form-sketch .input-group { margin-bottom: 1.25rem; }
.form-sketch label { font-size: 0.8rem; font-weight: 800; color: var(--p-700); text-transform: uppercase; margin-bottom: 8px; display: block; }
.form-sketch input, .form-sketch select, .form-sketch textarea { width: 100%; padding: 12px 15px; border-radius: 12px; border: 2px solid #f1f5f9; background: #f8fafc; font-family: inherit; font-size: 0.95rem; outline: none; }
.form-sketch input:focus, .form-sketch select:focus, .form-sketch textarea:focus { border-color: var(--p-500); background: white; }

/* ── Sub-screen Overlay ────────── */
.sub-screen-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: var(--bg-light);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sub-screen-overlay.active { transform: translateX(0); }
.sub-screen-overlay.fade-out { transform: translateX(100%); }
.sub-content { padding-bottom: 120px;  flex: 1; overflow-y: auto; padding-bottom: 30px; }
.btn-icon-only { background: none; border: none; font-size: 1.25rem; color: var(--text-dark); cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade { animation: fadeIn 0.4s ease-out; }
/* ── Profile Enhancements ── */
.profile-menu-container { padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.profile-main-card {
    background: white; padding: 1.25rem; border-radius: 20px;
    display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow);
    margin-bottom: 0.5rem;
}
.profile-main-avatar {
    width: 60px; height: 60px; background: var(--p-100);
    border-radius: 15px; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--p-600);
}
.profile-main-info h3 { font-size: 1.1rem; font-weight: 700; }
.profile-main-info p { font-size: 0.8rem; color: var(--text-muted); }

.menu-group { background: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.menu-btn {
    width: 100%; padding: 1.1rem 1.25rem; background: none; border: none;
    display: flex; align-items: center; gap: 14px; cursor: pointer;
    border-bottom: 1px solid #f1f5f9; transition: all 0.2s;
    text-align: left; font-size: 0.95rem; font-weight: 600; color: var(--text-dark);
}
.menu-btn:last-child { border-bottom: none; }
.menu-btn:active { background: #f8fafc; }
.menu-btn i { font-size: 1.2rem; width: 24px; text-align: center; }
.menu-btn .btn-arrow { margin-left: auto; font-size: 0.8rem; color: #cbd5e1; }
.menu-btn.premium i { color: #f59e0b; }
.menu-btn.wallet i { color: #3b82f6; }
.menu-btn.lang i { color: #10b981; }
.menu-btn.support i { color: #8b5cf6; }

/* ── Premium Resume Redesign (Photo Left) ── */
.premium-resume-container { padding: 1.5rem; }
.premium-resume-card {
    background: white; border-radius: 30px; padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid #f1f5f9; position: relative; overflow: hidden;
}
.premium-resume-card::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 150px; height: 150px;
    background: radial-gradient(circle, var(--p-100) 0%, transparent 70%);
    opacity: 0.5; z-index: 0;
}
.pres-header { display: flex; gap: 1.5rem; align-items: center; position: relative; z-index: 1; margin-bottom: 2rem; }
.pres-photo {
    width: 110px; height: 130px; background: #f8fafc; border: 3px solid #f1f5f9;
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: #94a3b8; box-shadow: var(--shadow);
}
.pres-main { flex: 1; }
.pres-name { font-size: 1.4rem; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.pres-badge {
    display: inline-block; padding: 4px 12px; background: var(--p-50);
    color: var(--p-700); border-radius: 10px; font-size: 0.75rem; font-weight: 800;
    text-transform: uppercase; margin-bottom: 10px; border: 1px solid var(--p-100);
}
.pres-loc { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }

.pres-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 1; margin-bottom: 2rem; }
.pres-item { background: #f8fafc; padding: 12px; border-radius: 15px; border: 1px solid #f1f5f9; }
.pres-item span { display: block; font-size: 0.65rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; margin-bottom: 2px; }
.pres-item b { font-size: 0.95rem; color: var(--text-dark); }

.pres-bio { margin-bottom: 2rem; position: relative; z-index: 1; }
.pres-bio h4 { font-size: 0.85rem; font-weight: 800; color: var(--p-700); text-transform: uppercase; margin-bottom: 8px; }
.pres-bio p { font-size: 0.9rem; line-height: 1.6; color: #475569; }

.pres-contact { position: relative; z-index: 1; }
.pres-contact h4 { font-size: 0.85rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; margin-bottom: 12px; }
.pres-socials { display: flex; gap: 12px; }
.pres-social-link {
    width: 45px; height: 45px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; font-size: 1.2rem;
    color: white; text-decoration: none; transition: transform 0.2s;
}
.pres-social-link:active { transform: scale(0.9); }
.pres-social-link.tg { background: #0088cc; }
.pres-social-link.ph { background: var(--p-600); }
.pres-social-link.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

/* ── Sticky Layout Fix ── */
@media (max-width: 767px) {
    .screen.active { height: 100dvh; height: 100dvh; }
    #content-area { padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important; }
    .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; }
}

/* ── Wallet & Payments ── */
.wallet-balance {
    background: linear-gradient(135deg, var(--p-600), var(--p-500));
    padding: 2rem; border-radius: 24px; color: white; text-align: center;
    margin-bottom: 1.5rem; box-shadow: 0 10px 20px rgba(22, 163, 74, 0.2);
}
.wallet-balance h2 { font-size: 2rem; font-weight: 800; margin-top: 5px; }
.payment-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pay-btn {
    padding: 1.25rem; border-radius: 16px; border: 2px solid #f1f5f9;
    background: white; display: flex; align-items: center; justify-content: space-between;
    font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.pay-btn:active { transform: scale(0.98); border-color: var(--p-500); }
.pay-logo { height: 24px; }
.pay-btn.payme { border-left: 5px solid #00b9d3; }
.pay-btn.click { border-left: 5px solid #00aef0; }
.pay-btn.uzum { border-left: 5px solid #7f4cff; }

/* ── Language List ── */
.lang-list { display: flex; flex-direction: column; gap: 10px; }
.lang-item {
    padding: 1.1rem; background: white; border-radius: 16px;
    display: flex; align-items: center; gap: 12px; font-weight: 600;
    cursor: pointer; box-shadow: var(--shadow);
}
.lang-item.active { border: 2px solid var(--p-500); background: var(--p-50); }

/* ── Operator Contact ── */
.contact-card {
    background: white; padding: 1.5rem; border-radius: 24px;
    text-align: center; box-shadow: var(--shadow);
}
.contact-icon { font-size: 3rem; color: var(--p-500); margin-bottom: 1rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.contact-link {
    padding: 1rem; border-radius: 14px; background: #f1f5f9;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    text-decoration: none; font-weight: 700; color: var(--text-dark);
}
.contact-link.tg { background: #0088cc15; color: #0088cc; }

/* ── OTP Inputs ── */
.otp-input-wrap { display: flex; gap: 12px; justify-content: center; margin: 15px 0; }
.otp-box {
    width: 60px !important; height: 60px; font-size: 1.5rem !important; 
    text-align: center; font-weight: 800; color: var(--p-700);
    border: 2px solid #e2e8f0; border-radius: 14px; background: #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.otp-box:focus { border-color: var(--p-500); background: white; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2); }

/* ── Notifications ── */
.notification-item {
    background: white; border-radius: 20px; padding: 1.25rem;
    display: flex; gap: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}
.noti-icon {
    width: 45px; height: 45px; flex-shrink: 0;
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.noti-content { flex: 1; }
.noti-content h4 { font-size: 1rem; font-weight: 800; color: var(--text-dark); margin-bottom: 5px; }
.noti-content p { font-size: 0.85rem; color: #64748b; line-height: 1.4; }
.noti-time { display: block; font-size: 0.75rem; color: #94a3b8; margin-top: 8px; font-weight: 600; }

/* ── Language Selection ── */
.lang-list { display: flex; flex-direction: column; gap: 12px; }
.lang-item {
    padding: 1.1rem; background: white; border: 1.5px solid #e2e8f0;
    border-radius: 16px; display: flex; align-items: center; gap: 12px;
    font-weight: 700; cursor: pointer; transition: all 0.3s ease;
    box-shadow: var(--shadow);
}
.lang-item img {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.lang-item.active {
    border-color: var(--p-500); background: var(--p-50); color: var(--p-700);
}
.lang-item:active { transform: scale(0.98); }

/* ── Loader ── */
.loader {
    width: 35px; height: 35px; border: 3px solid #f3f3f3;
    border-top: 3px solid var(--p-600); border-radius: 50%;
    animation: spin 1s linear infinite; margin: 20px auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }


.map-filter-btn {
    padding: 6px 12px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}
.map-filter-btn.active {
    background: #10b981;
    color: white;
    border-color: #10b981;
}
.map-filters::-webkit-scrollbar {
    display: none;
}
\n
.agro-tooltip {
    position: absolute;
    background: var(--p-600, #16a34a);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 200px;
    text-align: center;
    line-height: 1.4;
}
.agro-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--p-600, #16a34a) transparent transparent transparent;
}
.agro-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}
.agro-tooltip.bottom::after {
    top: auto;
    bottom: 100%;
    border-color: transparent transparent var(--p-600, #16a34a) transparent;
}

/* Pull to refresh styles */
.ptr-container { position: relative; width: 100%; height: 100%; overflow: hidden; }
.ptr-element { position: absolute; top: -50px; left: 0; width: 100%; text-align: center; color: var(--p-600); font-size: 24px; transition: top 0.3s; z-index: 1000; display:flex; justify-content:center; align-items:center;}
.ptr-element.refreshing { top: 20px; transition: top 0.3s; }
.ptr-element i { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
