* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0f0f0f;
    --card: #1a1a1a;
    --border: #2a2a2a;
    --primary: #f59e0b;
    --text: #ffffff;
    --muted: #888888;
    --radius: 12px;
}

/* body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", sans-serif;
    min-height: 100vh;
    padding-bottom: 120px;
} */

/* HERO */
.hero {
    position: relative;
    height: 300px;           /* fixed balandlik */
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;            /* 100% qilish kerak */
    object-fit: cover;       /* to'liq to'ldiradi */
    object-position: center; /* markazga joylashtiradi */
    display: block;
}




.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f0f0f 0%, transparent 60%);
}

.hero-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
}

/* MAIN CONTENT */
.content {
    padding: 0 16px;
    margin-top: 24px;
}

/* CATEGORY FILTER */
.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.filter-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
}

.filter-count {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.filter-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 20px;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}

.tab img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.tab.active {
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
    color: var(--primary);
}

/* PACKAGES GRID */
.packages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
}

.package-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    background: var(--card);
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    text-align: left;
    width: 100%;
}

.package-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
}

.package-card.selected {
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.05);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.package-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #222;
}

.package-info {
    flex: 1;
    min-width: 0;
}

.package-name {
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.package-price {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    margin-top: 2px;
}

.selected-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
}

.selected-badge svg {
    width: 11px;
    height: 11px;
    stroke: #000;
}

/* CHAT BUTTON */
.chat-btn {
    position: fixed;
    bottom: 90px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
    z-index: 40;
}

.chat-btn svg {
    width: 26px;
    height: 26px;
    stroke: #000;
}

/* BOTTOM NAV */
nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    z-index: 50;
}

.nav-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 64px;
    align-items: center;
    max-width: 670px;
    margin: 0 auto;
    padding: 0 8px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--muted);
    cursor: pointer;
    transition: 0.2s;
    background: none;
    border: none;
}

.nav-item:hover {
    color: var(--text);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.nav-item span {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* OVERLAY */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 60;
}

.overlay.show {
    display: block;
}

/* DRAWER */
.drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-radius: 24px 24px 0 0;
    padding: 20px 20px 40px;
    z-index: 70;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.drawer.show {
    transform: translateY(0);
}

.drawer-handle {
    width: 48px;
    height: 5px;
    background: #444;
    border-radius: 10px;
    margin: 0 auto 16px;
}

.drawer-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
}

.drawer-section-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    margin-bottom: 10px;
}

.drawer-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    outline: none;
    transition: 0.2s;
    margin-bottom: 20px;
}

.drawer-input:focus {
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.04);
}

.drawer-input::placeholder {
    color: #555;
}

.payment-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    background: var(--card);
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 10px;
    text-align: left;
}

.payment-btn.selected {
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.05);
}

.payment-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 4px;
}

.payment-amount {
    font-size: 18px;
    font-weight: 900;
}

.payment-amount span {
    font-size: 10px;
    color: var(--primary);
    text-transform: uppercase;
}

.radio {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-btn.selected .radio {
    border-color: var(--primary);
    background: var(--primary);
}

.radio svg {
    display: none;
}

.payment-btn.selected .radio svg {
    display: block;
}

.cashback-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f97316;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.submit-btn {
    width: 100%;
    height: 56px;
    border-radius: 16px;
    background: var(--primary);
    color: #000;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    margin-top: 24px;
    transition: 0.2s;
}

.submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.submit-btn:not(:disabled):hover {
    background: #d97706;
}
