:root {
    --bg: #050b14;
    --bg-deep: #03070e;
    --bg-card: #0b1422;
    --bg-elevated: #121e32;
    --gold: #d4af37;
    --gold-light: #f0d78c;
    --gold-soft: #e8c76a;
    --gold-dim: #9a7b28;
    --gold-glow: rgba(212, 175, 55, 0.22);
    --gold-border: rgba(212, 175, 55, 0.35);
    --text: #f8f4ec;
    --text-muted: #9aabbf;
    --text-dim: #6b7c91;
    --border: rgba(212, 175, 55, 0.28);
    --border-soft: rgba(255, 255, 255, 0.06);
    --radius: 20px;
    --radius-sm: 14px;
    --blur: 28px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --shadow-deep: 0 12px 40px rgba(0, 0, 0, 0.55);
    --shadow-gold: 0 6px 32px rgba(212, 175, 55, 0.18);
    --shadow-card: 0 8px 36px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100%;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hidden { display: none !important; }

/* ========== LUXURY BACKGROUND ========== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(212, 175, 55, 0.11), transparent 50%),
        radial-gradient(ellipse 70% 50% at 100% 90%, rgba(100, 160, 200, 0.05), transparent),
        radial-gradient(ellipse 50% 40% at 0% 60%, rgba(212, 175, 55, 0.04), transparent),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 45%, #06101c 100%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle diamond pattern */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.025'%3E%3Cpath d='M40 0l4 12h-8l4-12zm0 80l4-12h-8l4 12zM0 40l12 4v-8L0 40zm80 0l-12 4v-8l12 4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

#app {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
}

/* ========== WELCOME — VIP ENTRY ========== */
.welcome-screen {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 22px;
    position: relative;
}

.welcome-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 60% at 50% -5%, rgba(212, 175, 55, 0.16), transparent 60%),
        radial-gradient(ellipse 80% 40% at 50% 100%, rgba(212, 175, 55, 0.06), transparent),
        var(--bg-deep);
}

.welcome-card {
    position: relative;
    text-align: center;
    max-width: 420px;
    width: 100%;
    padding: 52px 36px 44px;
    background: linear-gradient(165deg, rgba(14, 24, 41, 0.92), rgba(6, 12, 22, 0.97));
    border: 1px solid var(--gold-border);
    border-radius: 32px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 24px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(212, 175, 55, 0.12);
    backdrop-filter: blur(20px);
}

.welcome-logo {
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.5));
}

.welcome-title {
    font-family: var(--font-display);
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: 0.16em;
    background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 35%, var(--gold) 70%, var(--gold-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.25);
}

.welcome-sub {
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 44px;
    font-weight: 500;
}

.lang-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    background: rgba(18, 30, 50, 0.7);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.lang-btn:hover,
.lang-btn:active {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.lang-btn:hover::before,
.lang-btn:active::before {
    opacity: 1;
}

.lang-code {
    font-weight: 700;
    color: var(--gold);
    min-width: 44px;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    position: relative;
    z-index: 1;
}

.lang-name {
    position: relative;
    z-index: 1;
}

/* ========== HEADER ========== */
.blur-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 11, 20, 0.86);
    backdrop-filter: blur(var(--blur)) saturate(1.8);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(1.8);
    border-bottom: 1px solid var(--border);
    padding-top: var(--safe-top);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.45));
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: 0.18em;
    color: var(--text);
}

.logo-text span {
    color: var(--gold);
    font-weight: 700;
}

.icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(18, 30, 50, 0.8);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.icon-btn:active {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.18);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

/* Search */
.search-wrap {
    position: relative;
    padding: 0 20px 14px;
}

.search-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 22px 0 52px;
    background: rgba(11, 20, 34, 0.95);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    font-size: 1.02rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.search-wrap input:focus {
    border-color: var(--gold);
    background: rgba(14, 24, 41, 0.98);
    box-shadow: 0 0 0 4px var(--gold-glow), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.search-wrap input::placeholder {
    color: var(--text-dim);
}

.search-icon {
    position: absolute;
    left: 38px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-dim);
    pointer-events: none;
    transition: color 0.25s;
}

.search-wrap input:focus + .search-icon,
.search-wrap:focus-within .search-icon {
    color: var(--gold);
}

/* Categories */
.cats-scroll {
    display: flex;
    gap: 10px;
    padding: 0 20px 18px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cats-scroll::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    flex-shrink: 0;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(11, 20, 34, 0.85);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    touch-action: manipulation;
}

.cat-chip.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.32), rgba(154, 123, 40, 0.22));
    border-color: var(--gold);
    color: var(--gold-light);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ========== DISHES — PREMIUM CARDS ========== */
.dishes-list {
    padding: 22px 16px calc(36px + var(--safe-bottom));
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dish-card {
    display: flex;
    background: linear-gradient(160deg, rgba(14, 24, 41, 0.95) 0%, rgba(8, 15, 28, 0.98) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.28s, box-shadow 0.28s;
    touch-action: manipulation;
    box-shadow: var(--shadow-card);
    position: relative;
}

.dish-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.25), transparent 40%, transparent 60%, rgba(212, 175, 55, 0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.dish-card:active {
    transform: scale(0.982);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold), 0 0 0 1px rgba(212, 175, 55, 0.15);
}

.dish-card:active::before {
    opacity: 1;
}

/* Image — perfect cover, no stretch */
.dish-img-wrap {
    width: 136px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    background: var(--bg-elevated);
    overflow: hidden;
    position: relative;
}

.dish-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dish-card:active .dish-img-wrap img {
    transform: scale(1.04);
}

.dish-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 40%, rgba(8, 15, 28, 0.45));
    pointer-events: none;
}

.dish-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(212, 175, 55, 0.15);
    background: linear-gradient(145deg, var(--bg-elevated), #0a1420);
}

.dish-placeholder.large {
    min-height: 260px;
    font-size: 3.4rem;
}

.dish-body {
    flex: 1;
    padding: 20px 20px 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.dish-name {
    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.22;
}

.dish-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.48;
}

.empty {
    text-align: center;
    padding: 90px 28px;
    color: var(--text-dim);
    font-size: 1.05rem;
    letter-spacing: 0.03em;
}

/* ========== BOTTOM SHEET — LUXURY ========== */
.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(1, 4, 10, 0.82);
    z-index: 90;
    transition: opacity 0.35s;
    backdrop-filter: blur(6px);
}

.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 92dvh;
    background: linear-gradient(180deg, #15243a 0%, #0c1728 40%, #08101c 100%);
    border-radius: 32px 32px 0 0;
    border-top: 1px solid var(--gold-border);
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: var(--safe-bottom);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.65), 0 0 80px rgba(212, 175, 55, 0.08);
}

.bottom-sheet.open {
    transform: translateY(0);
}

.sheet-handle {
    width: 52px;
    height: 5px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
    border-radius: 3px;
    margin: 16px auto 14px;
    flex-shrink: 0;
}

.sheet-content {
    overflow-y: auto;
    padding: 0 26px 40px;
    -webkit-overflow-scrolling: touch;
}

.sheet-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-elevated);
    margin-bottom: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    position: relative;
}

.sheet-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.sheet-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(8, 16, 28, 0.25) 0%, transparent 30%);
    pointer-events: none;
}

.sheet-badge {
    display: inline-block;
    padding: 7px 18px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(154, 123, 40, 0.12));
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.sheet-title {
    font-family: var(--font-display);
    font-size: 1.95rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.18;
    color: var(--text);
    letter-spacing: 0.015em;
}

.sheet-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.65;
}

.sheet-ing-title {
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 14px;
}

.sheet-ing {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sheet-ing li {
    padding: 9px 18px;
    background: rgba(18, 30, 50, 0.8);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text);
    transition: border-color 0.2s;
}

/* ========== TABLET / DESKTOP ========== */
@media (min-width: 640px) {
    .dishes-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
        max-width: 980px;
        margin: 0 auto;
        padding-left: 28px;
        padding-right: 28px;
    }

    .dish-card {
        flex-direction: column;
    }

    .dish-img-wrap {
        width: 100%;
        aspect-ratio: 16 / 11;
    }

    .dish-img-wrap::after {
        background: linear-gradient(0deg, rgba(8, 15, 28, 0.6) 0%, transparent 50%);
    }

    .dish-body {
        padding: 20px 22px 22px;
    }

    .dish-name {
        font-size: 1.4rem;
    }

    .dish-card:hover {
        border-color: rgba(212, 175, 55, 0.45);
        box-shadow: var(--shadow-gold), 0 16px 48px rgba(0, 0, 0, 0.4);
        transform: translateY(-3px);
    }

    .dish-card:hover::before {
        opacity: 1;
    }

    .dish-card:hover .dish-img-wrap img {
        transform: scale(1.05);
    }
}

@media (min-width: 960px) {
    .dishes-list {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1240px;
        gap: 24px;
    }
}

@media (min-width: 430px) and (max-width: 639px) {
    .dish-img-wrap {
        width: 148px;
    }
}


/* ========== DISHES — PREMIUM CARDS + ENTRANCE ANIMATION ========== */
.dishes-list {
    padding: 22px 16px calc(36px + var(--safe-bottom));
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dish-card {
    display: flex;
    background: linear-gradient(160deg, rgba(14, 24, 41, 0.95) 0%, rgba(8, 15, 28, 0.98) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.28s, box-shadow 0.28s;
    touch-action: manipulation;
    box-shadow: var(--shadow-card);
    position: relative;

    /* Entrance animation */
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    animation: dishIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Stagger delays */
.dish-card:nth-child(1)  { animation-delay: 0.04s; }
.dish-card:nth-child(2)  { animation-delay: 0.08s; }
.dish-card:nth-child(3)  { animation-delay: 0.12s; }
.dish-card:nth-child(4)  { animation-delay: 0.16s; }
.dish-card:nth-child(5)  { animation-delay: 0.20s; }
.dish-card:nth-child(6)  { animation-delay: 0.24s; }
.dish-card:nth-child(7)  { animation-delay: 0.28s; }
.dish-card:nth-child(8)  { animation-delay: 0.32s; }
.dish-card:nth-child(9)  { animation-delay: 0.36s; }
.dish-card:nth-child(10) { animation-delay: 0.40s; }
.dish-card:nth-child(n+11) { animation-delay: 0.44s; }

@keyframes dishIn {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dish-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.25), transparent 40%, transparent 60%, rgba(212, 175, 55, 0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.dish-card:active {
    transform: scale(0.982);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold), 0 0 0 1px rgba(212, 175, 55, 0.15);
}

.dish-card:active::before {
    opacity: 1;
}


.load-more {
    display: block;
    width: 100%;
    margin: 16px 0 32px;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: #e8d5a3;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.load-more:active {
    background: rgba(255,255,255,0.12);
}


.sheet-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}
.sheet-close-btn:active {
    background: rgba(0, 0, 0, 0.9);
}