html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

:root {
    /* Core Brand Colors */
    --royal-red: #A51A04;
    --deep-red: #6C1103;
    --crown-gold: #FF8000;
    --light-gold: #FFA500;
    --copper: #B96317;

    /* Neutrals */
    --charcoal-black: #030102;
    --ivory: #F8F4E3;
    --champagne: #E0CCA3;
    --warm-brown: #674624;

    /* Optional Accents */
    --jewel-blue: #1E4055;
    --location-green: #327B17;

    /* Mapping to UI Components */
    --primary-color: var(--royal-red);
    --primary-dark: var(--deep-red);
    --secondary-color: var(--charcoal-black);
    --secondary-light: var(--warm-brown);
    --accent-color: var(--crown-gold);
    --dark-bg: var(--charcoal-black);
    --section-bg-alt: #0a0606;
    /* Slightly lighter charcoal for sectioning */
    --light-bg: #120c0c;
    /* New primary dark background */
    --card-bg: rgba(30, 20, 20, 0.4);
    /* Glassy dark card */
    --text-primary: #F8F4E3;
    /* Ivory text */
    --text-secondary: rgba(248, 244, 227, 0.7);
    --text-on-dark: var(--ivory);

    --glass-bg: rgba(248, 244, 227, 0.85);
    /* Ivory based glass */
    --glass-border: rgba(103, 70, 36, 0.1);
    /* Warm Brown based border */
    --shadow-soft: 0 10px 30px rgba(103, 70, 36, 0.15);
    --shadow-hover: 0 20px 40px rgba(103, 70, 36, 0.25);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing System */
    --section-gap-desktop: 80px;
    --section-gap-mobile: 40px;
    --navbar-height: 100px;
    --navbar-height-mobile: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--ivory);
}

/* Navbar Styles */
.navbar {
    background-color: transparent;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.navbar-brand {
    margin-right: 0 !important;
}

@media (min-width: 992px) {
    /*    .navbar {
        padding: 0.8rem 0;
    }*/
}

.navbar.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
    padding: 0.3rem 0;
}

@media (min-width: 992px) {
    .navbar.scrolled {
        padding: 0.5rem 0;
    }
}

.brand-text {
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-link {
    color: rgba(248, 244, 227, 0.8) !important;
    font-weight: 500;
    margin: 0 0.3rem;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #FFFFFF !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.navbar-toggler-icon-custom {
    font-size: 1.5rem;
}

/* Custom Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF8000 100%);
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.75rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 5px 15px rgba(165, 26, 4, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(233, 78, 27, 0.4);
    color: white;
}

.btn-premium-outline {
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-premium-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Base Glass Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /*padding: 2rem;*/ /* Increased default padding */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08); /* Slightly more visible border */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--copper);
}

@media (min-width: 992px) {
    /*.glass-card {
        padding: 2.5rem !important;*/ /* Premium padding for desktop */
    /*}*/
}

.glass {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transition: all 0.3s ease;
}

.glass:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: var(--crown-gold) !important;
    box-shadow: 0 0 15px rgba(235, 159, 29, 0.2) !important;
    outline: none;
}

.glass::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Premium Input Styles */
.premium-input-group {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: stretch;
}

.premium-input-group:focus-within {
    border-color: var(--crown-gold);
    box-shadow: 0 0 15px rgba(235, 159, 29, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.premium-input-icon {
    background: transparent !important;
    border: none !important;
    color: var(--text-secondary) !important;
    padding-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-input {
    background: transparent !important;
    border: none !important;
    color: white !important;
    padding: 12px 15px !important;
    font-size: 0.95rem;
    width: 100%;
}

.premium-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.premium-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Section Spacing Utility */
.premium-section {
    padding-top: var(--section-gap-desktop);
    padding-bottom: var(--section-gap-desktop);
}

@media (max-width: 768px) {
    .premium-section {
        padding-top: var(--section-gap-mobile);
        padding-bottom: var(--section-gap-mobile);
    }
}

select.glass option {
    background-color: var(--light-bg) !important;
    color: white !important;
}

.footer-premium {
    background-color: var(--secondary-color);
    color: white;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
    padding-top: 4rem !important;
}

@media (max-width: 767.98px) {
    .footer-premium {
        margin-top: 2rem !important;
        padding-top: 3rem !important;
    }
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    color: white;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Scroll Top Button */
.btn-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: var(--shadow-hover);
    display: none;
    /* JS will toggle */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-scroll-top:hover {
    transform: translateY(-5px);
    background-color: var(--primary-dark);
}

/* Glass Card Enhanced (Merged above) */
.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--copper);
    letter-spacing: -0.5px;
}

.product-unit {
    font-size: 0.85rem;
    color: var(--warm-brown);
    opacity: 0.7;
    margin-left: 4px;
}

/* Feature Icons */
.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(233, 78, 27, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.glass-card:hover .icon-wrapper {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Text Gradient - Premium Edition (Red to Orange) */
.text-gradient {
    background: linear-gradient(135deg, #A51A04, #FF8000) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
}

/* Brand Colors Utility */
.text-crown-gold, .text-gold {
    color: #FF8000 !important; /* Brighter Orange to match Logo gradient end */
}

.bg-gold {
    background-color: #FF8000 !important;
}

.bg-white-5 {
    background: rgba(255, 255, 255, 0.05) !important;
}

.border-white-5 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Premium Staff Portal Utilities */
.order-row { transition: all 0.3s !important; cursor: pointer !important; }
.order-row:hover { background: rgba(255,255,255,0.02) !important; }

.avatar-sm { 
    width: 32px !important; 
    height: 32px !important; 
    font-weight: 700 !important; 
    font-size: 0.8rem !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

/* Premium Buttons */
.btn-gold {
    background: var(--crown-gold) !important;
    color: black !important;
    font-weight: 700 !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.btn-gold:hover {
    background: var(--light-gold) !important;
    color: black !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(235, 159, 29, 0.4) !important;
}

.btn-premium-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-premium-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--crown-gold) !important;
    color: var(--crown-gold) !important;
    transform: translateY(-2px) !important;
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.8s ease-out forwards;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.fade-in-left {
    transform: translateX(-30px);
}

.animate-on-scroll.fade-in-right {
    transform: translateX(30px);
}

.animate-on-scroll.fade-in-up {
    transform: translateY(30px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.full-height {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .full-height {
        justify-content: flex-start;
        min-height: auto;
        padding-top: 0;
        padding-bottom: 2rem;
    }
}

.mobile-form-container {
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Safe space at bottom for mobile keyboard scrolling */
.form-scroll-space {
    padding-bottom: 30vh !important;
    transition: padding-bottom 0.3s ease;
}

/* Extreme padding when an input is focused to guarantee scrollability */
.super-focus-active {
    padding-bottom: 80vh !important;
}

/* Fulfillment Preference Chips (Premium Pill Style) */
.pref-chip {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 6px !important;
    white-space: nowrap;
}

.pref-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(235, 159, 29, 0.3);
    color: white;
    transform: translateY(-2px);
}

.pref-chip.active {
    background: linear-gradient(135deg, var(--crown-gold), #b37a16);
    border-color: var(--crown-gold);
    color: black !important;
    box-shadow: 0 4px 15px rgba(235, 159, 29, 0.4);
}

.pref-chip i {
    font-size: 0.85rem !important;
}

.pref-chip.active i {
    transform: scale(1.1);
}

/* Cart & Checkout Mobile Optimization */
@media (max-width: 768px) {
    .cart-row-mobile {
        gap: 1.5rem !important;
    }

    .item-img-container {
        width: 80px !important;
        height: 80px !important;
        flex-shrink: 0;
    }

    .table-responsive {
        border: none !important;
    }

    /* Remove excessive space between items and summary on mobile */
    .cart-summary-section {
        margin-top: 1rem !important;
    }
}

/* Modal Fullscreen Mode (Super-Focus v5 / industry standard mobile pattern) */
@media (max-width: 768px) {
    .premium-modal-backdrop.fullscreen-mode {
        padding: 0 !important;
        background: #030102 !important;
        /* Fully opaque for focus */
        align-items: flex-start !important;
        z-index: 11000 !important;
    }

    .premium-modal-container.fullscreen-mode {
        width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding-bottom: 60vh !important;
        /* Massive scroll area */
        overflow-y: auto !important;
        display: block !important;
    }

    .fullscreen-mode .btn-close {
        top: 20px !important;
        right: 20px !important;
        padding: 15px !important;
    }
}

/* Shared Product selection styles */
.selection-controls {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.unit-pill {
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

.unit-pill.active {
    background: var(--crown-gold);
    color: black;
    border-color: var(--crown-gold);
}

.btn-qty-xs {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    transition: all 0.2s;
}

.btn-qty-xs:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--crown-gold);
    color: var(--crown-gold);
}

.btn-qty-xs:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-qty {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.btn-qty:hover {
    background: var(--crown-gold);
    color: black;
    border-color: var(--crown-gold);
}

.premium-modal-backdrop.mobile-focus-mode {
    align-items: flex-start !important;
    overflow-y: auto !important;
    padding-top: 5vh !important;
    padding-bottom: 50vh !important;
}

.premium-modal-container.mobile-focus-mode {
    max-height: none !important;
    height: auto !important;
    margin-bottom: 10vh !important;
}

@media (max-width: 576px) {
    .glass-card {
        padding: 1.5rem !important;
    }
}

/* Custom Padding Utility */
.p-premium {
    padding: 2rem !important;
}
@media (min-width: 992px) {
    .p-premium {
        padding: 3rem !important;
    }
}

.text-muted-premium {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Premium Loader */
.premium-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    gap: 2rem;
}

.premium-loader {
    position: relative;
    width: 100px;
    height: 100px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top: 4px solid var(--royal-red);
    border-radius: 50%;
    animation: loader-spin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: var(--crown-gold);
    animation-delay: -0.3s;
}

.loader-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #FF8000;
    animation-delay: -0.6s;
}

.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    animation: loader-pulse 2s ease-in-out infinite;
}

@keyframes loader-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes loader-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.7;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

.loading-text {
    font-family: var(--font-heading);
    color: var(--crown-gold);
    letter-spacing: 5px;
    font-size: 0.8rem;
    text-transform: uppercase;
    animation: loader-fade 2s ease-in-out infinite;
}

@keyframes loader-fade {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Blazor Error UI (Preserved) */
#blazor-error-ui {
    background: #FFF3CD;
    color: #856404;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Layout Styles */
.public-layout-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.public-content {
    flex: 1;
    padding-top: var(--navbar-height);
    /* Space for fixed navbar */
}

@media (max-width: 991.98px) {
    .public-content {
        padding-top: 70px;
        /* Slightly smaller for mobile */
    }
}

/* Eliminate redundant padding on first-sections except for headers/heroes which need breathing room */
.public-content>.landing-container>section:first-of-type:not(.hero-section),
.public-content>section:first-of-type:not(.hero-section) {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.public-content {
    padding-top: var(--navbar-height);
}

@media (max-width: 991.98px) {
    .public-content {
        padding-top: var(--navbar-height-mobile);
    }
}

/* Dark Navigation Effects */
.dark-glass {
    background: linear-gradient(to bottom, rgba(3, 1, 2, 0.95), rgba(3, 1, 2, 0.85)) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    background: #030102 !important;
    /* Fully opaque background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999 !important;
    /* Maximum z-index safety */
    padding-bottom: env(safe-area-inset-bottom);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    display: flex !important;
    visibility: visible !important;
}

@media (min-width: 992px) {
    .bottom-nav {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-toggler {
        display: none !important;
        /* Hide toggler on mobile as requested */
    }
}

.logo-img {
    filter: drop-shadow(0 0 10px rgba(255, 128, 0, 0.5));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    height: 100%;
}

.bottom-nav-link i {
    font-size: 1.25rem;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.bottom-nav-link:hover,
.bottom-nav-link.active {
    color: var(--crown-gold) !important;
}

.bottom-nav-link.active i {
    transform: translateY(-2px) scale(1.15);
    filter: drop-shadow(0 0 6px rgba(235, 159, 29, 0.7));
}

.bottom-nav-link.active span {
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .public-content {
        padding-bottom: 20px !important;
        /* Minimize gap to footer while keeping space for fixed elements if needed */
    }

    .btn-scroll-top {
        bottom: 90px;
        /* Move above bottom nav */
    }
}

/* Sidebar & Admin Styles (Preserved/Updated) */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

.sidebar {
    background-image: linear-gradient(180deg, var(--dark-bg) 0%, #16213e 70%);
    color: white;
}

.top-row {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: auto;
    display: flex;
    align-items: center;
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
        height: 100vh;
    }

    .sidebar {
        width: 220px;
        height: 100vh;
        position: sticky;
        top: 0;
        overflow-x: hidden !important;
        background-color: var(--dark-bg);
        display: flex;
        flex-direction: column;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 10;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(178, 34, 34, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid rgba(178, 34, 34, 0.2);
}

.process-step h5 {
    color: white;
    font-weight: 600;
}

/* Admin NavMenu Styles */
.nav-item {
    font-size: 0.65rem;
    padding: 0.3rem 0.75rem;
}

.nav-item ::deep a {
    color: rgba(248, 244, 227, 0.7);
    border-radius: 12px;
    margin: 0.3rem 0;
    padding: 0.9rem 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item ::deep a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-item ::deep a.active {
    background: linear-gradient(90deg, rgba(165, 26, 4, 0.15) 0%, transparent 100%);
    color: var(--crown-gold);
    border-left: 3px solid var(--crown-gold);
}

/* Global Dropdown Polish */
.premium-input-sm option {
    background-color: #1a1515 !important;
    color: white !important;
    padding: 10px;
}

select.premium-input-sm {
    cursor: pointer;
}

.nav-item ::deep a.active i {
    color: var(--crown-gold);
    filter: drop-shadow(0 0 8px rgba(235, 159, 29, 0.5));
}

/* Pin Logout to Bottom using Flexbox */
.nav-scrollable nav {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.nav-item:last-child {
    margin-top: auto;
    margin-bottom: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

/* Custom Scrollbar for Sidebar */
.nav-scrollable {
    scrollbar-width: thin;
    scrollbar-color: var(--crown-gold) rgba(0, 0, 0, 0.2);
    overflow-x: hidden !important;
}

.nav-scrollable::-webkit-scrollbar {
    width: 3px;
    height: 0;
}

.nav-scrollable::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.nav-scrollable::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--crown-gold) 0%, var(--copper) 100%);
    border-radius: 10px;
}

.nav-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--light-gold);
}

/* Responsive Branding in Header */
.brand-title-responsive {
    font-size: 1.2rem;
}

.brand-tagline-responsive {
    font-size: 0.45rem;
}

.mobile-logo-adj {
    height: 55px;
}

@media (min-width: 576px) {
    .brand-title-responsive {
        font-size: 1.5rem;
    }

    .brand-tagline-responsive {
        font-size: 0.55rem;
    }

    .mobile-logo-adj {
        height: 75px;
    }
}

@media (min-width: 768px) {
    .brand-title-responsive {
        font-size: 1rem;
    }

    .brand-tagline-responsive {
        font-size: 0.65rem;
    }
}

/* Hero & FAQ Responsive Polish */
.mobile-hero-title {
    font-size: 2.2rem !important;
}

@media (min-width: 768px) {
    .mobile-hero-title {
        font-size: 3.5rem !important;
    }
}

@media (min-width: 992px) {
    .mobile-hero-title {
        font-size: 4.5rem !important;
    }
}

.faq-grid h6 {
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .faq-grid h6 {
        font-size: 1.1rem;
    }
}

/* Text Truncation Utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Premium UI Components */
.badge-premium {
    background: linear-gradient(135deg, var(--royal-red) 0%, var(--deep-red) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(165, 26, 4, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.decorative-circle-1,
.decorative-circle-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.decorative-circle-1 {
    width: 300px;
    height: 300px;
    background: rgba(165, 26, 4, 0.15);
    top: -100px;
    left: -100px;
}

.decorative-circle-2 {
    width: 250px;
    height: 250px;
    background: rgba(235, 159, 29, 0.1);
    bottom: -50px;
    right: -50px;
}

.bg-gold {
    background-color: var(--crown-gold);
}

.badge-subtle-gold {
    background: rgba(235, 159, 29, 0.1) !important;
    color: var(--crown-gold) !important;
    border: 1px solid rgba(235, 159, 29, 0.2) !important;
}

.bg-preparing {
    background-color: #ffc107;
}

.badge-subtle-preparing {
    background: rgba(255, 193, 7, 0.1) !important;
    color: #ffc107 !important;
    border: 1px solid rgba(255, 193, 7, 0.2) !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================================
   BLAZOR SERVER RECONNECT — silently reconnects, no popup shown ever
   ========================================================================= */
#components-reconnect-modal,
#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Page Transitions (WhatsApp/FB Style) */
.animate-slide-next {
    animation: slideInRight 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.animate-slide-prev {
    animation: slideInLeft 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes slideInRight {
    0% {
        transform: translateX(50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}