/**
 * ===================================================
 * JASTIP LOKAL - Main Stylesheet
 * ===================================================
 * Dark Mode Theme with Glassmorphism Design
 * Mobile-First & Fully Responsive
 * Author: Jastip Dev Team
 * Version: 1.0.0
 */

/* ===================================================
   1. CSS VARIABLES & RESET
   =================================================== */

:root {
    /* Colors - Jastip Premium */
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --bg-card: rgba(15, 23, 42, 0.6);
    --bg-glass: rgba(15, 23, 42, 0.7);
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    
    /* Accent Colors */
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-purple: #8b5cf6;
    --accent-purple-hover: #7c3aed;
    --accent-orange: #f97316;
    --accent-orange-hover: #ea580c;
    
    /* Premium Liquid Glass Variables */
    --glass-blur: blur(20px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shimmer: linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    
    /* Fonts */
    --font-heading: 'Bodoni Moda', serif;
    --font-body: 'Jost', sans-serif;
    
    /* Border & Effects */
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
    --shadow-glow-purple: 0 0 20px rgba(168, 85, 247, 0.3);
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Glass Effect */
    --glass-blur: blur(12px);
    --glass-bg: rgba(20, 20, 30, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
    
    /* Bottom Nav Height */
    --bottom-nav-height: 70px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Absolute Responsive Reset */
html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    position: relative;
    box-sizing: border-box;
}

.main-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: inherit;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

h1 { font-size: clamp(1.75rem, 8vw, 3rem); }
h2 { font-size: clamp(1.5rem, 6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 4vw, 1.75rem); }
h5 { font-size: clamp(1rem, 3vw, 1.5rem); }
h6 { font-size: clamp(0.9rem, 2.5vw, 1.25rem); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--accent-blue-hover);
}

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-blue); }
.text-success { color: var(--accent-green); }
.text-danger { color: var(--accent-red); }
.text-warning { color: var(--accent-yellow); }

/* ===================================================
   3. LAYOUT & CONTAINER
   =================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    box-sizing: border-box;
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
    min-width: 0;
}

.grid > * {
    min-width: 0;
}

.grid-2, .grid-3 {
    grid-template-columns: repeat(2, 1fr);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===================================================
   4. GLASS CARD & GLASSMORPHISM
   =================================================== */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-medium);
}

.glass-card-static {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.glass-input {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    color: var(--text-primary);
    font-size: 1rem;
    width: 100%;
    transition: var(--transition-normal);
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.glass-input::placeholder {
    color: var(--text-muted);
}

/* ===================================================
   5. BUTTONS
   =================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    white-space: normal;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    box-shadow: var(--shadow-md), var(--shadow-glow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-blue);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
}

.btn-outline:hover {
    background: var(--accent-blue);
    color: white;
}

/* Success Button */
.btn-success {
    background: var(--accent-green);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Danger Button */
.btn-danger {
    background: var(--accent-red);
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

/* Small Button */
.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
}

/* Large Button */
.btn-lg {
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: 1.125rem;
}

/* Icon Button */
.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* ===================================================
   6. FORMS
   =================================================== */

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23E2E8F0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

select option {
    background-color: var(--bg-primary, #0f172a);
    color: var(--text-primary, #ffffff);
}

.form-error {
    color: var(--accent-red);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

/* ===================================================
   7. NAVIGATION & HEADER
   =================================================== */

.navbar {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    box-sizing: border-box;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
}

.navbar-brand span {
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    font-size: 1rem;
    opacity: 0.7;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-1px);
}

.nav-link:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* User Dropdown Premium */
.dropdown-toggle {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 6px 16px !important;
    border-radius: var(--radius-full) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.9rem !important;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent-blue) !important;
}

.dropdown-menu {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    padding: 8px !important;
    animation: dropdownFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-item {
    border-radius: 6px !important;
    margin-bottom: 2px !important;
    transition: all 0.2s ease !important;
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    color: var(--accent-blue) !important;
}

/* Cart Badge Premium */
.cart-badge {
    background: linear-gradient(135deg, var(--accent-orange), #ff4d4d) !important;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.4) !important;
    font-weight: 700 !important;
    border: 2px solid var(--bg-secondary) !important;
}

/* ===================================================
   8. BOTTOM NAVIGATION (Mobile)
   =================================================== */

/* [DIUBAH] --- TAMBAHAN FITUR BARU: FLOATING FOOTER NAVIGATION --- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 480px;
    height: 70px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.15);
    z-index: var(--z-fixed);
    padding: 0 12px;
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    width: 100%;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 2px;
    border-radius: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    height: 100%;
    position: relative;
}

.bottom-nav-item:hover {
    color: var(--text-primary);
}

.bottom-nav-item.active {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Glowing Backing Pill */
.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.25));
    border-radius: 16px;
    z-index: -1;
    filter: blur(3px);
    animation: activePulse 2.5s infinite ease-in-out;
}

/* Neon Active Dot */
.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-blue), 0 0 16px var(--accent-blue);
}

@keyframes activePulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); filter: blur(5px); }
}

.bottom-nav-item i {
    font-size: 1.35rem;
    transition: all 0.3s ease;
}

.bottom-nav-item.active i {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.bottom-nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* FAB Button */
.btn-fab {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: var(--z-fixed);
}

.btn-fab:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.4);
}

.fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: var(--accent-red);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================================
   9. CARDS
   =================================================== */

.card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.card-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Restaurant Card */
.restaurant-card {
    cursor: pointer;
}

.restaurant-card .card-img {
    height: 180px;
}

.restaurant-card .card-body {
    position: relative;
}

.restaurant-status {
    position: absolute;
    top: calc(-1 * var(--spacing-lg) - 20px);
    right: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.restaurant-status.open {
    background: var(--accent-green);
    color: white;
}

.restaurant-status.closed {
    background: var(--accent-red);
    color: white;
}

.restaurant-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

.restaurant-meta i {
    margin-right: var(--spacing-xs);
}

/* ===================================================
   10. BADGES & TAGS
   =================================================== */

.badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary { background: var(--accent-blue); color: white; }
.badge-success { background: var(--accent-green); color: white; }
.badge-warning { background: var(--accent-yellow); color: black; }
.badge-danger { background: var(--accent-red); color: white; }
.badge-secondary { background: var(--bg-tertiary); color: var(--text-secondary); }

/* ===================================================
   11. ALERTS & NOTIFICATIONS
   =================================================== */

.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    border-left: 4px solid;
    background: var(--bg-tertiary);
}

.alert-success {
    border-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.alert-danger {
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.alert-warning {
    border-color: var(--accent-yellow);
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-yellow);
}

.alert-info {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.toast {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success { border-left: 4px solid var(--accent-green); }
.toast-error { border-left: 4px solid var(--accent-red); }
.toast-warning { border-left: 4px solid var(--accent-yellow); }

/* ===================================================
   12. MODAL
   =================================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-secondary);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.modal-close:hover {
    background: var(--accent-red);
}

/* ===================================================
   13. TABLES
   =================================================== */

.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: var(--glass-border);
    width: 100%;
    max-width: 100%;
    display: block;
    -webkit-overflow-scrolling: touch;
    position: relative;
    box-sizing: border-box;
}

.table {
    width: 100%;
    min-width: 600px; /* Force scroll on small screens */
    border-collapse: collapse;
    background: var(--bg-card);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.table thead {
    background: var(--bg-tertiary);
}

.table th,
.table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.table th {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.table tbody tr {
    transition: var(--transition-normal);
}

.table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.table td {
    color: var(--text-secondary);
}

/* ===================================================
   14. PROGRESS & TRACKING
   =================================================== */

.progress-track {
    position: relative;
    padding: var(--spacing-lg) 0;
}

.progress-track-item {
    position: relative;
    padding-left: var(--spacing-2xl);
    padding-bottom: var(--spacing-xl);
}

.progress-track-item:last-child {
    padding-bottom: 0;
}

.progress-track-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 24px;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
}

.progress-track-item:last-child::before {
    display: none;
}

.progress-track-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: 2px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.progress-track-item.active .progress-track-dot {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.progress-track-item.completed .progress-track-dot {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.progress-track-content {
    background: var(--bg-tertiary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.progress-track-title {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.progress-track-time {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===================================================
   15. SKELETON LOADING
   =================================================== */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 25%,
        var(--bg-secondary) 50%,
        var(--bg-tertiary) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: var(--spacing-sm);
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: var(--spacing-md);
}

.skeleton-image {
    height: 200px;
    width: 100%;
}

/* ===================================================
   16. UTILITIES
   =================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* ===================================================
   17. ANIMATIONS
   =================================================== */

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Cart Grid Layout */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-lg);
}

@media (max-width: 991px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================
   18. RESPONSIVE DESIGN
   =================================================== */

/* Mobile First - Base styles are for mobile */

/* Tablets */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bottom-nav {
        display: none !important;
    }
    
    .btn-fab {
        bottom: var(--spacing-lg);
        right: var(--spacing-lg);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .admin-main-grid, .grid-order-layout {
        grid-template-columns: 2fr 1fr;
    }

    .grid-resto-layout {
        grid-template-columns: 1fr 2fr;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 2rem; }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile Only */
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative;
    }

    .container {
        padding: 0 var(--spacing-sm);
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Auto-stack grids on mobile, with exception for restaurant-grid & hero stats */
    .grid-2, .grid-3 {
        grid-template-columns: 1fr !important;
    }
    
    #restaurant-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    #restaurant-grid .restaurant-card .card-img {
        height: 115px !important;
    }
    #restaurant-grid .restaurant-card .card-body {
        padding: 10px 12px !important;
    }
    #restaurant-grid .restaurant-card .card-title {
        font-size: 0.88rem !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    #restaurant-grid .restaurant-meta {
        font-size: 0.72rem !important;
        gap: 6px !important;
        margin-bottom: 6px !important;
        flex-wrap: wrap;
    }
    #restaurant-grid .restaurant-card .card-text {
        font-size: 0.75rem !important;
        line-height: 1.35 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    #restaurant-grid .restaurant-card .card-footer {
        padding: 8px 12px !important;
        font-size: 0.72rem !important;
    }
    
    .hero-stats .grid-3 {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: var(--spacing-xs) !important;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        width: 100%;
    }

    .admin-main-grid, .grid-order-layout, .grid-resto-layout {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md) !important;
    }

    .glass-card, .glass-card-static {
        padding: var(--spacing-md);
    }

    /* Stats Card Mobile Fix - More Compact */
    .glass-card .flex-between {
        flex-direction: row; /* Tetap sejajar tapi kecil */
        align-items: center;
        gap: var(--spacing-xs);
    }

    .glass-card .flex-between div:last-child {
        width: 35px !important;
        height: 35px !important;
        min-width: 35px;
    }

    .glass-card .flex-between div:last-child i {
        font-size: 0.875rem !important;
    }

    .glass-card p {
        font-size: 0.7rem;
        margin-bottom: 2px !important;
    }

    .glass-card h3 {
        font-size: 1.1rem;
    }

    /* Fix Header Pesanan Terbaru */
    .glass-card-static .flex-between {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .glass-card-static h4 {
        font-size: 1.1rem;
        margin-bottom: 0;
    }
    
    .hide-mobile {
        display: none !important;
    }
    
    /* [BARU] Mobile Menu Toggle Fixes & Animations */
    .menu-toggle {
        display: flex !important;
        z-index: 1000;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    

    
    .navbar-container {
        padding: 0 var(--spacing-sm);
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .btn {
        padding: var(--spacing-sm);
    }
    
    .bottom-nav {
        display: flex;
    }
    
    body {
        padding-bottom: 110px !important; /* [DIUBAH] Memberi ruang untuk floating bottom-nav */
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }

    .grid {
        gap: var(--spacing-md);
    }

    .card-img {
        height: 140px;
    }

    .card-body {
        padding: var(--spacing-md);
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: var(--spacing-xs);
    }

    .restaurant-meta {
        gap: var(--spacing-sm);
        font-size: 0.75rem;
        margin-bottom: var(--spacing-sm);
    }

    .card-text {
        font-size: 0.8125rem;
        margin-bottom: var(--spacing-sm);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-footer {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.75rem;
    }

    .restaurant-status {
        top: calc(-1 * var(--spacing-md) - 18px);
        right: var(--spacing-sm);
        padding: 2px var(--spacing-sm);
        font-size: 0.7rem;
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.875rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .modal {
        padding: var(--spacing-lg);
        width: 95%;
    }
    
    .table-container {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: var(--spacing-sm);
    }
}

/* ===================================================
   19. HERO SECTION
   =================================================== */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .hero {
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ===================================================
   20. AUTH PAGES
   =================================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15), transparent 70%),
                radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.12), transparent 60%),
                var(--bg-primary);
    box-sizing: border-box;
    width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .auth-container {
        padding: 20px 14px;
    }
    .auth-card {
        padding: 24px 18px;
        border-radius: 20px;
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 22px;
    color: #94a3b8;
    font-size: 0.88rem;
}

/* Demo Credentials Card */
.auth-demo-card {
    width: 100%;
    max-width: 440px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px;
    margin-top: 16px;
    box-sizing: border-box;
}

.auth-demo-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #60a5fa;
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.auth-demo-btn {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.75rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.auth-demo-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

/* ===================================================
   21. USER PROFILE
   =================================================== */

/* Profile Layout Grid */
.grid-profile-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--spacing-lg);
}

.profile-main-wrap {
    grid-column: 1;
    grid-row: 1;
}

.profile-sidebar-wrap {
    grid-column: 2;
    grid-row: 1;
}

@media (max-width: 992px) {
    .grid-profile-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--spacing-md) !important;
    }
    .profile-sidebar-wrap {
        order: 1 !important;
        width: 100% !important;
    }
    .profile-main-wrap {
        order: 2 !important;
        width: 100% !important;
    }
}

.profile-header {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2.6rem;
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.profile-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.profile-email {
    color: var(--text-muted);
}

/* ===================================================
   22. ORDER STATUS
   =================================================== */

.order-status-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.order-status-stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--border-light);
    z-index: 0;
}

.order-status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
    z-index: 1;
    flex: 1;
}

.order-status-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: 3px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-normal);
}

.order-status-step.active .order-status-icon {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    animation: pulse 2s infinite;
}

.order-status-step.completed .order-status-icon {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.order-status-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.order-status-step.active .order-status-label,
.order-status-step.completed .order-status-label {
    color: var(--text-primary);
}

/* ===================================================
   23. CART
   =================================================== */

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.cart-item-price {
    color: var(--accent-blue);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.quantity-btn:hover {
    background: var(--accent-blue);
}

.cart-summary {
    background: var(--bg-tertiary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-lg);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--border-medium);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===================================================
   24. MENU GRID
   =================================================== */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.menu-item {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.menu-item-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.menu-item-body {
    padding: var(--spacing-md);
}

.menu-item-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.menu-item-price {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.menu-item-add {
    width: 100%;
    padding: var(--spacing-sm);
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.menu-item-add:hover {
    background: var(--accent-blue-hover);
}

/* ===================================================
   25. LOADING STATES
   =================================================== */

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-light);
    border-top-color: var(--accent-blue);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ===================================================
   26. PRINT STYLES
   =================================================== */

@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .glass-card,
    .glass-card-static {
        background: white;
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* ===================================================
   END OF STYLES
   =================================================== */

/* ===== USER MOBILE NAV OVERLAY (ROOT GLOBAL) ===== */
.user-mobile-nav-overlay {
    display: none !important;
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}
.user-mobile-nav-overlay.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}
.user-mobile-nav-content {
    width: 100%;
    min-height: 100vh;
    padding: 20px 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    max-width: 540px;
    margin: 0 auto;
    animation: drawerSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.user-mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}
.user-mobile-logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-mobile-logo img { max-height: 32px; width: auto; }
.user-mobile-logo i { -webkit-text-fill-color: #60a5fa; font-size: 1.1rem; }
.user-mobile-close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.user-mobile-admin-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.admin-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 6px;
}
.admin-card-title { font-weight: 800; color: #f8fafc; font-size: 0.95rem; }
.admin-card-sub { color: #94a3b8; font-size: 0.78rem; margin: 2px 0 10px; }
.admin-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.user-mobile-profile-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.user-card-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.user-card-details { flex: 1; overflow: hidden; }
.user-card-name { font-weight: 700; color: #f8fafc; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card-email { font-size: 0.75rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card-link {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
}

.user-menu-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 10px;
    padding-left: 4px;
}
.user-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.user-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.25s ease;
}
.user-menu-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.18));
    border-color: rgba(59, 130, 246, 0.35);
}
.user-menu-item.item-admin-highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.15));
    border-color: rgba(16, 185, 129, 0.3);
}
.user-menu-item.item-admin-highlight .u-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}
.user-menu-item .u-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.user-menu-item .u-info { flex: 1; display: flex; flex-direction: column; }
.user-menu-item .u-title { font-weight: 700; font-size: 0.9rem; color: #f8fafc; }
.user-menu-item .u-sub { font-size: 0.72rem; color: #64748b; font-weight: 500; margin-top: 1px; }
.user-menu-item .u-arrow { font-size: 0.75rem; color: #475569; }

.user-mobile-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.user-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.3);
}
.user-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
}