/* --- GLOBAL O'ZGARUVCHILAR --- */
:root {
    --primary: #00b894; /* Zamonaviy yashil */
    --primary-dark: #00a383;
    --primary-light: #55efc4;
    --accent: #fdcb6e; /* Sariq aksent */
    --bg: #f4fcf7; /* Juda och yashil fon */
    --white: #ffffff;
    --text: #2d3436;
    --gray: #b2bec3;
    --danger: #ff7675;
    --shadow: 0 10px 30px rgba(0, 184, 148, 0.15);
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    --radius: 16px;
    --font: 'Inter', sans-serif;
}

/* --- ASOSIY SOZLAMALAR --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
    -webkit-tap-highlight-color: transparent; /* Mobil bosganda ko'k fonni yo'qotish */
}

/* Scrollbarni yashirish (Lekin scroll ishlaydi) - App hissini beradi */
*::-webkit-scrollbar {
    display: none;
}
* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    background-color: var(--bg);
    color: var(--text);
    padding-bottom: 90px;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
    /* Matn belgilanishini o'chirish */
    user-select: none;
    -webkit-user-select: none;
}

/* Inputlarda matn belgilashga ruxsat berish kerak */
input, textarea, .selectable-text {
    user-select: text;
    -webkit-user-select: text;
}

button, input, select {
    border: none;
    outline: none;
}

button:active, .nav-item:active, .product-card:active, .cat-pro-card:active {
    transform: scale(0.96);
}

/* --- SPLASH SCREEN --- */
#splash {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
    transition: opacity 0.5s;
}

.splash-logo i {
    font-size: 70px;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

.dot-loader { display: flex; gap: 6px; margin-top: 20px; }
.dot-loader div {
    width: 12px; height: 12px;
    background: white;
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate;
}
.dot-loader div:nth-child(2) { animation-delay: 0.2s; }
.dot-loader div:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce { to { transform: translateY(-10px); opacity: 0.7; } }

/* --- HEADER --- */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.brand { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.brand span { color: var(--primary); }

.search-box {
    margin-top: 15px;
    background: #eefbf6;
    padding: 12px 15px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    transition: 0.3s;
}
.search-box:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.1);
}
.search-box input {
    background: transparent;
    width: 100%;
    font-size: 15px;
    color: var(--text);
}

.back-btn {
    background: transparent;
    font-size: 24px;
    color: var(--text);
    padding: 5px;
    cursor: pointer;
}
#header-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
}
#cat-title { font-size: 18px; font-weight: 700; }

/* --- ASOSIY MAZMUN --- */
.tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.promo-card {
    background: linear-gradient(120deg, var(--primary), #00cec9);
    padding: 25px;
    border-radius: 25px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}
.promo-card::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    pointer-events: none;
}
.promo-icon { font-size: 45px; opacity: 0.9; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.section-head h3 { font-size: 19px; font-weight: 700; color: var(--text); }
.section-head span { font-size: 13px; color: var(--primary); font-weight: 600; cursor: pointer; }

/* --- PRODUCT CARDS --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.02);
}
.p-img-placeholder {
    width: 100%;
    height: 30px;
    background: #eefbf6;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 35px;
    margin-bottom: 5px;
}
.p-cat { font-size: 10px; color: var(--gray); text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.p-title { font-size: 14px; font-weight: 700; line-height: 1.4; flex-grow: 1; margin-bottom: 5px; }
.p-footer { display: flex; justify-content: space-between; align-items: center; }
.p-price { font-weight: 800; color: var(--primary-dark); font-size: 15px; }
.add-btn {
    width: 36px; height: 36px;
    background: var(--text);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.like-btn {
    position: absolute; top: 10px; right: 10px;
    color: #dfe6e9; font-size: 20px;
    background: white;
    border-radius: 50%;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    cursor: pointer; z-index: 2;
}
.like-btn.liked { color: var(--danger); }

/* --- CATEGORIES --- */
.cat-pro-card {
    background: white;
    border-radius: 18px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid transparent;
}
.cat-pro-card.open { border-color: var(--primary); box-shadow: 0 5px 15px rgba(0, 184, 148, 0.2); }
.cat-pro-head { padding: 15px; display: flex; align-items: center; gap: 15px; cursor: pointer; }
.cat-pro-icon {
    width: 50px; height: 50px;
    background: #eefbf6;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--primary);
    transition: 0.3s;
}
.cat-pro-card.open .cat-pro-icon { background: var(--primary); color: white; }
.cat-pro-info h4 { font-size: 16px; font-weight: 700; }
.cat-pro-info p { font-size: 12px; color: var(--gray); margin-top: 3px; }
.cat-arrow { margin-left: auto; color: var(--gray); font-size: 20px; }

/* --- CART --- */
.cart-page-header {
    padding: 20px;
    background: white;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.cart-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}
.cart-pro-item {
    background: white;
    border-radius: 18px;
    padding: 12px;
    display: flex; gap: 15px;
    margin-bottom: 12px;
    box-shadow: var(--card-shadow);
    align-items: center;
}
.cart-pro-img {
    width: 70px; height: 70px;
    background: #f0fdf4;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 28px;
}
.cart-pro-info { flex: 1; }
.cart-pro-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.cart-pro-price { color: var(--primary); font-weight: 700; font-size: 14px; }
.cart-pro-actions {
    display: flex; align-items: center;
    background: #f1f2f6;
    border-radius: 10px; padding: 4px; gap: 8px;
}
.cart-qty-btn {
    width: 26px; height: 26px;
    border: none; background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-weight: 700; cursor: pointer;
}
.cart-pro-footer {
    background: white;
    padding: 20px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.05);
}
.bill-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; color: #666; }
.divider-dashed { border-top: 1px dashed #ddd; margin: 15px 0; }
.bill-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.checkout-pro-btn {
    width: 100%; padding: 16px; background: var(--text); color: white;
    border-radius: 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center;
    cursor: pointer;
}

/* --- PROFILE HEADER --- */
.profile-pro-header { margin: -20px -20px 20px; position: relative; }

.header-bg-shape {
    height: 15px; 
    background: linear-gradient(135deg, var(--primary), #00b894);
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.header-content-layer { padding: 20px; position: relative; }
.top-nav-row { display: flex; justify-content: space-between; color: white; align-items: center; margin-bottom: 20px; }
.page-name { font-weight: 700; font-size: 18px; }
.edit-btn-mini { background: rgba(255,255,255,0.2); border: none; color: white; width: 35px; height: 35px; border-radius: 10px; cursor: pointer; }
.user-glass-card {
    margin: -10px 0 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 20px;
    display: flex; align-items: center; gap: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.4);
}
.avatar-holder { position: relative; }
.status-dot { width: 15px; height: 15px; background: #2ecc71; border: 2px solid white; border-radius: 50%; position: absolute; bottom: 0; right: 0; }
.user-avatar-lg {
    width: 65px; height: 65px;
    background: linear-gradient(135deg, #eefbf6, #c8f7dc);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
}
.user-info-text h2 { font-size: 18px; margin-bottom: 3px; }
.id-tag { font-size: 10px; background: #eee; padding: 3px 6px; border-radius: 6px; color: #666; }

.profile-pro-body { padding: 0 20px 100px; }
.stats-row-box {
    display: flex; justify-content: space-between;
    background: white; padding: 20px;
    border-radius: 20px; margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}
.stat-col { text-align: center; display: flex; flex-direction: column; align-items: center; cursor: pointer; width: 30%; }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; font-size: 20px; }
.blue-bg { background: #e3f2fd; color: #2196f3; }
.yellow-bg { background: #fff9c4; color: #fbc02d; }
.green-bg { background: #e8f5e9; color: #4caf50; }

.group-label { font-size: 12px; color: #999; margin: 0 0 10px 10px; text-transform: uppercase; letter-spacing: 0.5px; }

.menu-list-box {
    background: white; border-radius: 20px;
    padding: 5px; margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}
.menu-row {
    padding: 14px; display: flex; align-items: center; gap: 15px;
    border-radius: 12px; transition: 0.2s; cursor: pointer;
}
.menu-row:hover { background: #f8fcf9; }
.menu-text { flex: 1; font-weight: 500; font-size: 14px; }
.arrow-right { color: #ccc; }
.menu-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.menu-icon.green { background: #e8f5e9; color: #00b894; }
.menu-icon.blue { background: #e3f2fd; color: #0984e3; }
.menu-icon.orange { background: #fff3e0; color: #e17055; }
.menu-icon.purple { background: #f3e5f5; color: #a29bfe; }
.menu-icon.red { background: #ffebee; color: #ff7675; }

.badge-pro { background: black; color: white; font-size: 9px; padding: 2px 5px; border-radius: 4px; margin-left: 5px; }
.app-ver { text-align: center; color: #ccc; font-size: 11px; margin-top: 20px; }

/* Switch Toggle (Tungi rejim) */
.switch-mini { position: relative; display: inline-block; width: 34px; height: 20px; }
.switch-mini input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc; transition: .4s; border-radius: 34px;
}
.slider:before {
    position: absolute; content: "";
    height: 16px; width: 16px; left: 2px; bottom: 2px;
    background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(14px); }

/* --- BOTTOM NAV --- */
.bottom-nav {
    position: fixed; bottom: 20px; left: 20px; right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 15px 25px;
    display: flex; justify-content: space-between;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 999;
}
.nav-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; color: #b2bec3; position: relative; cursor: pointer;
    font-size: 10px; font-weight: 600;
}
.nav-item i { font-size: 24px; transition: 0.3s; }
.nav-item.active { color: var(--primary); }
.nav-item.active i { transform: translateY(-3px); }
.badge {
    position: absolute; top: -5px; right: -2px;
    background: var(--danger); color: white;
    font-size: 9px; width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 2px solid white;
}

/* --- ADMIN PANEL --- */
.admin-overlay { display: none; position: fixed; inset: 0; background: white; z-index: 20000; }
.admin-container { display: flex; height: 100%; }
.admin-sidebar {
    width: 80px; background: #2d3436; color: white;
    padding: 20px 10px; display: flex; flex-direction: column; align-items: center; gap: 15px;
}
.admin-content { flex: 1; padding: 20px; background: #f4fcf7; overflow-y: auto; }
.stat-card {
    background: white; padding: 20px;
    border-radius: 18px; display: flex; align-items: center; gap: 15px;
    box-shadow: var(--card-shadow);
    margin-bottom: 10px;
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 20px; }
.stat-val { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.stat-label { font-size: 11px; color: #666; }

.chart-box { background: white; padding: 20px; border-radius: 18px; box-shadow: var(--card-shadow); }
.chart-header { display: flex; justify-content: space-between; margin-bottom: 15px; }
.chart-bars { display: flex; justify-content: space-between; height: 150px; align-items: flex-end; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.chart-labels { display: flex; justify-content: space-between; margin-top: 10px; color: #999; font-size: 10px; }

/* TABLE FIX: Min-width qo'shildi, siqilib qolmaslik uchun */
.admin-table { width: 100%; min-width: 600px; border-collapse: collapse; background: white; border-radius: 15px; overflow: hidden; font-size: 13px; }
.admin-table th { background: #f1f2f6; color: #636e72; padding: 15px; text-align: left; font-weight: 600; }
.admin-table td { padding: 15px; border-bottom: 1px solid #f1f2f6; }
.table-container { overflow-x: auto; background: white; border-radius: 15px; box-shadow: var(--card-shadow); }

.settings-card { background: white; padding: 20px; border-radius: 15px; box-shadow: var(--card-shadow); }

/* --- MODALS --- */
/* Z-INDEX FIX: Admin paneldan balandroq qilindi (21000) */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(5px);
    align-items: center; justify-content: center; z-index: 21000; padding: 20px;
    animation: fadeIn 0.3s;
}
.modal-content {
    background: white; padding: 25px;
    border-radius: 25px; width: 100%; max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: scale(0.95); animation: popIn 0.3s forwards;
    max-height: 90vh; overflow-y: auto;
}
@keyframes popIn { to { transform: scale(1); } }

/* Modal Inputs & Buttons */
.modal-input {
    width: 100%; padding: 12px; margin-bottom: 10px;
    border: 1px solid #ddd; border-radius: 10px;
    font-size: 14px; outline: none; transition: 0.3s;
}
.modal-input:focus { border-color: var(--primary); }

.modal-actions { display: flex; gap: 10px; margin-top: 15px; }
.btn-primary {
    background: var(--primary); color: white;
    padding: 14px; border: none; border-radius: 14px;
    font-weight: 700; width: 100%; cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.3); text-align: center;
}
.btn-secondary {
    background: #f1f2f6; color: #636e72;
    padding: 14px; border: none; border-radius: 14px;
    font-weight: 700; width: 100%; cursor: pointer; text-align: center;
}
.shop-now-btn {
    background: var(--primary); color: white;
    padding: 12px 25px; border-radius: 12px;
    font-weight: 600; cursor: pointer; margin-top: 15px;
}

/* --- TOAST NOTIFICATION --- */
#toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: #333; color: white; padding: 10px 20px;
    border-radius: 30px; z-index: 10000; font-size: 13px;
    display: none; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- QOR EFFEKTI --- */
.snowflake {
    position: fixed; top: -20px; color: #dff9fb;
    font-size: 1.5em; user-select: none; z-index: 99999;
    pointer-events: none;
    animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(110vh); } }

/* --- FAQ STYLES --- */
.faq-item { border: 1px solid #eee; border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: white; }
.faq-head { padding: 15px; font-weight: 600; display: flex; justify-content: space-between; cursor: pointer; }
.faq-body { padding: 0 15px; max-height: 0; overflow: hidden; transition: 0.3s; color: #666; font-size: 13px; }
.faq-item.active .faq-body { padding: 15px; max-height: 200px; border-top: 1px solid #eee; }

/* --- DARK MODE --- */
body.dark-mode {
    --bg: #1e1e1e; --white: #2d2d2d; --text: #ecf0f1; --gray: #b2bec3;
    --shadow: none;
}
body.dark-mode header, body.dark-mode .bottom-nav {
    background: rgba(45, 45, 45, 0.9); border-color: #444;
}
body.dark-mode .product-card, body.dark-mode .cat-pro-card, body.dark-mode .menu-list-box, body.dark-mode .cart-pro-item, body.dark-mode .stats-row-box {
    background: #2d2d2d; border-color: #444; box-shadow: none;
}
body.dark-mode .cart-pro-footer, body.dark-mode .cart-page-header, body.dark-mode .settings-card, body.dark-mode .stat-card, body.dark-mode .chart-box, body.dark-mode .table-container, body.dark-mode .admin-table {
    background: #2d2d2d; color: white;
}
body.dark-mode .p-img-placeholder, body.dark-mode .cart-pro-img, body.dark-mode .cat-pro-icon {
    background: #3d3d3d; color: var(--primary-light);
}
body.dark-mode .p-title, body.dark-mode h3, body.dark-mode h4, body.dark-mode .menu-text { color: white; }
body.dark-mode .search-box { background: #333; }
body.dark-mode .search-box input { color: white; }
/* Dark mode input placeholder rangi */
body.dark-mode ::placeholder { color: #888; } 

body.dark-mode .modal-content { background: #333; color: white; }
body.dark-mode .modal-input { background: #444; border-color: #555; color: white; }
body.dark-mode .btn-secondary { background: #444; color: #ddd; }
body.dark-mode .faq-item { background: #2d2d2d; border-color: #444; }

/* MAP */
#map, #admin-map { width: 100%; height: 200px; border-radius: 15px; z-index: 1; margin-bottom: 15px; }

/* --- MOBIL VERSIYA --- */
@media (max-width: 768px) {
    .admin-container { flex-direction: column; }
    .admin-sidebar {
        width: 100%; height: auto; flex-direction: row;
        overflow-x: auto; padding: 10px;
        background: #2d3436; position: sticky; top: 0; z-index: 1000;
        /* Yozuvlar sig'masa pastga tushib ketmasin */
        white-space: nowrap; 
    }
    .admin-nav-item { min-width: 70px; margin-right: 5px; padding: 5px; font-size: 10px; }
    .admin-nav-item i { font-size: 20px; margin-bottom: 2px; }
    .admin-logo { display: none; }
    .admin-content { padding: 15px; padding-bottom: 80px; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* SAVAT TABI UCHUN TUGATISH */
#tab-cart.active {
    display: flex !important;
    flex-direction: column;
    height: calc(100vh - 70px);
}
.empty-state {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 50px 20px; text-align: center;
}
.empty-state i { font-size: 80px; color: var(--gray); margin-bottom: 20px; opacity: 0.5; }
.empty-state h3 { font-size: 20px; color: var(--text); margin-bottom: 10px; }

.status-select { padding: 5px; border-radius: 8px; border: 1px solid var(--gray); font-size: 12px; outline: none; }
.action-btn-view { background: var(--primary-light); border: none; padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.filter-chip { padding: 8px 15px; background: white; border: 1px solid var(--primary); border-radius: 20px; cursor: pointer; font-size: 12px; margin-right: 5px; display: inline-block; margin-bottom: 5px; }
.filter-chip.active { background: var(--primary); color: white; }

/* --- RASM STILLARI --- */
.p-img-real {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 5px;
}

/* Savatdagi va Admindagi kichik rasmlar */
.cart-pro-img img, .admin-pro-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* =========================================
   YANGI FUNKSIYALAR STILLARI (FULL PACK)
   ========================================= */

/* --- 1. LOGISTIKA & KURYERLAR --- */
.courier-select {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 12px;
    outline: none;
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
}
.courier-select:focus {
    border-color: var(--primary);
    background: white;
}

/* --- 2. MIJOZ FIKRLARI (REVIEWS) --- */
.review-card {
    background: white;
    padding: 15px;
    border-radius: 15px;
    display: flex;
    gap: 15px;
    border: 1px solid #f1f2f6;
    transition: 0.3s;
    position: relative;
}
.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: var(--primary-light);
}
.review-avatar {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #e3f2fd, #90caf9);
    color: #1565c0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    font-weight: 800;
}
.review-content { flex: 1; }
.review-content h5 { font-size: 14px; margin-bottom: 2px; color: var(--text); }
.review-stars { color: #f1c40f; font-size: 12px; margin-bottom: 6px; }
.review-text { font-size: 13px; color: #636e72; line-height: 1.4; }
.review-date { font-size: 10px; color: #b2bec3; margin-top: 5px; display: block; text-align: right; }

/* --- 3. MARKETING (UZUM STYLE) --- */
.uzum-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
}
.badge-hit { background: #ffeaa7; color: #d35400; }
.badge-new { background: #55efc4; color: #00b894; }
.badge-sale { background: #fab1a0; color: #d63031; }
.badge-none { background: #dfe6e9; color: #b2bec3; }

.marketing-select {
    padding: 6px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    outline: none;
    font-size: 11px;
    background: white;
}

/* --- 4. XODIMLAR (TEAM) --- */
.role-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.role-admin { background: #ffebee; color: #e74c3c; border: 1px solid #ffcdd2; }
.role-manager { background: #e3f2fd; color: #2196f3; border: 1px solid #bbdefb; }
.role-kuryer { background: #e8f5e9; color: #4caf50; border: 1px solid #c8e6c9; }

/* --- 5. TARIX VA XARAJATLAR (LOGS) --- */
.log-item {
    padding: 12px;
    border-bottom: 1px solid #f1f2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.log-item:last-child { border-bottom: none; }
.log-time { color: #b2bec3; font-size: 11px; margin-right: 15px; min-width: 90px; font-family: monospace; }
.log-action { flex: 1; font-weight: 500; color: var(--text); }
.log-type-info { color: #0984e3; }
.log-type-danger { color: #e74c3c; }
.log-type-success { color: #00b894; }

.stat-icon.red { background: #ffebee; color: #e74c3c; }
.expense-row td { vertical-align: middle; }
#tg-bot-id::placeholder { color: rgba(255,255,255,0.7); }

/* --- 6. TAMINOT VA VOZVRAT --- */
.status-badge-pending {
    background: #fff3e0; color: #e67e22; padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: bold;
}
.status-badge-approved {
    background: #e8f5e9; color: #2ecc71; padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: bold;
}

/* --- Smart Agro Bar --- */
.agro-info-bar {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: #fff;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.info-item i {
    font-size: 18px;
}

.info-item small {
    display: block;
    font-size: 10px;
    color: #999;
    font-weight: normal;
    line-height: 1;
}

/* --- Banner yangilanishi --- */
.promo-slider {
    display: flex;
    overflow-x: auto;
    padding: 0 15px;
    gap: 10px;
    margin-bottom: 20px;
    scrollbar-width: none; /* Scroll barni yashirish */
}
.promo-slider::-webkit-scrollbar { display: none; }

.promo-card {
    min-width: 90%;
    height: 160px;
    border-radius: 16px;
    position: relative;
    padding: 20px;
    color: white;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.promo-tag {
    background: #f1c40f;
    color: #333;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.promo-btn {
    margin-top: 15px;
    padding: 8px 16px;
    background: white;
    color: #27ae60;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

/* --- Yumaloq Kategoriyalar --- */
.quick-cats-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 15px;
    gap: 20px;
    margin-bottom: 25px;
    scrollbar-width: none;
}
.quick-cats-scroll::-webkit-scrollbar { display: none; }

.q-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 60px;
}

.q-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Yumaloq */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transition: transform 0.2s;
}

.q-icon:active { transform: scale(0.9); }

.bg-red { background: #e74c3c; box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3); }
.bg-green { background: #2ecc71; box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3); }
.bg-blue { background: #3498db; box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3); }
.bg-orange { background: #e67e22; box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3); }
.bg-purple { background: #9b59b6; box-shadow: 0 4px 10px rgba(155, 89, 182, 0.3); }

.q-cat-item span {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

/* --- Filtr Chips (Sortirovka) --- */
.filter-chips-row {
    display: flex;
    gap: 10px;
    padding: 0 15px;
    margin-bottom: 15px;
    overflow-x: auto;
    scrollbar-width: none;
}
.filter-chips-row::-webkit-scrollbar { display: none; }

.chip {
    padding: 6px 14px;
    background: #f1f2f6;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}
.chip.active {
    background: #2d3436;
    color: white;
}

/* --- KATEGORIYA SUB-MENYU (YANGI QISM) --- */
.cat-pro-body {
    display: none; /* Boshida yashirin */
    padding: 0 15px 15px 65px; /* Icon tagidan boshlanishi uchun */
    border-top: 1px dashed #f1f2f6;
    background: #fff;
    animation: fadeIn 0.3s;
}

/* Ochiq holatda ko'rinishi */
.cat-pro-card.open .cat-pro-body {
    display: block;
}

/* Ochiq holatda strelka aylanishi */
.cat-pro-card.open .cat-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Sub-kategoriya linklari */
.cat-pro-body span {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: 0.2s;
}

.cat-pro-body span:last-child {
    border-bottom: none;
}

.cat-pro-body span:hover {
    color: var(--primary);
    padding-left: 5px;
}