:root {
    --bg-main: #050507;
    --bg-card: #14141c;
    --bg-card-soft: #1d1d27;
    --accent: #ffc451;
    --accent-soft: #ffda7a;
    --text-main: #ffffff;
    --text-muted: #9ea0b4;
    --danger: #ff4b6b;
    --radius-lg: 24px;
    --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.75);
}

/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    background: radial-gradient(circle at top, #202030 0, #050507 55%);
    color: var(--text-main);
}

body {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* MAIN WRAPPER */
.app-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 24px 16px 32px;
}

/* CONTAINER */
.phone-shell {
    width: 100%;
    max-width: 1100px;
    background: linear-gradient(145deg, #09090e, #151520);
    border-radius: 24px;
    padding: 13px 32px 32px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

/* TOP BAR (sidebar + language switch) */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* language switcher */
.lang-switch {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: rgba(20, 20, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lang-btn {
    border: none;
    padding: 5px 10px;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
}

.lang-btn--active {
    background: var(--accent);
    color: #221708;
}

/* SCREEN AREA */
.screen {
    display: none;
    padding-bottom: 100px;
    /* space for nav */
}

.screen.is-active {
    display: block;
}
/* sticky menu of search bar*/
.menu-header-sticky {
    position: sticky;
    top: 0;
    z-index: 30;
    background: linear-gradient(180deg, rgba(9, 9, 14, 0.98), rgba(9, 9, 14, 0.9));
    padding-top: 4px;
    padding-bottom: 8px;
}

/* FEATURED CARD */
.featured-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: radial-gradient(circle at top left, #ffdd8a 0, #ffb347 35%, #f29e3b 100%);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}

.featured-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.15), transparent 60%);
    pointer-events: none;
}

.featured-text {
    position: relative;
    z-index: 1;
    color: #2e2400;
}

.featured-label {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 0 0 4px;
}

.featured-title {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 700;
}

.featured-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.featured-meta span {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
}

.featured-image {
    position: relative;
    z-index: 1;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #fff, #f79f45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.food-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ff9f1c, #ffbf69, #ff9f1c);
}

/* MENU TITLE + FILTERS */
.categories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.categories-header h3 {
    font-size: 0.95rem;
    margin: 0;
}

.chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.chip-row::-webkit-scrollbar {
    display: none;
}

.chip {
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.75rem;
    background: var(--bg-card-soft);
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
}

.chip--active {
    background: var(--accent);
    color: #1a1405;
    font-weight: 600;
}

/* SEARCH */
.search-section {
    margin-bottom: 16px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(10, 10, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-icon {
    font-size: 0.9rem;
    opacity: 0.8;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    color: var(--text-main);
    font-size: 0.8rem;
}

/* MENU GRID */
.menu-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* CARD */
.meal-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 10px 10px 12px;
    position: relative;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.meal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
    background: #181822;
}

.meal-image {
    width: 100%;
    padding-top: 75%;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    margin-bottom: 6px;
    position: relative;
}

.meal-chip {
    position: absolute;
    left: 6px;
    top: 6px;
    font-size: 0.55rem;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(13, 13, 18, 0.9);
    color: #fff;
}

.meal-name {
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 0 2px;
}

/* price text */
.meal-price {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-soft);
}

/* bottom row */
.meal-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.meal-category-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* favorite button */
.meal-fav-btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 28px;
    height: 28px;
    background: rgba(20, 20, 32, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.meal-fav-btn svg {
    width: 14px;
    height: 14px;
    fill: transparent;
    stroke: var(--text-muted);
    stroke-width: 2;
}

.meal-fav-btn.is-favorited svg {
    fill: var(--danger);
    stroke: var(--danger);
}

/* EMPTY STATE */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* MEAL MODAL */
.meal-modal {
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 6, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 14px;
    z-index: 60;
}

.meal-modal.hidden {
    display: none;
}

.meal-modal__content {
    width: 100%;
    max-width: 380px;
    background: #0c0c12;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.3rem;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    cursor: pointer;
}

.meal-modal__image-wrapper {
    position: relative;
    height: 190px;
    background: radial-gradient(circle at center, #333342 0, #050507 90%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.meal-modal__image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 10px rgba(10, 10, 16, 0.7);
}

.fav-toggle-btn {
    position: absolute;
    bottom: 14px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 20, 32, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.icon-heart {
    width: 18px;
    height: 18px;
    fill: transparent;
    stroke: var(--text-muted);
    stroke-width: 2;
}

.fav-toggle-btn.is-favorited .icon-heart {
    fill: var(--danger);
    stroke: var(--danger);
}

.meal-modal__body {
    padding: 18px 18px 20px;
}

.meal-modal__body h2 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}

.modal-price {
    margin: 0 0 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-soft);
}

.modal-description {
    margin: 0;
    font-size: 0.8rem;
    color: #d2d3e4;
}

/* NAV – glassmorphism bottom bar */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 18px 14px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    background: rgba(5, 5, 12, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 80;
}

.nav-item {
    flex: 1;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 7px 14px;
    background: rgba(20, 20, 32, 0.7);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-item--active {
    background: rgba(255, 196, 81, 0.85);
    color: #221708;
}

.nav-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* SIDEBAR TOGGLE BUTTON – glass round */
.side-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 18, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.side-toggle-btn .bar {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

/* SIDEBAR OVERLAY + DRAWER (dark) */
.side-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 90;
}

.side-overlay.hidden {
    display: none;
}

.side-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: min(80%, 320px);
    background: radial-gradient(circle at top, #1b1b26 0, #050508 60%);
    color: #ffffff;
    padding: 20px 18px 24px;
    z-index: 95;
    transform: translateX(-100%);
    transition: transform 0.25s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* was space-between */
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.55);
}

.side-drawer.open {
    transform: translateX(0);
}

.side-drawer.hidden {
    display: none;
}

.side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    /* was 10px – adds more space under "Arkeron Ethiopia" */
}

.side-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    /* keep this small so the extra space mainly comes from header */
}

.side-logo span {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-soft);
}

.side-close-btn {
    border: none;
    background: transparent;
    font-size: 1.6rem;
    color: #ffffff;
    cursor: pointer;
}

.side-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* keep everything left in the button */
    gap: 10px;
    padding: 9px 14px;
    border-radius: 12px;
    border: none;
    background: rgba(10, 10, 18, 0.9);
    text-decoration: none;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: left;
    /* make sure text is not centered */
}

.side-menu-icon {
    width: 24px;
    /* fixed width so all texts start at same X */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-menu-item:hover {
    background: rgba(255, 196, 81, 0.15);
}



.side-menu-text {
    flex: 1;
}

.side-footer {
    margin-top: auto;
    /* push footer to bottom */
    padding-top: 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.powered-text {
    display: block;
    font-weight: 700;
    color: var(--accent-soft);
    letter-spacing: 0.03em;
}

.side-domain {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #ffffff;
}

/* FEEDBACK MODAL – dark style */
.feedback-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}

.feedback-modal.hidden {
    display: none;
}

.feedback-modal__content {
    width: 100%;
    max-width: 430px;
    background: #11111a;
    color: #ffffff;
    border-radius: 20px;
    padding: 18px 18px 20px;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.feedback-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    font-size: 1.4rem;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    cursor: pointer;
}

.feedback-title {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-soft);
}

.fb-label {
    display: flex;
    flex-direction: column;
    font-size: 0.82rem;
    margin-bottom: 10px;
}

.fb-input,
.fb-textarea {
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #343446;
    font-size: 0.82rem;
    background: #181822;
    color: #ffffff;
    outline: none;
}

.fb-input::placeholder,
.fb-textarea::placeholder {
    color: #686a80;
}

.fb-textarea {
    resize: vertical;
}

.fb-field-group {
    margin-bottom: 10px;
}

.fb-question {
    margin: 0 0 6px;
    font-size: 0.82rem;
}

.fb-inline-options {
    display: flex;
    gap: 18px;
    font-size: 0.8rem;
}

.fb-inline-options label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fb-stars {
    display: flex;
    gap: 4px;
}

.fb-stars label {
    cursor: pointer;
}

.fb-stars input[type="radio"] {
    display: none;
}

.fb-stars span {
    font-size: 1.1rem;
    color: #44465c;
}

.fb-stars input[type="radio"]:checked+span,
.fb-stars label:hover span {
    color: #ffb400;
}

.fb-submit-btn {
    margin-top: 8px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: #221708;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.fb-success-message {
    display: none;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #0dd26e;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    body {
        align-items: stretch;
    }

    .app-wrapper {
        padding: 0;
    }

    .phone-shell {
        border-radius: 0;
        max-width: none;
        min-height: 100vh;
        padding: 6px 14px 32px;
        box-shadow: none;
    }

    .menu-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 360px) {
    .phone-shell {
        padding-inline: 10px;
    }
}