@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #0c0a12;
    --card-bg: linear-gradient(135deg, rgba(28, 20, 38, 0.88) 0%, rgba(14, 10, 20, 0.96) 100%);
    --card-border: rgba(224, 169, 109, 0.3);
    --card-border-rose: rgba(255, 117, 160, 0.35);
    --text-primary: #ffffff;
    --text-secondary: #c4b5fd;
    --rose-gold: #e0a96d;
    --gold-accent: #d4af37;
    --blush-pink: #ff75a0;
    --plum-dark: #08060c;
    --ff-main: 'Plus Jakarta Sans', sans-serif;
}

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

html, body {
    background: #08060c !important;
    color: #ffffff !important;
    font-family: var(--ff-main) !important;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    -webkit-font-smoothing: antialiased;
}

/* DESKTOP VIEWPORT (Cadrul de prezentare pe Desktop) */
.iphone-frame {
    width: 410px;
    height: 820px;
    margin: 20px auto;
    background: radial-gradient(ellipse at 20% 15%, rgba(224, 169, 109, 0.22) 0%, rgba(20, 15, 31, 0.96) 50%, #08060c 100%) !important;
    border: 10px solid #231b30;
    border-radius: 44px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(224, 169, 109, 0.2);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* MOBILE FULLSCREEN PWA VIEWPORT (100dvh pe orice ecran mobil) */
@media (max-width: 768px) {
    .iphone-frame {
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

/* Header Fix */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px 10px;
    background: rgba(14, 10, 20, 0.95);
    backdrop-filter: blur(16px);
    flex-shrink: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(224, 169, 109, 0.15);
}
.brand-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--rose-gold);
    letter-spacing: -0.02em;
    text-shadow: 0 0 12px rgba(224, 169, 109, 0.3);
}
.badge-horeca {
    background: rgba(224, 169, 109, 0.15);
    border: 1px solid var(--rose-gold);
    color: var(--rose-gold);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(224, 169, 109, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.lang-badge-elegant {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(20, 15, 31, 0.8);
    border: 1px solid rgba(224, 169, 109, 0.35);
    color: var(--rose-gold);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.lang-badge-elegant:hover, .lang-badge-elegant:active {
    border-color: var(--blush-pink);
    color: var(--blush-pink);
    background: rgba(20, 15, 31, 0.95);
}

/* Welcome Banner Card */
.welcome-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 12px 16px;
    margin: 8px 16px 0;
    flex-shrink: 0;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.welcome-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}
.welcome-sub {
    font-size: 0.76rem;
    color: #cbd5e1;
}

/* Grilă Categorii Fixă pe 2 Rânduri */
.category-tab-wrapper {
    padding: 10px 16px 4px;
    flex-shrink: 0;
}
.cat-tab-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.cat-tab-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(224, 169, 109, 0.2);
    border-radius: 10px;
    padding: 7px 2px;
    text-align: center;
    color: #cbd5e1;
    font-size: 0.68rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all 0.2s ease;
}
.cat-tab-btn.active {
    border-color: var(--blush-pink);
    background: rgba(255, 117, 160, 0.2);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(255, 117, 160, 0.3);
}
.cat-tab-icon {
    font-size: 1.05rem;
}

.category-header-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    padding: 6px 16px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.cat-count-badge {
    font-size: 0.7rem;
    color: var(--rose-gold);
}

/* Container Scrollabil Produse / Servicii */
.dish-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 85px;
    flex: 1;
    min-height: 0;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--rose-gold) transparent;
}
.dish-list::-webkit-scrollbar { width: 4px; }
.dish-list::-webkit-scrollbar-thumb { background: var(--rose-gold); border-radius: 4px; }

.dish-card-luxury {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 8px 20px rgba(0, 0, 0, 0.6);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.dish-card-luxury:active {
    transform: scale(0.98);
    border-color: var(--blush-pink);
}

.dish-img {
    width: 85px;
    height: 85px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(224, 169, 109, 0.1);
    border: 1px solid rgba(224, 169, 109, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
}
.dish-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.dish-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px;
}
.dish-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}
.dish-price-badge {
    background: rgba(224, 169, 109, 0.15);
    border: 1px solid var(--rose-gold);
    color: var(--rose-gold);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}
.dish-desc {
    font-size: 0.72rem;
    color: #cbd5e1;
    margin: 4px 0 6px;
    line-height: 1.3;
}
.dish-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dish-rating {
    font-size: 0.72rem;
    color: #ffca28;
    display: flex;
    align-items: center;
    gap: 4px;
}
.dish-rating-count {
    color: #94a3b8;
}
.add-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(224, 169, 109, 0.15);
    border: 1px solid var(--rose-gold);
    color: var(--rose-gold);
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.add-btn-icon:hover, .add-btn-icon:active {
    background: var(--rose-gold);
    color: #000;
}

/* Modal Bottom Sheet Glassmorphism (Garantat Vizibil 100% Pe Ecran) */
.modal-backdrop-inapp {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 6, 12, 0.88);
    backdrop-filter: blur(12px);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-backdrop-inapp.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-sheet-inapp {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 15, 31, 0.98);
    backdrop-filter: blur(28px);
    border-top: 1px solid var(--rose-gold);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 -15px 40px rgba(0, 0, 0, 0.95);
    padding: 16px 20px 24px;
    z-index: 310;
    transform: translateY(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85%;
    overflow-y: auto;
}
.modal-sheet-inapp.active {
    transform: translateY(0);
}

.sheet-handle {
    width: 36px;
    height: 4px;
    background: rgba(224, 169, 109, 0.4);
    border-radius: 4px;
    margin: 0 auto 12px;
}
.modal-dish-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}
.modal-dish-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.modal-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rose-gold);
}
.modal-weight {
    font-size: 0.78rem;
    color: #cbd5e1;
}
.modal-full-desc {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin-bottom: 12px;
}
.modal-beauty-match {
    background: rgba(255, 117, 160, 0.12);
    border: 1px solid var(--blush-pink);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    color: var(--blush-pink);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-modal-add {
    flex: 1;
    background: rgba(224, 169, 109, 0.22);
    border: 1px solid var(--rose-gold);
    color: var(--rose-gold);
    padding: 12px;
    border-radius: 14px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 0 15px rgba(224, 169, 109, 0.2);
    transition: all 0.2s ease;
}
.btn-modal-add:hover, .btn-modal-add:active {
    background: var(--rose-gold);
    color: #000;
}
.btn-modal-close {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Bottom Navigation Bar Locked at Screen Bottom */
.bottom-nav-luxury {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(14, 10, 20, 0.96);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(224, 169, 109, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0 10px;
    flex-shrink: 0;
    z-index: 200;
}
.nav-item-luxury {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 500;
}
.nav-item-luxury.active {
    color: var(--rose-gold);
}
.nav-item-luxury svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}
