/* =====================
   ZO'R TAOM — style.css
   ===================== */

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

:root {
    /* Premium Color Palette */
    --primary: #FF7A00;
    --primary-light: #FF9B3C;
    --primary-dark: #E66E00;
    --accent: #5856D6;

    --bg-main: #F2F2F7;
    --surface: rgba(255, 255, 255, 0.85);
    --surface-glass: rgba(255, 255, 255, 0.7);

    --text-main: #1C1C1E;
    --text-muted: #8E8E93;
    --text-on-dark: #FFFFFF;

    --border-light: rgba(0, 0, 0, 0.05);
    --border-thick: rgba(0, 0, 0, 0.1);

    --red: #FF3B30;
    --green: #34C759;
    --blue: #007AFF;
    --purple: #AF52DE;

    /* Modern Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bot: env(safe-area-inset-bottom, 0px);

    /* Legacy mapping for backward compatibility */
    --or: var(--primary);
    --or2: var(--primary-light);
    --bg: var(--bg-main);
    --white: #FFFFFF;
    --text: var(--text-main);
    --gray: var(--text-muted);
    --gray2: var(--border-thick);
    --border: var(--border-thick);

    --blur: blur(20px) saturate(180%);
}


html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    background-color: var(--bg-main);
    background-image:
        radial-gradient(at 0% 0%, rgba(255, 122, 0, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(88, 86, 214, 0.05) 0px, transparent 50%);
}


/* ===================== SCROLL CONTAINER ===================== */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: calc(80px + var(--safe-bot));
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* ===================== PAGES ===================== */
.pg {
    display: none;
    height: 100vh;
    overflow: hidden;
}

.pg.act {
    display: flex;
    flex-direction: column;
}

/* ===================== PAGE HEADER ===================== */
.pg-hdr {
    background: var(--surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    z-index: 100;
}

.pg-back {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-light);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.pg-back:active {
    transform: scale(0.9);
    background: rgba(0, 0, 0, 0.06);
}

/* ===================== TOP HEADER ===================== */
.top-hdr {
    background: var(--surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    padding-top: var(--safe-top);
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
    z-index: 100;
}

.hdr-inner {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--or);
    letter-spacing: -0.4px;
}

.greet {
    font-size: 12px;
    color: var(--gray);
}

.loc-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    padding: 8px 16px 10px;
    border-top: 1px solid var(--border);
}

.loc-ico {
    color: var(--or);
    flex-shrink: 0;
}

.loc-name {
    font-size: 13px;
    font-weight: 600;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loc-hint {
    font-size: 10px;
    color: var(--gray);
}

.loc-chev {
    font-size: 16px;
    color: var(--gray);
    margin-left: auto;
}

/* ===================== SEARCH ===================== */
.srch-wrap {
    padding: 0 16px 10px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.srch-box {
    position: relative;
}

.srch-ico {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    pointer-events: none;
}

.srch-inp {
    width: 100%;
    background: var(--bg);
    border: none;
    border-radius: 12px;
    padding: 10px 12px 10px 36px;
    font: inherit;
    font-size: 14px;
    outline: none;
    color: var(--text);
}

.srch-inp::placeholder {
    color: var(--gray);
}

/* ===================== RESTAURANTS ===================== */
.rest-sect {
    padding: 14px 16px 6px;
    flex-shrink: 0;
}

.sect-ttl {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.rest-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.rest-scroll::-webkit-scrollbar {
    display: none;
}

.rest-card {
    flex-shrink: 0;
    width: 130px;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
}

.rest-card.act {
    border-color: var(--primary);
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.rest-emoji {
    font-size: 32px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.rest-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

.rest-dist {
    font-size: 11px;
    color: var(--primary);
    margin-top: 4px;
    font-weight: 600;
}

/* ===================== CATEGORIES ===================== */
.cats-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.cats-scroll {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.cats-scroll::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--surface);
    color: var(--text-muted);
    white-space: nowrap;
}

.cat-pill.act {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.2);
}

/* ===================== PRODUCTS GRID ===================== */
.prods-sect {
    padding: 0 16px 14px;
}

/* Category section headers */
.cat-section {
    display: contents;
    /* Grid ostida bo'lishi uchun */
}

.cat-section-hdr {
    grid-column: 1 / -1;
    /* To'liq kenglik */
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    padding: 24px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: sticky;
    top: 52px;
    /* cats-wrap ostida yopishib turadi */
    background: var(--white);
    z-index: 10;
    margin-top: 10px;
}

.prods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.p-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.p-card:active {
    transform: scale(0.98);
}

.p-img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9f9f9;
}

.p-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
}

.p-body {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.p-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    color: var(--text-main);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-price-row {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 8px;
}

.p-price {
    font-size: 16px;
    font-weight: 800;
}

.p-som {
    font-size: 11px;
    color: var(--gray);
}

.add-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

.q-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid var(--border-thick);
    background: white;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.q-btn:active {
    background: #f0f0f0;
}

.q-btn.min {
    color: var(--red);
}

.qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.q-num {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    flex: 1;
    text-align: center;
}

/* ===================== CART FLOAT ===================== */
.cart-float {
    position: fixed;
    right: 16px;
    bottom: calc(68px + var(--safe-bot) + 12px);
    z-index: 60;
    display: none;
}

.cart-float.show {
    display: block;
    animation: slideUp .25s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.cart-float-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 28px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font: inherit;
    box-shadow: 0 4px 18px rgba(255, 122, 0, .45);
    white-space: nowrap;
}

.cf-badge {
    background: #fff;
    color: var(--primary);
    border-radius: 20px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.cf-label {
    font-size: 13px;
    font-weight: 700;
}

.cf-right {
    font-size: 13px;
    font-weight: 800;
}

/* ===================== BOTTOM NAV ===================== */
.bnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-top: 1px solid var(--border-light);
    display: flex;
    padding-bottom: var(--safe-bot);
    z-index: 70;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
}

.bn-item {
    flex: 1;
    padding: 10px 4px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    position: relative;
}

.bn-item.act {
    color: var(--primary);
}

.bn-ico {
    font-size: 22px;
    transition: transform 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.bn-item.act .bn-ico {
    transform: translateY(-2px);
}

.bn-lbl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bn-item.act {
    color: var(--or);
}

.bn-item svg {
    width: 23px;
    height: 23px;
}

.bn-dot {
    position: absolute;
    top: 6px;
    right: calc(50% - 14px);
    width: 8px;
    height: 8px;
    background: var(--or);
    border-radius: 50%;
    border: 2px solid #fff;
    display: none;
}

.bn-dot.show {
    display: block;
}

/* ===================== CART PAGE ===================== */
.c-item {
    background: var(--white);
    border-radius: 16px;
    padding: 13px 14px;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.c-emoji {
    font-size: 36px;
    flex-shrink: 0;
    width: 44px;
    text-align: center;
}

.c-info {
    flex: 1;
    min-width: 0;
}

.c-name {
    font-size: 14px;
    font-weight: 700;
}

.c-price {
    font-size: 13px;
    color: var(--or);
    margin-top: 2px;
    font-weight: 600;
}

.c-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.addr-card {
    background: var(--white);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.addr-card-ttl {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.addr-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.addr-ico {
    width: 42px;
    height: 42px;
    background: var(--bg-main);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

.addr-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.addr-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.summ-card {
    background: var(--white);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.summ-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
    color: var(--gray);
}

.summ-tot {
    display: flex;
    justify-content: space-between;
    padding: 12px 0 4px;
    font-size: 16px;
    font-weight: 800;
    border-top: 1px solid var(--border);
    margin-top: 6px;
}

.summ-tot span:last-child {
    color: var(--or);
}

.order-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 18px;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(255, 122, 0, 0.2);
    transition: all 0.2s ease;
}

.order-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* ===================== PROFILE PAGE ===================== */
.prof-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    margin: 16px;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 16px 32px rgba(255, 122, 0, 0.25);
    color: white;
}

.prof-av {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.prof-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.prof-phone {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

.prof-stats {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 14px 10px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prof-stat {
    flex: 1;
    text-align: center;
}

.pstat-val {
    font-size: 18px;
    font-weight: 800;
    color: white;
}

.pstat-lbl {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.pstat-div {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, .22);
}

.prof-sect {
    background: var(--white);
    border-radius: 18px;
    margin: 10px 16px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}

.prof-sect-ttl {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 12px 16px 4px;
}

/* ===================== MENU ITEM (reusable) ===================== */
.mnu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .1s;
    background: var(--white);
}

.mnu-item:last-child {
    border-bottom: none;
}

.mnu-item:active {
    background: var(--bg);
}

.mnu-ico {
    width: 40px;
    height: 40px;
    background: #FFF5EC;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.mnu-lbl {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}

.mnu-sub {
    font-size: 11px;
    color: var(--gray);
    margin-top: 1px;
}

.mnu-arr {
    font-size: 20px;
    color: var(--gray2);
    margin-left: auto;
    flex-shrink: 0;
}

/* ===================== ORDERS HISTORY ===================== */
.ord-card {
    background: var(--white);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}

.ord-card-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ord-id {
    font-size: 14px;
    font-weight: 800;
}

.ord-date {
    font-size: 11px;
    color: var(--gray);
}

.ord-rest {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 6px;
}

.ord-items {
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.ord-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.ord-total {
    font-size: 15px;
    font-weight: 800;
}

.ord-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.s-new {
    background: #FFF3E0;
    color: #E65100;
}

.s-accepted {
    background: #E3F2FD;
    color: #1565C0;
}

.s-assigned {
    background: #EDE7F6;
    color: #4527A0;
}

.s-on_way {
    background: #E8F5E9;
    color: #2E7D32;
}

.s-delivered {
    background: #E8F5E9;
    color: #1B5E20;
}

.s-cancelled {
    background: #FFEBEE;
    color: #B71C1C;
}

/* ===================== MODAL ===================== */
.modal-bg {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, .45);
    display: none;
    align-items: flex-end;
}

.modal-bg.open {
    display: flex;
}

.modal-box {
    background: var(--white);
    border-radius: 24px 24px 0 0;
    width: 100%;
    padding: 20px 20px calc(20px + var(--safe-bot));
    max-height: 85vh;
    overflow-y: auto;
}

.modal-handle {
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto 18px;
}

.modal-ttl {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
}

.modal-inp {
    width: 100%;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font: inherit;
    font-size: 14px;
    outline: none;
    color: var(--text);
    transition: border-color .2s;
}

.modal-inp:focus {
    border-color: var(--or);
}

.mo-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: .15s;
}

.mo-btn-or {
    background: var(--or);
    color: #fff;
}

.mo-btn-out {
    background: #FFF5EC;
    color: var(--or);
    border: 1.5px solid var(--or);
}

.mo-btn-gr {
    background: none;
    color: var(--gray);
}

.mo-btn:active {
    opacity: .85;
}

.or-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.or-divider span {
    font-size: 12px;
    color: var(--gray);
}

/* ===================== UTIL ===================== */
.loading-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.spinner {
    width: 34px;
    height: 34px;
    border: 3px solid var(--bg);
    border-top-color: var(--or);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============ SKELETON ============ */
.skeleton {
    background: linear-gradient(90deg, #F2F2F7 25%, #E5E5EA 50%, #F2F2F7 75%);
    background-size: 200% 100%;
    animation: skeleton-shift 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-shift {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.empty-wrap {
    text-align: center;
    padding: 50px 20px;
    color: var(--gray);
}

.empty-ico {
    font-size: 52px;
    margin-bottom: 12px;
}

.empty-ttl {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

/* ===================== SUCCESS ===================== */
.success-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 24px;
    text-align: center;
}

.succ-ico {
    font-size: 72px;
    margin-bottom: 16px;
    animation: pop .4s;
}

@keyframes pop {
    0% {
        transform: scale(0)
    }

    70% {
        transform: scale(1.15)
    }

    100% {
        transform: scale(1)
    }
}

.succ-ttl {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.succ-sub {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.succ-btn {
    margin-top: 28px;
    background: var(--or);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 15px 36px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

/* ===================== LANDING & LOGIN ===================== */
.main-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 40px 32px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 30px;
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 24px;
    box-shadow: 0 12px 32px rgba(255, 122, 0, 0.3);
}

.btn-primary-custom {
    background: var(--or);
    color: #fff !important;
    border: none;
    border-radius: 16px;
    padding: 14px;
    font-weight: 700;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary-custom:hover {
    background: var(--or2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.3);
}

.btn-secondary-custom {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text) !important;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    font-weight: 700;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-secondary-custom:hover {
    background: #fff;
    transform: translateY(-2px);
    border-color: var(--or);
}

.shake-animation {
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.hover-underline:hover {
    text-decoration: underline !important;
}

/* ===================== SUGGESTIONS ===================== */
.suggestions-list {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: -8px;
    margin-bottom: 12px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    position: relative;
    z-index: 10;
}

.suggestion-item {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:active,
.suggestion-item:hover {
    background: var(--bg);
}

.suggestion-item b {
    display: block;
    font-size: 13px;
    color: var(--text);
}

.suggestion-item span {
    display: block;
    color: var(--gray);
    font-size: 11px;
    margin-top: 2px;
}

/* ===================== LOGIN BUTTON ===================== */
.login-btn {
    background: #24A1DE;
    color: #fff !important;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    text-decoration: none;
    transition: 0.2s;
}

.login-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* ===================== ACTIVE ORDERS ===================== */
.active-ord-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.active-ord-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--primary);
}

.active-ord-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.active-ord-id {
    font-weight: 700;
    font-size: 17px;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.active-ord-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.active-ord-info {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 12px;
}

.summ-card {
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 12px 0;
    border: 1px solid var(--border-light);
}

.summ-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.summ-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-thick);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.summ-row.total .val {
    color: var(--primary);
}

.active-ord-items {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 1.5px solid var(--border);
    line-height: 1.5;
}

.driver-box {
    background: var(--bg-main);
    padding: 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    border: 1px solid var(--border-light);
}

.driver-av {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.2);
}

.driver-det {
    flex: 1;
}

.driver-name {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.driver-lbl {
    font-size: 12px;
    color: var(--text-muted);
}

.driver-call {
    background: var(--green);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.2);
    transition: all 0.2s ease;
    text-decoration: none;
    /* Kept from original */
}

.driver-call:active {
    transform: scale(0.92);
}

.active-orders-ttl {
    font-size: 17px;
    font-weight: 800;
    margin: 10px 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-orders-ttl span {
    background: var(--or);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ===================== TAB SYSTEM ===================== */
.tabs {
    display: flex;
    border-radius: 14px;
    padding: 4px;
    background: var(--bg);
    overflow: hidden;
    gap: 4px;
}

.tab {
    flex: 1;
    padding: 10px 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 11px;
    transition: 0.2s;
    white-space: nowrap;
    color: var(--gray);
}

.tab.act {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--or);
}

/* ===================== NOTIFICATIONS ===================== */
.msg-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--white);
    display: none;
}

.msg-badge.show {
    display: flex;
}

.top-notif-bar {
    background: #FFF5EC;
    border-bottom: 1px solid var(--border);
    padding: 8px 16px;
    display: none;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    animation: slideDown .3s ease;
}

.top-notif-bar.show {
    display: flex;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

.top-notif-ico {
    font-size: 18px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

.top-notif-txt {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-notif-btn {
    font-size: 11px;
    font-weight: 800;
    color: var(--or);
    text-transform: uppercase;
}

/* ===================== CHAT ROOM ===================== */
/* ===================== PREMIUM CHAT ROOM ===================== */
.chat-modal .modal-box {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 92vh;
    background: #fff;
}

.chat-hdr {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    z-index: 10;
}

.chat-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #F0F2F5;
    /* Standard chat background */
}

.chat-input-row {
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-inp {
    flex: 1;
    background: #F2F3F5;
    border: 1px solid transparent;
    border-radius: 22px;
    padding: 10px 18px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.chat-inp:focus {
    background: #fff;
    border-color: var(--or);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

.chat-send {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #FF7A00, #FF4500);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
    transition: transform 0.2s;
}

.chat-send:active {
    transform: scale(0.9);
}

/* Animations */
@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-badge,
.msg-badge {
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Message Bubbles */
.msg-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14.5px;
    line-height: 1.45;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.msg-me {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.15);
}

.msg-other {
    align-self: flex-start;
    background: white;
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-light);
}

.msg-time {
    font-size: 10px;
    margin-top: 5px;
    opacity: 0.6;
    text-align: right;
    font-weight: 500;
}

.msg-sender {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
}

.msg-other .msg-sender {
    color: #555;
}

.msg-ico {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    font-size: 8px;
}

/* Sidebar/Full List styles */
.chats-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
}

.chat-item {
    background: #fff;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.chat-item:active {
    background: #F9F9F9;
}

.chat-av {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: #F0F2F5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    position: relative;
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-t {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.chat-name {
    font-weight: 700;
    font-size: 15px;
}

.chat-time {
    font-size: 11px;
    color: var(--gray);
}

.chat-last {
    font-size: 13px;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-badge {
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Premium Toast Notification */
.toast {
    position: fixed;
    top: 30px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    margin: 0 auto;
    background: var(--surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transform: translateY(-100px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;

}

.toast.info {
    background: #1C1C1E;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

.toast.success {
    border-left: 4px solid var(--green);
}

.toast.error {
    border-left: 4px solid var(--red);
}

.toast.info {
    border-left: 4px solid var(--blue);
}

.toast svg {
    flex-shrink: 0;
}

.toast.success svg {
    color: var(--green);
}

.toast.error svg {
    color: var(--red);
}

.toast.info svg {
    color: var(--blue);
}

.modal-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
    letter-spacing: 0.5px;
}