/* ==========================================================================
   ReFood — P2P Home-Cooked Food Marketplace
   Mobile-first Design System (Telegram Mini App ready)
   ========================================================================== */

/* ===================== DESIGN TOKENS ===================== */
:root {
    --brand-950: #06122C;
    --brand-900: #0A2259;
    --brand-800: #0036B3;
    --brand-700: #0042D9;
    --brand-600: #0052FF;
    /* Прям чистый сочный синий (Vibrant Blue) */
    --brand-500: #1F69FF;
    --brand-400: #4285FF;
    --brand-300: #75A7FF;
    --brand-200: #A8C7FF;
    --brand-100: #DBE8FE;
    --brand-50: #EFF4FF;

    --green-600: #059669;
    --green-500: #10B981;
    --green-100: #D1FAE5;
    --green-50: #ECFDF5;

    --amber-500: #F59E0B;
    --amber-100: #FEF3C7;

    --rose-600: #DC2626;
    --rose-500: #EF4444;
    --rose-100: #FEE2E2;

    --gray-950: #090E1A;
    --gray-900: #0F172A;
    --gray-800: #1E293B;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748B;
    --gray-400: #94A3B8;
    --gray-300: #CBD5E1;
    --gray-200: #E2E8F0;
    --gray-100: #F1F5F9;
    --gray-50: #F8FAFC;
    --white: #FFFFFF;

    --kaspi: #F14635;
    --kaspi-dk: #C53A2A;
    --tg: #0052FF;
    --tg-dk: #0040D6;

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 28px;
    --r-full: 9999px;

    --sh-sm: 0 1px 3px rgba(10, 34, 89, 0.05), 0 1px 2px rgba(10, 34, 89, 0.03);
    --sh-md: 0 6px 20px rgba(0, 82, 255, 0.09), 0 2px 6px rgba(10, 34, 89, 0.04);
    --sh-lg: 0 14px 36px rgba(0, 82, 255, 0.16), 0 4px 12px rgba(10, 34, 89, 0.06);
    --sh-xl: 0 20px 50px rgba(0, 82, 255, 0.22);

    --ease: cubic-bezier(.16, 1, .3, 1);
    --t: all .22s cubic-bezier(.16, 1, .3, 1);

    --nav-h: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #F4F7FC;
    color: var(--gray-900);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(56px + var(--safe-bottom) + 16px);
    min-height: 100dvh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.025em;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 12px;
}

/* ===================== HEADER ===================== */
.app-header {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 1px 0 var(--gray-200), 0 2px 8px rgba(0, 0, 0, .04);
}

/* ===================== TWA MINI APP BAR ===================== */
.twa-bar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    padding: 6px 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

.twa-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    max-width: 640px;
    margin: 0 auto;
}

.twa-location-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    padding: 6px 12px;
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-800);
    cursor: pointer;
    transition: var(--t);
    flex: 1;
    min-width: 0;
    font-family: inherit;
}

.twa-location-chip:active {
    background: var(--brand-50);
    border-color: var(--brand-400);
}

.twa-location-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
    text-align: left;
}

.twa-caret {
    font-size: 9px;
    color: var(--gray-400);
}

.twa-bar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.twa-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: var(--t);
    box-shadow: var(--sh-sm);
}

.twa-icon-btn:active {
    transform: scale(0.92);
    background: var(--gray-100);
}

/* Telegram Mini App Viewport Overrides */
.is-twa .app-header {
    display: none !important;
}

.is-twa .hero-banner {
    display: none !important;
}

.is-twa .twa-bar {
    display: block !important;
}

.is-twa body {
    padding-top: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    height: 56px;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(0, 82, 255, 0.3);
    flex-shrink: 0;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-900);
    letter-spacing: -.4px;
    line-height: 1;
}

.brand-tag {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--brand-600);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 2px;
}

.location-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    padding: 8px 14px;
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-800);
    cursor: pointer;
    transition: var(--t);
    min-width: 0;
    overflow: hidden;
    box-shadow: var(--sh-sm);
}

.location-btn span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.location-btn:active {
    background: var(--brand-50);
    border-color: var(--brand-600);
}

.tg-header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-600);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(0, 82, 255, 0.35);
    transition: var(--t);
    flex-shrink: 0;
    white-space: nowrap;
}

.tg-header-btn:active {
    transform: scale(.97);
    background: var(--brand-700);
}

/* ===================== BOTTOM NAV ===================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(56px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    display: flex;
    align-items: stretch;
    z-index: 500;
    box-shadow: 0 -4px 20px rgba(0, 82, 255, 0.05);
}

.bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 4px 2px;
    position: relative;
    transition: var(--t);
    font-family: inherit;
}

.bnav-item:active {
    transform: scale(0.95);
}

.bnav-item.active .bnav-icon {
    background: rgba(0, 82, 255, 0.1);
    color: var(--brand-600);
    transform: scale(1.06);
}

.bnav-item.active .bnav-label {
    color: var(--brand-600);
    font-weight: 800;
}

.bnav-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    background: transparent;
    transition: var(--t);
}

.bnav-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-400);
    letter-spacing: -0.1px;
    transition: var(--t);
}

/* ===================== HERO ===================== */
.hero-banner {
    background: linear-gradient(135deg, #0052FF 0%, #0036B3 70%, #051438 100%);
    color: #fff;
    border-radius: var(--r-lg);
    padding: 18px 20px;
    margin: 10px 0 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 82, 255, 0.22);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, .2) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: var(--r-full);
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, .25);
}

.hero-title {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -.5px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.hero-title em {
    font-style: normal;
    color: #99F6E4;
}

.hero-desc {
    font-size: 13px;
    line-height: 1.5;
    opacity: .92;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-tg-hero {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    color: var(--brand-600);
    padding: 9px 20px;
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
    transition: var(--t);
    border: none;
    cursor: pointer;
}

.btn-tg-hero svg path {
    fill: var(--brand-600);
}

.btn-tg-hero:active {
    transform: scale(.97);
    background: #F1F5F9;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    padding: 9px 16px;
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--t);
}

.btn-ghost:active {
    background: rgba(255, 255, 255, .25);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 14px;
    position: relative;
    z-index: 1;
}

@media (max-width: 520px) {
    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-stat {
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--r-sm);
    padding: 7px 8px;
    text-align: center;
}

.hero-stat-val {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2px;
}

.hero-stat-lbl {
    display: block;
    font-size: 9.5px;
    opacity: .8;
    font-weight: 600;
}

/* ===================== MAP ===================== */
.map-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--sh-sm);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.map-header-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-900);
    display: flex;
    align-items: center;
    gap: 6px;
}

#leaflet-map {
    height: 220px;
    width: 100%;
}

/* ===================== FILTERS ===================== */
.filters-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--r-lg);
    padding: 10px 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 82, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filters-search-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-wrap {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100% !important;
    padding: 10px 34px 10px 38px !important;
    background: #F1F5F9 !important;
    border: 1.5px solid transparent !important;
    border-radius: var(--r-full) !important;
    font-size: 14px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500 !important;
    color: #0F172A !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    height: 42px !important;
    box-sizing: border-box !important;
}

.search-input:focus {
    background: #FFFFFF !important;
    border-color: #0052FF !important;
    box-shadow: 0 0 0 3.5px rgba(0, 82, 255, 0.12) !important;
}

.search-input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    pointer-events: none;
    color: #64748B;
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #CBD5E1;
    color: #FFFFFF;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    background: #64748B;
}

.radius-dropdown-wrap {
    flex-shrink: 0;
}

.radius-select {
    padding: 0 14px !important;
    height: 42px !important;
    border-radius: var(--r-full) !important;
    background: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
    color: #1E293B !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', sans-serif !important;
    outline: none !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.radius-select:focus {
    border-color: #0052FF !important;
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12) !important;
}

/* Horizontal scrolling chips */
.filter-chips-scroll {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 1px 0;
}

.filter-chips-scroll::-webkit-scrollbar {
    display: none;
}

.chip {
    flex-shrink: 0;
    padding: 5px 12px;
    border-radius: var(--r-full);
    font-size: 11.5px;
    font-weight: 700;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--t);
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.chip:active {
    transform: scale(0.96);
}

.chip:hover {
    border-color: var(--brand-300);
}

.chip.active {
    background: linear-gradient(135deg, #0052FF 0%, #0042D9 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 82, 255, 0.32);
}

.chip-hot.active {
    background: linear-gradient(135deg, #FF4500 0%, #FF6500 100%);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.35);
}

.chip-map-toggle {
    background: var(--brand-50);
    color: var(--brand-600);
    border-color: var(--brand-200);
}

/* Legacy aliases for modal/sub views */
.radius-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.radius-pill {
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-600);
    cursor: pointer;
    border: 1px solid var(--gray-200);
    background: #fff;
    transition: var(--t);
    font-family: inherit;
}

.radius-pill.active {
    background: var(--brand-600);
    color: #fff;
    border-color: var(--brand-600);
}

.slot-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.slot-btn {
    padding: 5px 12px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--t);
    font-family: inherit;
    box-shadow: var(--sh-sm);
}

.slot-btn.active {
    background: var(--brand-50);
    border-color: var(--brand-600);
    color: var(--brand-600);
}

/* ===================== KITCHEN / DISH FEED ===================== */
.cooks-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kitchen-card {
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(10, 34, 89, 0.04);
    transition: var(--t);
}

.kitchen-card:hover {
    box-shadow: 0 6px 18px rgba(0, 82, 255, 0.07);
}

.kitchen-card.held-kitchen {
    border-color: #FDE68A;
    background: #FFFDF5;
}

.kitchen-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-100);
}

.kitchen-info {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1;
}

.kitchen-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid var(--white);
    box-shadow: 0 0 0 1.5px var(--gray-200), var(--sh-sm);
    background: var(--gray-100);
}

.kitchen-text {
    min-width: 0;
    flex: 1;
}

.kitchen-name {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--brand-900);
    margin-bottom: 1px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kitchen-spec {
    font-size: 10.5px;
    color: var(--gray-500);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kitchen-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.kitchen-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: var(--r-full);
    font-size: 9.5px;
    font-weight: 700;
}

.badge-audit {
    background: var(--green-100);
    color: var(--green-600);
}

.badge-held {
    background: var(--rose-100);
    color: var(--rose-600);
}

.badge-dist {
    background: var(--brand-50);
    color: var(--brand-600);
}

.kitchen-rating {
    text-align: right;
    flex-shrink: 0;
}

.rating-score {
    font-size: 15px;
    font-weight: 900;
    color: var(--brand-900);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    line-height: 1;
}

.rating-score::before {
    color: #F59E0B;
}

.rating-score.held-score {
    color: var(--rose-500);
}

.rating-count {
    display: block;
    font-size: 9.5px;
    color: var(--gray-400);
    margin-top: 2px;
    text-align: right;
    white-space: nowrap;
}

/* Dishes grid - Compact & High-density */
.dishes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 10px 12px;
}

@media (min-width: 540px) {
    .dishes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 10px 14px 14px;
    }
}

/* Single dish presentation: spans width smoothly without gap */
.dishes-grid.single-dish,
.dishes-grid:has(.dish-card:only-child) {
    grid-template-columns: 1fr;
}

@media (max-width: 540px) {

    .dishes-grid.single-dish .dish-card,
    .dishes-grid:has(.dish-card:only-child) .dish-card {
        flex-direction: row;
        min-height: 105px;
    }

    .dishes-grid.single-dish .dish-img-wrap,
    .dishes-grid:has(.dish-card:only-child) .dish-img-wrap {
        width: 105px;
        min-height: 105px;
        height: auto;
        flex-shrink: 0;
    }
}

.dish-card {
    background: var(--white);
    border: 1px solid #E8EEF5;
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--t);
    box-shadow: 0 1px 4px rgba(10, 34, 89, 0.03);
}

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

.dish-img-wrap {
    height: 105px;
    position: relative;
    background: var(--gray-100);
    overflow: hidden;
}

.dish-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.dish-card:hover .dish-img {
    transform: scale(1.04);
}

.dish-slot-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 82, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 8.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--r-full);
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.dish-body {
    padding: 7px 8px 9px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2px;
}

.dish-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--brand-900);
    line-height: 1.25;
}

.dish-desc {
    font-size: 10.5px;
    color: var(--gray-500);
    line-height: 1.3;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dish-kbju {
    display: flex;
    gap: 4px;
    font-size: 9.5px;
    color: var(--gray-400);
    flex-wrap: wrap;
    margin-top: 2px;
}

.dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    padding-top: 6px;
    border-top: 1px solid #F1F5F9;
    margin-top: auto;
}

.dish-price {
    font-size: 13.5px;
    font-weight: 900;
    color: var(--brand-600);
    line-height: 1;
    white-space: nowrap !important;
    display: inline-flex;
    align-items: baseline;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.dish-price span {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--gray-500);
}

.btn-add-cart {
    background: linear-gradient(135deg, #0052FF 0%, #0042D9 100%);
    color: var(--white);
    border: none;
    padding: 4px 9px;
    border-radius: var(--r-full);
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: var(--t);
    flex-shrink: 0;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(0, 82, 255, 0.25);
    font-family: inherit;
    height: 28px;
}

.btn-add-cart.in-cart {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
    padding: 4px 8px;
    font-size: 9.5px;
}

.btn-add-cart:active {
    transform: scale(0.94);
}

.btn-add-cart:disabled {
    background: var(--gray-200);
    color: var(--gray-400);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: var(--brand-600);
    color: var(--white);
    border: none;
    padding: 13px 24px;
    border-radius: var(--r-full);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--t);
    box-shadow: 0 4px 16px rgba(0, 82, 255, 0.3);
    font-family: inherit;
    width: 100%;
}

.btn-primary:active {
    transform: scale(.98);
    background: var(--brand-700);
}

/* ===================== FLOATING CART (Dynamic Island Capsule) ===================== */
.cart-floating-bar {
    position: fixed;
    bottom: calc(56px + var(--safe-bottom) + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 500px;
    background: linear-gradient(135deg, #051438 0%, #0052FF 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 14px;
    border-radius: var(--r-full);
    box-shadow: 0 8px 28px rgba(0, 82, 255, 0.35), 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    z-index: 400;
    transition: var(--t);
    animation: slideUp .3s cubic-bezier(.16, 1, .3, 1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.cart-floating-bar:active {
    transform: translate(-50%, 2px) scale(.98);
}

.cart-floating-left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.cart-floating-count {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.cart-floating-sum {
    font-size: 14.5px;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.cart-floating-action {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 800;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.16);
    padding: 6px 12px;
    border-radius: var(--r-full);
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: var(--t);
}

.cart-floating-action:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ===================== MODALS (Compact iOS Bottom Sheet) ===================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 27, 44, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all .24s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--white);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 540px;
    max-height: 88dvh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(5, 27, 44, 0.22);
    transform: translateY(30px);
    transition: transform .26s cubic-bezier(.16, 1, .3, 1);
    overscroll-behavior: contain;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-box::before {
    content: '';
    display: block;
    width: 34px;
    height: 4px;
    background: var(--gray-300);
    border-radius: var(--r-full);
    margin: 8px auto 0;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .modal-overlay {
        align-items: center !important;
        padding: 24px !important;
    }

    .modal-box {
        border-radius: 24px !important;
        max-height: 85vh !important;
        transform: scale(0.96) translateY(12px) !important;
    }

    .modal-overlay.active .modal-box {
        transform: scale(1) translateY(0) !important;
    }

    .modal-box::before {
        display: none !important;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 16px;
    border-bottom: 1px solid var(--gray-100);
    flex-shrink: 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-900);
}

.modal-close {
    background: var(--gray-100);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: var(--t);
}

.modal-close:active {
    background: var(--gray-200);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Modal Stacking Hierarchy */
#app-modal {
    z-index: 1000;
}

#onboarding-modal {
    z-index: 1100;
}

.terms-modal-overlay {
    z-index: 1300 !important;
}

/* Terms of Service Modal */
.terms-box {
    max-width: 520px !important;
    border-radius: 24px 24px 0 0 !important;
}

@media (min-width: 640px) {
    .terms-box {
        border-radius: 24px !important;
    }
}

.terms-body {
    padding: 22px 24px !important;
    max-height: 72vh;
    overflow-y: auto;
}

.terms-content {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--gray-700);
}

.terms-section {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.terms-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 18px;
}

.terms-section h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--brand-900);
    margin-bottom: 5px;
}

.terms-section p {
    margin: 0;
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.55;
}

.terms-agree-btn {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    font-size: 14px;
    font-weight: 800;
    border-radius: 9999px;
}

/* ===================== CART ITEMS ===================== */
.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    gap: 12px;
}

.cart-item-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-900);
    margin-bottom: 2px;
}

.cart-item-info p {
    font-size: 12px;
    color: var(--gray-500);
}

.cart-qty-ctrls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-qty {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-300);
    background: var(--white);
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t);
    font-family: inherit;
}

.btn-qty:active {
    background: var(--gray-100);
}

.checkout-summary {
    background: var(--gray-50);
    border-radius: var(--r-md);
    padding: 16px;
    margin: 16px 0;
    border: 1px solid var(--gray-200);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.summary-row.total {
    font-size: 17px;
    font-weight: 800;
    color: var(--brand-900);
    border-top: 1px solid var(--gray-200);
    padding-top: 10px;
    margin-top: 10px;
    margin-bottom: 0;
}

.btn-kaspi-pay {
    width: 100%;
    background: var(--kaspi);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: var(--r-full);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(241, 70, 53, .35);
    transition: var(--t);
    font-family: inherit;
}

.btn-kaspi-pay:active {
    background: var(--kaspi-dk);
    transform: scale(.98);
}

/* ===================== DASHBOARDS ===================== */
.dashboard-view {
    padding: 16px 0;
}

.section-heading {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-900);
    margin-bottom: 6px;
    letter-spacing: -.3px;
}

.section-sub {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 20px;
    line-height: 1.5;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: 16px;
    box-shadow: var(--sh-sm);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
    gap: 8px;
}

.order-code {
    font-weight: 800;
    color: var(--brand-700);
    font-size: 14px;
}

.status-pill {
    padding: 4px 10px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.status-pill.pending {
    background: var(--amber-100);
    color: #92400E;
}

.status-pill.preparing {
    background: #E0E7FF;
    color: #3730A3;
}

.status-pill.delivering {
    background: var(--green-100);
    color: #065F46;
}

.status-pill.completed {
    background: var(--green-50);
    color: #047857;
}

.status-pill.cancelled {
    background: var(--rose-100);
    color: #991B1B;
}

/* Order tracker */
.order-tracker {
    display: flex;
    justify-content: space-between;
    margin: 14px 0;
    position: relative;
}

.order-tracker::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--gray-200);
    z-index: 1;
}

.track-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.track-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    margin: 0 auto 6px;
    border: 3px solid var(--white);
    box-shadow: var(--sh-sm);
}

.track-step.done .track-dot {
    background: var(--green-500);
    color: var(--white);
}

.track-step.active .track-dot {
    background: var(--brand-700);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(13, 71, 161, .2);
}

.track-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: var(--r-full);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--t);
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand-700);
    color: var(--white);
    box-shadow: 0 3px 12px rgba(13, 71, 161, .3);
}

.btn-primary:active {
    transform: scale(.97);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1.5px solid var(--gray-200);
}

.btn-secondary:active {
    background: var(--gray-200);
}

.btn-danger {
    background: var(--rose-500);
    color: var(--white);
}

.btn-danger:active {
    background: var(--rose-600);
}

.btn-success {
    background: var(--green-500);
    color: var(--white);
}

.btn-success:active {
    background: var(--green-600);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

/* ===================== EMPTY STATE ===================== */
.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: var(--gray-400);
}

.empty-state .empty-icon {
    font-size: 52px;
    margin-bottom: 16px;
    display: block;
    opacity: .6;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    line-height: 1.5;
}

/* ===================== TOAST ===================== */
.toast {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--gray-900);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 600;
    z-index: 2000;
    opacity: 0;
    transition: all .3s cubic-bezier(.16, 1, .3, 1);
    white-space: nowrap;
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===================== SKELETON ===================== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

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

.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--r-md);
}

/* ===================== ADMIN ===================== */
.admin-kitchen-row {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: 16px;
    box-shadow: var(--sh-sm);
    margin-bottom: 12px;
}

.admin-kitchen-row.held {
    border-color: #FDE68A;
    background: #FFFDF5;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* ===================== COOK STATS ===================== */
.cook-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.cook-stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: 16px;
    text-align: center;
    box-shadow: var(--sh-sm);
}

.cook-stat-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-600);
    display: block;
    margin-bottom: 3px;
}

.cook-stat-lbl {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 600;
}

/* ===================== COOK DASHBOARD MODERN STYLING ===================== */
.cook-switch-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: var(--white);
    padding: 10px 14px;
    border-radius: var(--r-md);
    border: 1px solid var(--gray-200);
    box-shadow: var(--sh-sm);
}

.cook-switch-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.cook-fin-card {
    background: linear-gradient(135deg, #0052FF 0%, #0040D6 60%, #002DB3 100%);
    color: #FFF;
    border-radius: var(--r-lg);
    padding: 24px 22px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 12px 30px rgba(0, 82, 255, 0.28);
}

.cook-fin-info {
    flex: 1;
    min-width: 200px;
}

.cook-fin-label {
    font-size: 11px;
    font-weight: 800;
    color: #A7F3D0;
    text-transform: uppercase;
    letter-spacing: .5px;
    display: block;
}

.cook-fin-sum {
    font-size: 32px;
    font-weight: 800;
    margin: 4px 0;
    letter-spacing: -.5px;
}

.cook-fin-hint {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.4;
}

.btn-kaspi-payout {
    background: #FFFFFF;
    color: var(--brand-600);
    border: none;
    padding: 12px 22px;
    border-radius: var(--r-full);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
    transition: var(--t);
    white-space: nowrap;
    font-family: inherit;
}

.btn-kaspi-payout:active {
    transform: scale(.96);
    background: #F8FAFC;
}

/* ==========================================================================
/* ==========================================================================
   COOK CABINET & MENU MANAGEMENT (TELEGRAM STYLE REDESIGN)
   ========================================================================== */

.cook-view-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* ── Telegram Cook Top Navigation Header ── */
.tg-top-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 2px 14px;
    margin-bottom: 4px;
    gap: 10px;
    flex-wrap: wrap;
}

.tg-top-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tg-top-title {
    font-size: 18px;
    font-weight: 900;
    color: #0F172A;
    letter-spacing: -0.3px;
    margin: 0;
}

.tg-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tg-header-action-btn {
    background: #FFFFFF;
    color: #0284C7;
    border: 1.5px solid #E0F2FE;
    font-weight: 700;
    font-size: 12.5px;
    padding: 7px 14px;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    font-family: inherit;
    white-space: nowrap;
}

.tg-header-action-btn:hover {
    background: #F0F9FF;
    border-color: #BAE6FD;
    color: #0369A1;
    transform: translateY(-1px);
}

.tg-header-icon-btn {
    width: 36px;
    height: 36px;
    background: #FFFFFF;
    color: #475569;
    border: 1.5px solid #E2E8F0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.tg-header-icon-btn:hover {
    background: #F8FAFC;
    color: #0F172A;
    border-color: #CBD5E1;
}

.tg-header-select {
    background: #F8FAFC;
    color: #334155;
    border: 1.5px solid #E2E8F0;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 9999px;
    cursor: pointer;
    font-family: inherit;
    outline: none;
    max-width: 180px;
}

.tg-header-select:focus {
    border-color: #2481CC;
    background: #FFFFFF;
}

/* ── Telegram Mini App Segmented Navigation Bar ── */
.tg-segmented-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(248, 250, 252, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 10px 4px 12px;
    margin-bottom: 18px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.tg-segmented-bar::-webkit-scrollbar {
    display: none;
}

.tg-tab-btn {
    background: #FFFFFF;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 15px;
    border-radius: 9999px;
    border: 1.5px solid #E2E8F0;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
    user-select: none;
}

.tg-tab-btn:hover {
    background: #F8FAFC;
    color: #0F172A;
    border-color: #CBD5E1;
}

.tg-tab-btn.active {
    background: #2481CC;
    color: #FFFFFF;
    border-color: #2481CC;
    font-weight: 800;
    box-shadow: 0 3px 12px rgba(36, 129, 204, 0.35);
    transform: translateY(-1px);
}

.tg-tab-badge {
    background: #EF4444;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 9999px;
    min-width: 18px;
    text-align: center;
    line-height: 1.3;
}

.tg-tab-btn.active .tg-tab-badge {
    background: #FFFFFF;
    color: #2481CC;
}

/* ── Telegram Profile Header Card ── */
.tg-cook-profile-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 20px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.tg-cook-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tg-cook-info-flex {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tg-cook-avatar-wrap {
    position: relative;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
}

.tg-cook-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #E2E8F0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.tg-cook-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: #10B981;
    border: 2.5px solid #FFFFFF;
    border-radius: 50%;
}

.tg-cook-online-dot.paused {
    background: #F59E0B;
}

.tg-cook-title {
    font-size: 18px;
    font-weight: 900;
    color: #0F172A;
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tg-cook-sub {
    font-size: 12px;
    color: #64748B;
    line-height: 1.4;
}

.tg-cook-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #F1F5F9;
}

.tg-mini-pill {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #334155;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tg-mini-pill:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.tg-mini-pill.green {
    background: #ECFDF5;
    color: #047857;
    border-color: #A7F3D0;
}

.tg-mini-pill.amber {
    background: #FFFBEB;
    color: #92400E;
    border-color: #FDE68A;
}

.tg-mini-pill.blue {
    background: #EFF6FF;
    color: #1D4ED8;
    border-color: #BFDBFE;
}

/* ── Telegram Content Card Box ── */
.tg-content-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.tg-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.tg-card-title {
    font-size: 17px;
    font-weight: 900;
    color: #0F172A;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cook-hero-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(226, 88, 34, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.cook-hero-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 20%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cook-hero-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.cook-hero-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cook-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #F97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
    background: #334155;
}

.cook-hero-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.3px;
    margin: 0 0 4px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cook-hero-badge-verified {
    background: rgba(16, 185, 129, 0.2);
    color: #6EE7B7;
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 9999px;
}

.cook-hero-meta {
    font-size: 12.5px;
    color: #94A3B8;
    line-height: 1.5;
}

.cook-hero-meta b {
    color: #E2E8F0;
}

/* ── Live Kitchen Status Toggle ── */
.btn-kitchen-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-kitchen-toggle.open {
    background: #064E3B;
    color: #6EE7B7;
    border: 1.5px solid #10B981;
}

.btn-kitchen-toggle.open:hover {
    background: #065F46;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
}

.btn-kitchen-toggle.paused {
    background: #451A03;
    color: #FCD34D;
    border: 1.5px solid #F59E0B;
}

.btn-kitchen-toggle.paused:hover {
    background: #78350F;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
}

.pulse-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.pulse-indicator.green {
    background: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35);
    animation: pulseGreen 2s infinite;
}

.pulse-indicator.orange {
    background: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
    animation: pulseOrange 2s infinite;
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulseOrange {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* ── Stats Metric Cards ── */
.cook-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 18px;
    position: relative;
    z-index: 2;
}

@media (max-width: 640px) {
    .cook-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cook-stat-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px 14px;
    text-align: center;
    transition: transform 0.2s;
}

.cook-stat-box:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.cook-stat-box-label {
    font-size: 11px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cook-stat-box-val {
    font-size: 18px;
    font-weight: 900;
    color: #FFFFFF;
}

.cook-stat-box-val.green { color: #6EE7B7; }
.cook-stat-box-val.amber { color: #FCD34D; }
.cook-stat-box-val.orange { color: #FDBA74; }

/* ── DELIVERY MANAGEMENT CARD ── */
.cook-delivery-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 2px solid #E2E8F0;
    border-radius: 20px;
    padding: 20px 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}

.cook-delivery-card.active {
    border-color: #10B981;
    background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.08);
}

.cook-delivery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.cook-delivery-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 800;
}

.cook-delivery-badge-tag.enabled {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
}

.cook-delivery-badge-tag.disabled {
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #CBD5E1;
}

.cook-delivery-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    border: 1.5px solid transparent;
    transition: all 0.2s;
}

.cook-delivery-switch-btn.on {
    background: #10B981;
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.cook-delivery-switch-btn.off {
    background: #64748B;
    color: #FFFFFF;
}

.cook-delivery-switch-btn:hover {
    opacity: 0.92;
    transform: scale(1.02);
}

.cook-delivery-body {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 16px;
    margin-top: 10px;
}

.cook-delivery-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 14px;
}

.preset-chip {
    background: #F1F5F9;
    border: 1.5px solid #E2E8F0;
    color: #334155;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.preset-chip:hover {
    background: #E2E8F0;
}

.preset-chip.active {
    background: #E25822;
    color: #FFFFFF;
    border-color: #E25822;
    box-shadow: 0 2px 8px rgba(226, 88, 34, 0.3);
}

.cook-delivery-preview-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.4;
    margin-top: 12px;
}

.cook-delivery-preview-banner.green {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.cook-delivery-preview-banner.slate {
    background: #F8FAFC;
    color: #475569;
    border: 1px solid #E2E8F0;
}

.btn-save-delivery {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    border: none;
    padding: 10px 22px;
    border-radius: 9999px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    font-family: inherit;
}

.btn-save-delivery:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* ── Financial Card (Kaspi Wallet) ── */
.cook-fin-card {
    background: linear-gradient(135deg, #065F46 0%, #047857 100%);
    border-radius: 20px;
    padding: 22px;
    color: #FFFFFF;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(6, 95, 70, 0.2);
}

.cook-fin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 14px 0 16px;
}

@media (max-width: 600px) {
    .cook-fin-grid {
        grid-template-columns: 1fr;
    }
}

.cook-fin-item {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 12px 16px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.cook-fin-item-label {
    font-size: 11px;
    color: #64748B;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.cook-fin-item-val {
    font-size: 19px;
    font-weight: 900;
    margin-top: 4px;
}

.btn-kaspi-payout {
    background: #FFFFFF;
    color: #065F46;
    border: none;
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.btn-kaspi-payout:hover {
    background: #F0FDF4;
    transform: translateY(-1px);
}

/* ── Dishes & Menu Management ── */
.cook-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.cook-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cook-section-title {
    font-size: 18px;
    font-weight: 900;
    color: #0F172A;
    margin: 0;
}

.cook-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.cook-tab-btn {
    background: #F1F5F9;
    border: 1.5px solid transparent;
    color: #475569;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.cook-tab-btn:hover {
    background: #E2E8F0;
    color: #1E293B;
}

.cook-tab-btn.active {
    background: #0F172A;
    color: #FFFFFF;
}

/* ── Dishes List & Cards ── */
.cook-dishes-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.cook-dish-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}

.cook-dish-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.cook-dish-card.inactive {
    opacity: 0.65;
    background: #F8FAFC;
    border-color: #E2E8F0;
}

.cook-dish-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.cook-dish-thumb-wrap {
    position: relative;
    width: 74px;
    height: 74px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: #F1F5F9;
}

.cook-dish-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.cook-dish-card:hover .cook-dish-thumb {
    transform: scale(1.05);
}

.cook-dish-slot-tag {
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    background: rgba(15, 23, 42, 0.75);
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 800;
    text-align: center;
    padding: 2px 4px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.cook-dish-details {
    min-width: 0;
    flex: 1;
}

.cook-dish-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.cook-dish-title {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.cook-dish-cat-pill {
    background: #FFF7ED;
    color: #C2410C;
    border: 1px solid #FFEDD5;
    font-size: 10.5px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 9999px;
}

.cook-dish-meta {
    font-size: 12px;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.cook-dish-price-tag {
    font-size: 15px;
    font-weight: 900;
    color: #E25822;
}

/* ── Capacity Portions Tracker ── */
.cook-capacity-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    width: fit-content;
}

.capacity-meter-bar {
    width: 60px;
    height: 6px;
    background: #E2E8F0;
    border-radius: 9999px;
    overflow: hidden;
}

.capacity-meter-fill {
    height: 100%;
    background: #10B981;
    border-radius: 9999px;
}

.capacity-meter-fill.warning {
    background: #F59E0B;
}

.btn-cap-step {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #475569;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.btn-cap-step:hover {
    background: #F1F5F9;
    border-color: #94A3B8;
}

/* ── Controls for Dishes ── */
.cook-dish-ctrls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.btn-toggle-stock {
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    border: 1.5px solid transparent;
    transition: all 0.15s;
}

.btn-toggle-stock.active {
    background: #ECFDF5;
    color: #065F46;
    border-color: #A7F3D0;
}

.btn-toggle-stock.active:hover {
    background: #D1FAE5;
}

.btn-toggle-stock.inactive {
    background: #FEF2F2;
    color: #991B1B;
    border-color: #FECACA;
}

.btn-toggle-stock.inactive:hover {
    background: #FEE2E2;
}

.btn-slot-pill {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    color: #475569;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.btn-slot-pill:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.btn-dish-edit {
    background: #EFF6FF;
    border: 1.5px solid #BFDBFE;
    color: #1D4ED8;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.btn-dish-edit:hover {
    background: #DBEAFE;
}

.btn-dish-del {
    background: transparent;
    border: 1.5px solid #E2E8F0;
    color: #94A3B8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-dish-del:hover {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #DC2626;
}

@media (max-width: 768px) {
    .cook-dish-card {
        flex-direction: column;
        align-items: stretch;
    }
    .cook-dish-ctrls {
        justify-content: flex-end;
        border-top: 1px solid #F1F5F9;
        padding-top: 10px;
    }
}

/* ── Orders Section ── */
.cook-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.cook-order-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.2s;
}

.cook-order-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.cook-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F1F5F9;
}

.cook-order-code {
    font-weight: 900;
    color: #0F172A;
    font-size: 14.5px;
    margin-right: 8px;
}

.cook-order-price {
    font-size: 17px;
    font-weight: 900;
    color: #059669;
}

.cook-order-items {
    font-size: 13.5px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 8px;
}

.cook-order-client {
    font-size: 12.5px;
    color: #475569;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.cook-order-meta-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.5;
}

.cook-order-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-action-cook {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    color: #9A3412;
    border: 1.5px solid #FDBA74;
    padding: 9px 18px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.btn-action-cook:hover {
    background: #FED7AA;
    transform: translateY(-1px);
}

.btn-action-cook.warning {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #92400E;
    border-color: #FCD34D;
}

.btn-action-cook.warning:hover {
    background: #FCD34D;
}

.btn-action-cook.complete {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
    border-color: #6EE7B7;
}

.btn-action-cook.complete:hover {
    background: #6EE7B7;
}

.btn-order-contact {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
}

.btn-order-contact.tel {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

.btn-order-contact.tel:hover {
    background: #DBEAFE;
}

.btn-order-contact.wa {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
}

.btn-order-contact.wa:hover {
    background: #D1FAE5;
}

/* ── Sanitary Self-Audit Card ── */
.cook-san-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.cook-san-title {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 4px;
}

.cook-san-desc {
    font-size: 12.5px;
    color: #64748B;
    margin-bottom: 16px;
}

.cook-san-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cook-san-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    background: #F8FAFC;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    transition: all 0.15s;
}

.cook-san-item:hover {
    background: #F1F5F9;
}

.cook-onboarding-banner {
    background: linear-gradient(135deg, #0052FF 0%, #1F69FF 100%);
    border-radius: 24px;
    padding: 32px 24px;
    color: #FFFFFF;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 82, 255, 0.22);
    margin-bottom: 24px;
}

.cook-onboarding-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.cook-onboarding-sub {
    font-size: 14px;
    opacity: 0.92;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto 20px;
}

.btn-cook-create {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    color: var(--brand-700) !important;
    padding: 14px 28px;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: var(--t);
}

.btn-cook-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.profile-role-badge-row {
    margin-top: 6px;
}

.profile-role-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===================== ADMIN REGISTRY STYLING ===================== */
.admin-registry-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-sm);
}

.admin-registry-header {
    padding: 14px 18px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 800;
    font-size: 14px;
    color: var(--brand-900);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-cook-row {
    padding: 16px 18px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

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

.admin-cook-name {
    font-weight: 800;
    font-size: 15px;
    color: var(--brand-900);
}

.admin-cook-sub {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

.admin-cook-meta {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 4px;
}

.admin-cook-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ===================== UTILS ===================== */
.hide-scroll {
    scrollbar-width: none;
}

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

.text-muted {
    color: var(--gray-500);
}

.text-small {
    font-size: 12px;
}

.mt-3 {
    margin-top: 12px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-5 {
    margin-top: 20px;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w-full {
    width: 100%;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

/* ===================== RESPONSIVE ===================== */
@media (min-width: 600px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-banner {
        padding: 36px 32px;
    }
}

/* Desktop / tablet — top nav, no bottom nav */
@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }

    body {
        padding-bottom: 24px;
    }

    .cart-floating-bar {
        bottom: 24px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 90%;
        max-width: 560px;
    }

    .nav-tabs {
        display: flex;
        align-items: center;
        gap: 4px;
        background: var(--gray-100);
        padding: 4px;
        border-radius: var(--r-full);
    }

    .nav-tab {
        border: none;
        background: transparent;
        padding: 8px 16px;
        border-radius: var(--r-full);
        font-size: 13px;
        font-weight: 700;
        color: var(--gray-600);
        cursor: pointer;
        transition: var(--t);
        display: flex;
        align-items: center;
        gap: 6px;
        font-family: inherit;
    }

    .nav-tab:hover {
        color: var(--brand-900);
    }

    .nav-tab.active {
        background: var(--white);
        color: var(--brand-700);
        box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .nav-tabs {
        display: none;
    }

    .tg-header-btn span {
        display: none;
    }

    .tg-header-btn {
        padding: 8px 10px;
    }

    .brand-tag {
        display: none;
    }

    .landing-hero-headline {
        font-size: 28px !important;
    }

    .landing-hero-card {
        padding: 32px 20px !important;
    }

    .landing-metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .landing-features-grid {
        grid-template-columns: 1fr !important;
    }

    .landing-steps-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   WEB LANDING VIEW (Outside Telegram) vs TWA APP VIEW (Inside Telegram)
   ========================================================================== */
html:not(.is-twa) #twa-app-view {
    display: none !important;
}

html:not(.is-twa) #web-landing-view {
    display: block !important;
}

html.is-twa #web-landing-view {
    display: none !important;
}

html.is-twa #twa-app-view {
    display: block !important;
}

/* Landing Page Elements */
#web-landing-view {
    min-height: 100vh;
    background: #F8FAFD;
    color: var(--gray-900);
}

.landing-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.landing-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.landing-header .landing-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-logo {
    font-size: 32px;
}

.landing-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--brand-700);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.landing-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-landing-top-tg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-600);
    color: #FFFFFF !important;
    padding: 9px 18px;
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 82, 255, 0.25);
    transition: all 0.2s ease;
}

.btn-landing-top-tg:hover {
    background: var(--brand-700);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 82, 255, 0.35);
}

.landing-main {
    padding: 40px 0 60px;
}

.landing-hero-card {
    background: linear-gradient(135deg, #0042D9 0%, #0052FF 50%, #1F69FF 100%);
    border-radius: 28px;
    padding: 48px 36px;
    color: #FFFFFF;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 82, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.landing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.landing-hero-headline {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.22;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: #FFFFFF;
}

.landing-hero-headline em {
    font-style: normal;
    color: #FDE047;
    text-decoration: underline wavy rgba(253, 224, 71, 0.6);
}

.landing-hero-sub {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.92;
    max-width: 680px;
    margin: 0 auto 32px;
}

.landing-cta-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 36px;
}

.btn-landing-hero-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    color: var(--brand-700) !important;
    font-size: 16px;
    font-weight: 800;
    padding: 16px 32px;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.btn-landing-hero-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.btn-landing-hero-cook {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF !important;
    font-size: 15px;
    font-weight: 700;
    padding: 16px 28px;
    border-radius: 9999px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-landing-hero-cook:hover {
    background: rgba(255, 255, 255, 0.25);
}

.landing-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: rgba(0, 20, 80, 0.32);
    border-radius: 20px;
    padding: 18px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.landing-metric-val {
    font-size: 22px;
    font-weight: 900;
    color: #FFFFFF;
}

.landing-metric-lbl {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 32px;
}

.landing-feat-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 26px 20px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--sh-sm);
    transition: transform 0.2s;
}

.landing-feat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
}

.landing-feat-icon {
    font-size: 34px;
    margin-bottom: 12px;
}

.landing-feat-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.landing-feat-card p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.55;
    margin: 0;
}

/* Landing Section Headers */
.landing-section-head {
    text-align: center;
    margin-top: 48px;
    margin-bottom: 24px;
}

.landing-section-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--brand-900);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.landing-section-sub {
    font-size: 14px;
    color: var(--gray-600);
    max-width: 580px;
    margin: 0 auto;
}

/* Landing How it works (3 Steps) */
.landing-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}

.landing-step-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px 20px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--sh-sm);
    position: relative;
    text-align: left;
    transition: transform 0.2s;
}

.landing-step-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
}

.landing-step-num {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 28px;
    height: 28px;
    background: var(--brand-50);
    color: var(--brand-600);
    font-size: 13px;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--brand-200);
}

.landing-step-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.landing-step-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--brand-900);
    margin-bottom: 6px;
}

.landing-step-card p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

/* Landing Bottom CTA Banner */
.landing-bottom-cta {
    background: linear-gradient(135deg, #0042D9 0%, #0052FF 100%);
    border-radius: 24px;
    padding: 40px 28px;
    color: #FFFFFF;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 16px 40px rgba(0, 82, 255, 0.2);
}

.landing-bottom-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.landing-bottom-sub {
    font-size: 14px;
    opacity: 0.92;
    max-width: 540px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.btn-landing-cta-bottom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    color: var(--brand-700) !important;
    font-size: 15px;
    font-weight: 800;
    padding: 16px 32px;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.btn-landing-cta-bottom:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.landing-footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 12px;
}

/* ==========================================================================
   USER PROFILE TAB STYLING
   ========================================================================== */
.profile-header-card {
    background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 100%);
    color: #FFFFFF;
    border-radius: 20px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    box-shadow: var(--sh-md);
    margin-bottom: 16px;
}

.profile-avatar-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.profile-header-info {
    flex: 1;
}

.profile-name {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 4px 0;
}

.profile-phone {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 6px;
    font-weight: 500;
}

.profile-status-badge {
    display: inline-block;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.22);
    padding: 3px 8px;
    border-radius: 9999px;
    font-weight: 600;
}

.profile-edit-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 15px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.profile-edit-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.profile-card {
    background: var(--white);
    border-radius: 16px;
    padding: 16px 18px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--sh-sm);
    margin-bottom: 14px;
}

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

.profile-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-700);
}

.profile-link-btn {
    background: none;
    border: none;
    color: var(--brand-600);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.profile-location-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.profile-stat-box {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    box-shadow: var(--sh-sm);
}

.profile-stat-num {
    font-size: 22px;
    font-weight: 900;
    color: var(--brand-700);
    display: block;
    margin-bottom: 2px;
}

.profile-stat-lbl {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 600;
}

.profile-menu-list {
    background: var(--white);
    border-radius: 18px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    margin-bottom: 24px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: var(--gray-800);
}

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

.profile-menu-item:hover {
    background: var(--gray-50);
}

.profile-menu-item.highlight {
    background: var(--brand-50);
    color: var(--brand-900);
    font-weight: 700;
}

.profile-menu-icon {
    font-size: 20px;
}

.profile-menu-label {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}

.profile-menu-arrow {
    color: var(--gray-400);
    font-size: 18px;
    font-weight: 700;
}

/* ==========================================================================
   ONBOARDING BOTTOM SHEET / MODAL
   ========================================================================== */
.onboarding-box {
    max-width: 440px !important;
    border-radius: 24px !important;
    padding: 28px 24px !important;
}

.onboarding-header {
    text-align: center;
    margin-bottom: 22px;
}

.onboarding-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.onboarding-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--brand-900);
    margin-bottom: 6px;
}

.onboarding-sub {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   MODERN FORM CONTROLS & INPUT SYSTEM (Montserrat & Premium Styling)
   ========================================================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 2px;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.2px;
}

.form-input,
input.form-input,
select.form-input,
textarea.form-input,
.form-textarea,
.form-select {
    width: 100% !important;
    height: 48px;
    padding: 12px 16px !important;
    background-color: #F8FAFC !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 14px !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0F172A !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.form-input:hover,
input.form-input:hover,
select.form-input:hover,
textarea.form-input:hover {
    border-color: #CBD5E1 !important;
    background-color: #FFFFFF !important;
}

.form-input:focus,
input.form-input:focus,
select.form-input:focus,
textarea.form-input:focus {
    background-color: #FFFFFF !important;
    border-color: #0052FF !important;
    box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.14) !important;
}

.form-input::placeholder,
textarea.form-input::placeholder,
.form-textarea::placeholder {
    color: #94A3B8 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

.form-textarea,
textarea.form-input {
    height: auto !important;
    min-height: 90px !important;
    padding: 12px 16px !important;
    resize: vertical !important;
    border-radius: 14px !important;
    line-height: 1.5 !important;
}

.form-select,
select.form-input {
    cursor: pointer !important;
    padding-right: 44px !important;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px 8px !important;
}

.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 12.5px;
    color: var(--gray-600);
    margin: 18px 0;
    cursor: pointer;
    line-height: 1.45;
}

.terms-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: #0052FF;
    border-radius: 6px;
    flex-shrink: 0;
    cursor: pointer;
}

.terms-label a {
    color: #0052FF;
    font-weight: 700;
    text-decoration: underline;
}

.terms-label a:hover {
    color: #0D47A1;
}

.form-error {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #B91C1C;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.4;
}

.onboarding-submit-btn {
    width: 100%;
    padding: 15px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    border-radius: var(--r-full) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0052FF !important;
    box-shadow: 0 4px 18px rgba(0, 82, 255, 0.35) !important;
    transition: all 0.2s ease !important;
}

.onboarding-submit-btn:active {
    transform: scale(0.98);
}

/* ==========================================================================
   SELF-PICKUP & DIRECT KASPI TRANSFER STYLES
   ========================================================================== */
.delivery-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: var(--r-md);
    margin-bottom: 16px;
}

.delivery-type-btn {
    border: none;
    background: transparent;
    padding: 10px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.delivery-type-btn.active {
    background: #FFFFFF;
    color: var(--brand-700);
    box-shadow: var(--sh-sm);
}

.kaspi-payment-card {
    background: #FFF5F5;
    border: 1.5px solid #FED7D7;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
}

.kaspi-pay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.kaspi-badge {
    background: #F14635;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--r-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kaspi-status {
    font-size: 12px;
    color: #C53A2A;
    font-weight: 700;
}

.kaspi-number-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid #FECACA;
    margin-bottom: 12px;
    gap: 8px;
}

.kaspi-phone-box {
    display: flex;
    flex-direction: column;
}

.kaspi-phone-num {
    font-size: 18px;
    font-weight: 900;
    color: #1F2937;
    letter-spacing: 0.5px;
}

.kaspi-phone-owner {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 600;
}

.btn-copy-kaspi {
    background: #FEE2E2;
    color: #DC2626;
    border: none;
    border-radius: 9999px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.btn-copy-kaspi:hover {
    background: #FECACA;
}

.kaspi-instructions {
    font-size: 12px;
    color: var(--gray-700);
    line-height: 1.55;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 12px;
    border-radius: 12px;
}

.btn-kaspi-confirm-pay {
    width: 100%;
    background: #F14635;
    color: #FFFFFF !important;
    border: none;
    border-radius: var(--r-full);
    padding: 15px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(241, 70, 53, 0.35);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.btn-kaspi-confirm-pay:hover {
    background: #DC2626;
    transform: translateY(-1px);
}

/* ==========================================================================
   COOK WALLET & PAYOUTS STYLING
   ========================================================================== */
.wallet-card {
    background: linear-gradient(135deg, #0A2259 0%, #0042D9 100%);
    border-radius: 20px;
    padding: 22px;
    color: #FFFFFF;
    box-shadow: var(--sh-md);
    margin-bottom: 20px;
}

.wallet-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.wallet-badge {
    background: rgba(255, 255, 255, 0.15);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
}

.wallet-balance-val {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.wallet-balance-lbl {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 16px;
}

.wallet-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 16px;
}

.wallet-stat-item {
    display: flex;
    flex-direction: column;
}

.wallet-stat-val {
    font-size: 15px;
    font-weight: 800;
}

.wallet-stat-lbl {
    font-size: 10px;
    opacity: 0.75;
    text-transform: uppercase;
}

.btn-wallet-withdraw {
    width: 100%;
    background: #FFFFFF;
    color: var(--brand-700);
    border: none;
    border-radius: var(--r-full);
    padding: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-wallet-withdraw:hover {
    background: #F8FAFC;
    transform: translateY(-1px);
}

/* ==========================================================================
   ADMIN PANEL: ACTIVE ORDERS & CONTACT MATCHING
   ========================================================================== */
.admin-tabs-nav {
    display: flex;
    gap: 6px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: var(--r-md);
    margin-bottom: 16px;
    overflow-x: auto;
}

.admin-tab-btn {
    border: none;
    background: transparent;
    padding: 8px 14px;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.admin-tab-btn.active {
    background: #FFFFFF;
    color: var(--brand-700);
    box-shadow: var(--sh-sm);
}

.admin-order-box {
    background: #FFFFFF;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--sh-sm);
}

.admin-order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.admin-parties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: var(--gray-50);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.admin-party-card {
    font-size: 12px;
    line-height: 1.45;
}

.admin-party-title {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--gray-500);
    font-weight: 700;
    margin-bottom: 2px;
}

.admin-party-name {
    font-weight: 800;
    color: var(--gray-900);
}

.admin-party-phone a {
    color: var(--brand-600);
    font-weight: 700;
    text-decoration: none;
}

.btn-admin-ok {
    background: var(--green-600);
    color: #FFFFFF;
    border: none;
    border-radius: var(--r-full);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.btn-admin-fail {
    background: var(--rose-500);
    color: #FFFFFF;
    border: none;
    border-radius: var(--r-full);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

/* ===================== DELIVERY TYPE SELECTOR ===================== */
.deliv-type-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.deliv-pill {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--r-md);
    border: 1.5px solid var(--gray-200);
    background: #FFFFFF;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    font-family: inherit;
}

.deliv-pill.active {
    border-color: var(--brand-600);
    background: #EFF6FF;
    color: var(--brand-700);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* ===================== KASPI DIRECT TRANSFER CARD ===================== */
.kaspi-transfer-card {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFFDFD 100%);
    border: 1.5px solid #FED7D7;
    border-radius: 16px;
    padding: 16px;
    margin: 16px 0;
    position: relative;
    box-shadow: 0 4px 14px rgba(229, 62, 62, 0.08);
}

.kaspi-transfer-badge {
    display: inline-block;
    background: #E53E3E;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: var(--r-full);
    margin-bottom: 12px;
}

.kaspi-transfer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.kaspi-transfer-label {
    color: var(--gray-600);
}

.kaspi-transfer-phone {
    font-size: 16px;
    font-weight: 800;
    color: #C53030;
    letter-spacing: 0.5px;
}

.kaspi-transfer-name {
    font-weight: 700;
    color: var(--gray-900);
}

.btn-kaspi-copy {
    width: 100%;
    margin-top: 8px;
    background: #FFFFFF;
    color: #C53030;
    border: 1.5px solid #FEB2B2;
    border-radius: var(--r-md);
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-kaspi-copy:active {
    background: #FFF5F5;
    transform: scale(0.98);
}

/* ===================== ORDER CONTACT BOX ===================== */
.order-contact-box {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: var(--r-md);
    padding: 12px 14px;
    margin: 10px 0;
}

.order-contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.order-contact-row:last-child {
    margin-bottom: 0;
}

.order-contact-icon {
    font-size: 16px;
}

.order-contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 13px;
}

.order-contact-label {
    color: var(--gray-700);
}

.order-contact-val {
    font-weight: 700;
    color: var(--brand-700);
}

/* ===================== COOK VERIFICATION & APPLICATION STYLES ===================== */
.cook-status-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 18px;
    margin-top: 14px;
    border: 1px solid var(--border-color, #E5E7EB);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.cook-status-card.pending {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
}

.cook-status-card.rejected {
    background: #FEF2F2;
    border: 1px solid #FECACA;
}

.cook-status-card.approved {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
}

.cook-status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.cook-status-icon-spin {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FEF3C7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.cook-status-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #92400E;
}

.cook-status-sub {
    font-size: 12px;
    color: #B45309;
}

.status-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 14px 0 12px;
    padding-left: 10px;
    border-left: 2px solid #FCD34D;
}

.status-timeline-step {
    font-size: 12.5px;
    padding-left: 12px;
    position: relative;
    color: #6B7280;
}

.status-timeline-step::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D1D5DB;
}

.status-timeline-step.completed {
    color: #15803D;
    font-weight: 700;
}

.status-timeline-step.completed::before {
    background: #22C55E;
}

.status-timeline-step.current {
    color: #B45309;
    font-weight: 700;
}

.status-timeline-step.current::before {
    background: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.cook-apply-box {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 16px;
    padding: 18px;
    margin-top: 14px;
}

.cook-apply-title {
    font-size: 16px;
    font-weight: 800;
    color: #92400E;
    margin: 0 0 6px;
}

.cook-apply-desc {
    font-size: 12.5px;
    color: #78350F;
    line-height: 1.45;
    margin: 0 0 12px;
}

.cook-apply-perks {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 12px;
    color: #92400E;
}

.cook-apply-perk-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   PREMIUM MODERN ADMIN DASHBOARD STYLES
   ========================================================================== */
.admin-view-wrap {
    padding: 4px 0 32px;
}

/* ── Hero Banner ─────────────────────────────────────────────────────────── */
.admin-hero-banner {
    background: linear-gradient(135deg, #0F0C29 0%, #302B63 55%, #24243E 100%);
    border-radius: 22px;
    padding: 22px 20px 20px;
    color: #FFFFFF;
    margin-bottom: 14px;
    box-shadow: 0 20px 50px -10px rgba(48, 43, 99, 0.55), 0 8px 20px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}

.admin-hero-banner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(226, 88, 34, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.admin-hero-banner::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -20px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.admin-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.admin-badge-system {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #C7D2FE;
    font-size: 10.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.admin-hero-actions {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.admin-btn-back {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #E0E7FF;
    font-size: 11.5px;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.12s;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.admin-btn-back:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.admin-hero-title {
    font-size: 21px;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 5px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.admin-hero-sub {
    font-size: 12px;
    color: rgba(199, 210, 254, 0.8);
    margin: 0 0 18px;
    line-height: 1.45;
    position: relative;
    z-index: 1;
}

/* ── Stats Pills in Hero ─────────────────────────────────────────────────── */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    position: relative;
    z-index: 1;
}

@media (min-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.admin-stat-pill {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 14px 14px 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-stat-pill:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.admin-stat-num {
    font-size: 26px;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1;
    letter-spacing: -1px;
}

.admin-stat-label {
    font-size: 10.5px;
    color: rgba(199, 210, 254, 0.75);
    font-weight: 600;
    line-height: 1.3;
}

.admin-stat-alert {
    font-size: 9.5px;
    color: #FCD34D;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin-top: 2px;
    animation: adminPulseFade 2s infinite;
}

@keyframes adminPulseFade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ── Navigation Tabs ─────────────────────────────────────────────────────── */
.admin-tabs-nav {
    display: flex;
    gap: 5px;
    background: #F1F5F9;
    padding: 4px;
    border-radius: 16px;
    margin-bottom: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.admin-tabs-nav::-webkit-scrollbar { display: none; }

.admin-tab-btn {
    border: none;
    background: transparent;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.admin-tab-btn:hover {
    background: rgba(255,255,255,0.7);
    color: #1E293B;
}

.admin-tab-btn.active {
    background: #FFFFFF;
    color: #4F46E5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12), 0 1px 3px rgba(0,0,0,0.08);
}

/* ── Badge Counts ─────────────────────────────────────────────────────────── */
.admin-badge-count {
    background: #E2E8F0;
    color: #475569;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.admin-tab-btn.active .admin-badge-count {
    background: #EDE9FE;
    color: #6D28D9;
}

.admin-badge-count.alert {
    background: #FEF3C7;
    color: #92400E;
    animation: adminPulseBadge 2s infinite;
}

@keyframes adminPulseBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
    50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0); }
}

/* ── Admin Item Cards ─────────────────────────────────────────────────────── */
.admin-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1.5px solid #EEF2FF;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.04), 0 1px 4px rgba(0,0,0,0.05);
    padding: 16px;
    margin-bottom: 12px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.admin-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.09), 0 2px 6px rgba(0,0,0,0.06);
}

.admin-card.waiting {
    border-color: #FDE68A;
    background: #FFFEF7;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1), 0 1px 4px rgba(0,0,0,0.04);
}

.admin-card.cancelled {
    border-color: #FECACA;
    background: #FFFAFA;
    opacity: 0.92;
}

/* ── Card Header ─────────────────────────────────────────────────────────── */
.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #F3F4F6;
    gap: 8px;
}

.admin-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.admin-order-id {
    font-weight: 900;
    font-size: 14px;
    color: #111827;
    letter-spacing: -0.2px;
    font-family: 'Courier New', monospace;
}

.admin-timestamp {
    font-size: 10.5px;
    color: #9CA3AF;
    font-weight: 500;
}

/* ── Status Badges ───────────────────────────────────────────────────────── */
.admin-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.admin-status-pill.waiting {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #78350F;
    border: 1px solid #FCD34D;
}

.admin-status-pill.paid {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.admin-status-pill.cancelled,
.admin-status-pill.rejected {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #7F1D1D;
    border: 1px solid #FCA5A5;
}

.admin-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #D97706;
    animation: adminPulse 1.5s infinite ease-in-out;
    flex-shrink: 0;
}

@keyframes adminPulse {
    0% { transform: scale(0.85); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(0.85); opacity: 1; }
}

/* ── Parties Grid ─────────────────────────────────────────────────────────── */
.admin-parties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #F8FAFF;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid #EEF2FF;
}

@media (max-width: 400px) {
    .admin-parties-grid { grid-template-columns: 1fr; }
}

.admin-party-box { font-size: 12px; }

.admin-party-role {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: #9CA3AF;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.admin-party-name {
    font-weight: 800;
    color: #111827;
    font-size: 13px;
    margin-bottom: 4px;
}

.admin-party-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* ── Chip Actions ─────────────────────────────────────────────────────────── */
.admin-chip-action {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 9px;
    background: #FFFFFF;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    color: #374151;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    font-family: inherit;
}

.admin-chip-action:hover {
    border-color: #6366F1;
    background: #F5F3FF;
    color: #4F46E5;
}

.admin-chip-action.wa {
    color: #15803D;
    border-color: #BBF7D0;
    background: #F0FDF4;
}

.admin-chip-action.wa:hover {
    background: #DCFCE7;
    border-color: #4ADE80;
}

/* ── Kaspi Payment Callout ───────────────────────────────────────────────── */
.admin-kaspi-callout {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1.5px solid #FCD34D;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.admin-kaspi-callout::before {
    content: '₸';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 44px;
    color: rgba(245, 158, 11, 0.1);
    font-weight: 900;
    pointer-events: none;
}

.admin-kaspi-callout-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 11.5px;
    color: #78350F;
    font-weight: 600;
}

.admin-kaspi-phone-pill {
    background: #FFFFFF;
    border: 1.5px solid #F59E0B;
    border-radius: 8px;
    padding: 3px 10px;
    font-weight: 900;
    color: #92400E;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.admin-kaspi-comment {
    font-size: 12px;
    color: #92400E;
    font-weight: 500;
}

/* ── Order Bottom Row ─────────────────────────────────────────────────────── */
.admin-order-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1.5px solid #F3F4F6;
    gap: 10px;
}

.admin-order-sum {
    font-size: 20px;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.5px;
}

.admin-btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ── Action Buttons ───────────────────────────────────────────────────────── */
.admin-btn-approve {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 9px 18px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.admin-btn-approve:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.42);
}

.admin-btn-approve:active { transform: translateY(0); }

.admin-btn-reject {
    background: #FFFFFF;
    color: #DC2626;
    border: 1.5px solid #FECACA;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
    font-family: inherit;
}

.admin-btn-reject:hover {
    background: #FEF2F2;
    border-color: #EF4444;
    transform: translateY(-1px);
}

/* ── Legacy subtab bar ────────────────────────────────────────────────────── */
.admin-subtabs-bar {
    display: flex;
    gap: 5px;
    background: #F1F5F9;
    padding: 4px;
    border-radius: 16px;
    margin-bottom: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.admin-subtabs-bar::-webkit-scrollbar { display: none; }

.admin-subtab-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #64748B;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.admin-subtab-btn.active {
    background: #FFFFFF;
    color: #4F46E5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12);
}

.admin-subtab-btn.active .admin-badge-count {
    background: #EDE9FE;
    color: #6D28D9;
}

/* ── Sanitary Photo Gallery ──────────────────────────────────────────────── */
.admin-photos-wrap {
    margin: 12px 0;
    background: #F8FAFF;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid #EEF2FF;
}

.admin-photos-title {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: #6B7280;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    letter-spacing: 0.5px;
}

.admin-photos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-photo-card {
    position: relative;
    width: 82px;
    height: 82px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #E5E7EB;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.admin-photo-card:hover {
    transform: scale(1.06);
    border-color: #6366F1;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.admin-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-photo-zoom {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 9.5px;
    padding: 2px 5px;
    border-radius: 5px;
    font-weight: 700;
}

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.admin-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-lightbox.active { display: flex; }

.admin-lightbox-img {
    max-width: 88vw;
    max-height: 82vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.admin-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.2);
    font-size: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.admin-lightbox-close:hover {
    background: rgba(255,255,255,0.28);
}

/* ── Empty States ─────────────────────────────────────────────────────────── */
.admin-empty-box {
    background: #FFFFFF;
    border: 2px dashed #E2E8F0;
    border-radius: 20px;
    padding: 44px 20px;
    text-align: center;
    color: #64748B;
}

.admin-empty-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.admin-empty-title {
    font-weight: 900;
    font-size: 15px;
    color: #1E293B;
    margin-bottom: 5px;
}

.admin-empty-sub {
    font-size: 12.5px;
    color: #94A3B8;
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.5;
}
