/* ============================================================================
   TakniX Solution - Complete CSS Stylesheet
   Modern, responsive design for IT equipment rental platform
   ============================================================================ */

/* CSS Variables for consistent theming */
:root {
    /* Primary Colors */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    
    /* Secondary Colors */
    --secondary-color: #10b981;
    --secondary-hover: #059669;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    /* Text Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-white: #ffffff;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --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);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}
/* ============================================================================
   FLOATING BACKGROUND ANIMATION
   ============================================================================ */

/* Floating Background Container */
.floating-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

/* Floating Items - Product Images */
.floating-item {
    position: absolute;
    width: 140px;
    height: auto;
    opacity: 0;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    pointer-events: none;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)) brightness(0.7);
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Float Up Animation */
@keyframes floatUp {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0.3;
    }
    5% {
        opacity: 0.5;
    }
    95% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-120vh) translateX(var(--float-x)) rotate(var(--float-rotate));
        opacity: 9;
    }
}

.floating-item {
    animation-name: floatUp;
}

/* Individual Positions for 9 Items */
.floating-item:nth-child(1) {
    left: 4%;
    width: 150px;
    animation-duration: 28s;
    animation-delay: -2s;
    --float-x: 60px;
    --float-rotate: 18deg;
}

.floating-item:nth-child(2) {
    left: 20%;
    width: 140px;
    animation-duration: 32s;
    animation-delay: 4s;
    --float-x: -45px;
    --float-rotate: -15deg;
}

.floating-item:nth-child(3) {
    left: 40%;
    width: 110px;
    animation-duration: 30s;
    animation-delay: 8s;
    --float-x: 70px;
    --float-rotate: 22deg;
}

.floating-item:nth-child(4) {
    left: 50%;
    width: 160px;
    animation-duration: 35s;
    animation-delay: 2s;
    --float-x: -50px;
    --float-rotate: -20deg;
}

.floating-item:nth-child(5) {
    left: 60%;
    width: 135px;
    animation-duration: 29s;
    animation-delay: 10s;
    --float-x: 55px;
    --float-rotate: 16deg;
}

.floating-item:nth-child(6) {
    left: 75%;
    width: 145px;
    animation-duration: 33s;
    animation-delay: 6s;
    --float-x: -60px;
    --float-rotate: -24deg;
}

.floating-item:nth-child(7) {
    left: 90%;
    width: 120px;
    animation-duration: 31s;
    animation-delay: 12s;
    --float-x: 40px;
    --float-rotate: 12deg;
}

.floating-item:nth-child(8) {
    left: 18%;
    width: 155px;
    animation-duration: 34s;
    animation-delay: 14s;
    --float-x: -55px;
    --float-rotate: -18deg;
}

.floating-item:nth-child(9) {
    left: 82%;
    width: 130px;
    animation-duration: 30s;
    animation-delay: 7s;
    --float-x: 65px;
    --float-rotate: 20deg;
}

/* Mobile Responsive for Floating Items */
@media (max-width: 768px) {
    .floating-item {
        width: 80px !important;
        opacity: 0;
    }
    
    .floating-item:nth-child(n+7) {
        display: none;
    }
}

/* ============================================================================
   RESET AND BASE STYLES
   ============================================================================ */

/* Modern CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Lists */
ul, ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-xl);
}

li {
    margin-bottom: var(--space-xs);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-md);
}

th, td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

th {
    font-weight: 600;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-md);
}

.container-sm {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-lg {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-white); }
.text-success { color: var(--secondary-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Display Utilities */
.hidden { display: none !important; }
.block { display: block !important; }
.inline { display: inline !important; }
.inline-block { display: inline-block !important; }
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.grid { display: grid !important; }

/* Flexbox Utilities */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }

.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-initial { flex: 0 1 auto; }
.flex-none { flex: none; }

/* Spacing Utilities */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-xs); }
.m-2 { margin: var(--space-sm); }
.m-3 { margin: var(--space-md); }
.m-4 { margin: var(--space-lg); }
.m-5 { margin: var(--space-xl); }
.m-6 { margin: var(--space-2xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }
.mt-6 { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }
.mb-6 { margin-bottom: var(--space-2xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }
.p-6 { padding: var(--space-2xl); }

/* Border Utilities */
.border { border: 1px solid var(--gray-200); }
.border-t { border-top: 1px solid var(--gray-200); }
.border-b { border-bottom: 1px solid var(--gray-200); }
.border-l { border-left: 1px solid var(--gray-200); }
.border-r { border-right: 1px solid var(--gray-200); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: 9999px; }

/* Shadow Utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* ============================================================================
   BUTTON COMPONENTS
   ============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    background-color: transparent;
    white-space: nowrap;
    user-select: none;
    vertical-align: middle;
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button Variants */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-ghost {
    background-color: transparent;
    border-color: transparent;
    color: var(--primary-color);
}

.btn-ghost:hover {
    background-color: var(--gray-100);
    color: var(--primary-hover);
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--white);
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
    color: var(--white);
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.btn-success:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: var(--white);
}

/* Button Sizes */
.btn-xs {
    padding: calc(var(--space-xs) * 0.5) var(--space-sm);
    font-size: var(--text-xs);
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--text-lg);
}

.btn-xl {
    padding: var(--space-lg) var(--space-3xl);
    font-size: var(--text-xl);
}

.btn-full {
    width: 100%;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Button Groups */
.btn-group {
    display: inline-flex;
    vertical-align: middle;
}

.btn-group .btn {
    position: relative;
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.btn-group .btn:not(:first-child) {
    margin-left: -1px;
}

/* Loading State */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================================================
   FORM COMPONENTS
   ============================================================================ */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.form-label.required::after {
    content: ' *';
    color: var(--danger-color);
}

.form-control {
    display: block;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    color: var(--text-primary);
    background-color: var(--white);
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--gray-100);
    opacity: 1;
    cursor: not-allowed;
}

/* Form Control Sizes */
.form-control-sm {
    padding: calc(var(--space-sm) * 0.75) var(--space-sm);
    font-size: var(--text-sm);
}

.form-control-lg {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-lg);
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Select */
select.form-control {
    cursor: pointer;
}

select.form-control:focus {
    cursor: pointer;
}

/* Checkbox and Radio */
.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: var(--space-sm);
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    margin-left: -1.5em;
    vertical-align: top;
    background-color: var(--white);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid var(--gray-300);
    appearance: none;
    color-adjust: exact;
}

.form-check-input[type="checkbox"] {
    border-radius: var(--radius-sm);
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input:active {
    filter: brightness(90%);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3e%3cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3e%3c/svg%3e");
}

.form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='white'/%3e%3c/svg%3e");
}

.form-check-label {
    color: var(--text-primary);
    cursor: pointer;
}

/* Input Groups */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group > .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
}

.input-group-prepend .input-group-text {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}

.input-group-append .input-group-text {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
}

.input-group-prepend + .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .form-control + .input-group-append .input-group-text {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Form Validation States */
.form-control.is-valid {
    border-color: var(--secondary-color);
}

.form-control.is-valid:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-invalid:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--secondary-color);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--danger-color);
}

/* Form Rows */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.form-row > .form-group {
    flex: 1;
    min-width: 0;
}

/* Form Help */
.form-help {
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ============================================================================
   HEADER COMPONENT
   ============================================================================ */

.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    min-height: 80px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.logo:hover {
    color: var(--primary-hover);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-xl);
}

.logo-img {
    height: 70px;
    display: flex;
    align-items: left;
    justify-content: left;
    color: var(--white);
    font-size: var(--text-xl);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background-color: var(--gray-50);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    transition: width var(--transition-fast);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-search {
    position: relative;
    display: none;
}

.header-search input {
    width: 300px;
    padding: var(--space-sm) var(--space-md);
    padding-right: 40px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-xl);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    width: 350px;
}

.header-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
}

.header-search button:hover {
    color: var(--primary-color);
    background-color: var(--gray-100);
}

/* Cart Icon */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.cart-icon:hover {
    background-color: var(--gray-100);
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--danger-color);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    animation: pulse 2s infinite;
}

.cart-count:empty {
    display: none;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-avatar:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-sm);
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color var(--transition-fast);
}

.user-dropdown-menu a:hover {
    background-color: var(--gray-50);
}

.user-dropdown-menu .dropdown-divider {
    height: 1px;
    background-color: var(--gray-200);
    margin: var(--space-xs) 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: var(--z-fixed);
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    z-index: var(--z-modal);
    transition: left var(--transition-normal);
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-content {
    padding: 100px var(--space-xl) var(--space-xl);
}

.mobile-nav .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
}

.mobile-nav .nav-menu a {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-100);
    font-size: var(--text-lg);
    justify-content: flex-start;
}

.mobile-nav .header-actions {
    margin-top: var(--space-2xl);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-lg);
}

.mobile-nav .btn {
    justify-content: center;
    padding: var(--space-lg);
    font-size: var(--text-lg);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}     

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
    background:  #f8f9fa;;
    color: var(--text-primary);
    padding: var(--space-md) 0;
    margin-top: var(--space-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>');
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #1f2937;
}

.hero h1 {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2xl);
    color: black;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn {
    font-size: var(--text-lg);
    padding: var(--space-lg) var(--space-2xl);
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero .btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: black;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Features */
.hero-features {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-600);
    font-size: var(--text-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    
}

.hero-feature i {
    font-size: var(--text-lg);
    color: var(--gray-700);
}

.hero-actions{
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-lg);
    display: flex;
    justify-content: center;
}

/* ============================================================================
   CATEGORY SECTION
   ============================================================================ */

.categories {
    padding: var(--space-3xl) 0;
    background-color: var(--bg-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    
    gap: var(--space-2xl);
}

.categories-responsive-grid{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: var(--space-2xl);
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left var(--transition-slow);
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-card h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.category-card .btn {
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-normal);
}

.category-card:hover .btn {
    opacity: 1;
    transform: translateY(0);
}

.category-stats {
    display: flex;
    justify-content: space-around;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-100);
}

.category-stat {
    text-align: center;
}

.category-stat-number {
    display: block;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--primary-color);
}

.category-stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ============================================================================
   PRODUCTS SECTION
   ============================================================================ */

.products-section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Product Filters */
.product-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.filter-tab {
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    background: var(--white);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.filter-tab:hover,
.filter-tab.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-2xl);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-100);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.product-image {
    position: relative;
    width: 100%;
    height: 220px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image .placeholder-icon {
    font-size: var(--text-5xl);
    color: var(--gray-400);
}

.product-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: var(--warning-color);
    color: var(--white);
    border-radius: var(--radius-xl);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.new {
    background: var(--secondary-color);
}

.product-badge.popular {
    background: var(--danger-color);
}

.product-info {
    padding: var(--space-xl);
}

.product-category {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.product-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-specs {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.product-pricing {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-lg);
}

.pricing-main {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
}

.product-price {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.pricing-secondary {
    text-align: right;
}

.deposit-amount {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.savings-badge {
    background: var(--secondary-color);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: var(--space-sm);
}

.product-actions .btn {
    flex: 1;
    justify-content: center;
}

.product-features {
    margin: var(--space-lg) 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.feature-item i {
    color: var(--secondary-color);
    font-size: var(--text-xs);
}

/* Product Quick View */
.quick-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: var(--z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.quick-view-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quick-view-modal {
    background: var(--white);
    border-radius: var(--radius-2xl);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.quick-view-overlay.active .quick-view-modal {
    transform: scale(1);
}

/* ============================================================================
   MODAL COMPONENTS
   ============================================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-50px);
    transition: transform var(--transition-normal);
    position: relative;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: var(--space-xl) var(--space-xl) 0;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: var(--space-xl);
}

.modal-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 32px;
    height: 32px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

.modal-body {
    padding: 0 var(--space-xl) var(--space-xl);
}

.modal-footer {
    padding: var(--space-lg) var(--space-xl) var(--space-xl);
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
}

/* ============================================================================
   AUTHENTICATION PAGES
   ============================================================================ */

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) 0;
}

.auth-container {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    margin: var(--space-md);
}

.auth-header {
    padding: var(--space-2xl);
    text-align: center;
    background: var(--bg-secondary);
}

.auth-header h1 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.auth-header p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.auth-body {
    padding: var(--space-2xl);
}

.auth-form .form-group {
    margin-bottom: var(--space-lg);
}

.auth-form .form-control {
    padding: var(--space-md);
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
}

.password-toggle {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-sm);
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: var(--space-lg) 0;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.forgot-password:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.auth-footer {
    padding: var(--space-xl) var(--space-2xl);
    background: var(--bg-secondary);
    text-align: center;
    border-top: 1px solid var(--gray-100);
}

.auth-footer p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.social-auth {
    margin: var(--space-xl) 0;
}

.social-auth-divider {
    text-align: center;
    position: relative;
    margin: var(--space-xl) 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.social-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-200);
    z-index: 1;
}

.social-auth-divider span {
    background: var(--white);
    padding: 0 var(--space-md);
    position: relative;
    z-index: 2;
}

.social-auth-buttons {
    display: flex;
    gap: var(--space-md);
}

.btn-social {
    flex: 1;
    justify-content: center;
    padding: var(--space-md);
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--text-primary);
}

.btn-social:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-social i {
    font-size: var(--text-lg);
}

.btn-google:hover {
    color: #ea4335;
}

.btn-facebook:hover {
    color: #4267B2;
}

.btn-twitter:hover {
    color: #1DA1F2;
}

/* Demo Credentials */
.demo-credentials {
    background: var(--bg-tertiary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-xl);
}

.demo-credentials h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.demo-account {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.demo-account:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.demo-account:last-child {
    margin-bottom: 0;
}

.demo-account strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: var(--space-xs);
}

.demo-account small {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

/* ============================================================================
   CART & CHECKOUT PAGES
   ============================================================================ */

.cart-page,
.checkout-page {
    padding: var(--space-2xl) 0 var(--space-3xl);
    min-height: 60vh;
}

.page-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.page-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.page-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.empty-cart-icon {
    font-size: 120px;
    color: var(--gray-300);
    margin-bottom: var(--space-xl);
}

.empty-cart h3 {
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.empty-cart p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Cart Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-3xl);
}

.cart-items-section {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--gray-100);
}

.cart-items-header h3 {
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin: 0;
}

.clear-cart-btn {
    color: var(--danger-color);
    background: none;
    border: 1px solid var(--danger-color);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.clear-cart-btn:hover {
    background: var(--danger-color);
    color: var(--white);
}

/* Cart Items */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: var(--space-lg);
    padding: var(--space-xl);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    background: var(--white);
    transition: all var(--transition-fast);
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.cart-item-image {
    width: 120px;
    height: 100px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image .placeholder-icon {
    font-size: var(--text-3xl);
    color: var(--gray-400);
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.cart-item-specs {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.cart-item-meta {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.cart-item-price {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--primary-color);
}

.cart-item-duration {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: flex-end;
    min-width: 200px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quantity-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
}

.duration-select {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    cursor: pointer;
    min-width: 150px;
}

.cart-item-total {
    text-align: right;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.discounted-price {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
    margin: var(--space-xs) 0;
}

.discount-badge {
    background: var(--secondary-color);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.remove-item-btn:hover {
    background: var(--danger-color);
    color: var(--white);
}

/* Cart Summary */
.cart-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.summary-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.summary-card h3 {
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--gray-100);
}

.summary-line:last-of-type {
    border-bottom: none;
}

.summary-line.total {
    border-top: 2px solid var(--gray-200);
    margin-top: var(--space-md);
    padding-top: var(--space-lg);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.summary-label {
    color: var(--text-secondary);
}

.summary-value {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-value.discount {
    color: var(--secondary-color);
}

.summary-note {
    background: var(--bg-tertiary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    text-align: center;
}

.summary-note i {
    color: var(--info-color);
    margin-right: var(--space-sm);
}

.summary-note p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.promo-code-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-200);
}

.promo-code-section h4 {
    font-size: var(--text-base);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.promo-code-form {
    display: flex;
    gap: var(--space-sm);
}

.promo-code-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}

.apply-promo-btn {
    padding: var(--space-sm) var(--space-lg);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: background-color var(--transition-fast);
}

.apply-promo-btn:hover {
    background: var(--primary-hover);
}

/* Checkout Form */
.checkout-form {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-2xl);
}

.form-section {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--gray-200);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.form-section h3 i {
    color: var(--primary-color);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.payment-method {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.payment-method:hover,
.payment-method.selected {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-content {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.payment-method-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: var(--white);
}

.payment-method-info h4 {
    font-size: var(--text-lg);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.payment-method-info p {
    color: var(--text-secondary);
    margin: 0;
}

.payment-note {
    background: var(--bg-tertiary);
    border: 1px solid var(--warning-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.payment-note i {
    color: var(--warning-color);
    font-size: var(--text-lg);
}

.payment-note p {
    color: var(--text-primary);
    margin: 0;
    font-size: var(--text-sm);
}

/* Rental Terms */
.rental-terms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.rental-term {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.rental-term-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.rental-term-content h4 {
    font-size: var(--text-base);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.rental-term-content p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
}

/* Order Summary in Checkout */
.checkout-summary {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.summary-items {
    margin-bottom: var(--space-xl);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--gray-100);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-info h4 {
    font-size: var(--text-base);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.summary-item-meta {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.summary-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.delivery-estimate {
    background: var(--bg-tertiary);
    border: 1px solid var(--info-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-xl);
}

.delivery-estimate h4 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--info-color);
    margin-bottom: var(--space-md);
}

.delivery-estimate p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.delivery-estimate p:last-child {
    margin-bottom: 0;
}

/* ============================================================================
   PROFILE & USER DASHBOARD
   ============================================================================ */

.profile-page {
    padding: var(--space-2xl) 0 var(--space-3xl);
    min-height: 70vh;
}

.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    margin-bottom: var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="2"/></g></svg>');
    animation: float 20s ease-in-out infinite;
}

.profile-info {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-5xl);
    color: var(--white);
    border: 4px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.profile-details h1 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.profile-details p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-sm);
    font-size: var(--text-lg);
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    margin-top: var(--space-2xl);
}

.profile-stat {
    text-align: center;
}

.profile-stat-number {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--white);
}

.profile-stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Navigation */
.profile-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}

.profile-tab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    background: transparent;
    border: 2px solid transparent;
}

.profile-tab:hover,
.profile-tab.active {
    color: var(--primary-color);
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.profile-tab i {
    font-size: var(--text-lg);
}

/* Profile Content */
.profile-content {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.profile-section {
    padding: var(--space-3xl);
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.order-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.order-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.order-header {
    background: var(--bg-secondary);
    padding: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
}

.order-info h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.order-date {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.order-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Status Badges */
.status {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-xl);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status.pending {
    background: var(--warning-color);
    color: var(--white);
}

.status.confirmed {
    background: var(--info-color);
    color: var(--white);
}

.status.delivered {
    background: var(--secondary-color);
    color: var(--white);
}

.status.active {
    background: var(--primary-color);
    color: var(--white);
}

.status.returned {
    background: var(--gray-500);
    color: var(--white);
}

.status.cancelled {
    background: var(--danger-color);
    color: var(--white);
}

.order-body {
    padding: var(--space-xl);
}

.order-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
}

.order-summary-label {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.order-summary-value {
    font-weight: 600;
    color: var(--text-primary);
}

.order-summary-value.total {
    font-size: var(--text-lg);
    color: var(--primary-color);
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
}

.order-items {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.order-items h5 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-200);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-name {
    font-weight: 500;
    color: var(--text-primary);
}

.order-item-details {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.order-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.delivery-address {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.delivery-address h5 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.delivery-address h5 i {
    color: var(--primary-color);
}

.delivery-address p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.delivery-address p:last-child {
    margin-bottom: 0;
}

.order-actions {
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* No Orders State */
.no-orders {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.no-orders-icon {
    font-size: 120px;
    color: var(--gray-300);
    margin-bottom: var(--space-xl);
}

.no-orders h4 {
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.no-orders p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Security Settings */
.security-section {
    background: var(--bg-secondary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.security-section h4 {
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.security-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.security-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.security-item-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.security-item-info h5 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.security-item-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: var(--text-sm);
}

/* ============================================================================
   ADMIN DASHBOARD
   ============================================================================ */

.admin-page {
    padding: var(--space-2xl) 0 var(--space-3xl);
    background: var(--bg-secondary);
    min-height: 100vh;
}

.admin-header {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.admin-header h1 {
    font-size: var(--text-3xl);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.admin-header p {
    color: var(--text-secondary);
    margin: 0;
}

/* Admin Navigation */
.admin-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
    background: transparent;
    border: 2px solid transparent;
}

.admin-tab:hover,
.admin-tab.active {
    color: var(--white);
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Admin Content */
.admin-content {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.admin-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2xl);
    border-bottom: 1px solid var(--gray-200);
    background: var(--bg-secondary);
}

.admin-content-body {
    padding: var(--space-2xl);
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.stat-card.success::before {
    background: var(--secondary-color);
}

.stat-card.warning::before {
    background: var(--warning-color);
}

.stat-card.info::before {
    background: var(--info-color);
}

.stat-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-info h3 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.stat-info p {
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--white);
}

.stat-card.success .stat-icon {
    background: var(--secondary-color);
}

.stat-card.warning .stat-icon {
    background: var(--warning-color);
}

.stat-card.info .stat-icon {
    background: var(--info-color);
}

.stat-change {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 500;
}

.stat-change.positive {
    color: var(--secondary-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

/* Admin Tables */
.admin-table-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-2xl);
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--gray-200);
}

.admin-table-header h3 {
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin: 0;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.admin-table th,
.admin-table td {
    padding: var(--space-lg);
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.admin-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: var(--text-xs);
}

.admin-table td {
    color: var(--text-secondary);
}

.admin-table tbody tr {
    transition: background-color var(--transition-fast);
}

.admin-table tbody tr:hover {
    background: var(--bg-secondary);
}

.table-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.action-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.action-btn.danger:hover {
    border-color: var(--danger-color);
    background: var(--danger-color);
}

.action-btn.success:hover {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
}

/* Product Info Cell */
.product-info-cell {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.product-image-small {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.product-details-small h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.product-details-small p {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin: 0;
}

/* Badges and Tags */
.badge {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.primary {
    background: var(--primary-color);
    color: var(--white);
}

.badge.secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.badge.warning {
    background: var(--warning-color);
    color: var(--white);
}

.badge.danger {
    background: var(--danger-color);
    color: var(--white);
}

.badge.info {
    background: var(--info-color);
    color: var(--white);
}

.badge.light {
    background: var(--gray-200);
    color: var(--text-primary);
}

.badge.new {
    background: var(--info-color);
    color: var(--white);
}

.badge.refurbished {
    background: var(--warning-color);
    color: var(--white);
}

/* ============================================================================
   FOOTER COMPONENT
   ============================================================================ */


/* ============================================================================
   NOTIFICATION SYSTEM
   ============================================================================ */

.notifications-container {
    position: fixed;
    top: var(--space-xl);
    right: var(--space-xl);
    z-index: var(--z-toast);
    max-width: 400px;
    pointer-events: none;
}

.notification {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transform: translateX(400px);
    transition: all var(--transition-normal);
    pointer-events: auto;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
}

.notification.removing {
    transform: translateX(400px);
    opacity: 0;
}

.notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
}

.notification.success::before {
    background: var(--secondary-color);
}

.notification.warning::before {
    background: var(--warning-color);
}

.notification.error::before {
    background: var(--danger-color);
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-sm);
    flex-shrink: 0;
    background: var(--primary-color);
}

.notification.success .notification-icon {
    background: var(--secondary-color);
}

.notification.warning .notification-icon {
    background: var(--warning-color);
}

.notification.error .notification-icon {
    background: var(--danger-color);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-size: var(--text-sm);
}

.notification-message {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.notification-close:hover {
    color: var(--text-primary);
    background: var(--gray-100);
}

/* Progress bar for auto-dismiss */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--primary-color);
    animation: progress 5s linear forwards;
}

.notification.success .notification-progress {
    background: var(--secondary-color);
}

.notification.warning .notification-progress {
    background: var(--warning-color);
}

.notification.error .notification-progress {
    background: var(--danger-color);
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animation Classes */
.animate-fadeIn { animation: fadeIn 0.5s ease both; }
.animate-fadeInUp { animation: fadeInUp 0.6s ease both; }
.animate-fadeInDown { animation: fadeInDown 0.6s ease both; }
.animate-slideInLeft { animation: slideInLeft 0.6s ease both; }
.animate-slideInRight { animation: slideInRight 0.6s ease both; }
.animate-zoomIn { animation: zoomIn 0.4s ease both; }
.animate-bounce { animation: bounce 1s ease both; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Delay Classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Large screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

/* Medium screens */
@media (max-width: 991px) {
    .container {
        padding: 0 var(--space-lg);
    }
    
    .header-search {
        display: none;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-nav {
        justify-content: flex-start;
        overflow-x: auto;
    }
}

/* Small screens */
@media (max-width: 768px) {
    :root {
        --space-xs: 0.2rem;
        --space-sm: 0.4rem;
        --space-md: 0.8rem;
        --space-lg: 1.2rem;
        --space-xl: 1.6rem;
        --space-2xl: 2.4rem;
        --space-3xl: 3.2rem;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    /* Header */
    .header-content {
        padding: var(--space-lg) 0;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo {
        font-size: var(--text-xl);
    }
    
    /* Hero */
    .hero {
        padding: var(--space-2xl) 0;
    }
    
    .hero h1 {
        font-size: clamp(var(--text-2xl), 8vw, var(--text-3xl));
        margin-bottom: var(--space-md);
    }
    
    .hero p {
        font-size: var(--text-base);
        margin-bottom: var(--space-xl);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        margin-top: var(--space-xl);
    }
    
    .hero-features {
        flex-direction: row;
        align-items: center;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: var(--space-xl);
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-filters {
        flex-direction: row;
        align-items: stretch;
    }
    
    .filter-tab {
        text-align: center;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-container {
        margin: var(--space-sm);
    }
    
    .auth-header,
    .auth-body {
        padding: var(--space-xl);
    }
    
    /* Cart */
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
        margin-bottom: var(--space-lg);
    }
    
    .cart-item-controls {
        align-items: center;
        flex-direction: row;
        justify-content: space-around;
        min-width: auto;
    }
    
    /* Profile */
    .profile-header {
        padding: var(--space-xl);
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .profile-tab {
        justify-content: center;
        padding: var(--space-lg);
    }
    
    /* Admin */
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-table-container {
        overflow-x: auto;
    }
    
    .admin-table {
        min-width: 600px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Notifications */
    .notifications-container {
        left: var(--space-sm);
        right: var(--space-sm);
        max-width: none;
    }
    
    .notification {
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .notification.removing {
        transform: translateY(-100px);
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero h1 {
        font-size: var(--text-2xl);
    }

    .hero-actions{
        gap: var(--space-xs);
        padding: 0 0;
    }

    .hero-actions .btn{
        font-size: var(--text-sm);
    }

    .hero-stats{
        display: none;
    }
    
    .section-title {
        font-size: var(--text-2xl);
    }
    
    .page-title {
        font-size: var(--text-2xl);
    }
    .category-card{
        border-radius: var(--radius-xl);
        padding: var(--space-md);
        text-align: center;
        box-shadow: var(--shadow-sm);
    }
    .category-card,
    .product-card {
        padding: var(--space-lg);
    }
    
    .modal {
        margin: var(--space-sm);
        max-width: none;
        width: calc(100% - var(--space-md));
    }
    
    .cart-summary {
        position: static;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: var(--radius-lg);
    }
    .categories-responsive-grid{
        display: grid;
        grid-template-columns: repeat(2,1fr);
    }

    .category-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto var(--space-md);
        font-size: var(--text-xl);
    }

    .category-icon:hover {
        transform: translateY(-6px) scale(1.05);
        box-shadow: var(--shadow-xl);
    }

    .category-card h3 {
        font-size: var(--text-xl);
        margin-bottom: var(--space-sm);
    }

    .category-card p {
        color: var(--text-secondary);
        margin-bottom: var(--space-md);
        line-height: 1.4;
        font-size: var(--text-sm);
    }
    
    .testimonials-section{
        display: none;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle,
    .btn,
    .notification,
    .modal {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .page-title {
        color: #000;
        font-size: 18pt;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --text-primary: #000000;
        --text-secondary: #333333;
        --gray-200: #666666;
        --gray-300: #999999;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        --bg-primary: #1f2937;
        --bg-secondary: #111827;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --gray-100: #374151;
        --gray-200: #4b5563;
    }
}

/* Focus visible for better accessibility */
.btn:focus-visible,
.form-control:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
    cursor: wait;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

::-webkit-scrollbar-corner {
    background: var(--gray-100);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-400) var(--gray-100);
}

/* ============================================================================
   BREADCRUMB COMPONENT
   ============================================================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--text-muted);
    margin: 0 var(--space-xs);
}

/* ============================================================================
   PAGINATION COMPONENT
   ============================================================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-2xl) 0;
    flex-wrap: wrap;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
    background: var(--white);
}

.pagination-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-secondary);
}

.pagination-item.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-prev,
.pagination-next {
    padding: 0 var(--space-md);
    width: auto;
    min-width: 40px;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin: 0 var(--space-lg);
}

/* ============================================================================
   TABS COMPONENT
   ============================================================================ */

.tabs {
    margin-bottom: var(--space-2xl);
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: var(--space-xl);
    overflow-x: auto;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-button {
    padding: var(--space-lg) var(--space-xl);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.tab-button:hover {
    color: var(--primary-color);
    background: var(--bg-secondary);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* ============================================================================
   ACCORDION COMPONENT
   ============================================================================ */

.accordion {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.accordion-item {
    border-bottom: 1px solid var(--gray-200);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    background: var(--bg-secondary);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--text-primary);
    transition: background-color var(--transition-fast);
}

.accordion-header:hover {
    background: var(--gray-200);
}

.accordion-header.active {
    background: var(--primary-color);
    color: var(--white);
}

.accordion-icon {
    transition: transform var(--transition-fast);
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.accordion-content.active {
    max-height: 500px; /* Adjust based on content */
}

.accordion-body {
    padding: var(--space-xl);
    background: var(--white);
}

/* ============================================================================
   DROPDOWN COMPONENT
   ============================================================================ */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dropdown-toggle:hover {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
    overflow: hidden;
    margin-top: var(--space-xs);
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color var(--transition-fast);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: var(--space-xs) 0;
}

/* ============================================================================
   TOOLTIP COMPONENT
   ============================================================================ */

.tooltip {
    position: absolute;
    z-index: var(--z-tooltip);
    background: var(--gray-900);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    pointer-events: none;
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
}

.tooltip::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 5px solid transparent;
}

.tooltip.top::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: var(--gray-900);
}

.tooltip.bottom::after {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: var(--gray-900);
}

.tooltip.left::after {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: var(--gray-900);
}

.tooltip.right::after {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: var(--gray-900);
}

/* ============================================================================
   PROGRESS BAR COMPONENT
   ============================================================================ */

.progress {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: var(--space-md) 0;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    transition: width var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.progress-bar.animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

.progress-bar.success {
    background: var(--secondary-color);
}

.progress-bar.warning {
    background: var(--warning-color);
}

.progress-bar.danger {
    background: var(--danger-color);
}

.progress-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    display: flex;
    justify-content: space-between;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* ============================================================================
   ALERT COMPONENT
   ============================================================================ */

.alert {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    position: relative;
}

.alert-icon {
    font-size: var(--text-lg);
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: var(--space-xs);
    font-size: var(--text-base);
}

.alert-message {
    margin: 0;
    line-height: 1.5;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: var(--space-xs);
    margin: -4px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
    flex-shrink: 0;
}

.alert-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Alert variants */
.alert.primary {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    color: #1e40af;
}

.alert.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #047857;
}

.alert.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #92400e;
}

.alert.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.alert.info {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    color: #0891b2;
}

/* ============================================================================
   CARD COMPONENT
   ============================================================================ */

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--gray-200);
    background: var(--bg-secondary);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: var(--space-xs) 0 0;
}

.card-body {
    padding: var(--space-xl);
}

.card-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--gray-200);
    background: var(--bg-secondary);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Card variants */
.card.elevated {
    box-shadow: var(--shadow-lg);
}

.card.bordered {
    border-width: 2px;
}

.card.primary {
    border-color: var(--primary-color);
}

.card.success {
    border-color: var(--secondary-color);
}

.card.warning {
    border-color: var(--warning-color);
}

.card.danger {
    border-color: var(--danger-color);
}

/* ============================================================================
   LIST GROUP COMPONENT
   ============================================================================ */

.list-group {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.list-group-item {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background: var(--bg-secondary);
}

.list-group-item.active {
    background: var(--primary-color);
    color: var(--white);
}

.list-group-item.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.list-group-item-content {
    flex: 1;
}

.list-group-item-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.list-group-item-text {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.list-group-item.active .list-group-item-title,
.list-group-item.active .list-group-item-text {
    color: var(--white);
}

.list-group-item-action {
    margin-left: var(--space-md);
}

/* ============================================================================
   SPINNER COMPONENT
   ============================================================================ */

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

.spinner.sm {
    width: 16px;
    height: 16px;
    border-width: 1px;
}

.spinner.lg {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

.spinner.xl {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

.spinner.primary {
    border-top-color: var(--primary-color);
}

.spinner.success {
    border-top-color: var(--secondary-color);
}

.spinner.warning {
    border-top-color: var(--warning-color);
}

.spinner.danger {
    border-top-color: var(--danger-color);
}

.spinner.white {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    backdrop-filter: blur(2px);
}

.loading-overlay .spinner {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

/* ============================================================================
   BACK TO TOP BUTTON
   ============================================================================ */

.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
    z-index: var(--z-fixed);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.back-to-top:active {
    transform: translateY(0);
}

/* ============================================================================
   SEARCH COMPONENT
   ============================================================================ */

.search-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    padding-right: 50px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-xl);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    background: var(--white);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.search-button:hover {
    background: var(--primary-hover);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 400px;
    overflow-y: auto;
    z-index: var(--z-dropdown);
    margin-top: var(--space-xs);
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-secondary);
}

.search-result-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.search-result-description {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.search-no-results {
    padding: var(--space-xl);
    text-align: center;
    color: var(--text-muted);
}

/* ============================================================================
   RATING COMPONENT
   ============================================================================ */

.rating {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.rating-star {
    color: var(--gray-300);
    font-size: var(--text-lg);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.rating-star.filled,
.rating-star:hover {
    color: var(--warning-color);
}

.rating-value {
    margin-left: var(--space-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.rating-count {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-left: var(--space-xs);
}

.rating.readonly .rating-star {
    cursor: default;
}

.rating.sm .rating-star {
    font-size: var(--text-base);
}

.rating.lg .rating-star {
    font-size: var(--text-xl);
}

/* ============================================================================
   PRICING TABLE COMPONENT
   ============================================================================ */

.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-2xl) 0;
}

.pricing-plan {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.pricing-plan:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.pricing-plan.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-plan.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: var(--space-lg);
    right: calc(var(--space-lg) * -1);
    background: var(--primary-color);
    color: var(--white);
    padding: var(--space-xs) var(--space-2xl);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
}

.pricing-plan-name {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.pricing-plan-price {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

.pricing-plan-period {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.pricing-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl);
    text-align: left;
}

.pricing-plan-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
}

.pricing-plan-feature i {
    color: var(--secondary-color);
    flex-shrink: 0;
}

.pricing-plan-feature.unavailable {
    opacity: 0.5;
}

.pricing-plan-feature.unavailable i {
    color: var(--danger-color);
}

.pricing-plan-cta {
    width: 100%;
}

/* ============================================================================
   TESTIMONIAL COMPONENT
   ============================================================================ */

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-2xl) 0;
}

.testimonial {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all var(--transition-normal);
}

.testimonial:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    font-size: 4rem;
    color: var(--primary-color);
    font-family: serif;
    opacity: 0.3;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: var(--space-xl);
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.testimonial-author-info h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.testimonial-author-title {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ============================================================================
   ERROR PAGES
   ============================================================================ */

.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl) 0;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.error-title {
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.error-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.error-illustration {
    width: 100%;
    max-width: 400px;
    height: 300px;
    margin: 0 auto var(--space-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 8rem;
}

/* ============================================================================
   MAINTENANCE MODE
   ============================================================================ */

.maintenance-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: var(--space-xl);
}

.maintenance-content {
    max-width: 600px;
}

.maintenance-icon {
    font-size: 6rem;
    margin-bottom: var(--space-xl);
    color: rgba(255, 255, 255, 0.8);
}

.maintenance-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--white);
}

.maintenance-description {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2xl);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.maintenance-eta {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
    backdrop-filter: blur(10px);
}

.maintenance-contact {
    color: rgba(255, 255, 255, 0.8);
}

.maintenance-contact a {
    color: var(--white);
    text-decoration: underline;
}

/* ============================================================================
   UTILITY CLASSES - EXTENDED
   ============================================================================ */

/* Position utilities */
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

/* Overflow utilities */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-hidden { overflow-y: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Z-index utilities */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Width utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-screen { width: 100vw; }
.w-1\/2 { width: 50%; }
.w-1\/3 { width: 33.333333%; }
.w-2\/3 { width: 66.666667%; }
.w-1\/4 { width: 25%; }
.w-3\/4 { width: 75%; }

/* Height utilities */
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-screen { height: 100vh; }
.h-1\/2 { height: 50%; }

/* Min/Max width and height */
.min-w-0 { min-width: 0; }
.min-w-full { min-width: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-full { max-width: 100%; }
.max-h-full { max-height: 100%; }

/* Cursor utilities */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-wait { cursor: wait; }
.cursor-move { cursor: move; }
.cursor-help { cursor: help; }

/* User select utilities */
.select-none { user-select: none; }
.select-text { user-select: text; }
.select-all { user-select: all; }
.select-auto { user-select: auto; }

/* Pointer events utilities */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* Visibility utilities */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Opacity utilities */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Transform utilities */
.transform { transform: translateVar(--tw-translate-x, --tw-translate-y) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.scale-0 { transform: scale(0); }
.scale-50 { transform: scale(0.5); }
.scale-75 { transform: scale(0.75); }
.scale-90 { transform: scale(0.9); }
.scale-95 { transform: scale(0.95); }
.scale-100 { transform: scale(1); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }
.scale-125 { transform: scale(1.25); }
.scale-150 { transform: scale(1.5); }

/* Rotate utilities */
.rotate-0 { transform: rotate(0deg); }
.rotate-45 { transform: rotate(45deg); }
.rotate-90 { transform: rotate(90deg); }
.rotate-180 { transform: rotate(180deg); }
.rotate-270 { transform: rotate(270deg); }

/* END OF CSS FILE */
/* ============================================================================

/* ============================================================================
   NEW SHAREPAL-STYLE CATEGORY SECTION
   ============================================================================ */

/* Modern Categories Section */
.categories-modern {
    padding: var(--space-3xl) 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.categories-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xm);
    margin: var(--space-3xl) 0;
    position: relative;
}

/* Category Card Modern Design */
.category-card-modern {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 320px;
}

.category-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Content at top */
.category-content-top {
    padding: var(--space-md);
    flex: 0 0 auto;
    z-index: 2;
    position: relative;
}

.category-content-top h3 {
    color: var(--white);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.category-content-top p {
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--text-sm);
    line-height: 1;
    margin: 0;
}

/* Image container at bottom */
.category-image-container {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 var(--space-lg) var(--space-md);
    overflow: hidden;
    position: relative;
}

.category-image {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    transition: transform var(--transition-normal);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.category-card-modern:hover .category-image {
    transform: scale(1.05) translateY(-5px);
}

/* Link overlay */
.category-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-3xl);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.scroll-icon {
    background: var(--gray-100);
    width: 40px;
    height: 50px;
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gray-300);
    animation: scrollBounce 2s infinite;
}

.scroll-icon i {
    color: var(--text-muted);
    font-size: var(--text-lg);
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* Tablet Responsive - 2 columns */
@media (max-width: 1024px) {
    .categories-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

/* Mobile Responsive - 2 columns on mobile as shown in image */
@media (max-width: 768px) {
    .categories-modern {
        padding: var(--space-2xl) 0;
    }
    
    .categories-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        margin: var(--space-xl) 0;
    }
    
    .category-card-modern {
        height: 240px;
    }
    
    .category-content-top {
        padding: var(--space-lg);
        padding-bottom: var(--space-xs);
    }
    
    .category-content-top h3 {
        font-size: var(--text-lg);
        margin-bottom: var(--space-xs);
    }
    
    .category-content-top p {
        font-size: var(--text-xs);
        line-height: 1.4;
    }
    
    .category-image-container {
        padding: 0 var(--space-sm) var(--space-xs);
    }
    
    .category-image {
        max-height: 120px;
    }
    
    .scroll-indicator {
        flex-direction: column;
        gap: var(--space-sm);
        margin-top: var(--space-xl);
    }
    
    .scroll-text {
        font-size: var(--text-xs);
    }
}

/* Very Small Mobile - Stack into single column if needed */
@media (max-width: 480px) {
    .categories-grid-modern {
        gap: var(--space-sm);
    }
    
    .category-card-modern {
        height: 220px;
    }
    
    .category-content-top h3 {
        font-size: var(--text-base);
    }
}

/* END OF UPDATED CSS FILE */

/* ============================================================================
   ENHANCED CATEGORY STYLING - Better Text Visibility
   ============================================================================ */

/* Better text shadow for readability on light gradients */
.category-content-top h3 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.category-content-top p {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* Subtle overlay for better text contrast */
.category-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
    pointer-events: none;
    border-radius: var(--radius-2xl);
}

/* Ensure content is above overlay */
.category-content-top,
.category-image-container {
    position: relative;
    z-index: 2;
}

/* Better image drop shadow */
.category-image {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

/* Improve card shadow */
.category-card-modern {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.category-card-modern:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}