/* =========================================================
   Tito's Kitchenz & Grills — Luxury Flutter-style Theme (v5)
   ========================================================= */
:root {
    --primary: #ff4d4d;
    --primary-dark: #e60000;
    --gold: #ffb703;
    --gold-deep: #ff8c00;
    --success: #2ecc71;
    --danger: #e74c3c;
    --dark: #1e2125;
    --muted: #8d97a5;
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-soft: 0 10px 30px rgba(20, 20, 30, 0.08);
    --shadow-pop: 0 16px 40px rgba(255, 77, 77, 0.25);
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: #f3f0ff;
    background: linear-gradient(180deg, #fff7f0 0%, #f3f0ff 100%);
    margin: 0;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* ---------- Phone-fixed shell ---------- */
.phone-shell {
    max-width: 430px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
    overflow: hidden;
}
@media (min-width: 431px) {
    body { background: linear-gradient(135deg, #1e2125, #3a1c1c); }
    .phone-shell { border-radius: 32px; margin: 20px auto; min-height: calc(100vh - 40px); border: 8px solid #14161a; }
}

/* ---------- Buttons ---------- */
.btn-lux {
    background: linear-gradient(135deg, var(--primary), var(--gold-deep));
    color: #fff; border: none; font-weight: 700;
    padding: 14px 20px; border-radius: 16px;
    box-shadow: var(--shadow-pop);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative; overflow: hidden;
}
.btn-lux:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 20px 45px rgba(255,77,77,0.35); color:#fff; }
.btn-lux:active { transform: translateY(0) scale(.98); }
.btn-lux::after {
    content:""; position:absolute; top:0; left:-75%; width:50%; height:100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3.2s infinite;
}
@keyframes shimmer { 0% { left:-75%; } 60% { left:130%; } 100% { left:130%; } }

.btn-outline-lux {
    background: #fff; color: var(--primary); border: 2px solid var(--primary);
    font-weight: 700; padding: 12px 18px; border-radius: 16px; transition: .25s;
}
.btn-outline-lux:hover { background: var(--primary); color: #fff; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #1e2125; font-weight: 800; border: none; border-radius: 16px; padding: 14px;
    box-shadow: 0 12px 28px rgba(255,183,3,0.35);
}

/* ---------- Cards / glass ---------- */
.glass-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.6);
}

.food-card {
    display: flex; align-items: center; padding: 14px;
    margin: 12px 15px; background: #fff; border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft); border: 1px solid #f4f1f1;
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}
.food-card:active { transform: scale(0.98); }
.food-img { width: 82px; height: 82px; border-radius: 16px; object-fit: cover; background: #f0f0f0; flex-shrink:0; }
.food-info { flex: 1; padding-left: 14px; min-width: 0; }
.food-name { font-weight: 700; font-size: 1rem; color: #222; }
.food-price { color: var(--primary); font-weight: 800; font-size: 1.05rem; }
.add-btn {
    background: linear-gradient(135deg, var(--primary), var(--gold-deep));
    color: #fff; border: none; width: 40px; height: 40px; border-radius: 14px;
    font-size: 1.3rem; font-weight: bold; box-shadow: 0 6px 16px rgba(255,77,77,.35);
    transition: transform .2s;
}
.add-btn:active { transform: scale(0.85); }

.star-rating { color: var(--gold-deep); letter-spacing: 1px; }

/* ---------- Category pills ---------- */
.cat-scroll { display: flex; overflow-x: auto; padding: 14px 15px 4px; gap: 10px; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-item {
    background: #f8f4ff; padding: 10px 20px; border-radius: 25px; white-space: nowrap;
    font-weight: 600; cursor: pointer; transition: .25s; color: #555; font-size: .9rem;
}
.cat-item.active {
    background: linear-gradient(135deg, var(--primary), var(--gold-deep)); color: #fff;
    box-shadow: 0 6px 16px rgba(255,77,77,0.35);
}

/* ---------- Bottom nav ---------- */
.bottom-nav {
    position: sticky; bottom: 0; left:0; right:0; background: #fff;
    display: flex; justify-content: space-around; align-items:center; padding: 10px 6px 8px;
    border-top: 1px solid #f0eef2; z-index: 1000; box-shadow: 0 -8px 25px rgba(0,0,0,0.04);
}
.nav-item { color: #c2c8d1; text-align: center; font-size: 1.25rem; cursor: pointer; position: relative; padding: 4px 10px; transition: .2s; }
.nav-item span { display:block; font-size: .6rem; font-weight:600; margin-top:2px; }
.nav-item.active { color: var(--primary); transform: translateY(-2px); }
.nav-badge {
    position: absolute; top: -2px; right: -2px; background: var(--gold-deep); color:#fff;
    font-size: .6rem; font-weight:800; border-radius: 50%; width:16px; height:16px;
    display:flex; align-items:center; justify-content:center;
}

/* ---------- Floating support button ---------- */
.fab-support {
    position: fixed; bottom: 90px; right: calc(50% - 195px); z-index: 999;
    background: linear-gradient(135deg, var(--dark), #3a1c1c); color: var(--gold);
    width: 54px; height: 54px; border-radius: 50%; display:flex; align-items:center; justify-content:center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35); font-size:1.3rem; animation: pulseGlow 2.4s infinite;
}
@media (max-width: 430px) { .fab-support { right: 16px; } }
@keyframes pulseGlow {
    0%,100% { box-shadow: 0 10px 25px rgba(255,183,3,0.25); }
    50% { box-shadow: 0 10px 35px rgba(255,183,3,0.55); }
}

/* ---------- Landing page ---------- */
.landing-hero {
    background: radial-gradient(circle at 30% 20%, #ff7a45, #d21f1f 60%, #7a0d0d);
    min-height: 100vh; color:#fff; display:flex; flex-direction:column;
    align-items:center; justify-content:center; text-align:center; padding: 30px 24px;
    position: relative; overflow:hidden;
}
.landing-hero::before, .landing-hero::after {
    content:""; position:absolute; border-radius:50%; filter: blur(10px); opacity:.25;
}
.landing-hero::before { width:220px; height:220px; background: var(--gold); top:-60px; left:-60px; animation: floaty 7s ease-in-out infinite; }
.landing-hero::after { width:180px; height:180px; background:#fff; bottom:-50px; right:-50px; animation: floaty 9s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0) translateX(0);} 50% { transform: translateY(25px) translateX(15px);} }

.landing-logo { width: 130px; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35)); animation: popIn 1s ease; }
@keyframes popIn { 0% { transform: scale(.4); opacity:0; } 80% { transform: scale(1.08);} 100% { transform: scale(1); opacity:1; } }

.landing-slogan {
    font-size: 1.65rem; font-weight: 900; margin: 22px 0 8px; color: #fff;
    animation: bounceSlogan 2.2s infinite, sloganGlow 2.2s ease-in-out infinite alternate;
}
@keyframes sloganGlow {
    from {
        text-shadow: 0 0 8px rgba(255,183,3,0.55), 0 0 18px rgba(255,140,0,0.45),
                     0 0 32px rgba(255,77,77,0.25), 0 4px 14px rgba(0,0,0,0.35);
    }
    to {
        text-shadow: 0 0 18px rgba(255,215,110,0.95), 0 0 36px rgba(255,140,0,0.8),
                     0 0 54px rgba(255,77,77,0.5), 0 4px 18px rgba(0,0,0,0.4);
    }
}
@keyframes bounceSlogan {
    0%,20%,50%,80%,100% { transform: translateY(0); }
    40% { transform: translateY(-16px); }
    60% { transform: translateY(-8px); }
}
.landing-tagline { font-size: 1rem; opacity: .92; font-weight:500; margin-bottom: 30px; }

.landing-btn-row { display:flex; flex-direction:column; gap:14px; width:100%; max-width:280px; }
.order-now-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color:#1e2125;
    font-weight: 900; padding: 16px; border-radius: 20px; border:none; font-size:1.05rem;
    box-shadow: 0 16px 35px rgba(0,0,0,0.35); animation: heartbeat 2.4s infinite;
    display:flex; align-items:center; justify-content:center; gap:10px;
}
@keyframes heartbeat {
    0%,100% { transform: scale(1); } 25% { transform: scale(1.045); } 40% { transform: scale(1); } 60% { transform: scale(1.03); }
}
.landing-link-btn {
    background: rgba(255,255,255,0.12); color:#fff; border:1.5px solid rgba(255,255,255,0.5);
    padding:13px; border-radius:20px; font-weight:700; backdrop-filter: blur(6px);
}

.landing-badges { display:flex; gap:16px; margin-top: 34px; flex-wrap:wrap; justify-content:center; }
.landing-badge { background: rgba(255,255,255,0.12); padding:8px 14px; border-radius:14px; font-size:.75rem; font-weight:600; backdrop-filter: blur(4px); }

/* ---------- Order status stepper ---------- */
.stepper { display:flex; justify-content:space-between; margin: 18px 0 6px; position:relative; }
.stepper::before { content:""; position:absolute; top:14px; left:6%; right:6%; height:4px; background:#eee; border-radius:4px; z-index:0; }
.step { position:relative; z-index:1; flex:1; text-align:center; }
.step-dot {
    width:28px; height:28px; border-radius:50%; background:#eee; color:#aaa; display:flex;
    align-items:center; justify-content:center; margin:0 auto 6px; font-size:.75rem; font-weight:800;
    transition: .4s; border: 3px solid #fff;
}
.step.done .step-dot { background: linear-gradient(135deg, var(--success), #27ae60); color:#fff; }
.step.current .step-dot { background: linear-gradient(135deg, var(--primary), var(--gold-deep)); color:#fff; animation: ringPulse 1.6s infinite; }
@keyframes ringPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,77,77,.45); } 50% { box-shadow: 0 0 0 8px rgba(255,77,77,0); } }
.step-label { font-size: .62rem; color:#999; font-weight:600; line-height:1.1; }
.step.done .step-label, .step.current .step-label { color:#333; }

/* ---------- Toast ---------- */
.lux-toast {
    position: fixed; top: 16px; left:50%; transform: translateX(-50%) translateY(-120%);
    background: var(--dark); color:#fff; padding: 12px 22px; border-radius: 40px; font-weight:600;
    font-size:.85rem; z-index: 3000; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: transform .35s ease;
    display:flex; align-items:center; gap:8px;
}
.lux-toast.show { transform: translateX(-50%) translateY(0); }
.lux-toast.success { background: linear-gradient(135deg, var(--success), #27ae60); }
.lux-toast.error { background: linear-gradient(135deg, var(--danger), #c0392b); }

/* ---------- Misc ---------- */
.footer-lux { text-align:center; padding: 26px 20px 20px; font-size:.8rem; color:#aab0b8; }
.wiseman-link { color: var(--primary); text-decoration:none; font-weight:800; }
.wiseman-link:hover { text-decoration: underline; }

.badge-pending { background:#fff4e0; color:#d68910; }
.badge-processing { background:#e8eefc; color:#2e6fdb; }
.badge-received { background:#eee8fc; color:#7b3ee0; }
.badge-outfordelivery { background:#fdeee0; color:#e07b1a; }
.badge-delivered { background:#e6f9ef; color:#1e9e5e; }
.badge-cancelled { background:#fdeaea; color:#c0392b; }
.badge-approved { background:#e6f9ef; color:#1e9e5e; }
.badge-declined { background:#fdeaea; color:#c0392b; }
.badge-pending-pay { background:#fff4e0; color:#d68910; }
.status-badge { padding:4px 12px; border-radius:20px; font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.3px; }

.empty-state { text-align:center; padding: 50px 20px; color:#b5b9c1; }
.empty-state i { font-size: 3rem; opacity:.3; margin-bottom: 14px; display:block; }
