* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --gold: #f5a623;
    --gold-dark: #d88c10;
    --green: #39ca76;
    --red: #ff4057;
    --panel: #181818;
    --panel-light: #292929;
    --white: #ffffff;
    --muted: rgba(255, 255, 255, 0.58);
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at top,
            #2a2118 0%,
            #111111 45%,
            #050505 100%
        );
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}


/* =========================================================
   APP
========================================================= */

.story-app {
    position: relative;
    width: min(390px, calc(100vw - 24px));
    height: min(820px, calc(100vh - 40px));
    min-height: 620px;
    overflow: hidden;
    border: 7px solid #1c1c1c;
    border-radius: 38px;
    background: #000000;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.75);
    touch-action: pan-y;
}


/* =========================================================
   VIDEO
========================================================= */

.video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        opacity 170ms ease,
        transform 220ms ease;
}

.video-bg.changing {
    opacity: 0.28;
    transform: scale(1.04);
}

.overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.02) 38%,
            rgba(0, 0, 0, 0.25) 58%,
            rgba(0, 0, 0, 0.92) 89%,
            rgba(0, 0, 0, 0.99) 100%
        );
}


/* =========================================================
   PROGRESS
========================================================= */

.progress {
    position: absolute;
    z-index: 20;
    top: 17px;
    left: 17px;
    right: 17px;
    display: flex;
    gap: 5px;
}

.progress-item {
    flex: 1;
    height: 3px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.3);
}

.progress-item.complete,
.progress-item.active {
    background: #ffffff;
}


/* =========================================================
   TOP BAR
========================================================= */

.top-bar {
    position: absolute;
    z-index: 25;
    top: 33px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.menu-button,
.cart-button {
    position: relative;
    flex: 0 0 auto;
    width: 41px;
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.menu-button {
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    width: 17px;
    height: 2px;
    border-radius: 10px;
    background: #ffffff;
}

.cart-icon {
    font-size: 17px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 20px;
    background: var(--gold);
    color: #111111;
    font-size: 10px;
    font-weight: 900;
}


/* AI TOP */

.ai-top-button {
    height: 40px;
    min-width: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(245, 166, 35, 0.45);
    border-radius: 22px;
    padding: 0 10px;
    background:
        linear-gradient(
            135deg,
            rgba(245, 166, 35, 0.25),
            rgba(245, 166, 35, 0.08)
        );
    color: var(--gold);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.5px;
    backdrop-filter: blur(14px);
}

.ai-star {
    font-size: 17px;
}


/* LANGUAGE */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 1px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(12px);
}

.language-button {
    min-width: 25px;
    height: 27px;
    border: 0;
    border-radius: 14px;
    padding: 0 4px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 8px;
    font-weight: 900;
    transition: 160ms ease;
}

.language-button.active {
    background: var(--gold);
    color: #111111;
}

.language-button:active {
    transform: scale(0.92);
}


/* =========================================================
   NAVIGATION AREAS
========================================================= */

.navigation-area {
    position: absolute;
    z-index: 4;
    top: 95px;
    bottom: 250px;
    width: 23%;
    border: 0;
    background: transparent;
}

.navigation-area-left {
    left: 0;
}

.navigation-area-right {
    right: 0;
}


/* =========================================================
   LIKE COMMENTS
========================================================= */

.actions {
    position: absolute;
    z-index: 12;
    right: 17px;
    bottom: 150px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.action-button {
    min-width: 43px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #ffffff;
}

.heart-icon {
    font-size: 40px;
    line-height: 0.9;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.9);
}

.action-button.liked .heart-icon {
    color: var(--red);
}

.comment-icon {
    position: relative;
    width: 30px;
    height: 27px;
    border: 3px solid #ffffff;
    border-radius: 50%;
}

.comment-icon::after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: -6px;
    width: 8px;
    height: 8px;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: rotate(18deg);
}

.action-count {
    font-size: 12px;
    font-weight: 900;
}


/* =========================================================
   DISH
========================================================= */

.dish-info {
    position: absolute;
    z-index: 10;
    left: 23px;
    right: 70px;
    bottom: 107px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.96);
    transition:
        opacity 170ms ease,
        transform 200ms ease;
}

.dish-info.slide-left {
    opacity: 0;
    transform: translateX(-45px);
}

.dish-info.slide-right {
    opacity: 0;
    transform: translateX(45px);
}

.category {
    margin: 0 0 7px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.dish-title-button {
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
    color: #ffffff;
    text-align: left;
}

.dish-title-button h1 {
    margin: 0 0 5px;
    font-size: 36px;
    line-height: 1.03;
    letter-spacing: -1px;
}

.details-hint {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--gold);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.6px;
}

.description {
    max-width: 285px;
    margin: 0 0 17px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.45;
}

.order-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price {
    color: var(--gold);
    font-size: 29px;
    font-weight: 900;
}

.add-button,
.details-add-button,
.checkout-button,
.view-order-button,
.ai-add-all-button {
    border: 0;
    border-radius: 13px;
    padding: 14px 16px;
    background: var(--gold);
    color: #101010;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2px;
    transition: 180ms ease;
}

.add-button.added,
.add-button.add-success,
.details-add-button.add-success {
    background: var(--green);
    transform: scale(1.04);
}


/* =========================================================
   SWIPE
========================================================= */

.swipe-hint {
    position: absolute;
    z-index: 10;
    left: 50%;
    bottom: 80px;
    display: flex;
    align-items: center;
    gap: 7px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.swipe-hint > span:first-child,
.swipe-hint > span:last-child {
    color: var(--gold);
    font-size: 15px;
}


/* =========================================================
   BOTTOM NAV
========================================================= */

.meal-nav {
    position: absolute;
    z-index: 25;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 12px 10px 18px;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(15px);
}

.meal-nav button {
    position: relative;
    border: 0;
    padding: 13px 3px;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    font-weight: 900;
}

.meal-nav button.active {
    color: var(--gold);
}

.meal-nav button.active::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 0;
    height: 3px;
    border-radius: 20px;
    background: var(--gold);
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: absolute;
    z-index: 70;
    inset: 0 auto 0 0;
    width: 84%;
    max-width: 335px;
    display: flex;
    flex-direction: column;
    background: #0b0b0b;
    box-shadow: 18px 0 50px rgba(0, 0, 0, 0.6);
    transform: translateX(-105%);
    transition: transform 280ms ease;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 34px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.sidebar-header h2 {
    margin: 0;
    max-width: 210px;
    font-size: 23px;
    line-height: 1.15;
}

.sidebar-close,
.close-button {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #292929;
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
}

.sidebar-list {
    display: grid;
    gap: 7px;
    padding: 18px 16px;
    overflow-y: auto;
}

.sidebar-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 8px;
    min-height: 57px;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 0 15px;
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    text-align: left;
    font-size: 14px;
}

.sidebar-item.active {
    border-color: rgba(245, 166, 35, 0.35);
    background: rgba(245, 166, 35, 0.12);
    color: #ffffff;
    font-weight: 800;
}

.sidebar-icon {
    font-size: 23px;
}

.sidebar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
}

.sidebar-item.active .sidebar-dot {
    opacity: 1;
}

.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 10px;
    padding: 14px 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #0b0b0b;
}

.sidebar-ai-card {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid rgba(245, 166, 35, 0.4);
    border-radius: 17px;
    padding: 13px;
    background:
        linear-gradient(
            135deg,
            rgba(245, 166, 35, 0.19),
            rgba(245, 166, 35, 0.05)
        );
    color: #ffffff;
    text-align: left;
}

.sidebar-ai-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gold);
    color: #111111;
    font-size: 21px;
}

.sidebar-ai-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.sidebar-ai-card small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
}

.sidebar-arrow {
    color: var(--gold);
    font-size: 24px;
}

.sidebar-footer-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px;
    border-radius: 17px;
    background: #1d1d1d;
}

.sidebar-footer-icon {
    font-size: 21px;
}

.sidebar-footer-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.sidebar-footer > p {
    margin: 2px 0;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    font-size: 11px;
}


/* =========================================================
   BACKDROPS
========================================================= */

.sidebar-backdrop,
.sheet-backdrop {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: 220ms ease;
}

.sidebar-backdrop {
    z-index: 65;
}

.sheet-backdrop {
    z-index: 45;
}

.sidebar-backdrop.visible,
.sheet-backdrop.visible {
    visibility: visible;
    opacity: 1;
}


/* =========================================================
   SHEETS
========================================================= */

.bottom-sheet {
    position: absolute;
    z-index: 50;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 86%;
    display: flex;
    flex-direction: column;
    padding: 10px 20px 22px;
    border-radius: 28px 28px 0 0;
    background: var(--panel);
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.65);
    transform: translateY(105%);
    transition: transform 280ms ease;
}

.bottom-sheet.open {
    transform: translateY(0);
}

.sheet-handle {
    flex: 0 0 auto;
    width: 46px;
    height: 5px;
    margin: 0 auto 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.22);
}

.sheet-label,
.details-category {
    margin: 0 0 5px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.sheet-header,
.details-header,
.recommendations-header,
.ai-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

.sheet-header h2,
.details-header h2,
.recommendations-header h2,
.ai-header h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.1;
}


/* =========================================================
   AI
========================================================= */

.ai-sheet {
    max-height: 93%;
}

.ai-header-description {
    max-width: 270px;
    margin: 9px 0 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    line-height: 1.45;
}

.ai-form-container,
.ai-result {
    overflow-y: auto;
    padding: 2px 1px 10px;
}

.ai-field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.ai-field > span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 800;
}

.ai-field textarea,
.ai-field select,
.ai-field input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    outline: none;
    background: #252525;
    color: #ffffff;
}

.ai-field textarea {
    min-height: 105px;
    resize: none;
    padding: 14px;
    line-height: 1.45;
}

.ai-field select {
    height: 48px;
    padding: 0 12px;
}

.ai-field textarea:focus,
.ai-field select:focus,
.ai-field input:focus {
    border-color: var(--gold);
}

.ai-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.budget-input {
    height: 48px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: #252525;
}

.budget-input > span {
    padding-left: 13px;
    color: var(--gold);
    font-weight: 900;
}

.budget-input input {
    height: 100%;
    border: 0;
    padding: 0 10px 0 6px;
    background: transparent;
}

.ai-preferences,
.ai-examples {
    margin-bottom: 18px;
}

.ai-preferences > p,
.ai-examples > p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 800;
}

.preference-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preference-buttons button {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 22px;
    padding: 9px 12px;
    background: #292929;
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 800;
}

.preference-buttons button.selected {
    border-color: var(--gold);
    background: rgba(245, 166, 35, 0.16);
    color: var(--gold);
}

.ai-examples {
    display: grid;
    gap: 7px;
}

.ai-example {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    padding: 11px 12px;
    background: #242424;
    color: rgba(255, 255, 255, 0.65);
    text-align: left;
    font-size: 10px;
    line-height: 1.35;
}

.ai-submit-button {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #f5a623, #d98c10);
    color: #111111;
    font-size: 12px;
    font-weight: 900;
}

.ai-allergy-warning {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.38);
    font-size: 9px;
    line-height: 1.4;
    text-align: center;
}

.ai-loading,
.ai-error {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ai-loading[hidden],
.ai-result[hidden],
.ai-error[hidden] {
    display: none;
}

.ai-loader {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border: 4px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: ai-spin 0.8s linear infinite;
}

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

.ai-loading h3,
.ai-error h3 {
    margin: 0 0 9px;
    font-size: 20px;
}

.ai-loading p,
.ai-error p {
    max-width: 260px;
    margin: 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    line-height: 1.5;
}

.ai-result-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.ai-result-heading h2 {
    margin: 0;
    font-size: 23px;
}

.ai-reset-button {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 8px 11px;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 9px;
    font-weight: 900;
}

.ai-result-message {
    margin: 0 0 15px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    line-height: 1.5;
}

.ai-result-items {
    display: grid;
    gap: 9px;
}

.ai-result-item {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: #262626;
}

.ai-item-quantity {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.16);
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

.ai-result-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.ai-result-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
    line-height: 1.35;
}

.ai-item-price {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

.ai-result-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.ai-result-summary > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px;
    border-radius: 14px;
    background: #252525;
}

.ai-result-summary span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 9px;
    font-weight: 800;
}

.ai-result-summary strong {
    color: var(--gold);
    font-size: 20px;
}

.ai-budget-status {
    margin: 10px 0 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(57, 202, 118, 0.13);
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.ai-budget-status.over-budget {
    background: rgba(255, 64, 87, 0.13);
    color: var(--red);
}

.ai-add-all-button {
    width: 100%;
}

.ai-error > span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: rgba(255, 64, 87, 0.15);
    color: var(--red);
    font-size: 25px;
    font-weight: 900;
}

.ai-error button {
    margin-top: 18px;
    border: 1px solid var(--gold);
    border-radius: 13px;
    padding: 11px 17px;
    background: transparent;
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
}


/* =========================================================
   DETAILS
========================================================= */

.details-sheet {
    max-height: 88%;
    padding-bottom: 0;
}

.details-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.details-price {
    color: var(--gold);
    font-size: 22px;
}

.details-scroll {
    overflow-y: auto;
    padding-bottom: 20px;
}

.details-description,
.recommendations-header p:last-child {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.5;
}

.details-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-bottom: 23px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 15px 5px;
    border-radius: 17px;
    background: #363636;
}

.stat-icon {
    color: var(--gold);
    font-size: 22px;
}

.stat-card strong {
    font-size: 20px;
}

.stat-card small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 8px;
}

.details-section {
    margin-bottom: 23px;
}

.details-section h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.ingredient-list,
.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ingredient-chip,
.feature-chip {
    padding: 9px 13px;
    border-radius: 20px;
    background: #373737;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.feature-chip {
    background: rgba(245, 166, 35, 0.16);
    color: var(--gold);
}

.details-footer {
    flex: 0 0 auto;
    margin: 0 -20px;
    padding: 14px 20px 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
    background: #111111;
}

.details-footer > div {
    display: flex;
    flex-direction: column;
}

.details-footer span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 9px;
}

.details-footer strong {
    color: var(--gold);
    font-size: 20px;
}


/* =========================================================
   RECOMMENDATIONS
========================================================= */

.recommendations-sheet {
    max-height: 78%;
}

.recommendations-list {
    display: grid;
    gap: 11px;
    overflow-y: auto;
}

.recommendation-card {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 17px;
    background: #272727;
}

.recommendation-visual {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #3a3a3a;
    font-size: 28px;
}

.recommendation-info strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.recommendation-info small {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.recommendation-price {
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
}

.recommendation-add {
    width: 37px;
    height: 37px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: transparent;
    color: var(--gold);
    font-size: 22px;
}

.recommendation-add.selected {
    border-color: var(--green);
    background: var(--green);
    color: #111111;
}

.recommendations-footer {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    margin-top: 18px;
}

.skip-button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 13px;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    font-weight: 900;
}


/* =========================================================
   COMMENTS / CART
========================================================= */

.comments-list,
.cart-items {
    min-height: 100px;
    overflow-y: auto;
}

.comment-card {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.comment-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.comment-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px;
    margin-top: 16px;
}

.comment-form input {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    padding: 13px;
    outline: none;
    background: #222222;
    color: #ffffff;
}

.comment-form button {
    border: 0;
    border-radius: 13px;
    padding: 0 16px;
    background: var(--gold);
    color: #111111;
    font-size: 10px;
    font-weight: 900;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.cart-item-name {
    font-size: 12px;
    font-weight: 800;
}

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

.remove-item {
    width: 29px;
    height: 29px;
    border: 0;
    border-radius: 50%;
    background: #292929;
    color: #ffffff;
}

.cart-empty {
    padding: 28px 0;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 12px;
}

.cart-footer > div {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.cart-footer strong {
    color: var(--gold);
    font-size: 20px;
}

.checkout-button {
    width: 100%;
}


/* =========================================================
   TOAST
========================================================= */

.toast {
    position: absolute;
    z-index: 90;
    left: 50%;
    bottom: 90px;
    padding: 12px 17px;
    border-radius: 25px;
    background: #ffffff;
    color: #111111;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 20px);
    transition: 180ms ease;
}

.toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}


/* =========================================================
   FLY TO CART
========================================================= */

.flying-dish {
    position: fixed;
    z-index: 9999;
    width: 74px;
    height: 74px;
    display: none;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background-position: center;
    background-size: cover;
    pointer-events: none;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.7),
        0 0 0 5px rgba(245, 166, 35, 0.25);
    opacity: 1;
}

.flying-dish.active {
    display: block;
    animation:
        flyToCart 720ms
        cubic-bezier(.2, .75, .25, 1)
        forwards;
}

@keyframes flyToCart {
    0% {
        opacity: 1;
        transform:
            translate(0, 0)
            scale(1)
            rotate(0deg);
    }

    30% {
        opacity: 1;
        transform:
            translate(
                calc(var(--fly-x) * 0.25),
                calc(var(--fly-y) * 0.05)
            )
            scale(1.05)
            rotate(5deg);
    }

    70% {
        opacity: 0.95;
        transform:
            translate(
                calc(var(--fly-x) * 0.73),
                calc(var(--fly-y) * 0.62)
            )
            scale(0.5)
            rotate(15deg);
    }

    100% {
        opacity: 0;
        transform:
            translate(
                var(--fly-x),
                var(--fly-y)
            )
            scale(0.05)
            rotate(30deg);
    }
}


/* CART POP */

.cart-button.cart-pop {
    animation: cartPop 480ms ease;
}

@keyframes cartPop {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.28);
    }

    60% {
        transform: scale(0.9);
    }

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

.cart-count.count-pop {
    animation: countPop 450ms ease;
}

@keyframes countPop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.65);
    }

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


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 500px) {

    body {
        padding: 0;
        background: #000000;
    }

    .story-app {
        width: 100vw;
        height: 100dvh;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .top-bar {
        gap: 4px;
    }

    .menu-button,
    .cart-button {
        width: 39px;
        height: 39px;
    }

    .ai-top-button {
        min-width: 57px;
        height: 38px;
        padding: 0 8px;
    }

    .language-button {
        min-width: 23px;
        padding: 0 3px;
    }

    .ai-sheet {
        max-height: 94%;
    }
}
/* =========================================================
   RESTAURANT APPEARANCE
   Dynamic fonts + font size
========================================================= */

:root {
    --restaurant-heading-font: "Inter", Arial, sans-serif;
    --restaurant-body-font: "Inter", Arial, sans-serif;
    --restaurant-font-scale: 1;
}


/* BODY FONT */

body,
button,
input,
textarea,
select {
    font-family: var(--restaurant-body-font);
}


/* HEADINGS FONT */

.dish-title-button h1,
.sidebar-header h2,
.sheet-header h2,
.details-header h2,
.recommendations-header h2,
.ai-header h2,
.ai-result-heading h2,
.details-section h3 {
    font-family: var(--restaurant-heading-font);
}


/* MAIN DISH */

.category {
    font-size: calc(12px * var(--restaurant-font-scale));
}

.dish-title-button h1 {
    font-size: calc(36px * var(--restaurant-font-scale));
}

.details-hint {
    font-size: calc(9px * var(--restaurant-font-scale));
}

.description {
    font-size: calc(14px * var(--restaurant-font-scale));
}

.price {
    font-size: calc(29px * var(--restaurant-font-scale));
}


/* BUTTONS */

.add-button,
.details-add-button,
.checkout-button,
.view-order-button,
.ai-add-all-button {
    font-size: calc(10px * var(--restaurant-font-scale));
}


/* BOTTOM MENU */

.meal-nav button {
    font-size: calc(10px * var(--restaurant-font-scale));
}


/* SIDEBAR */

.sidebar-header p {
    font-size: calc(10px * var(--restaurant-font-scale));
}

.sidebar-header h2 {
    font-size: calc(23px * var(--restaurant-font-scale));
}

.sidebar-item {
    font-size: calc(14px * var(--restaurant-font-scale));
}

.sidebar-ai-card strong {
    font-size: calc(13px * var(--restaurant-font-scale));
}

.sidebar-ai-card small {
    font-size: calc(10px * var(--restaurant-font-scale));
}


/* SHEETS */

.sheet-header h2,
.details-header h2,
.recommendations-header h2,
.ai-header h2 {
    font-size: calc(25px * var(--restaurant-font-scale));
}

.details-description,
.recommendations-header p:last-child {
    font-size: calc(13px * var(--restaurant-font-scale));
}

.details-section h3 {
    font-size: calc(16px * var(--restaurant-font-scale));
}


/* AI */

.ai-header-description {
    font-size: calc(12px * var(--restaurant-font-scale));
}

.ai-field > span {
    font-size: calc(11px * var(--restaurant-font-scale));
}

.ai-result-heading h2 {
    font-size: calc(23px * var(--restaurant-font-scale));
}

.ai-result-message {
    font-size: calc(12px * var(--restaurant-font-scale));
}


/* CART / COMMENTS */

.cart-item-name,
.cart-item-price,
.comment-card p {
    font-size: calc(12px * var(--restaurant-font-scale));
}