@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* =========================================
   ROOT VARIABLES
   ========================================= */
:root {
    /* Surfaces — alineadas con el sistema 2026 del panel admin */
    --surface:           #151413;
    --surface-low:       #1c1b19;
    --surface-container: #232120;
    --surface-high:      #2a2826;
    --surface-highest:   #343130;

    /* Primary — cobre refinado */
    --primary:           #d4754c;
    --primary-container: #c86a41;
    --primary-dark:      #c2643c;
    --primary-darker:    #a95230;
    --primary-rgb:       212, 117, 76;
    --on-primary:        #16130f;

    /* Text */
    --text:              #f2f0e9;
    --text-muted:        #afaca3;
    --text-subtle:       #807d75;

    /* Borders — más sutiles; la elevación la dan las superficies */
    --border:            rgba(140, 130, 120, 0.16);
    --border-light:      rgba(140, 130, 120, 0.10);
    --border-strong:     rgba(140, 130, 120, 0.34);

    /* Typography */
    --font-display: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;

    /* Radii — pill-first, precise */
    --r-pill: 999px;
    --r-lg:   20px;
    --r-md:   14px;
    --r-sm:   10px;
    --r-xs:   8px;

    /* Shadows — subtle, sober */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.30);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.28);
    --shadow-lg: 0 18px 44px rgba(0,0,0,0.45);

    /* Bootstrap overrides */
    --bs-primary:            #d4754c;
    --bs-primary-rgb:        212, 117, 76;
    --bs-body-bg:            #151413;
    --bs-body-color:         #f2f0e9;
    --bs-secondary-bg:       #232120;
    --bs-tertiary-bg:        #2a2826;
    --bs-border-color:       rgba(140, 130, 120, 0.26);
    --bs-link-color:         var(--primary);
    --bs-link-hover-color:   #f2f0e9;
    --bs-btn-color:          #16130f;
    --bs-btn-bg:             var(--primary);
    --bs-btn-border-color:   var(--primary);
    --bs-btn-hover-color:    #16130f;
    --bs-btn-hover-bg:       var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-color:   #16130f;
    --bs-btn-active-bg:      var(--primary-darker);
    --bs-btn-active-border-color: var(--primary-darker);
    --bs-body-font-family:   'Inter', sans-serif;

    /* Safe areas */
    --safe-top:    env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left:   env(safe-area-inset-left, 0px);
    --safe-right:  env(safe-area-inset-right, 0px);

    --bottom-nav-height: 66px;
    color-scheme: dark;
}

[data-bs-theme="dark"] {
    --bs-primary:            #d4754c;
    --bs-primary-rgb:        212, 117, 76;
    --bs-body-bg:            #151413;
    --bs-body-color:         #f2f0e9;
    --bs-secondary-bg:       #262422;
    --bs-tertiary-bg:        #2e2c2a;
    --bs-border-color:       rgba(120, 112, 105, 0.30);
    --bs-link-color:         var(--primary);
    --bs-link-hover-color:   #f2f0e9;
    --bs-btn-color:          #16130f;
    --bs-btn-bg:             var(--primary);
    --bs-btn-border-color:   var(--primary);
    --bs-btn-hover-color:    #16130f;
    --bs-btn-hover-bg:       var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-color:   #16130f;
    --bs-btn-active-bg:      var(--primary-darker);
    --bs-btn-active-border-color: var(--primary-darker);
    color-scheme: dark;
}

/* =========================================
   BASE
   ========================================= */
html {
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    background-color: var(--surface) !important;
    background-image:
        radial-gradient(at 0% 0%, rgba(212, 117, 76, 0.06) 0px, transparent 45%),
        radial-gradient(at 100% 100%, rgba(246, 128, 70, 0.03) 0px, transparent 45%);
    background-attachment: fixed;
    color: var(--text) !important;
    font-family: var(--font-body);
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.text-muted { color: var(--text-muted) !important; }
.lead { color: var(--text-muted); }
.text-primary { color: var(--primary) !important; }

/* Numeric emphasis — display font with tabular figures */
.num, .price, .stat-value {
    font-family: var(--font-display);
    font-feature-settings: "tnum";
    letter-spacing: -0.01em;
}

/* =========================================
   NAVBAR (desktop & mobile top)
   ========================================= */
.navbar {
    background-color: rgba(18, 17, 16, 0.82) !important;
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--border-light);
    padding-top: max(0.5rem, var(--safe-top));
    min-height: 56px;
    z-index: 1030;
}

.navbar-brand {
    font-family: var(--font-display);
    color: var(--text) !important;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }

/* =========================================
   BOTTOM NAVIGATION BAR (mobile only)
   ========================================= */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottom-nav-height) + var(--safe-bottom));
    background: rgba(18, 17, 16, 0.94);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-top: 1px solid var(--border);
    z-index: 1040;
    padding-bottom: var(--safe-bottom);
}

.bottom-nav-inner {
    display: flex;
    align-items: stretch;
    height: var(--bottom-nav-height);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-subtle);
    text-decoration: none;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.bottom-nav-item i {
    font-size: 1.375rem;
    transition: transform 0.2s ease;
}

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

.bottom-nav-item.active i {
    transform: translateY(-1px);
}

/* pill highlight behind the active icon */
.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 30px;
    background: rgba(var(--primary-rgb), 0.14);
    border-radius: var(--r-pill);
    z-index: -1;
}

.bottom-nav-badge {
    position: absolute;
    top: 6px;
    left: calc(50% + 8px);
    background: #e5484d;
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* Body padding when bottom nav is visible */
body.has-bottom-nav {
    padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
}

/* =========================================
   CARDS — solid, hairline, precise
   ========================================= */
.card {
    background-color: var(--surface-low);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(0.25,0.8,0.25,1), border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-light);
    padding: 1.15rem 1.4rem;
}

.card-body { padding: 1.4rem; }
.card-title { font-family: var(--font-display); color: var(--text); font-weight: 600; letter-spacing: -0.01em; }

/* =========================================
   BUTTONS — pill-first, flat & confident
   ========================================= */
.btn {
    border-radius: var(--r-pill);
    padding: 0.6rem 1.25rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0;
    transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1),
                background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
    position: relative;
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
    min-height: 46px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:active { transform: scale(0.96); }

.btn-sm {
    padding: 0.42rem 0.95rem;
    font-size: 0.82rem;
    min-height: 38px;
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    min-height: 54px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
    box-shadow: none;
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--on-primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.30);
}
.btn-primary:active { background: var(--primary-darker); border-color: var(--primary-darker); }

.btn-outline-primary { color: var(--primary); border-color: var(--primary); background: transparent; }
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.25);
}

.btn-outline-secondary { border-color: var(--border-strong); color: var(--text-muted); background: transparent; }
.btn-outline-secondary:hover {
    background-color: var(--surface-high);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-outline-danger { border-color: rgba(248, 113, 113, 0.45); color: #f87171; }
.btn-outline-danger:hover { background: rgba(248, 113, 113, 0.12); border-color: rgba(248,113,113,0.6); color: #f87171; }

.btn-group .btn { min-height: 38px; padding: 0.4rem 0.75rem; }

/* Icon-only buttons */
.btn-icon {
    width: 46px;
    height: 46px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    min-height: unset;
    gap: 0;
}

/* =========================================
   FORMS
   ========================================= */
.form-control, .form-select {
    background-color: var(--surface-container);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--r-md);
    padding: 0.75rem 1rem;
    min-height: 48px;
    font-size: 1rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.form-control:focus, .form-select:focus {
    background-color: var(--surface-container);
    border-color: var(--primary);
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14);
}

.form-control::placeholder { color: var(--text-subtle); }

.form-label {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.form-select option { background-color: #2e2c2a; }
.form-control-sm, .form-select-sm { min-height: 38px; font-size: 0.875rem; border-radius: var(--r-sm); }

/* =========================================
   MODAL
   ========================================= */
.modal-content {
    background-color: var(--surface-low);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header { border-bottom: 1px solid var(--border-light); padding: 1.15rem 1.4rem; }
.modal-footer { border-top: 1px solid var(--border-light); padding: 1.1rem 1.4rem; }
.modal-title { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* Mobile: sheet-style modals */
@media (max-width: 576px) {
    .modal-dialog:not(.modal-dialog-centered) {
        margin: 0;
        max-width: 100%;
    }
    .modal-dialog:not(.modal-dialog-centered) .modal-content {
        border-radius: var(--r-lg) var(--r-lg) 0 0;
        min-height: 40vh;
    }
    .modal.fade:not(.modal-dialog-centered) .modal-dialog {
        transform: translateY(100%);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
    .modal.show:not(.modal-dialog-centered) .modal-dialog {
        transform: translateY(0);
    }
}

/* =========================================
   TABLES
   ========================================= */
.table {
    color: var(--text);
    --bs-table-bg: transparent;
}
.table thead th {
    border-bottom: 1px solid var(--border);
    color: var(--text-subtle);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.table tbody tr { border-bottom: 1px solid var(--border-light); }
.table tbody tr:hover { background-color: rgba(255,255,255,0.03) !important; }
.table-responsive { -webkit-overflow-scrolling: touch; }

/* =========================================
   BADGES
   ========================================= */
.badge {
    padding: 0.42em 0.8em;
    font-weight: 600;
    font-size: 0.72rem;
    border-radius: var(--r-pill);
    letter-spacing: 0.02em;
}

/* =========================================
   LOGIN PAGE
   ========================================= */
.login-container {
    background-color: var(--surface-low);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.google-btn {
    background-color: hsla(0, 0%, 100%, 0.06);
    border: 1px solid var(--border-strong);
    color: #FFFFFF;
    padding: 0.9rem 1.5rem;
    border-radius: var(--r-pill);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    font-weight: 600;
    min-height: 54px;
    justify-content: center;
}
.google-btn:hover {
    background-color: hsla(0, 0%, 100%, 0.12);
    transform: translateY(-1px);
    color: #FFFFFF;
}

/* =========================================
   PRODUCT CARDS (comprar.html)
   ========================================= */
.product-card .card { border-radius: var(--r-lg) !important; }
.product-card .card:hover { transform: translateY(-3px); }

.qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.qty-controls-row {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-container);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 3px;
}

.qty-btn {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    flex-shrink: 0;
    border: none;
    background: var(--surface-high);
    color: var(--text);
}
.qty-btn:hover { background: var(--surface-highest); color: var(--text); }

.qty-input {
    width: 36px !important;
    min-height: 34px;
    text-align: center;
    font-size: 0.9rem;
    font-family: var(--font-display);
    font-weight: 600;
    padding: 0;
    border-radius: 0;
    flex-shrink: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.add-to-cart-btn {
    flex: 1;
    min-width: 0;
    min-height: 40px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

/* En mobile (col-6): el botón agregar baja a su propia fila */
@media (max-width: 575px) {
    .qty-controls {
        gap: 6px;
    }
    .qty-btn {
        width: 38px;
        height: 38px;
        min-height: 38px;
    }
    .qty-input {
        width: 38px !important;
        min-height: 38px;
    }
    .add-to-cart-btn {
        width: 100%;
        flex: none;
        min-height: 42px;
        font-size: 0.9rem;
    }
}

/* Category filters */
.category-scroller {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 8px;
}
.category-scroller::-webkit-scrollbar { display: none; }
.category-scroller .d-flex {
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    padding: 2px 0;
}

/* =========================================
   CART PAGE (carrito.html)
   ========================================= */
.cart-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-item:last-of-type { border-bottom: none; }

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.5rem;
}

.cart-total-section {
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-radius: var(--r-md);
    padding: 1.25rem;
}

/* =========================================
   CHECKOUT PAGE
   ========================================= */
.payment-option {
    cursor: pointer;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.25rem;
    transition: all 0.22s ease;
    background: var(--surface-low);
    -webkit-tap-highlight-color: transparent;
}

.payment-option:hover {
    border-color: rgba(var(--primary-rgb), 0.4);
    background: var(--surface-container);
}

.payment-option.selected {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.payment-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.check-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.payment-option.selected .check-indicator {
    opacity: 1;
    transform: scale(1);
}

.order-summary-sticky {
    position: sticky;
    top: 80px;
}

/* =========================================
   PILLS / STATUS CHIPS
   ========================================= */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 600;
}
.pill-green { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.pill-gray  { background: rgba(180, 178, 169, 0.15); color: var(--text-muted); }

/* =========================================
   ADMIN TAB NAV (horizontal scroll)
   ========================================= */
.admin-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
    padding-bottom: 2px;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs .nav-link { white-space: nowrap; }

/* =========================================
   ADMIN ACTION BUTTONS (top bar)
   ========================================= */
.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* =========================================
   SKELETON LOADERS
   ========================================= */
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

.skeleton {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.05) 25%,
        rgba(255,255,255,0.1)  50%,
        rgba(255,255,255,0.05) 75%);
    background-color: rgba(255,255,255,0.05);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: var(--r-sm);
}
.skeleton-text { height: 1rem; margin-bottom: 0.5rem; width: 60%; }
.skeleton-img  { width: 100%; height: 140px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.skeleton-btn  { height: 32px; width: 100%; border-radius: var(--r-pill); }

/* =========================================
   FLY TO CART ANIMATION
   ========================================= */
.flying-img {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0.9;
}

/* =========================================
   UTILITIES
   ========================================= */
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.discount-line { color: #4ade80; }
.original-price { text-decoration: line-through; color: #888; font-size: 0.85rem; }

/* =========================================
   RESPONSIVE — MOBILE (≤ 576px)
   ========================================= */
@media (max-width: 576px) {
    .bottom-nav { display: block; }
    .hide-on-mobile { display: none !important; }

    .navbar { min-height: 52px; }
    .navbar-brand { font-size: 1.05rem; max-width: 150px; }

    .card-body  { padding: 1rem !important; }
    .card-header { padding: 1rem !important; }

    h3.card-title, .h3 { font-size: 1.1rem; }
    h4, .h4 { font-size: 1rem; }
    .display-3 { font-size: 2rem !important; }
    .display-5 { font-size: 1.5rem !important; }

    .product-img { height: 120px !important; }

    .cart-item-controls { flex-wrap: wrap; }

    .admin-actions { flex-direction: column; }
    .admin-actions .btn { width: 100%; justify-content: center; }

    .col-md-3.col-6 { font-size: 0.875rem; }

    .table-mobile-compact th:nth-child(n+4),
    .table-mobile-compact td:nth-child(n+4) {
        display: none;
    }

    .order-summary-sticky { position: static; }

    .login-container {
        padding: 1.5rem;
        border-radius: var(--r-lg);
        margin: 1rem;
    }
}

/* =========================================
   RESPONSIVE — TABLET (577px–768px)
   ========================================= */
@media (min-width: 577px) and (max-width: 768px) {
    .bottom-nav { display: block; }
    body.has-bottom-nav { padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom)); }
    .hide-on-tablet { display: none !important; }
}

/* =========================================
   RESPONSIVE — DESKTOP (≥ 769px)
   ========================================= */
@media (min-width: 769px) {
    .bottom-nav { display: none !important; }
    body.has-bottom-nav { padding-bottom: 0 !important; }
}

/* =========================================
   SAFE AREA FIXES (notch / home bar)
   ========================================= */
.navbar {
    padding-left: max(1rem, var(--safe-left));
    padding-right: max(1rem, var(--safe-right));
}

.bottom-nav {
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
}

/* iOS bounce prevention */
body { overscroll-behavior-y: none; }
.container, .container-fluid { overscroll-behavior-y: auto; }
