/* ===================================
   InfoTech Zone Store - Main Stylesheet
   FINAL VERSION - Cleaned & Fixed
   =================================== */

:root {
    /* Colors */
    --primary: #4F46E5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --accent: #f59e0b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #10b981;
    --error: #ef4444;
    --info: #3b82f6;
    --warning: #f59e0b;

    /* Fonts - Using Inter for consistent modern look */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* 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);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-20: 5rem;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
    font-family: var(--font-body);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Fix mobile overflow */
    margin: 0;
    width: 100%;
    padding-top: 72px;
    /* Fix for fixed header */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    margin-top: 0;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Logo Filter for Light Mode (White Text -> Black Text, Preserve Blue) */
.navbar-brand img {
    filter: invert(1) hue-rotate(190deg) saturate(5) brightness(0.9) contrast(1.2);
    /* Invert colors, shift hue to deep blue, boost saturation for vibrancy */
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    min-height: 80vh;
    padding: var(--space-8) 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    gap: var(--space-2);
}

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

.btn-primary {
    background-color: var(--primary);
    color: white !important;
    /* Force white text */
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1), 0 2px 4px -1px rgba(79, 70, 229, 0.06);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    /* Explicit Darker Shade */
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3), 0 4px 6px -2px rgba(79, 70, 229, 0.15);
}

.btn-secondary:hover {
    background-color: rgba(79, 70, 229, 0.1);
    /* Darker tint */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--error);
    color: white;
}

.btn-danger:hover {
    background-color: #DC2626;
    /* Explicit Darker Red */
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
    /* Explicit Darker Green */
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.btn-warning {
    background-color: var(--warning);
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
    /* Explicit Darker Orange */
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: 0.875rem;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: 1.125rem;
}

/* Cards */
.card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    margin: 0 auto;
}

/* Forms */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* CTA specific buttons */
.btn-cta-white {
    background-color: white;
    color: var(--primary);
    font-weight: 700;
    padding: var(--space-4) var(--space-8);
    font-size: 1.125rem;
    border: 2px solid white;
}

.btn-cta-white:hover {
    background-color: #f8fafc;
    color: var(--primary-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.btn-cta-outline {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
    font-weight: 600;
    padding: var(--space-4) var(--space-8);
    font-size: 1.125rem;
    backdrop-filter: blur(4px);
}

.btn-cta-outline:hover {
    background-color: white;
    color: var(--primary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.form-text {
    display: block;
    margin-top: var(--space-1);
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th,
.table td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.table th {
    background-color: var(--bg-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background-color: var(--bg-secondary);
}

/* Alerts */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
    border-left: 4px solid transparent;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #065F46;
    border-left-color: var(--success);
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #991B1B;
    border-left-color: var(--error);
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: #1E40AF;
    border-left-color: var(--info);
}

/* Navbar */
.navbar {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 1.5rem;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.navbar-nav {
    display: flex;
    align-items: center;
    /* Fix desktop alignment */
    gap: var(--space-6);
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-inline-group {
    display: flex;
    align-items: center;
    /* Fix profile/theme alignment */
    gap: var(--space-4);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    padding: var(--space-10) 0 var(--space-6);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-title {
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform var(--transition-base);
    position: relative;
}

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

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

.modal-header h2,
.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-4);
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 4px;
}

/* Dashboard Styles */
.search-icon-wrapper {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-tertiary);
}

.pl-10 {
    padding-left: 2.5rem !important;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-message {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #94a3b8;
    cursor: pointer;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    overflow: hidden;
}

.profile-btn:hover,
.profile-btn.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

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

.profile-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0.5rem;
}

.profile-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
    display: block;
}

.profile-role {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
    display: block;
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

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

.profile-item.text-danger:hover {
    background: #fef2f2;
    color: #ef4444;
}

.profile-item svg {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

/* Cart Badge Styling */
.relative {
    position: relative;
    /* Fix for cart button positioning */
}

.absolute {
    position: absolute;
}

.-top-2 {
    top: -0.5rem;
}

.-right-2 {
    right: -0.5rem;
}

#cart-badge,
#cart-badge-mobile,
#cart-badge-guest,
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 3px 12px rgba(99, 102, 241, 0.6);
    }
}

.cart-btn-mobile {
    position: relative;
    /* Fix mobile cart badge */
}

/* Cart Drawer & Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    visibility: hidden;
}

.cart-drawer.active {
    transform: translateX(0) !important;
    visibility: visible !important;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-empty {
    text-align: center;
    color: #94a3b8;
    margin-top: 3rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease;
    background: white;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #f8fafc;
    object-fit: contain;
    padding: 0.25rem;
    border: 1px solid #e2e8f0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.cart-item-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9rem;
    line-height: 1.3;
    padding-right: 0.5rem;
}

.cart-item-price {
    color: #6366f1;
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-remove {
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.cart-footer {
    padding: 1.5rem 1.5rem 2.5rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.btn-checkout {
    width: 100%;
    box-sizing: border-box;
    /* Fix checkout button width */
    padding: 1rem;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-bottom: 5rem;
}

.btn-checkout:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Homepage Redesign Styles */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: var(--space-20) 0;
    /* Tech/SaaS Base */
    background-color: #f8fafc;
    /* Tech Grid Overlay */
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

@keyframes float-1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(100px, -150px) rotate(180deg);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-120px, 80px) rotate(-90deg);
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(70px, 120px) rotate(45deg);
    }
}

.hero-shape {
    position: absolute;
    opacity: 0.15;
    /* Visible but subtle */
    z-index: 1;
    /* Above glow, below content */
    will-change: transform;
}

.shape-triangle {
    width: 60px;
    height: 60px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 15%;
    left: 10%;
    animation: float-1 12s infinite ease-in-out;
}

.shape-circle {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    top: 20%;
    right: 15%;
    animation: float-2 15s infinite ease-in-out;
}

.shape-square {
    width: 50px;
    height: 50px;
    background: var(--success);
    bottom: 30%;
    left: 20%;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    /* Slightly skewed */
    animation: float-3 18s infinite ease-in-out;
}

.shape-star {
    width: 70px;
    height: 70px;
    background: var(--warning);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    bottom: 25%;
    right: 25%;
    animation: float-1 10s infinite reverse ease-in-out;
}

.hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float-1 20s infinite ease-in-out;
    /* Reverting to smooth float for glow */
    will-change: transform;
    z-index: 0;
}

.hero-glow-1 {
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0) 70%);
    /* Blue */
    animation-delay: 0s;
}

.hero-glow-2 {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0) 70%);
    /* Purple */
    animation-delay: -10s;
    /* Offset for organic feel */
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-10);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: 8rem;
    /* Significantly increased space */
}

.badge-premium {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: var(--space-6);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Stats Banner */
.stats-container {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    padding: 2rem;
    margin-top: 2rem;
    /* Changed from -3rem to 2rem to fix overlap */
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    padding: 0 1rem;
    border-right: 1px solid var(--border-light);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    line-height: 1;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(1),
    .stat-item:nth-child(2) {
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 1.5rem;
        margin-bottom: 1rem;
    }
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.text-gradient {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #F59E0B 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 700;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.stats-container {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    padding: 3rem 4rem;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: var(--space-6);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.step-card {
    position: relative;
    padding: var(--space-6);
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    margin: 0 auto var(--space-4);
    box-shadow: 0 0 0 8px rgba(79, 70, 229, 0.1);
}

.animate-fade-up {
    /* animation: fadeUp 0.8s ease-out forwards; Disabled for stability */
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Duplicate float removed */

/* Utility Classes */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.bg-white\/50 {
    background-color: rgba(255, 255, 255, 0.5);
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.shadow-2xl {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Fix Desktop Cart Icon */
.navbar-nav .desktop-only button {
    background: transparent !important;
    border: none !important;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.navbar-nav .desktop-only button:hover {
    color: var(--primary);
}

/* Dark Mode Global Overrides */
html[data-theme='dark'] .cart-drawer {
    background-color: #1e293b;
    color: #f8fafc;
}

html[data-theme='dark'] .cart-header,
html[data-theme='dark'] .cart-footer {
    border-color: #334155;
    background-color: rgba(30, 41, 59, 0.95);
}

html[data-theme='dark'] .cart-title,
html[data-theme='dark'] .cart-total,
html[data-theme='dark'] .cart-item-name {
    color: #f8fafc;
}

html[data-theme='dark'] .cart-item {
    background-color: #0f172a;
    border-color: #334155;
}

html[data-theme='dark'] .cart-close {
    color: #94a3b8;
}

html[data-theme='dark'] .cart-close:hover {
    background-color: #334155;
    color: #f8fafc;
}

html[data-theme='dark'] .navbar-nav .desktop-only button {
    color: var(--text-primary);
}


/* Badge Variants (Light Mode / Base) */
.badge-primary {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
    /* Emerald 600 */
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-error,
.badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    /* Red 600 */
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: #2563EB;
    /* Blue 600 */
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #D97706;
    /* Amber 600 */
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-gray {
    background-color: rgba(107, 114, 128, 0.1);
    color: #4B5563;
    /* Gray 600 */
    border: 1px solid rgba(107, 114, 128, 0.2);
}

/* Base Button Refinements */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

/* Premium Secondary Button (Manage/Edit) */
.btn-secondary {
    background-color: white;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Premium Danger Button */
.btn-danger {
    background-color: #fee2e2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.btn-danger:hover {
    background-color: #ef4444;
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* Tool Icon Sizing in Admin */
.tool-icon-wrapper {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.tool-icon-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Badge Refinements */
.badge {
    padding: 0.35em 0.85em;
    border-radius: 9999px;
    /* Pill shape */
    font-weight: 600;
    font-size: 0.75em;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Premium Modal Close Button (Global) */
.modal-close-btn-abs {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 20px;
    padding-bottom: 2px;
    z-index: 10;
}

.modal-close-btn-abs:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fee2e2;
    transform: rotate(90deg);
}

/* WhatsApp Button */
.btn-whatsapp {
    background-color: #25D366 !important;
    color: white !important;
    border: none;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    color: white !important;
}

.text-whatsapp {
    color: #25D366 !important;
}

.text-whatsapp:hover {
    color: #128C7E !important;
}

/* =========================================
   GLOBAL CUSTOM SCROLLBAR (Purple Theme)
   ========================================= */
/* Webkit Browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

/* Track */
::-webkit-scrollbar-track {
    background: transparent;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #a5b4fc;
    /* Light Purple (Indigo-300) */
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

/* Handle on Hover */
::-webkit-scrollbar-thumb:hover {
    background: #818cf8;
    /* Indigo-400 */
    border: 2px solid transparent;
    background-clip: content-box;
}

/* Dark Mode Overrides (if applicable) */
html[data-theme='dark'] ::-webkit-scrollbar-thumb,
[data-theme='dark'] ::-webkit-scrollbar-thumb {
    background: #6366f1;
    /* Primary Indigo */
    border: 2px solid transparent;
    background-clip: content-box;
}

html[data-theme='dark'] ::-webkit-scrollbar-thumb:hover,
[data-theme='dark'] ::-webkit-scrollbar-thumb:hover {
    background: #818cf8;
    border: 2px solid transparent;
    background-clip: content-box;
}

html[data-theme='dark'] ::-webkit-scrollbar-track,
[data-theme='dark'] ::-webkit-scrollbar-track {
    background: #0f172a;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #a5b4fc transparent;
}

html[data-theme='dark'] *,
[data-theme='dark'] * {
    scrollbar-color: #6366f1 #0f172a;
}
/* Utility Classes */
.text-center {
    text-align: center !important;
}

.text-start {
    text-align: left !important;
}

.text-end {
    text-align: right !important;
}

/* Mobile Footer Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        text-align: center;
        gap: var(--space-6);
    }
    
    .footer-title {
        margin-bottom: var(--space-3);
    }
    
    .footer-links li {
        margin-bottom: var(--space-3);
    }
    
    /* Center align flex items in footer on mobile */
    .footer-links a.flex {
        justify-content: center;
    }
}

