: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-sm: 10px;
    --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-x: hidden; overflow-y: auto; height: 100dvh; }
.screen.active { display: block; }

/* ── Onboarding ────────────────── */
.onboarding-content {
    min-height: 100dvh; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 2rem 1.5rem; text-align: center;
}
.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); }

.form-container { width: 100%; max-width: 380px; margin-top: 1.5rem; }
.input-group { position: relative; margin-bottom: 0.9rem; }
.input-group i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-group input {
    width: 100%; padding: 0.9rem 1rem 0.9rem 2.75rem;
    border: 1.5px solid #e2e8f0; border-radius: var(--radius);
    font-size: 0.95rem; background: white; outline: none; transition: border 0.2s;
}
.input-group input:focus { border-color: var(--p-500); }

.btn-action {
    width: 100%; margin-top: 1rem; padding: 1rem;
    background: var(--p-600); color: white; border: none;
    border-radius: var(--radius); font-weight: 700; font-size: 1rem; cursor: pointer; transition: background 0.2s;
}
.btn-action:hover { background: var(--p-700); }

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

/* ── App Chrome ────────────────── */
.app-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
    flex-shrink: 0;
}
.logo-small { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--p-600); font-size: 1.1rem; }
.logo-small i { font-size: 1.2rem; }
.app-header h2 { font-size: 1.1rem; font-weight: 700; flex-grow: 1; text-align: center; }
.btn-icon-only { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-dark); width: 40px; display: flex; align-items: center; justify-content: center; }

.header-icons { position: relative; cursor: pointer; }
.header-icons i { font-size: 1.4rem; color: var(--text-dark); }
.noti-badge {
    position: absolute; top: -2px; right: -2px;
    width: 8px; height: 8px; background: #ef4444;
    border-radius: 50%; border: 2px solid white;
}

/* ── Notification & Support UI ── */
.notification-item {
    background: white; padding: 1.25rem; border-radius: 16px;
    display: flex; gap: 1rem; margin-bottom: 1rem;
    box-shadow: var(--shadow); border: 1px solid #f1f5f9;
}
.noti-icon {
    width: 45px; height: 45px; background: var(--p-50);
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; color: var(--p-600); font-size: 1.25rem;
}
.noti-text p { font-size: 0.9rem; font-weight: 500; line-height: 1.4; margin-bottom: 4px; }
.noti-text span { font-size: 0.75rem; color: var(--text-muted); }

.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.support-card {
    background: white; padding: 1.5rem 1rem; border-radius: 20px;
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; text-decoration: none; color: var(--text-dark);
    box-shadow: var(--shadow); border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}
.support-card:active { transform: scale(0.95); }
.sup-icon {
    width: 50px; height: 50px; background: var(--p-50);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 1.5rem; color: var(--p-600);
}
.support-card span { font-weight: 700; font-size: 0.85rem; }

/* ── Heart Icon ── */
.fav-btn-wrap i.fa-solid.fa-heart { color: #f43f5e; }
.fav-btn-wrap i.fa-regular.fa-heart { color: #94a3b8; }

#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.08);
    flex-shrink: 0;
    position: sticky; bottom: 0; width: 100%; 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.25rem; transition: transform 0.2s; }
.nav-item.active { color: var(--p-600); }
.nav-item.active i { transform: scale(1.15); }

/* Special Add Button */
.nav-add {
    position: relative;
    top: -8px;
}
.add-icon-wrap {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--p-600), var(--p-500));
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(22, 163, 74, 0.2);
    margin-bottom: -4px;
    transition: all 0.2s;
}
.nav-add.active .add-icon-wrap {
    transform: rotate(45deg);
    background: #1e293b;
}
.add-icon-wrap i { font-size: 1.4rem !important; }
.nav-add span { font-weight: 700; color: var(--p-600); font-size: 0.65rem; }

/* ── New Add Form Styles ── */
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: #1e293b; margin-bottom: 6px; }
.photo-upload-box {
    width: 90px; height: 90px; background: #f8fafc; border: 1.5px solid #e2e8f0;
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: 1.3rem; cursor: pointer; margin-bottom: 1rem;
}
.toggle-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.toggle-label { font-size: 0.75rem; color: #94a3b8; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background-color: #cbd5e1; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--p-600); }
input:checked + .slider:before { transform: translateX(20px); }

.radio-group { display: flex; gap: 20px; padding: 5px 0; }
.radio-item { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.9rem; font-weight: 500; }
.radio-item input { width: 18px; height: 18px; accent-color: var(--p-600); }

.map-input-wrap { position: relative; }
.map-input-wrap i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.map-input { padding-left: 2.8rem !important; }

.btn-submit-large {
    width: 100%; padding: 1rem; background: #4a7c44; color: white; border: none;
    border-radius: 16px; font-weight: 700; font-size: 1.05rem; cursor: pointer; margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(74, 124, 68, 0.2);
}
.btn-submit-large:active { transform: scale(0.98); }


/* ── Section Title ─────────────── */
.section-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-dark); }
.p-4 { padding: 1rem; }

/* ── Search ────────────────────── */
.search-wrap { position: relative; margin-bottom: 1rem; }
.search-wrap i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-input {
    width: 100%; padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: white; border: 1.5px solid #e2e8f0; border-radius: var(--radius);
    font-size: 0.9rem; outline: none;
}
.search-input:focus { border-color: var(--p-500); }

/* ── Category Grid ─────────────── */
.cat-grid { 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;
    border: 1.5px solid transparent;
}
.cat-card:active { transform: scale(0.96); }
.cat-icon { font-size: 1.75rem; }

/* ── Category Hero ─────────────── */
.btn-back {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 1px solid #e2e8f0; padding: 0.5rem 1rem;
    border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600;
    cursor: pointer; margin-bottom: 1rem; transition: all 0.15s;
}
.btn-back:hover { background: white; border-color: var(--p-500); }

.cat-hero { padding: 1.5rem; border-radius: var(--radius); margin-bottom: 1rem; text-align: center; }
.cat-hero-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.cat-hero h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.cat-hero p { font-size: 0.9rem; opacity: 0.8; }

/* ── Listing Cards ─────────────── */
.listing-list { display: flex; flex-direction: column; gap: 10px; }
.listing-card {
    background: white; padding: 1.1rem; border-radius: var(--radius); box-shadow: var(--shadow);
    border: 1.5px solid #f1f5f9; transition: box-shadow 0.2s;
}
.listing-card:hover { box-shadow: var(--shadow-md); }
.listing-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 0.5rem; }
.listing-header h4 { 
    font-size: 0.95rem; 
    font-weight: 600; 
    flex: 1; 
    word-break: break-word;
    overflow-wrap: break-word;
}
.stars { color: #f59e0b; font-size: 0.8rem; white-space: nowrap; }
.rating-num { color: var(--text-muted); font-size: 0.75rem; margin-left: 2px; }
.listing-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; flex-wrap: wrap; }
.listing-meta i { color: var(--p-500); }
.listing-footer { display: flex; justify-content: space-between; align-items: center; }
.price-tag { font-weight: 700; font-size: 0.9rem; color: var(--p-700); }

.btn-chip {
    padding: 0.4rem 1rem; background: #f1f5f9; border: none; border-radius: 8px;
    font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-chip.green { background: var(--p-50); color: var(--p-700); }
.btn-chip:hover { opacity: 0.8; }

/* ── Feed (Home) ───────────────── */
.feed-list { display: flex; flex-direction: column; gap: 10px; }

.feed-badge {
    display: inline-block; padding: 2px 10px; border-radius: 20px;
    font-size: 0.7rem; font-weight: 700; margin-bottom: 0.6rem;
}
.badge-event { background: #dcfce7; color: #15803d; }
.badge-job { background: #dbeafe; color: #1d4ed8; }
.feed-card h4 { 
    font-size: 0.95rem; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
    word-break: break-word;
    overflow-wrap: break-word;
}
.feed-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; flex-wrap: wrap; }
.feed-meta i { color: var(--p-500); }
.feed-footer { display: flex; justify-content: space-between; align-items: center; }

/* ── Empty State ───────────────── */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50vh; gap: 1rem; color: var(--text-muted); }
.empty-icon { font-size: 4rem; color: #e2e8f0; }

/* ── Profile ───────────────────── */
.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:last-child { border-bottom: none; }
.menu-item:hover { background: var(--p-50); }
.menu-item.danger { color: #dc2626; }
.menu-item .arr { margin-left: auto; color: #cbd5e1; }

/* ── 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); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* ── Resume Management (New Design) ───────────── */
.resume-wallet-bar { 
    background: #f8fafc; border-radius: 15px; padding: 1rem; 
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem; margin-bottom: 1.5rem; border: 1px solid #f1f5f9;
}
.res-bal { color: #10b981; font-weight: 700; }
.res-price { color: #f59e0b; font-weight: 600; }

.resume-tabs { 
    background: #f1f5f9; border-radius: 12px; padding: 4px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 1.5rem;
}
.res-tab { 
    padding: 10px; text-align: center; border-radius: 10px; 
    font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
}
.res-tab.active { background: white; color: #10b981; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.res-tab:not(.active) { color: #64748b; }

.res-form-group { margin-bottom: 1rem; }
.res-form-group label { display: block; font-size: 0.85rem; color: #64748b; margin-bottom: 6px; font-weight: 600; }
.res-input { 
    width: 100%; padding: 12px 15px; border-radius: 12px; border: 1.5px solid #e2e8f0;
    font-family: inherit; font-size: 0.95rem; color: var(--text-dark); background: white;
}
.res-input:focus { border-color: #10b981; outline: none; }

.res-days-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.res-day-chip { 
    padding: 10px 5px; text-align: center; border-radius: 10px; border: 1px solid #e2e8f0;
    font-size: 0.8rem; font-weight: 700; color: var(--text-dark); cursor: pointer;
}
.res-day-chip.active { border-color: #10b981; color: #10b981; background: #ecfdf5; }

.res-time-row { display: flex; align-items: center; gap: 10px; }
.res-time-input { 
    flex: 1; display: flex; align-items: center; background: white;
    border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 10px 15px;
}
.res-time-input input { border: none; width: 100%; outline: none; font-size: 0.9rem; font-weight: 600; }
.res-time-input i { color: #64748b; font-size: 1rem; }

.res-photo-box { 
    width: 100%; height: 180px; border: 2px dashed #cbd5e1; border-radius: 20px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    background: #f8fafc; overflow: hidden; position: relative;
}
.res-photo-box img { width: 100%; height: 100%; object-fit: cover; }
.res-photo-box i { font-size: 3rem; color: #94a3b8; }
.resume-entry-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 1rem; }
.res-btn { 
    background: white; border: 1px solid #e2e8f0; border-radius: 20px; padding: 2rem 1rem;
    display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer;
    transition: all 0.3s; box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.res-btn i { font-size: 2rem; color: #10b981; }
.res-btn span { font-weight: 700; color: #1e293b; font-size: 0.9rem; }
.res-btn:active { transform: scale(0.95); background: #f8fafc; }

.btn-res-submit { 
    width: 100%; padding: 15px; border-radius: 15px; background: #10b981;
    color: white; font-weight: 700; font-size: 1.1rem; border: none;
    margin-top: 1.5rem; cursor: pointer; box-shadow: 0 4px 15px rgba(16,185,129,0.2);
}

@media (max-width: 400px) {
    .res-days-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Desktop & Tablet Centering ─────────── */
@media (min-width: 768px) {
    body { 
        background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 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) {
    .cat-grid { gap: 8px; }
    .cat-card { padding: 1rem 0.5rem; }
    .btn-onboard { padding: 0.8rem 1rem; font-size: 0.9rem; }
    .app-header { padding: 0.75rem 1rem; }
    .listing-card { padding: 0.9rem; }
}

/* ── Interactive Elements ────────── */
.btn-action, .btn-onboard, .cat-card, .btn-chip {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-action:active, .btn-onboard:active, .cat-card:active, .btn-chip:active {
    transform: scale(0.95);
}


/* ── 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-content { flex: 1; overflow-y: auto; padding-bottom: 100px; }

.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;
}

/* ── OTP Styling ── */
.otp-input-wrap {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 1.5rem 0;
}
.otp-box {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
}
.otp-box:focus {
    border-color: var(--p-500);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
    outline: none;
}

/* ── Wallet & To'lovlar ── */
.wallet-card {
    background: linear-gradient(135deg, var(--p-600) 0%, #059669 100%);
    color: white;
    padding: 2rem;
    border-radius: 24px;
    margin: 1rem;
    box-shadow: 0 20px 25px -5px rgba(22, 163, 74, 0.2);
    position: relative;
    overflow: hidden;
}
.wallet-card::after {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 200px; height: 200px; background: rgba(255,255,255,0.1); border-radius: 50%;
}
.balance-label { font-size: 0.9rem; opacity: 0.9; }
.balance-value { font-size: 2.2rem; font-weight: 800; margin-top: 0.5rem; }

/* ── Bank App Payment Cards ── */
.bank-apps-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}
.bank-app-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 1rem 1.2rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.bank-app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.09);
}
.bank-app-card.click-card:hover  { border-color: #0087ff; }
.bank-app-card.payme-card:hover  { border-color: #00CCCC; }
.bank-app-card.uzum-card:hover   { border-color: #7f4cff; }
.bank-logo-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f1f5f9;
}
.bank-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}
.bank-app-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bank-app-name {
    font-weight: 800;
    font-size: 1rem;
    color: #0f172a;
}
.bank-app-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}
.bank-app-arrow {
    color: #cbd5e1;
    font-size: 1rem;
    flex-shrink: 0;
}
.pay-howto-box {
    display: flex;
    gap: 1rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 18px;
    padding: 1.2rem;
    margin-top: 0.5rem;
}
.pay-howto-icon {
    color: #0284c7;
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.pay-howto-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #0c4a6e;
    margin-bottom: 6px;
}
.pay-howto-desc {
    font-size: 0.82rem;
    color: #0369a1;
    line-height: 1.6;
    margin: 0 0 12px 0;
}
.pay-chat-btn {
    background: #0284c7;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.pay-chat-btn:hover { background: #0369a1; }

/* Legacy kept for compatibility */
.btn-copy {
    background: var(--p-600);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}


/* ── Rich Details ── */
.detail-img {
    width: 100%; height: 220px; object-fit: cover;
    border-radius: 0 0 24px 24px; margin-bottom: 1.5rem;
}
.detail-content { padding: 0 1.5rem; }
.detail-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; color: var(--text-dark); }
.detail-section { margin-bottom: 1.5rem; }
.detail-section h4 { font-size: 0.9rem; color: var(--p-600); text-transform: uppercase; margin-bottom: 0.5rem; }
.detail-desc { font-size: 1rem; line-height: 1.6; color: var(--text-dark); }
.detail-meta-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
    margin-bottom: 1.5rem; padding: 1rem; background: white; border-radius: 16px;
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-item span:first-child { font-size: 0.75rem; color: var(--text-muted); }
.meta-item span:last-child { font-size: 0.9rem; font-weight: 600; }

.contact-box {
    background: var(--p-50); border: 1px solid var(--p-100);
    padding: 1.25rem; border-radius: 16px; margin-bottom: 2rem;
}
.contact-box h4 { margin-bottom: 0.5rem; }
.contact-box p { font-size: 0.95rem; font-weight: 600; color: var(--p-700); }

/* ── Favorites ── */
.fav-btn-wrap {
    position: absolute; top: 10px; right: 10px;
    width: 35px; height: 35px; background: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); cursor: pointer; z-index: 5;
}
.feed-card, .listing-card { position: relative; }

/* ── Toast Notification ── */
.toast-notif {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-20px);
    background: #1e293b; color: white; padding: 12px 24px; border-radius: 30px;
    font-size: 0.9rem; font-weight: 600; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    z-index: 10000; opacity: 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; align-items: center; gap: 8px; white-space: nowrap;
    pointer-events: none;
}
.toast-notif.active { opacity: 1; transform: translateX(-50%) translateY(0); }
.badge-listing { background: #fef3c7; color: #92400e; }

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

/* ── Loader & Premium ── */
.loader {
    width: 40px; height: 40px; border: 4px solid #f3f3f3;
    border-top: 4px 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); } }

.premium-card-large { transition: transform 0.3s ease; }
.premium-card-large:hover { transform: translateY(-5px); }

/* ── Catalog Near Me Square ── */
.premium-near-me-square {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.premium-near-me-square:active {
    transform: scale(0.97);
}

.premium-menu span { font-weight: 800; color: #b45309; }
.premium-menu i { font-size: 1.1rem; }

.plan-item {
    transition: all 0.2s ease;
}
.plan-item:active {
    transform: scale(0.98);
}

/* Gold/Premium avatar styling */
.premium-avatar {
    border: 3px solid #fbbf24 !important;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
    animation: gold-pulse 2s infinite alternate;
}

@keyframes gold-pulse {
    0% { box-shadow: 0 0 5px rgba(251, 191, 36, 0.4); }
    100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.8); }
}

/* ── Native In-App Chat ── */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f8fafc;
}
.chat-urgent-banner {
    background: #fef2f2;
    border-bottom: 1px solid #fee2e2;
    padding: 10px 15px;
    font-size: 0.8rem;
    color: #b91c1c;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.chat-urgent-banner a {
    color: #ef4444;
    text-decoration: underline;
    font-weight: 700;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100dvh - 120px);
}
@media (min-width: 768px) {
    .chat-messages {
        max-height: calc(90vh - 120px);
    }
}
.chat-message-row {
    display: flex;
    width: 100%;
}
.chat-message-row.operator {
    justify-content: flex-start;
}
.chat-message-row.user {
    justify-content: flex-end;
}
.chat-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.chat-message-row.operator .chat-bubble {
    background: white;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-top-left-radius: 4px;
}
.chat-message-row.user .chat-bubble {
    background: var(--p-600);
    color: white;
    border-top-right-radius: 4px;
}
.chat-time {
    display: block;
    font-size: 0.7rem;
    margin-top: 5px;
    text-align: right;
    opacity: 0.7;
}
.chat-input-wrap {
    padding: 12px 15px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    align-items: center;
}
#chat-user-input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 0.9rem;
    outline: none;
}
#chat-user-input:focus {
    border-color: var(--p-500);
}
.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--p-600);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}
.chat-send-btn:active {
    transform: scale(0.9);
}

/* Typing Indicator Dots */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}
.typing-dots span {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite both;
}
.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Feed card enhancements */
.feed-card .location-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 5px;
    line-height: 1.4;
}

.badge-vakansiya { background: #e0f2fe !important; color: #0369a1 !important; }
.badge-tadbir { background: #ffe4e6 !important; color: #e11d48 !important; }
.badge-xizmat { background: #f3e8ff !important; color: #7e22ce !important; }
.badge-mahsulot { background: #dcfce7 !important; color: #15803d !important; }
.badge-location { background: #ccfbf1 !important; color: #0f766e !important; }

/* Map navigation modal */
.map-nav-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: 0.3s;
}
.map-nav-modal.active {
    opacity: 1; pointer-events: auto;
}
.map-nav-content {
    background: white; border-radius: 16px; padding: 20px;
    width: 90%; max-width: 320px;
    transform: translateY(20px); transition: 0.3s;
}
.map-nav-modal.active .map-nav-content {
    transform: translateY(0);
}
.map-nav-btn {
    display: flex; align-items: center; gap: 15px;
    padding: 12px; border-radius: 12px;
    background: #f8fafc; color: #0f172a;
    font-weight: 600; font-size: 1rem;
    text-decoration: none; margin-bottom: 10px;
    transition: 0.2s;
}
.map-nav-btn:hover { background: #e2e8f0; }
.map-nav-btn img { width: 30px; height: 30px; border-radius: 6px; }

/* Feed Card Redesign */
.feed-card {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: stretch;
    position: relative;
    padding: 1rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1.5px solid #f1f5f9;
}

.feed-card-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feed-card-right {
    width: 120px;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.feed-card-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

.feed-card-img-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 2rem;
}

.feed-badge {
    align-self: flex-start;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.feed-card-price {
    font-weight: 800;
    color: var(--p-700);
    font-size: 1.05rem;
    margin-top: auto;
    padding-top: 8px;
}

.feed-card .location-text {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-height: 1.4;
}

.fav-btn-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #94a3b8;
    z-index: 2;
    cursor: pointer;
}
.fav-btn-wrap.active {
    color: #ef4444;
}
\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); } }
