/* Base Variables for Theming */
:root {
    --primary-color: #2563eb; /* Blue-600 */
    --primary-light: #60a5fa; /* Blue-400 */
    --primary-dark: #1d4ed8; /* Blue-700 */
    --accent-color: #3b82f6; /* Blue-500 */

    --success-color: #22c55e; /* Green-500 */
    --warning-color: #f59e0b; /* Yellow-500 */
    --error-color: #ef4444; /* Red-500 */
    --info-color: #3b82f6; /* Blue-500 */

    --bg-primary: #ffffff; /* White */
    --bg-secondary: #f8fafc; /* Slate-50 */
    --bg-tertiary: #f1f5f9; /* Slate-100 */

    --text-primary: #1e293b; /* Slate-900 */
    --text-secondary: #475569; /* Slate-700 */
    --text-tertiary: #64748b; /* Slate-500 */

    --border-color: #e2e8f0; /* Slate-200 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --radius-sm: 0.25rem; /* 4px */
    --radius-md: 0.375rem; /* 6px */
    --radius-lg: 0.5rem; /* 8px */
    --radius-xl: 0.75rem; /* 12px */
    --radius-2xl: 1rem; /* 16px */
    --radius-full: 9999px;

    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.25rem;  /* 20px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;     /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;    /* 48px */

    --transition: all 0.2s ease-in-out;
}

/* Dark Mode */
.dark {
    --primary-color: #60a5fa; /* Blue-400 */
    --primary-light: #93c5fd; /* Blue-300 */
    --primary-dark: #3b82f6; /* Blue-500 */
    --accent-color: #60a5fa;

    --success-color: #4ade80; /* Green-400 */
    --warning-color: #fbbf24; /* Yellow-400 */
    --error-color: #f87171; /* Red-400 */
    --info-color: #60a5fa;

    --bg-primary: #1e293b; /* Slate-900 */
    --bg-secondary: #334155; /* Slate-700 */
    --bg-tertiary: #475569; /* Slate-600 */

    --text-primary: #f1f5f9; /* Slate-100 */
    --text-secondary: #cbd5e1; /* Slate-300 */
    --text-tertiary: #94a3b8; /* Slate-400 */

    --border-color: #334155; /* Slate-700 */
    /* Shadows are usually lighter in dark mode or not inverted completely */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition), color var(--transition);
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: var(--space-4);
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
}

/* Base Form Elements */
button, input, select, textarea {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    transition: var(--transition);
}

button {
    cursor: pointer;
    background-color: var(--bg-tertiary);
}

button:hover {
    background-color: var(--border-color);
}

input:focus, select:focus, textarea:focus, button:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: var(--bg-primary);
}

/* Base Layout */
.website-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Section Containers */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem var(--space-4);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-2);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Base Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.fade-in { animation: fadeIn 0.6s ease-out forwards; }
.fade-in-up { animation: slideInUp 0.6s ease-out forwards; }
.fade-in-down { animation: slideInDown 0.6s ease-out forwards; }
.fade-in-left { animation: slideInLeft 0.6s ease-out forwards; }
.fade-in-right { animation: slideInRight 0.6s ease-out forwards; }

/* Admin Panel Animations (keep consistent) */
.animate-toast-in {
    animation: slideInLeft 0.3s ease-out forwards;
}

/* Navigation Bar */
.navigation {
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color var(--transition), box-shadow var(--transition);
}

.navigation.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
}

.dark .navigation.scrolled {
    background-color: rgba(30, 41, 59, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-4);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-6); /* Adjusted gap for a tighter look */
    /* Initially hidden on small screens */
    display: none;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

/* Show nav-links and hide mobile-menu-btn on larger screens (desktop) */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important; /* Force flex on desktop */
    }
    .mobile-menu-btn {
        display: none !important;
    }
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    display: inline-block;
    position: relative;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover {
    background-color: transparent; /* remove heavy bg, keep subtle indicator */
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
    transition: width 0.24s cubic-bezier(.2,.8,.2,1), opacity 0.18s;
    opacity: 0;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 70%; /* restrained underline width for a modern look */
    opacity: 1;
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 800;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.language-switcher {
    position: relative;
}

.language-btn {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: var(--text-secondary);
}

.language-btn:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--primary-light);
}

.language-btn #current-lang {
    min-width: 20px;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown a {
    display: block;
    padding: var(--space-2) var(--space-4);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    border-radius: var(--radius-md);
    margin: var(--space-1);
    font-size: 0.9rem;
    font-weight: 500;
}

.language-dropdown a:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.login-btn {
    background-color: var(--primary-color);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.login-btn:hover {
    background-color: var(--primary-dark);
}

.user-area {
    position: relative;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--bg-secondary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.user-profile:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    border-radius: var(--radius-md);
    margin: var(--space-1);
    font-size: 0.9rem;
}

.user-dropdown a:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    padding: var(--space-2);
    display: none; /* Hidden on desktop by default */
}

.mobile-menu-btn i { color: var(--primary-color); }

/* Show mobile menu button on mobile */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
    }
    .nav-links { /* Explicitly hide nav-links on mobile */
        display: none !important;
    }
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 150;
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    transform: translateX(0%);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-header span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mobile-nav-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: var(--space-4);
    flex-grow: 1;
}

.mobile-nav-link {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: background-color var(--transition);
}

.mobile-nav-link:hover {
    background-color: var(--bg-tertiary);
    color: var(--primary-color);
}

/* Enhanced Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    max-width: 500px;
    padding: var(--space-6);
    opacity: 0;
    transition: opacity 0.8s ease-out;
    position: relative;
    z-index: 2;
}

.splash-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-4);
    transform: translateY(-30px) scale(0.8);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.8s ease-out;
    color: #fff;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { box-shadow: 0 0 20px rgba(255,255,255,0.3); }
    100% { box-shadow: 0 0 40px rgba(255,255,255,0.6), 0 0 60px rgba(255,255,255,0.3); }
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #fff, #f0f9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-subtitle {
    font-size: 1.4rem;
    opacity: 0.95;
    margin-bottom: var(--space-8);
    transform: translateY(30px);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.8s ease-out;
    font-weight: 500;
    letter-spacing: 1px;
}

.progress-container {
    position: relative;
    margin-top: var(--space-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.progress-bar-wrapper {
    background: rgba(255, 255, 255, 0.2);
    height: 12px;
    border-radius: var(--radius-full);
    width: 100%;
    max-width: 350px;
    margin-bottom: var(--space-6);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.progress-bar {
    background: linear-gradient(90deg, #fff 0%, #f0f9ff 50%, #fff 100%);
    height: 100%;
    width: 0%;
    border-radius: var(--radius-full);
    transition: width 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

.splash-truck {
    position: absolute;
    left: 0%;
    top: 50%;
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: truckBounce 1.5s infinite ease-in-out;
    transform: translate(-50%, -50%);
    transition: left 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
}

@keyframes truckBounce {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, calc(-50% - 8px)) scale(1.1); }
}

.splash-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-6);
    position: relative;
}

.splash-globe {
    font-size: 2.5rem;
    animation: globeRotate 6s linear infinite;
    opacity: 0;
    transition: opacity 0.8s ease-out 0.5s;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

@keyframes globeRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.floating-fruits {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-4);
}

.fruit-icon {
    font-size: 1.5rem;
    opacity: 0.8;
    animation: floatFruit 3s ease-in-out infinite;
}

.fruit-1 { animation-delay: 0s; }
.fruit-2 { animation-delay: 1s; }
.fruit-3 { animation-delay: 2s; }

@keyframes floatFruit {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

.splash-tagline {
    margin-top: var(--space-6);
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.tagline-word {
    font-size: 0.9rem;
    font-weight: 600;
    padding: var(--space-1) var(--space-3);
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    animation: taglineFloat 2s ease-in-out infinite;
}

.tagline-word:nth-child(1) { animation-delay: 0s; }
.tagline-word:nth-child(2) { animation-delay: 0.3s; }
.tagline-word:nth-child(3) { animation-delay: 0.6s; }

@keyframes taglineFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Enhanced Hero Section */
.enhanced-hero {
    position: relative;
    padding: 10rem 0 8rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        rgba(118, 75, 162, 0.05) 50%, 
        rgba(240, 147, 251, 0.1) 100%);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    animation: heroFloat 8s ease-in-out infinite;
}

.element-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    top: 70%;
    right: 10%;
    animation-delay: 3s;
}

.element-3 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 15%;
    animation-delay: 6s;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 1; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--space-4);
    backdrop-filter: blur(10px);
}

.enhanced-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.enhanced-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--space-8);
    opacity: 0.8;
    line-height: 1.6;
    font-weight: 400;
}

.enhanced-btn {
    position: relative;
    overflow: hidden;
    transform: perspective(1px) translateZ(0);
}

.enhanced-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.enhanced-btn:hover::before {
    left: 100%;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.enhanced-btn-outline {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
}

.enhanced-btn-outline:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.hero-stats {
    display: flex;
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.stat-item {
    text-align: center;
    padding: var(--space-4);
    background: rgba(255,255,255,0.7);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    min-width: 120px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.floating-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: rgba(255,255,255,0.95);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Enhanced product display for uniform sizing */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.product-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 400px; /* Fixed height for uniformity */
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: var(--primary-light);
}

.product-image {
    width: 100%;
    height: 200px; /* Fixed height for image area */
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-category {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
    /* Ensure consistent height */
    height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.product-price .price {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.375rem;
}

.product-price .unit {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-weight: 500;
}

.add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Enhanced category filter for uniform display */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.category-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    height: 140px; /* Fixed height for uniformity */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.category-card.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-dark);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.category-image {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border-radius: 50%;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.category-card.active .category-image {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.category-name {
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    font-size: 0.875rem;
    text-align: center;
    line-height: 1.3;
}

.category-card.active .category-name {
    color: white;
}

/* Enhanced navigation improvements */
.full-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.full-menu-overlay.active {
    opacity: 1;
}

.full-menu-content {
    background: white;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 1.5rem;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.full-menu-content.active {
    transform: translateY(0);
}

.full-menu-header {
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.drag-handle {
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 0 auto 1rem auto;
}

.full-menu-header h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
}

.full-menu-header .close-btn {
    position: absolute;
    top: -8px;
    right: 0;
    background: #f3f4f6;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    border: none;
    color: #6b7280;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.full-menu-header .close-btn:hover {
    background: #e5e7eb;
    color: #374151;
    transform: scale(1.1);
}

.full-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-height: 50vh;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.menu-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 0.75rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.menu-grid-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateY(-2px);
}

.menu-grid-item-icon-wrapper {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #2563eb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.menu-grid-item:hover .menu-grid-item-icon-wrapper {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    transform: scale(1.1);
}

.menu-grid-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
}

/* Enhanced bottom navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0 1rem 0;
    z-index: 100;
    border-top: 1px solid #e5e7eb;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    color: #6b7280;
    transition: all 0.3s ease;
    flex: 1;
    text-decoration: none;
    border-radius: 12px;
    margin: 0 0.25rem;
}

.nav-item.active {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.nav-item:hover {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.nav-item .nav-item-icon-wrapper {
    font-size: 1.375rem;
    margin-bottom: 0.25rem;
    transition: transform 0.2s ease;
}

.nav-item.active .nav-item-icon-wrapper,
.nav-item:hover .nav-item-icon-wrapper {
    transform: scale(1.1);
}

.nav-item .nav-item-label {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.25rem;
    text-align: center;
}

.nav-menu-center {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    border-radius: 50% !important;
    transform: translateY(-20px) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important;
    position: relative !important;
    width: 64px !important;
    height: 64px !important;
    border: 4px solid white !important;
    margin: 0 !important;
}

.nav-menu-center:hover {
    transform: translateY(-20px) scale(1.1) !important;
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6) !important;
}

.nav-menu-center .nav-item-icon-wrapper {
    color: white !important;
    font-size: 1.5rem !important;
    margin-bottom: 0 !important;
}

.nav-menu-center .nav-item-label {
    display: none !important;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
        padding: 0.5rem 0;
    }
    
    .product-card {
        height: 360px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .category-filter {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .category-card {
        min-width: 100px;
        height: 120px;
        padding: 1rem 0.75rem;
    }
    
    .category-image {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .full-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .menu-grid-item {
        padding: 1rem 0.5rem;
    }
    
    .menu-grid-item-icon-wrapper {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .product-card {
        height: 340px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .full-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Enhanced loading states */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-tertiary);
}

.loading-spinner {
    margin-bottom: 1.5rem;
}

.loading-spinner i {
    font-size: 2.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced empty states */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-tertiary);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px dashed var(--border-color);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.empty-state-action {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.empty-state-action:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 8rem 0;
    background-color: var(--bg-secondary);
    overflow: hidden;
    color: var(--text-primary);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-12);
    padding: 0 var(--space-4);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-xl);
    font-weight: 600;
    min-height: 56px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0;
}
.btn-link:hover {
    text-decoration: underline;
    background: none;
}

/* Section Styles */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem var(--space-4);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-2);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Products Section */
.products-section {
    background-color: var(--bg-primary);
}

.product-search {
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-wrapper {
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.search-wrapper input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    border-radius: var(--radius-full);
    font-size: 1rem;
    background: var(--bg-secondary);
}

/* About Section */
.about-section {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.features-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    width: 30px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: var(--radius-xl);
}

/* Contact Section */
.contact-section {
    background: var(--bg-primary);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: var(--bg-tertiary);
}

.footer .section-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer .logo {
    color: white;
}

.footer p {
    margin: 0;
    color: var(--text-tertiary);
}

.footer-socials a {
    color: var(--bg-tertiary);
    font-size: 1.25rem;
    margin-left: 1rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: white;
    transform: translateY(-2px);
}

/* Widgets */
.cart-widget, .chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.chat-widget {
    bottom: 6.5rem;
}

.cart-btn, .chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.cart-btn:hover, .chat-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--error-color);
    color: white;
    font-size: 0.8rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    display: none; /* Toggled by JS */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-primary);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-2xl);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-tertiary);
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Cart Modal specific */
.empty-cart {
    text-align: center;
    padding: 2rem;
    color: var(--text-tertiary);
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.cart-item-info {
    flex-grow: 1;
}

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

.cart-item-controls button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.cart-total {
    flex-grow: 1;
}

/* Login Modal specific */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
}

.form-toggle {
    margin-top: 1.5rem;
    text-align: center;
}

.form-toggle p {
    display: inline;
}

/* Order Success Modal specific */
.success-content {
    text-align: center;
}

.success-content .fa-check-circle {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* Loading state for products */
.loading-state {
    text-align: center;
    color: var(--text-tertiary);
    padding: 2rem;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* --- ADMIN PANEL STYLES (MERGED FROM ADMIN.HTML) --- */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.status-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 99;
    position: sticky;
    top: 2rem; /* Adjusted for status bar */
}
.admin-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.admin-company-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: white;
}
.back-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}
.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-2px);
}
.admin-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.quick-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.icon-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    backdrop-filter: blur(10px);
}
.icon-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-profile-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.user-profile-actions .user-avatar { /* More specific selector */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}
.user-profile-actions .user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.user-profile-actions .user-name {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
}
.user-profile-actions .user-role {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: capitalize;
}
.logout-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.logout-button:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: scale(1.05);
}
main {
    flex-grow: 1;
    padding-bottom: 100px; /* Space for bottom nav */
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(12px);
    opacity: 0;
    animation: modalFadeIn 0.3s ease-out forwards;
}
@keyframes modalFadeIn { to { opacity: 1; } }
.modal-dialog {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    max-width: 95vw;
    max-height: 90vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.85) translateY(20px);
    animation: modalSlideIn 0.3s ease-out forwards;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
@keyframes modalSlideIn { to { transform: scale(1) translateY(0); } }
.modal-dialog .modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.modal-dialog .modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.modal-close-btn {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 1.25rem;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close-btn:hover {
    background: #e2e8f0;
    color: #374151;
    transform: scale(1.1);
}
.modal-dialog .modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.modal-dialog .modal-body::-webkit-scrollbar { width: 6px; }
.modal-dialog .modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-dialog .modal-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.modal-dialog .modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-shrink: 0;
}
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    width: 100%;
    max-width: 420px;
    space-y: 0.75rem;
    pointer-events: none;
}
.toast-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transform: translateX(100%);
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: all;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
@keyframes toastSlideIn { to { transform: translateX(0); } }
.toast-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}
.toast-item.toast-success { color: #059669; border-left-color: #059669; }
.toast-item.toast-error { color: #dc2626; border-left-color: #dc2626; }
.toast-item.toast-warning { color: #d97706; border-left-color: #d97706; }
.toast-item.toast-info { color: #2563eb; border-left-color: #2563eb; }
.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}
.toast-success .toast-icon { background: #059669; }
.toast-error .toast-icon { background: #dc2626; }
.toast-warning .toast-icon { background: #d97706; }
.toast-info .toast-icon { background: #2563eb; }
.toast-content { flex: 1; min-width: 0; }
.toast-title { font-weight: 600; font-size: 0.875rem; color: #1f2937; margin-bottom: 0.25rem; line-height: 1.25; }
.toast-message { font-size: 0.8125rem; color: #6b7280; line-height: 1.4; }
.toast-close { background: none; border: none; color: #9ca3af; font-size: 1rem; padding: 0.25rem; border-radius: 4px; cursor: pointer; transition: all 0.2s ease; flex-shrink: 0; margin-top: 0.125rem; }
.toast-close:hover { background: #f3f4f6; color: #6b7280; }
.enhanced-form-group { margin-bottom: 1.5rem; }
.enhanced-form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #374151; font-size: 0.875rem; }
.enhanced-form-input { width: 100%; padding: 0.75rem 1rem; border: 2px solid #e5e7eb; border-radius: 12px; font-size: 0.9375rem; background-color: #f9fafb; color: #1f2937; transition: all 0.2s ease; }
.enhanced-form-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); background-color: #ffffff; outline: none; }
.enhanced-form-input:hover { border-color: #d1d5db; }
.enhanced-form-input.error { border-color: #ef4444; background-color: #fef2f2; }
.enhanced-form-error { color: #ef4444; font-size: 0.8125rem; margin-top: 0.25rem; display: flex; align-items: center; gap: 0.25rem; }
.enhanced-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 12px; font-weight: 600; font-size: 0.875rem; transition: all 0.2s ease; border: none; cursor: pointer; text-decoration: none; line-height: 1; position: relative; overflow: hidden; }
.enhanced-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.enhanced-btn-primary { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: white; box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.25); }
.enhanced-btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.35); }
.enhanced-btn-secondary { background: #f1f5f9; color: #475569; border: 2px solid #e2e8f0; }
.enhanced-btn-secondary:hover:not(:disabled) { background: #e2e8f0; transform: translateY(-1px); }
.enhanced-btn-danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: white; box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.25); }
.enhanced-btn-danger:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px 0 rgba(239, 68, 68, 0.35); }
.enhanced-card { background: white; border: 1px solid #e5e7eb; border-radius: 16px; padding: 1.5rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); transition: all 0.2s ease; }
.enhanced-card:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); border-color: #d1d5db; }
.enhanced-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid #f3f4f6; }
.enhanced-card-title { font-size: 1.125rem; font-weight: 700; color: #1f2937; display: flex; align-items: center; gap: 0.5rem; }
.status-indicator { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em; }
.status-indicator::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.status-indicator.status-active { background: #dcfce7; color: #166534; }
.status-indicator.status-pending { background: #fef3c7; color: #92400e; }
.status-indicator.status-error { background: #fee2e2; color: #991b1b; }
@media (max-width: 768px) {
    .modal-dialog { max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; border-radius: 0; }
    .toast-container { top: 0.5rem; right: 0.5rem; left: 0.5rem; max-width: none; }
    .admin-header { padding: 0.75rem 1rem; top: 1.5rem; }
    .admin-company-name { font-size: 1rem; }
    .user-profile-actions .user-info { display: none; }
    .quick-actions { gap: 0.25rem; }
    .icon-button { padding: 0.5rem; font-size: 0.9rem; }
    .user-profile-actions { padding: 0.5rem; gap: 0.5rem; }
}
/* Bottom Nav */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: white; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); display: flex; justify-content: space-around; padding: 0.5rem 0; z-index: 100; }
.nav-item { display: flex; flex-direction: column; align-items: center; padding: 0.5rem; color: #6b7280; transition: color 0.2s; flex: 1; text-decoration: none; }
.nav-item.active { color: var(--primary-color); }
.nav-item:hover { color: var(--primary-color); }
.nav-item .nav-item-icon-wrapper { font-size: 1.25rem; }
.nav-item .nav-item-label { font-size: 0.75rem; margin-top: 0.25rem; }
.nav-menu-center { background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important; border-radius: 50% !important; transform: translateY(-15px) !important; box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important; position: relative !important; width: 60px !important; height: 60px !important; border: 3px solid white !important; }
.nav-menu-center:hover { transform: translateY(-15px) scale(1.1) !important; box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6) !important; }
.nav-menu-center .nav-item-icon-wrapper { color: white !important; }
.nav-menu-center .nav-item-label { display: none !important; }
/* Full Menu Modal */
.full-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s; }
.full-menu-overlay.active { opacity: 1; }
.full-menu-content { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top-left-radius: 20px; border-top-right-radius: 20px; padding: 1rem; transform: translateY(100%); transition: transform 0.3s ease-out; }
.full-menu-content.active { transform: translateY(0); }
.full-menu-header { text-align: center; position: relative; padding-bottom: 1rem; }
.drag-handle { width: 40px; height: 4px; background: #d1d5db; border-radius: 2px; margin: 0 auto 1rem auto; }
.full-menu-header h2 { font-size: 1.25rem; margin: 0; }
.full-menu-header .close-btn { position: absolute; top: -8px; right: 0; background: #e5e7eb; border-radius: 50%; width: 32px; height: 32px; border: none; }
.full-menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-height: 60vh; overflow-y: auto; padding: 1rem 0; }
.menu-grid-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0.75rem; border-radius: 12px; transition: background-color 0.2s; }
.menu-grid-item:hover { background: #f3f4f6; }
.menu-grid-item-icon-wrapper { width: 50px; height: 50px; background: #eef2ff; color: #4f46e5; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 0.5rem; }
.menu-grid-item span { font-size: 0.8rem; font-weight: 500; }

/* Responsive Grid for Forms */
.mobile-form-container { background: white; padding: 1rem; border-radius: 1rem; box-shadow: var(--shadow-md); margin-bottom: 1.5rem; }
.mobile-form-header { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.mobile-form-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.mobile-form-grid.two-cols { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mobile-form-field { display: flex; flex-direction: column; }
.mobile-form-label { font-size: 0.9rem; font-weight: 500; color: #4b5563; margin-bottom: 0.5rem; }
.mobile-form-input { padding: 0.75rem; border-radius: 0.5rem; border: 1px solid #d1d5db; }
.mobile-form-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #e5e7eb; }
.mobile-form-actions button { flex: 1; padding: 0.75rem; border-radius: 0.5rem; font-weight: 600; }
.mobile-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; border-radius: 1rem; font-size: 0.9rem; font-weight: 600; gap: 0.5rem; transition: transform 0.2s; }
.mobile-btn:hover { transform: translateY(-2px); }
.mobile-btn-primary { background: #dbeafe; color: #1e40af; }
.mobile-btn-danger { background: #fee2e2; color: #991b1b; }

/* Table specific */
.table-empty { text-align: center; padding: 3rem; color: #6b7280; }
.table-empty i { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.5; }
.table-container { overflow-x: auto; }
.row-number { text-align: center; width: 50px; color: #6b7280; }
th.sortable { cursor: pointer; }
th.sortable:hover { background-color: #e5e7eb; }
th.sortable::after { content: ''; display: inline-block; width: 1em; height: 1em; margin-left: 0.5em; opacity: 0.3; }
th.sort-asc::after { content: '▲'; }
th.sort-desc::after { content: '▼'; }

/* Invoice item for add forms */
.invoice-item-mobile { background-color: #f9fafb; padding: 0.75rem; border-radius: 0.5rem; border: 1px solid #e5e7eb; }

/* Dashboard Card Styles */
.dashboard-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.dashboard-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.dashboard-card-alert {
    animation: pulse-alert 2s infinite;
}

@keyframes pulse-alert {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.dashboard-card-content {
    padding: var(--space-6);
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-6);
}

.dashboard-card-info {
    flex: 1;
}

.dashboard-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.dashboard-card-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.dashboard-card-subtitle {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: var(--space-1);
}

.dashboard-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.dashboard-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-color);
}

.dashboard-card-trend {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    font-weight: 600;
}

.dashboard-card-trend.positive { color: var(--success-color); }
.dashboard-card-trend.negative { color: var(--error-color); }
.dashboard-card-trend.neutral { color: var(--text-tertiary); }

.dashboard-card-arrow {
    color: var(--text-tertiary);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.dashboard-card:hover .dashboard-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Dashboard Layout */
.dashboard-header-section {
    background: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    border: 1px solid var(--border-color);
}

.dashboard-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.dashboard-title-main .dashboard-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
}

.dashboard-title-main .dashboard-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: var(--space-2);
}

.dashboard-refresh-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    background-color: var(--bg-secondary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
}

.dashboard-refresh-info .refresh-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    font-weight: 600;
}

.dashboard-refresh-info .last-update {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.dashboard-section {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: var(--space-6);
    margin-top: var(--space-6);
}

.dashboard-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.dashboard-section .section-title {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.dashboard-section .section-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.dashboard-section .section-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.dashboard-section .section-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: var(--space-1);
}

.dashboard-section .section-action-btn {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-4);
    font-weight: 600;
    color: var(--text-primary);
}

/* Dashboard Transactions List */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    animation: slideInUp 0.5s ease-out forwards;
    opacity: 0;
}

.transaction-item:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-light);
}

.transaction-left, .transaction-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.transaction-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.transaction-icon.income { background: var(--success-color); }
.transaction-icon.expense { background: var(--error-color); }

.transaction-description {
    font-weight: 600;
    color: var(--text-primary);
}

.transaction-meta {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-1);
}

.transaction-amount {
    font-size: 1.125rem;
    font-weight: 700;
}
.transaction-amount.income { color: var(--success-color); }
.transaction-amount.expense { color: var(--error-color); }

.transaction-badge {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}
.transaction-badge.income { background-color: var(--success-color); color: white; }
.transaction-badge.expense { background-color: var(--error-color); color: white; }

/* Fix navigation responsive issues */
@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }
    .mobile-menu-btn {
        display: block !important;
    }
    
    /* Enhanced mobile navigation */
    .nav-container {
        padding: 0 var(--space-3);
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    /* Fix mobile user actions */
    .nav-actions {
        gap: var(--space-2);
    }
    
    .language-btn, .login-btn {
        padding: var(--space-2) var(--space-3);
        font-size: 0.875rem;
    }
    
    .user-profile {
        padding: var(--space-2);
    }
    
    .user-info {
        display: none; /* Hide user info on mobile */
    }
}

/* Enhanced product grid responsive behavior */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .product-card {
        height: 350px;
    }
    
    .product-image {
        height: 170px;
    }
    
    .category-filter {
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .category-card {
        min-width: 90px;
        height: 110px;
        padding: 0.75rem 0.5rem;
    }
    
    .category-image {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .category-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .product-card {
        height: 320px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 1rem;
        height: 2.4rem;
    }
    
    .category-filter {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .category-card {
        min-width: 80px;
        height: 100px;
    }
}

/* Enhanced modal responsive behavior */
@media (max-width: 768px) {
    .modal-content {
        width: 95vw;
        max-height: 95vh;
        margin: 1rem;
        border-radius: var(--radius-lg);
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 1rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .hero-stats {
        justify-content: center;
        gap: var(--space-4);
    }
    
    .stat-item {
        min-width: 100px;
        padding: var(--space-3);
    }
}

/* Fix splash screen for mobile */
@media (max-width: 768px) {
    .splash-content {
        padding: var(--space-4);
        max-width: 90vw;
    }
    
    .splash-logo {
        font-size: 2rem;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .splash-subtitle {
        font-size: 1.1rem;
    }
    
    .progress-bar-wrapper {
        max-width: 280px;
    }
    
    .splash-tagline {
        gap: var(--space-2);
    }
    
    .tagline-word {
        font-size: 0.8rem;
        padding: var(--space-1) var(--space-2);
    }
}