/* =============================================
   KAMILOĞLU QR MENÜ - APP STYLE (UI/UX PRO MAX)
   BURGUNDY RED & TRABZON GOLD PALETTE MATCHING THE LOGO
   ============================================= */

:root {
    --bg-app: #120A0A;
    --bg-surface: #1B0F0F;
    --bg-card: #251414;
    --bg-card-hover: #311A1A;
    --bg-input: #190E0E;
    --primary: #A61616;
    --primary-light: #C42020;
    --primary-dark: #780E0E;
    --primary-glow: rgba(166, 22, 22, 0.45);
    --gold: #D4A853;
    --gold-light: #F3E5AB;
    --gold-dark: #B8913A;
    --text-main: #FFF8F5;
    --text-sub: #D1C0B5;
    --text-muted: #968175;
    --border: rgba(166, 22, 22, 0.22);
    --border-hover: rgba(212, 168, 83, 0.35);
    --border-active: rgba(212, 168, 83, 0.5);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic: 'Cairo', 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

[dir="rtl"] {
    font-family: var(--font-arabic);
}

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

body {
    font-family: var(--font-sans);
    background-color: #080404;
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* Smartphone App Container Frame */
.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background-color: var(--bg-app);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
    border-left: 1px solid rgba(166, 22, 22, 0.15);
    border-right: 1px solid rgba(166, 22, 22, 0.15);
}

/* =============================================
   APP HEADER
   ============================================= */
.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 64px;
    background: rgba(18, 10, 10, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.header-icon-btn:active {
    transform: scale(0.92);
    background: rgba(166, 22, 22, 0.15);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

[dir="rtl"] .header-brand {
    text-align: right;
}

.header-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
    flex-shrink: 0;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: #fff;
    line-height: 1.15;
}

.brand-sub {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--gold);
    text-transform: uppercase;
}

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

/* Language Selector Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    border-color: var(--gold);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 145px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 3px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 100;
}

[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

.lang-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-sub);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    width: 100%;
}

[dir="rtl"] .lang-option {
    text-align: right;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.lang-option.active {
    background: rgba(166, 22, 22, 0.2);
    color: var(--gold);
    font-weight: 700;
}

/* =============================================
   EXPANDABLE SEARCH BAR
   ============================================= */
.search-bar-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--bg-surface);
    border-bottom: 1px solid transparent;
    padding: 0 16px;
}

.search-bar-wrap.open {
    max-height: 70px;
    padding: 10px 16px;
    border-bottom-color: var(--border);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 12px;
    height: 44px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(212, 168, 83, 0.25);
}

.search-box svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-box input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px; /* Prevents auto-zoom on iOS mobile */
    font-family: inherit;
}

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

.search-clear-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

/* =============================================
   APP MAIN CONTENT
   ============================================= */
.app-main {
    flex: 1;
    padding: 14px 14px calc(85px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.view-section {
    display: none;
    animation: fadeIn 0.25s ease-out;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Heading Row */
.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 4px;
}

.section-heading {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: #fff;
}

.badge-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 10px;
    border-radius: 50px;
}

/* =============================================
   VIEW 1: CATEGORY GRID (Screen 1 in Screenshot)
   ============================================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.category-card {
    position: relative;
    height: 155px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    background-color: var(--bg-card);
    border: 1px solid rgba(166, 22, 22, 0.2);
    transition: transform var(--transition), box-shadow var(--transition);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.category-card:active {
    transform: scale(0.97);
}

.category-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card-img {
    transform: scale(1.08);
}

.category-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 10, 10, 0.08) 0%, rgba(18, 10, 10, 0.4) 40%, rgba(18, 10, 10, 0.95) 100%);
}

.category-card-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(27, 15, 15, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 168, 83, 0.25);
    border-radius: var(--radius-md);
    padding: 7px 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.category-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =============================================
   VIEW 2: PRODUCT LIST (Screen 2 in Screenshot)
   ============================================= */
/* Category Filter Pill Scroller */
.cat-pill-scroller {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px 14px;
    margin-bottom: 8px;
}

.cat-pill-scroller::-webkit-scrollbar {
    display: none;
}

.cat-pill-btn {
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-sub);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.cat-pill-btn:hover {
    color: #fff;
    border-color: var(--gold);
}

.cat-pill-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* Active Category Header */
.active-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 2px;
}

.back-to-grid-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

[dir="rtl"] .back-to-grid-btn svg {
    transform: rotate(180deg);
}

.active-cat-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

/* Horizontal Product Cards List */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

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

.product-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Card Info */
.product-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-card-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
}

.product-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.product-card-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gold);
    white-space: nowrap;
}

.product-card-desc {
    font-size: 0.82rem;
    color: var(--text-sub);
    line-height: 1.45;
}

.product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.prod-mini-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
    margin: 20px 0;
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.empty-state h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 16px;
}

.btn-primary-pill {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

/* =============================================
   RESTAURANT INFO FOOTER (Address & Instagram)
   ============================================= */
.restaurant-info-footer {
    padding: 24px 16px calc(105px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    margin-top: 24px;
}

.footer-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: background var(--transition), transform var(--transition);
}

.footer-info-item:hover {
    background: var(--bg-card-hover);
}

.footer-info-item:active {
    transform: scale(0.98);
}

.footer-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(212, 168, 83, 0.12);
    border: 1px solid rgba(212, 168, 83, 0.25);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-icon-box.instagram-box {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.15), rgba(131, 58, 180, 0.15));
    border-color: rgba(225, 48, 108, 0.3);
    color: #f06595;
}

.footer-info-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.footer-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-val {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.35;
    word-break: break-word;
}

.footer-val.instagram-handle {
    color: var(--gold-light);
    font-weight: 700;
}

.footer-arrow {
    color: var(--text-muted);
    opacity: 0.6;
    flex-shrink: 0;
}

[dir="rtl"] .footer-arrow svg {
    transform: rotate(180deg);
}

.footer-brand-signature {
    text-align: center;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-brand-signature .sig-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.2px;
}

.footer-brand-signature .sig-sub {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

/* Footer Legal & Developer Credits */
.footer-divider-line {
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 18px auto 14px;
    opacity: 0.55;
}

.footer-legal-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.footer-copyright-text {
    font-size: 0.79rem;
    font-weight: 500;
    color: var(--text-sub);
    line-height: 1.45;
    letter-spacing: 0.2px;
}

.footer-copyright-text .footer-brand-title {
    color: #fff;
    font-weight: 700;
}

.footer-rights-text {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.4px;
}

.footer-dev-credit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
    padding: 7px 16px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(212, 168, 83, 0.05));
    border: 1px solid rgba(212, 168, 83, 0.22);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.footer-dev-credit:hover {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.12), rgba(166, 22, 22, 0.18));
    border-color: rgba(212, 168, 83, 0.45);
    box-shadow: 0 6px 20px rgba(212, 168, 83, 0.16);
    transform: translateY(-1px);
}

.footer-dev-label {
    font-size: 0.69rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-dev-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.footer-dev-icon {
    color: var(--gold);
    transition: transform 0.25s ease;
}

.footer-dev-credit:hover .footer-dev-icon {
    transform: scale(1.15) rotate(-6deg);
}

.footer-dev-name {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    background: linear-gradient(135deg, #FFFDF8 0%, #F5E5C9 35%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    filter: drop-shadow(0 1px 3px rgba(212, 168, 83, 0.35));
}

[dir="rtl"] .footer-dev-credit {
    direction: rtl;
}

[dir="rtl"] .footer-dev-badge {
    direction: ltr;
}

/* =============================================
   VIEW 3: PRODUCT DETAIL MODAL (Screen 3 in Screenshot)
   ============================================= */
.product-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.product-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.product-modal-sheet {
    width: 100%;
    max-width: 480px;
    background: var(--bg-surface);
    border-radius: 28px 28px 0 0;
    border-top: 1px solid rgba(212, 168, 83, 0.3);
    padding: 16px 20px calc(30px + env(safe-area-inset-bottom, 0px));
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
}

.product-modal-sheet::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 2px;
    margin: 0 auto 14px;
}

.product-modal-backdrop.active .product-modal-sheet {
    transform: translateY(0);
}

.modal-sheet-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

[dir="rtl"] .modal-sheet-close {
    right: auto;
    left: 18px;
}

.dish-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}

.dish-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.dish-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gold-light);
}

.dish-description {
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.45;
    margin-bottom: 18px;
}

/* Ingredients & Options */
.details-heading {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.dish-details-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
}

.ingredients-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ing-tag {
    font-size: 0.76rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 168, 83, 0.2);
    padding: 5px 11px;
    border-radius: 50px;
}

.dish-options-section {
    margin-bottom: 24px;
}

.options-pills {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-pill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.option-pill-item.active {
    border-color: var(--gold);
    background: rgba(166, 22, 22, 0.2);
}

.option-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.option-extra {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-light);
}

/* Detail Modal Action */
.dish-modal-actions {
    display: flex;
    gap: 10px;
}

.btn-modal-close-action {
    flex: 1;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    color: #fff;
    border: 1px solid var(--border-hover);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-modal-close-action:hover {
    background: rgba(166, 22, 22, 0.25);
    border-color: var(--gold);
    color: var(--gold-light);
}

.btn-modal-close-action:active {
    transform: scale(0.97);
}

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.app-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #250A0A;
    border: 1px solid var(--primary-light);
    color: #FFE5E5;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    white-space: nowrap;
}

.app-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.app-toast svg {
    color: var(--gold);
}

/* =============================================
   FIXED BOTTOM APP NAVIGATION BAR
   (Exact Match to All 3 Screens in Screenshot)
   ============================================= */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    background: rgba(18, 10, 10, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px env(safe-area-inset-bottom, 0px);
    z-index: 60;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    flex: 1;
    max-width: 180px;
}

.bottom-nav-item:active {
    transform: scale(0.94);
}

.bottom-nav-item svg {
    transition: transform var(--transition), color var(--transition);
}

.bottom-nav-item span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.bottom-nav-item.active {
    color: var(--gold);
}

.bottom-nav-item.active svg {
    transform: scale(1.12);
    filter: drop-shadow(0 2px 8px rgba(212, 168, 83, 0.4));
}
