

:root {
    --gold: #cfac64;
    --gold-soft: #e2c88d;
    --gold-dim: rgba(207, 172, 100, .18);
    --brown: #7d6447;
    --brown-dark: #5b4630;
    --bg: #2b1f17;
    --bg-2: #201710;
    --card: #35271d;
    --card-2: #3d2e22;
    --text: #f3e9dc;
    --text-dim: #c7b6a2;
    --danger: #e2574c;
    --success: #4caf7d;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    -webkit-tap-highlight-color: transparent;
}


button,
.filter-chip,
.action-btn,
.quantity-btn,
.item-incart button,
.remove-item,
.cart-btn,
.cart-btn-header,
.contact-btn,
.header-round-btn {
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

html { scroll-behavior: smooth; }

body {
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(207, 172, 100, .10), transparent 60%),
        var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}


.splash-screen {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(900px 500px at 50% 20%, rgba(207, 172, 100, .12), transparent 60%),
        var(--bg);
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity .5s ease-out;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.splash-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    padding: 20px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--gold-soft) 0%, var(--gold) 55%, #b8934f 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .25);
    animation: bounce-logo 2s infinite ease-in-out;
}

.splash-logo-name {
    width: 190px;
    height: auto;
    margin-top: 20px;
    filter: brightness(0) invert(1);
    opacity: .92;
}

@keyframes bounce-logo {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

.loading-text {
    margin-top: 18px;
    font-size: 16px;
    font-weight: bold;
    color: var(--gold);
    letter-spacing: .5px;
}


.app-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--bg-2) 0%, #3a2a1d 100%);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
    padding: .6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    border-bottom: 1px solid rgba(207, 172, 100, .22);
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex: 1;
    justify-content: center;
    cursor: pointer;
    animation: logoGlow 3.5s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0%   { filter: drop-shadow(0 0 4px rgba(207, 172, 100, .25)); }
    100% { filter: drop-shadow(0 0 14px rgba(207, 172, 100, .55)); }
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    
    background: linear-gradient(140deg, var(--gold-soft) 0%, var(--gold) 55%, #b8934f 100%);
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
    transition: transform .3s ease;
}

.logo-container:hover .logo-img { transform: scale(1.07) rotate(-4deg); }

.logo-text-img {
    height: 30px;
    width: auto;
    object-fit: contain;
    
    filter: brightness(0) invert(1);
    opacity: .92;
}


.cart-btn-header,
.contact-btn,
.header-round-btn {
    background: linear-gradient(135deg, var(--gold) 0%, #b8934f 100%);
    color: #2b1f17;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}

.cart-btn-header {
    position: relative;
    width: 44px;
    height: 44px;
    justify-content: center;
    flex-shrink: 0;
}

.contact-btn { padding: .55rem 1rem; flex-shrink: 0; }
.header-actions { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.header-round-btn {
    width: 42px; height: 42px; padding: 0; justify-content: center; flex-shrink: 0;
}
.header-round-btn i { font-size: 16px; }
.waiter-btn { position: relative; }
.waiter-btn::after {
    content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%;
    top: 7px; right: 8px; background: var(--danger); box-shadow: 0 0 0 2px var(--gold);
}

.cart-btn-header:hover,
.contact-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }

.cart-btn-header:active,
.contact-btn:active { transform: translateY(0) scale(.96); }

.cart-btn-header i { font-size: 18px; }
.contact-btn i { font-size: 15px; }

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-2);
    animation: cartBadgePulse 2s infinite;
}

@keyframes cartBadgePulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}


.table-banner {
    margin: .8rem auto 0;
    max-width: 900px;
    padding: .5rem 1rem;
    text-align: center;
    font-size: 13px;
    color: var(--gold-soft);
    background: var(--gold-dim);
    border: 1px dashed rgba(207, 172, 100, .45);
    border-radius: 999px;
    width: fit-content;
    display: none;
}

.table-banner.show { display: block; }


.search-bar {
    padding: .9rem 1rem .2rem;
    max-width: 900px;
    margin: 0 auto;
}

.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 44px 12px 40px;
    border: 1px solid rgba(207, 172, 100, .35);
    border-radius: 999px;
    background-color: var(--card);
    color: var(--text);
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.search-input::placeholder { color: var(--text-dim); }

.search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(207, 172, 100, .14);
}

.search-icon {
    position: absolute;
    right: 16px;
    color: var(--gold);
    font-size: 14px;
    pointer-events: none;
}

.search-clear {
    position: absolute;
    left: 12px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: none;
    padding: 0 4px;
}

.search-clear.show { display: block; }
.search-clear:hover { color: var(--danger); }


.filter-section {
    padding: .8rem 1rem;
    position: sticky;
    top: 68px;
    z-index: 900;
    background: linear-gradient(180deg, var(--bg) 70%, rgba(43, 31, 23, 0));
    max-width: 900px;
    margin: 0 auto;
}

.filter-grid {
    display: flex;
    gap: .6rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: .2rem;
    cursor: grab;
}

.filter-grid::-webkit-scrollbar { display: none; }

.filter-chip {
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: .5rem .8rem;
    min-width: 84px;
    border-radius: 14px;
    border: 1px solid rgba(207, 172, 100, .25);
    background: var(--card);
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease, background .25s ease, color .25s ease, border-color .25s ease;
}


.filter-chip img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    background: #241a13;
    border: 2px solid rgba(207, 172, 100, .55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
    transition: transform .25s ease, border-color .25s ease;
}


.filter-chip i {
    font-size: 22px;
    color: var(--gold);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(207, 172, 100, .12);
    border: 2px solid rgba(207, 172, 100, .4);
}

.filter-chip:hover { transform: translateY(-3px); border-color: var(--gold); }
.filter-chip:hover img { transform: scale(1.07); border-color: var(--gold); }

.filter-chip.active {
    background: linear-gradient(135deg, var(--gold) 0%, #b8934f 100%);
    color: #2b1f17;
    border-color: var(--gold);
    box-shadow: 0 8px 20px rgba(207, 172, 100, .25);
}


.filter-chip.active img {
    border-color: #2b1f17;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
}

.filter-chip.active i {
    color: #2b1f17;
    background: rgba(255, 255, 255, .25);
    border-color: #2b1f17;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    transform: scale(0);
    animation: ripple-animation .6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to { transform: scale(2.6); opacity: 0; }
}


.menu-container {
    max-width: 900px;
    margin: 0 auto;
    padding: .5rem 1rem 7rem;
}

.category-section { margin-bottom: 1.6rem; scroll-margin-top: 150px; }

.category-header {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 1rem 0 .8rem;
}

.category-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
    white-space: nowrap;
}

.category-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(207, 172, 100, .5), transparent);
}

.menu-items { display: flex; flex-direction: column; gap: .7rem; }

.menu-item {
    display: flex;
    gap: .8rem;
    padding: .7rem;
    background: linear-gradient(145deg, var(--card) 0%, var(--card-2) 100%);
    border: 1px solid rgba(207, 172, 100, .16);
    border-radius: var(--radius);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.menu-item:hover {
    transform: translateY(-3px);
    border-color: rgba(207, 172, 100, .45);
    box-shadow: var(--shadow);
}

.item-image {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    background: #241a13;
    transition: transform .3s ease;
}

.menu-item:hover .item-image { transform: scale(1.04); }

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .5rem;
}

.item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.item-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--gold);
    white-space: nowrap;
    flex: 0 0 auto;   
}

.item-desc {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: .2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.item-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
    padding-top: .4rem;
}

.action-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--gold) 0%, #b8934f 100%);
    color: #2b1f17;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .28);
}

.action-btn:hover { transform: translateY(-2px) scale(1.05); }
.action-btn:active { transform: scale(.92); }


.item-incart {
    display: flex;
    align-items: center;
    gap: .45rem;
    background: rgba(207, 172, 100, .14);
    border: 1px solid rgba(207, 172, 100, .4);
    border-radius: 12px;
    padding: .15rem .3rem;
}

.item-incart button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 9px;
    background: var(--gold);
    color: #2b1f17;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
}

.item-incart .qty { min-width: 22px; text-align: center; font-weight: 800; color: var(--gold-soft); }


.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-dim);
}

.empty-state i { font-size: 42px; color: var(--gold); opacity: .5; margin-bottom: .8rem; display: block; }


.cart-btn {
    position: fixed;
    bottom: 22px;
    left: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--gold) 0%, #b8934f 100%);
    color: #2b1f17;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
    z-index: 950;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease;
}

.cart-btn:hover { transform: scale(1.08); }
.cart-btn:active { transform: scale(.94); }


.cart-modal,
.contact-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.cart-overlay,
.contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(3px);
}

.cart-center-box,
.contact-content {
    position: relative;
    max-width: 520px;
    margin: 4vh auto;
    padding: 0 1rem;
    
    height: 92vh;
    height: 92dvh;
    display: flex;
    align-items: center;
}

.cart-content,
.contact-content > div,
.contact-inner {
    width: 100%;
}

.cart-content {
    background: linear-gradient(145deg, var(--card) 0%, var(--bg-2) 100%);
    border: 1px solid rgba(207, 172, 100, .3);
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    max-height: 88vh;
    max-height: 88dvh;
    min-height: 0;
    overflow: hidden;
    animation: modalIn .28s ease;
}


.cart-header,
.cart-footer { flex: 0 0 auto; }

@keyframes modalIn {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cart-header,
.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(207, 172, 100, .22);
    background: rgba(0, 0, 0, .18);
}

.cart-header h3,
.contact-header h3 {
    font-size: 16px;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.cart-header-actions { display: flex; align-items: center; gap: .3rem; }

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 .3rem;
    transition: color .2s ease;
}

.close-btn:hover { color: var(--danger); }

.clear-cart-btn {
    background: transparent;
    border: none;
    color: var(--danger);
    font-size: 16px;
    cursor: pointer;
    padding: .3rem .5rem;
    border-radius: 8px;
}

.clear-cart-btn:hover { background: rgba(226, 87, 76, .12); }

.cart-items {
    padding: .8rem 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    
    min-height: 0;
}

.cart-item {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(207, 172, 100, .16);
    border-radius: 14px;
    padding: .7rem;
    margin-bottom: .6rem;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .5rem;
}

.cart-item-name { font-size: 14px; font-weight: 700; flex: 1; }

.remove-item {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 15px;
    padding: .2rem .35rem;
    border-radius: 8px;
}

.remove-item:hover { background: rgba(226, 87, 76, .12); }

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .5rem;
    gap: .5rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: rgba(207, 172, 100, .12);
    border-radius: 10px;
    padding: .15rem .3rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: var(--gold);
    color: #2b1f17;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
}

.quantity-btn:active { transform: scale(.9); }
.cart-item-quantity .quantity { min-width: 24px; text-align: center; font-weight: 800; }

.cart-item-price { font-size: 14px; font-weight: 800; color: var(--gold); }


.cart-item-note {
    margin-top: .55rem;
    width: 100%;
    background: rgba(0, 0, 0, .22);
    border: 1px dashed rgba(207, 172, 100, .35);
    border-radius: 10px;
    color: var(--text);
    font-size: 12px;
    padding: .5rem .7rem;
    resize: vertical;
    min-height: 38px;
    outline: none;
    font-family: inherit;
}

.cart-item-note::placeholder { color: var(--text-dim); opacity: .8; }
.cart-item-note:focus { border-color: var(--gold); border-style: solid; }

.cart-footer {
    padding: .9rem 1.2rem 1.1rem;
    border-top: 1px solid rgba(207, 172, 100, .22);
    background: rgba(0, 0, 0, .18);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .8rem;
    font-size: 15px;
}

.cart-total { color: var(--gold); font-weight: 800; font-size: 17px; }

.primary-btn {
    width: 100%;
    padding: .85rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold) 0%, #b8934f 100%);
    color: #2b1f17;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: transform .2s ease, filter .2s ease;
}

.primary-btn:hover { filter: brightness(1.07); transform: translateY(-2px); }
.primary-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }


.discount-box {
    border: 1px dashed rgba(207,172,100,.35); border-radius: 12px;
    padding: .65rem; margin-bottom: .7rem; background: rgba(207,172,100,.06);
}
.discount-box label { display: block; color: var(--gold-soft); font-size: 12px; margin-bottom: .35rem; }
.discount-input-row { display: flex; gap: .35rem; }
.discount-input-row input,
.sheet-body input,
.sheet-body textarea,
.sheet-body select {
    min-width: 0; flex: 1; background: rgba(0,0,0,.24); color: var(--text);
    border: 1px solid rgba(207,172,100,.32); border-radius: 10px; padding: .62rem .7rem;
    outline: none; font-family: inherit;
}
.discount-input-row input { direction: ltr; text-transform: uppercase; }
.discount-input-row button {
    border: 0; border-radius: 10px; background: var(--gold); color: #2b1f17;
    padding: .55rem .7rem; font-weight: 800; cursor: pointer;
}
.discount-result { font-size: 12px; margin-top: .4rem; color: var(--success); }
.discount-result.error { color: var(--danger); }
.active-discount-list { display: none; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.active-discount-list.show { display: flex; }
.discount-chip {
    border: 1px solid rgba(207,172,100,.4); background: var(--card); color: var(--gold-soft);
    border-radius: 999px; padding: .3rem .55rem; font-size: 11px; cursor: pointer;
}
.discount-total-row { color: var(--success); font-size: 12px; display: flex; justify-content: space-between; margin-bottom: .3rem; }


.sheet-modal { display: none; position: fixed; inset: 0; z-index: 2600; }
.sheet-modal.open { display: block; }
.sheet-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.sheet-card {
    position: relative; width: calc(100% - 2rem); max-width: 560px; max-height: 90dvh;
    margin: 5dvh auto; display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid rgba(207,172,100,.34); border-radius: 20px;
    background: linear-gradient(145deg,var(--card),var(--bg-2)); box-shadow: var(--shadow);
    animation: modalIn .25s ease;
}
.compact-sheet { max-width: 430px; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; border-bottom: 1px solid rgba(207,172,100,.2); }
.sheet-header h3 { color: var(--gold); font-size: 15px; }
.sheet-body { padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: .75rem; }
.sheet-body textarea { resize: vertical; min-height: 80px; }
.sheet-hint { color: var(--text-dim); font-size: 12px; }
.form-label { color: var(--gold-soft); font-size: 12px; }
.phone-field { direction: ltr; display: flex; align-items: center; gap: .35rem; }
.phone-prefix { padding: .62rem .65rem; border-radius: 10px; background: rgba(207,172,100,.15); color: var(--gold); }
.inline-form { display: flex; gap: .45rem; align-items: stretch; }
.small-btn { border: 1px solid var(--gold); color: var(--gold); background: transparent; border-radius: 10px; padding: .4rem .6rem; font-family: inherit; cursor: pointer; }
.profile-summary { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.summary-card { border: 1px solid rgba(207,172,100,.18); background: rgba(255,255,255,.04); border-radius: 12px; padding: .65rem; font-size: 12px; }
.summary-card strong { display: block; color: var(--gold); font-size: 14px; margin-top: .2rem; }
.profile-section { border-top: 1px solid rgba(207,172,100,.18); padding-top: .65rem; }
.profile-section-title { color: var(--gold-soft); font-size: 13px; font-weight: 800; margin-bottom: .45rem; }
.profile-edit-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: .45rem; align-items: center; }
.profile-edit-form input { min-width: 0; }
.history-card { border: 1px solid rgba(207,172,100,.16); border-radius: 11px; padding: .55rem; margin-bottom: .4rem; font-size: 12px; background: rgba(255,255,255,.035); }
.history-card .muted { color: var(--text-dim); }
.profile-order-card { cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.profile-order-card:hover, .profile-order-card[aria-expanded="true"] { border-color: rgba(207,172,100,.48); background: rgba(207,172,100,.07); }
.profile-order-summary { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.profile-order-chevron { color: var(--gold); transition: transform .22s ease; }
.profile-order-card[aria-expanded="true"] .profile-order-chevron { transform: rotate(180deg); }
.profile-order-details { border-top: 1px dashed rgba(207,172,100,.25); margin-top: .55rem; padding-top: .45rem; }
.profile-order-item { padding: .45rem .1rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.profile-order-item:last-child { border-bottom: 0; }
.profile-order-item-main { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.profile-order-item-main span { color: var(--text); line-height: 1.7; min-width: 0; overflow-wrap: anywhere; }
.profile-order-item-main b, .profile-order-item-total { color: var(--gold-soft); white-space: nowrap; }
.profile-order-item-total { margin-top: .2rem; font-size: 11px; }
.profile-order-item-note { color: var(--text-dim); margin-top: .25rem; line-height: 1.7; }
.profile-order-item-note i { color: var(--gold); margin-left: .3rem; }

@media (max-width: 560px) {
    .profile-edit-form { grid-template-columns: 1fr; }
    .profile-edit-form .small-btn { width: 100%; }
}
.code-value { direction: ltr; display: inline-block; color: var(--gold); font-weight: 800; letter-spacing: 1px; }
.logout-btn { color: var(--danger); border-color: rgba(226,87,76,.6); }


.contact-content {
    display: block;
    max-width: 560px;
    margin: 5vh auto;
    height: auto;
    max-height: 90vh;
    background: linear-gradient(145deg, var(--card) 0%, var(--bg-2) 100%);
    border: 1px solid rgba(207, 172, 100, .3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: modalIn .28s ease;
}

.contact-body { padding: 1rem 1.2rem 1.4rem; overflow-y: auto; max-height: 74vh; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }

.contact-item {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(207, 172, 100, .16);
    border-radius: 14px;
    padding: .8rem;
}

.contact-item > i {
    color: var(--gold);
    font-size: 18px;
    margin-top: .25rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.contact-details { flex: 1; min-width: 0; }
.contact-details h4 { font-size: 14px; color: var(--gold-soft); margin-bottom: .25rem; }
.contact-details p { font-size: 13px; color: var(--text-dim); }

.phone-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.phone-number { color: var(--text); text-decoration: none; direction: ltr; }
.phone-number:hover { color: var(--gold); }
.phone-number p { margin: 0; direction: ltr; }
.separator { color: rgba(255, 255, 255, .25); }

.instagram-link { color: inherit; text-decoration: none; }
.instagram-link:hover { color: #E1306C; }

.map-placeholder { margin-top: .5rem; }

.map-placeholder iframe {
    width: 100%;
    height: 210px;
    border-radius: 12px;
    border: 1px solid rgba(207, 172, 100, .25);
    filter: saturate(.9) contrast(1.05);
}

.map-buttons { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }

.map-btn {
    flex: 1;
    min-width: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .6rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    background: rgba(207, 172, 100, .14);
    border: 1px solid rgba(207, 172, 100, .35);
    color: var(--text);
    transition: background .2s ease, transform .2s ease;
}

.map-btn:hover { background: rgba(207, 172, 100, .25); transform: translateY(-2px); }


#toast-container {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: calc(100% - 2rem);
    max-width: 400px;
    pointer-events: none;
}

.toast-message {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: linear-gradient(145deg, var(--card-2) 0%, var(--bg-2) 100%);
    border: 1px solid rgba(207, 172, 100, .35);
    color: var(--text);
    padding: .7rem .9rem;
    border-radius: 12px;
    font-size: 13px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: auto;
}

.toast-message.show { opacity: 1; transform: translateY(0); }
.toast-message.success { border-color: rgba(76, 175, 125, .6); }
.toast-message.error { border-color: rgba(226, 87, 76, .6); }
.toast-icon i { color: var(--gold); font-size: 15px; }
.toast-message.success .toast-icon i { color: var(--success); }
.toast-message.error .toast-icon i { color: var(--danger); }
.toast-content { flex: 1; }

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 13px;
}


@media (max-width: 768px) {
    .app-bar { padding: .5rem .7rem; }
    .logo-img { width: 44px; height: 44px; }
    .logo-text-img { height: 28px; }
    .contact-btn { padding: .5rem .7rem; font-size: 12px; }
    .contact-btn span { display: none; }
    .contact-btn i { font-size: 17px; }
    .cart-btn-header { width: 40px; height: 40px; }
    .header-round-btn { width: 38px; height: 38px; }
    .header-actions { gap: .25rem; }
    .logo-container { gap: .25rem; }
    .logo-text-img { max-width: 86px; }

    .filter-section { top: 60px; padding: .6rem .7rem; }
    .search-bar { padding: .7rem .7rem .1rem; }

    .menu-container { padding: .3rem .7rem 6.5rem; }
    .item-image { width: 70px; height: 70px; }
    .item-title { font-size: 13px; }
    .item-price { font-size: 13px; }
    .item-desc { font-size: 11px; -webkit-line-clamp: 2; line-clamp: 2; }

    .filter-chip { min-width: 74px; padding: .45rem .6rem; font-size: 11px; }
    .filter-chip img { width: 36px; height: 36px; }

    .cart-center-box {
        margin: 0;
        padding: 0;
        
        height: 100vh;
        height: -webkit-fill-available;
        height: 100dvh;
        align-items: flex-end;
    }

    .cart-content {
        max-height: 90vh;
        max-height: 90dvh;
        border-radius: 20px 20px 0 0;
        border-bottom: none;
    }

    
    .cart-footer { padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); }

    .contact-content {
        margin: 0;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .contact-body {
        max-height: calc(100vh - 70px);
        max-height: calc(100dvh - 70px);
        padding-bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
    }

    .cart-btn { width: 52px; height: 52px; font-size: 19px; bottom: 18px; left: 18px; }
    #toast-container { bottom: 80px; }
    .sheet-card { width: 100%; max-width: none; margin: 0; height: 100dvh; max-height: 100dvh; border-radius: 0; }
    .compact-sheet { height: auto; max-height: 80dvh; position: absolute; bottom: 0; border-radius: 20px 20px 0 0; }
}

@media (max-width: 400px) {
    .logo-img { width: 38px; height: 38px; }
    .logo-text-img { height: 24px; }
    .item-image { width: 62px; height: 62px; }
    .filter-chip { min-width: 68px; }
    .filter-chip img { width: 32px; height: 32px; }
}
