/* =============================================================================
   premium-layout.css — Extracted from app.blade.php
   Layout, header, sidebar, footer, FAB, toast, PWA banner styles.
   Browser-cacheable static CSS (no Blade variables here).
   ============================================================================= */

/* ========= GLOBAL COMPACT RESPONSIVE BUMP ========= */
body {
    font-size: 14.5px !important;
    line-height: 1.5;
}

/* ========= HEADER WALLET PILL ========= */
.header-wallet-pill {
    padding: 7px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--theme-color), color-mix(in srgb, var(--theme-color) 65%, #3b1fb0));
    color: #ffffff;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--theme-color) 25%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.25s ease;
}
.header-wallet-pill:hover {
    transform: translateY(-1.5px);
    filter: brightness(108%);
}
.header-wallet-pill svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
}

/* ========= HEADER AVATAR ========= */
.header-avatar-img,
.menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid color-mix(in srgb, var(--theme-color) 45%, #ffffff);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all .25s ease;
}
.header-avatar-img img,
.menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.header-avatar:hover .header-avatar-img {
    transform: scale(1.04);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* LOGO & FONTS FIX */
body, p, a, button, input, select, textarea, .text-sm, .text-xs, .text-md, .text-lg, .font-primary {
    font-family: 'Inter', 'Hind Siliguri', sans-serif !important;
}
.logo {
    max-height: 40px;
    object-fit: contain;
    transition: all 0.3s ease;
    width: auto !important;
}
@media (min-width: 768px) {
    .logo { max-height: 48px; }
}

/* ===== GLASS HEADER ===== */
.header {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    z-index: 1050;
    box-shadow: 0 2px 18px rgba(15, 23, 42, 0.04);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.header-spacer { height: 64px; }
@media (min-width: 768px) {
    .header-spacer { height: 76px; }
}

/* ========= TOP PAGE-LOAD PROGRESS BAR ========= */
#topbar-loader {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--theme-color), color-mix(in srgb, var(--theme-color) 60%, #ffffff));
    box-shadow: 0 0 10px color-mix(in srgb, var(--theme-color) 70%, transparent), 0 0 4px color-mix(in srgb, var(--theme-color) 90%, transparent);
    z-index: 2147483647;
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}
#topbar-loader.loading { opacity: 1; }
#topbar-loader.done {
    width: 100% !important;
    opacity: 0;
    transition: width 0.25s ease, opacity 0.4s ease 0.15s;
}

/* ===== DRAWER / SIDEBAR ===== */
#userMenu {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 3000 !important;
    margin-top: 0 !important;
}
.gosizi-navlist {
    z-index: 3001 !important;
    position: fixed !important;
    inset: 0 !important;
    height: 100% !important;
}
.nav-overlay {
    background: rgba(15, 23, 42, 0.35) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    z-index: 3002 !important;
}
.sidebar-premium {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.12);
    color: #0f172a;
    border-left: 1px solid rgba(148, 163, 184, 0.15);
    width: 290px !important;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 3003 !important;
}
.sidebar-premium.open { transform: translateX(0); }

/* ========= COMPACT BOTTOM NAV ========= */
@media (max-width: 767px) {
    body { margin-bottom: 72px !important; }
    .sticky-footer-container {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        z-index: 1000;
        display: flex !important;
        justify-content: space-between;
        align-items: flex-end;
        padding: 6px 8px 10px;
        height: auto !important;
    }
    .sticky-footer-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        padding-top: 6px;
    }
    .sticky-footer-item a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        text-decoration: none;
        color: #374151 !important;
        opacity: 1 !important;
        filter: none !important;
    }
    .sticky-footer-item a i,
    .sticky-footer-item a svg,
    .sticky-footer-item a span:first-child {
        font-size: 1.4rem !important;
        width: 28px !important; height: 28px !important;
        display: flex !important;
        align-items: center !important; justify-content: center !important;
        transition: color .2s;
        opacity: 1 !important;
        filter: none !important;
        color: inherit !important;
    }
    .sticky-footer-item a span:last-child {
        font-size: 0.67rem !important;
        font-weight: 700 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        transition: color .2s;
        opacity: 1 !important;
        color: inherit !important;
    }
    .sticky-footer-item a.active {
        color: var(--theme-color, #6366f1) !important;
        opacity: 1 !important;
        font-weight: 800 !important;
    }
    .sticky-footer-item a .sticky-footer-avatar,
    .sticky-footer-item a.active .sticky-footer-avatar {
        opacity: 1 !important; filter: none !important; color: #ffffff !important;
    }
    .sticky-footer-center {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        padding-bottom: 0;
    }
    .sticky-footer-center-outer {
        background: #ffffff;
        padding: 4px;
        border-radius: 50%;
        filter: drop-shadow(0px 4px 10px rgba(124,58,237,0.3));
        margin-bottom: 4px;
        margin-top: -26px;
    }
    .sticky-footer-center-btn {
        width: 52px; height: 52px;
        border-radius: 50%;
        background: var(--theme-color, #7c3aed);
        color: #ffffff;
        display: flex; align-items: center; justify-content: center;
        border: none; cursor: pointer;
        box-shadow: 0 4px 14px rgba(124,58,237,.35);
        transition: transform .15s ease, filter .15s;
        text-decoration: none;
        font-size: 1.4rem;
    }
    .sticky-footer-center-btn:active { transform: scale(0.93); }
    .sticky-footer-center-btn:hover  { filter: brightness(108%); }
    .sticky-footer-center-label {
        font-size: 0.67rem; font-weight: 500;
        color: #6b7280; text-align: center;
    }
    .sticky-footer-avatar {
        width: 28px; height: 28px;
        border-radius: 50%; overflow: hidden;
        display: flex; align-items: center; justify-content: center;
        font-weight: 700; font-size: 0.72rem;
        color: #fff; flex-shrink: 0;
        opacity: 1 !important;
    }
    .sticky-footer-avatar img { width: 100%; height: 100%; object-fit: cover; opacity: 1 !important; }
    .sticky-footer-item a .sticky-footer-avatar { opacity: 1 !important; filter: none !important; }
}
@media (min-width: 768px) {
    .sticky-footer-container { display: none !important; }
    body { margin-bottom: 0 !important; }
}

/* ========= SIDEBAR HEADER ========= */
.menu-header-premium {
    padding: 24px 20px 18px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-color) 6%, transparent), transparent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    position: relative;
}
.menu-avatar {
    width: 50px; height: 50px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--theme-color), #4f46e5);
    color: #ffffff;
    font-weight: 800; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.2);
    border: 2px solid #ffffff;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.menu-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.menu-user-info { margin-left: 12px; display: flex; flex-direction: column; justify-content: center; }
.menu-user-name { font-size: 1.05rem; font-weight: 700; color: #0f172a; line-height: 1.2; }
.menu-user-email { font-size: 0.8rem; color: #64748b; margin-top: 2px; font-weight: 500; }

/* ========= SIDEBAR MENU ITEMS ========= */
.premium-menu-group-label {
    font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: #64748b; padding: 18px 20px 8px;
}
.premium-menu-item {
    display: block; margin: 4px 10px;
    border-radius: 12px; color: #334155;
    transition: all 0.2s ease; text-decoration: none !important;
}
.premium-menu-item > span {
    display: flex; align-items: center;
    padding: 11px 16px; font-size: 0.95rem; font-weight: 600; gap: 12px;
}
.premium-menu-item svg { width: 18px; height: 18px; color: #64748b; transition: all 0.2s ease; }
.premium-menu-item:hover {
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transform: translateX(4px);
    color: var(--theme-color);
}
.premium-menu-item:hover svg { color: var(--theme-color); transform: scale(1.08); }
.premium-menu-item-active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-color) 8%, transparent), #ffffff);
    color: var(--theme-color) !important;
    box-shadow: inset 4px 0 0 var(--theme-color);
}
.premium-menu-item-active svg { color: var(--theme-color); }

/* ========= SIDEBAR LOGOUT & SUPPORT ========= */
.logout-section { padding: 14px 10px; margin-top: 6px; }
.logout-premium {
    width: 100%; background: #fafafa; color: #ef4444;
    border: 1px solid #fee2e2; border-radius: 12px; padding: 11px;
    font-size: 0.88rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(239,68,68,0.03);
}
.logout-premium:hover {
    background: #fef2f2; border-color: #fecaca;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(239,68,68,0.08);
}
.sidebar-support-wrap { padding: 14px 10px 24px; }
.sidebar-support-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--theme-color), #4f46e5);
    color: #ffffff !important; text-align: center;
    padding: 12px; border-radius: 12px; font-weight: 700; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 8px 20px rgba(79,70,229,0.25);
    transition: all 0.3s ease;
}
.sidebar-support-btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 28px rgba(79,70,229,0.35);
    filter: brightness(1.08);
}

/* ========= FOOTER ========= */
.footer-bg {
    background: linear-gradient(180deg, var(--footer-color), color-mix(in srgb, var(--footer-color) 82%, #000000));
    border-top: 2px solid rgba(148,163,184,0.12);
    box-shadow: 0 -14px 40px rgba(15,23,42,0.35);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    overflow: hidden;
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; } }
.footer-section-title { font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 800; color: var(--theme-color); opacity: 0.95; margin-bottom: 12px; }
.footer-description { font-size: 0.9rem; line-height: 1.6; opacity: 0.85; color: var(--footer-font-color); margin-bottom: 16px; }
.footer-social-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 767px) { .footer-social-row { justify-content: center; } }
.footer-social-icon {
    width: 40px; height: 40px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #ffffff !important;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(148,163,184,0.18);
    transition: all 0.22s ease;
}
.footer-social-icon:hover {
    background: var(--theme-color); border-color: var(--theme-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--theme-color) 45%, transparent);
}
.footer-support-card {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 12px 18px; border-radius: 14px; text-decoration: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(148,163,184,0.14);
    color: var(--footer-font-color);
    transition: all 0.22s ease;
}
@media (max-width: 767px) { .footer-support-card { justify-content: center; width: 100%; } }
.footer-support-card:hover { background: rgba(255,255,255,0.09); border-color: rgba(148,163,184,0.32); transform: translateY(-2px); }
.footer-support-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #22c55e; color: #022c22; font-size: 18px; flex-shrink: 0; }
.footer-support-content { text-align: left; }
.footer-support-label { font-size: 0.8rem; opacity: 0.65; margin-bottom: 1px; color: var(--footer-font-color); }
.footer-support-number { font-size: 0.95rem; font-weight: 700; color: var(--footer-font-color); }
.footer-bottom-bar { border-top: 1px solid rgba(148,163,184,0.14); margin-top: 8px; }
.footer-bottom-text { color: var(--footer-font-color); opacity: 0.7; font-size: 0.85rem; }
.footer-bottom-brand { color: var(--theme-color) !important; font-weight: 800; margin: 0 4px; text-decoration: none; transition: all 0.25s ease; letter-spacing: 0.03em; }
.footer-bottom-brand:hover { filter: brightness(1.25); text-decoration: underline; }
@media (max-width: 480px) {
    .footer-grid { gap: 20px; }
    .footer-section-title { font-size: 0.78rem; margin-bottom: 8px; }
    .footer-description { font-size: 0.85rem; }
    .footer-social-icon { width: 38px; height: 38px; font-size: 15px; }
    .footer-support-card { padding: 10px 14px; border-radius: 12px; }
    .footer-support-icon { width: 34px; height: 34px; font-size: 16px; border-radius: 8px; }
    .footer-support-label { font-size: 0.75rem; }
    .footer-support-number { font-size: 0.9rem; }
    .footer-bottom-text { font-size: 0.78rem; }
}

/* ========= HEADER RESPONSIVE ========= */
@media (max-width: 640px) {
    .header-wallet-pill { padding: 6px 12px; font-size: 0.82rem; gap: 5px; }
    .header-wallet-pill svg { width: 14px; height: 14px; }
    .header-avatar-img, .menu-avatar { width: 36px; height: 36px; }
}
@media (max-width: 380px) { .header-wallet-pill { padding: 5px 10px; font-size: 0.78rem; } }

/* ========= NEW ORDER TOAST ========= */
.nr-toast-container { position: fixed; bottom: 82px; left: 15px; z-index: 999999; pointer-events: none; }
.nr-toast {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 10px 25px rgba(15,23,42,0.15), 0 0 0 1px rgba(0,0,0,0.03);
    padding: 8px 14px; border-radius: 14px;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    transform: translateY(15px) scale(0.92);
    opacity: 0; pointer-events: auto; max-width: 270px;
}
.nr-toast.show { transform: translateY(0) scale(1); opacity: 1; }
.nr-toast-avatar { width: 36px; height: 36px; border-radius: 9999px; color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; flex-shrink: 0; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.nr-toast-content { flex-grow: 1; min-width: 0; }
.nr-toast-title { font-size: 0.78rem; font-weight: 700; color: #0f172a; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nr-toast-sub { font-size: 0.7rem; font-weight: 500; color: var(--theme-color); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nr-toast-time { font-size: 0.6rem; opacity: 0.45; margin-top: 2px; color: #475569; }
@media (max-width: 480px) { .nr-toast-container { bottom: 74px; left: 10px; right: 10px; } .nr-toast { max-width: 100%; } }

/* ========= PWA INSTALL BANNER ========= */
.pwa-banner {
    position: fixed; bottom: 82px; left: 15px; right: 15px;
    background: #fff; border-radius: 14px; padding: 12px 14px;
    display: none; align-items: center; justify-content: space-between;
    box-shadow: 0 12px 36px rgba(0,0,0,0.18);
    z-index: 9999999; border: 1px solid rgba(0,0,0,0.06);
    animation: pwaSlideUp 0.6s cubic-bezier(0.19, 1, 0.22, 1); gap: 12px;
}
@media (min-width: 768px) { .pwa-banner { left: auto; right: 20px; width: 330px; } }
@keyframes pwaSlideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.pwa-content { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.pwa-content img { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: #f8fafc; border: 1px solid #f1f5f9; }
.pwa-text { display: flex; flex-direction: column; min-width: 0; }
.pwa-text strong { font-size: 0.85rem; color: #0f172a; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pwa-text span { font-size: 0.7rem; color: #64748b; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pwa-actions { display: flex; gap: 6px; flex-shrink: 0; }
.pwa-install-btn { background: var(--theme-color); color: #fff !important; border: none; padding: 6px 14px; border-radius: 8px; font-weight: 700; font-size: 0.78rem; box-shadow: 0 4px 10px color-mix(in srgb, var(--theme-color) 30%, transparent); transition: all 0.2s; }
.pwa-install-btn:active { transform: scale(0.95); }
.pwa-close-btn { background: #f1f5f9; color: #64748b !important; border: none; padding: 6px 10px; border-radius: 8px; font-weight: 600; font-size: 0.78rem; transition: all 0.2s; }
@media (max-width: 480px) { .pwa-banner { bottom: 74px; left: 10px; right: 10px; padding: 10px 12px; } .pwa-text strong { font-size: 0.8rem; } .pwa-text span { font-size: 0.65rem; } }

/* ===== HEADER AUTH BUTTONS ===== */
.premium-header-auth-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 18px; margin: 0 4px; font-size: 0.8rem; font-weight: 800;
    letter-spacing: 0.05em; text-transform: uppercase;
    border-radius: 999px; cursor: pointer; text-decoration: none;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
}
.premium-header-login { background: rgba(148,163,184,0.08); border: 1.5px solid rgba(148,163,184,0.2); color: #475569; backdrop-filter: blur(4px); }
.premium-header-login:hover { background: #ffffff; border-color: var(--theme-color); color: var(--theme-color); transform: translateY(-1.5px); box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.premium-header-register { background: linear-gradient(135deg, var(--theme-color), color-mix(in srgb, var(--theme-color) 65%, #3b1fb0)); color: #ffffff; border: 1.5px solid var(--theme-color); box-shadow: 0 6px 16px color-mix(in srgb, var(--theme-color) 25%, transparent); }
.premium-header-register:hover { transform: translateY(-1.5px); filter: brightness(1.08); box-shadow: 0 10px 24px color-mix(in srgb, var(--theme-color) 40%, transparent); }
@media (max-width: 480px) { .premium-header-auth-btn { padding: 8px 14px; font-size: 0.74rem; margin: 0 2px; } }
