/* Global CSS Variables - Theme System */
:root {
    /* Light Mode (Default) - Based on the provided image */
    --primary-color: #4CAF50;
    --primary-hover: #45a049;
    --secondary-color: #4CAF50;
    --secondary-hover: #45a049;
    --accent-color: #4CAF50;
    --accent-text: #ffffff;
    --accent-hover: #45a049;
    --background-color: #ffffff;
    --surface-color: #f8f8f8;
    --text-primary: #333333;
    --text-secondary: #888888;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #4CAF50;
    --success-hover: #45a049;
    --success-bg: #e8f5e8;
    --success-text: #2e7d32;
    --error-color: #f44336;
    --error-hover: #d32f2f;
    --error-border: #f44336;
    --error-text: #d32f2f;
    --error-bg: #ffebee;
    --warning-color: #ff9800;
    --warning-bg: #fff3e0;
    --info-color: #2196f3;
    --danger-color: #f44336;
    --danger-hover: #d32f2f;
    --danger-bg: #ffebee;
    --danger-text: #d32f2f;
    --primary-shadow: rgba(76, 175, 80, 0.2);
    --card-background: #f8f8f8;
    --card-bg: #f8f8f8;
    --input-background: #ffffff;
    --input-bg: #ffffff;
    --input-border: #e0e0e0;
    --hover-color: #f5f5f5;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --button-text-color: #ffffff;
    --accent-blue: #2196f3;
    --accent-green: #4CAF50;
    --accent-red: #f44336;
    --accent-yellow: #ff9800;
}

/* Dark Mode Variables */
:root.dark-mode {
    --primary-color: #1e3a8a;
    --primary-hover: #1e40af;
    --secondary-color: #f59e0b;
    --secondary-hover: #d97706;
    --accent-color: #f59e0b;
    --accent-text: #0f172a;
    --accent-hover: #d97706;
    --background-color: #0f172a;
    --surface-color: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #475569;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --success-color: #10b981;
    --success-hover: #059669;
    --success-bg: #065f46;
    --success-text: #d1fae5;
    --error-color: #ef4444;
    --error-hover: #dc2626;
    --error-border: #ef4444;
    --error-text: #fecaca;
    --error-bg: #7f1d1d;
    --warning-color: #f59e0b;
    --warning-bg: #92400e;
    --info-color: #3b82f6;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --danger-bg: #7f1d1d;
    --danger-text: #fecaca;
    --primary-shadow: rgba(30, 64, 175, 0.2);
    --card-background: #1e293b;
    --card-bg: #1e293b;
    --input-background: #334155;
    --input-bg: #334155;
    --input-border: #475569;
    --hover-color: #334155;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
    --button-text-color: #ffffff;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
}

/* Back Button Styles - ULTRA OVERRIDE */
/* Back icons created by Freepik - Flaticon */
.back-button,
button.back-button,
.header .back-button,
.back-button:before,
.back-button:after {
    background: none !important;
    border: none !important;
    outline: none !important;
    color: var(--text-primary);
    font-size: 24px !important;
    font-weight: 300 !important;
    cursor: pointer;
    padding: 12px !important;
    margin: 0 15px 0 0;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    position: relative;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    border-style: none !important;
    border-width: 0 !important;
    box-sizing: border-box !important;
}

.back-button svg {
    width: 24px !important;
    height: 24px !important;
    color: var(--text-primary) !important;
    stroke: var(--text-primary) !important;
    fill: none !important;
}

.back-button:hover,
button.back-button:hover,
.header .back-button:hover {
    transform: translateX(-4px);
    opacity: 0.7;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.back-button:active,
button.back-button:active,
.header .back-button:active {
    transform: translateX(-2px);
    opacity: 0.5;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.back-button:focus,
button.back-button:focus,
.header .back-button:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
    background-color: transparent !important;
}

/* Override any general button styles */
button.back-button,
.header button.back-button {
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 12px !important;
    margin: 0 15px 0 0;
    width: 48px !important;
    height: 48px !important;
}

/* Override any potential conflicting styles */
.back-button *,
button.back-button * {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}



/* Theme Toggle Styles */
.theme-toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: auto;
}

.theme-toggle {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    box-shadow: 0 2px 8px var(--shadow-color);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background-color: var(--hover-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.theme-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* Floating theme toggle for login pages */
.theme-toggle-container.floating {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    margin-right: 0;
}

/* Burger Menu Styles */
.burger-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    justify-content: center;
    box-shadow: 0 2px 8px var(--shadow-color);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1001;
}

.burger-menu:hover {
    background-color: var(--hover-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.burger-menu:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.burger-line {
    width: 16px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
}

.burger-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-color);
    padding: 12px;
    min-width: 200px;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) translateX(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.burger-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(0);
}

.burger-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.burger-dropdown-item:hover {
    background-color: var(--hover-color);
    transform: translateX(4px);
}

.burger-dropdown-item .icon {
    font-size: 20px;
    min-width: 24px;
    text-align: center;
}

.burger-dropdown-item .label {
    flex: 1;
}

.burger-dropdown-item .status {
    font-size: 12px;
    opacity: 0.7;
    margin-left: auto;
}

.burger-menu-container {
    position: relative;
    display: block !important;
    width: auto;
    flex: 0 0 auto;
    z-index: 1100;
    margin-right: auto;
    margin-left: 0;
}

/* Show burger menu on all devices */
.theme-toggle-container {
    display: none !important;
}

.burger-menu-container {
    display: block !important;
}

.burger-menu {
    display: flex;
}

/* Prevent duplicate burger menus */
.burger-menu-container + .burger-menu-container {
    display: none !important;
}

/* Ensure only one burger menu per page */
.burger-menu-container:not(:first-of-type) {
    display: none !important;
}

/* Floating burger menu for login pages */
.burger-menu-container.floating {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

/* Smooth transitions for theme changes */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header Styles */
.header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo span {
    color: var(--secondary-color);
}

/* Navigation */
.nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Toggle Buttons */
.toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Cards */
.card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px var(--shadow-color);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--button-text-color);
}

.btn-primary:hover {
    background-color: #1e40af;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--text-secondary);
    color: var(--button-text-color);
}

.btn-secondary:hover {
    background-color: #475569;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-color);
    color: var(--button-text-color);
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--error-color);
    color: var(--button-text-color);
}

.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--background-color);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--background-color);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

/* Grid */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* Status badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-pending {
    background-color: var(--warning-color);
    color: var(--button-text-color);
}

.badge-confirmed {
    background-color: var(--info-color);
    color: var(--button-text-color);
}

.badge-preparing {
    background-color: var(--warning-color);
    color: var(--button-text-color);
}

.badge-ready {
    background-color: var(--success-color);
    color: var(--button-text-color);
}

.badge-delivered {
    background-color: var(--success-color);
    color: var(--button-text-color);
}

.badge-cancelled {
    background-color: var(--error-color);
    color: var(--button-text-color);
}

/* Loading spinner */
.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 1rem;
    }
}



/* RESET EVERYTHING */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE STYLES */
html {
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* LINKS */
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* BUTTONS - NUCLEAR */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--primary-color);
    color: white;
    min-height: 2.75rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--primary-color) !important;
    color: var(--button-text-color) !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
}

.btn-secondary {
    background-color: var(--secondary-color) !important;
    color: var(--button-text-color) !important;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover) !important;
}

.btn-success {
    background-color: var(--accent-green) !important;
    color: var(--button-text-color) !important;
}

.btn-danger {
    background-color: var(--accent-red) !important;
    color: var(--button-text-color) !important;
}

.btn-warning {
    background-color: var(--accent-yellow) !important;
    color: var(--button-text-color) !important;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 2.25rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    min-height: 3.25rem;
}

.btn-block {
    width: 100%;
}

/* FORMS */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* CARDS */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* STATUS MESSAGES */
.status {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    font-weight: 500;
}

.status-success {
    background-color: var(--accent-green);
    color: var(--button-text-color);
}

.status-warning {
    background-color: var(--accent-yellow);
    color: var(--button-text-color);
}

.status-error {
    background-color: var(--accent-red);
    color: var(--button-text-color);
}

.status-info {
    background-color: var(--accent-blue);
    color: var(--button-text-color);
}

/* LAYOUT */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col {
    flex: 1;
    padding: 0 0.5rem;
}

.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-5 { flex: 0 0 41.666667%; }
.col-6 { flex: 0 0 50%; }
.col-7 { flex: 0 0 58.333333%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-10 { flex: 0 0 83.333333%; }
.col-11 { flex: 0 0 91.666667%; }
.col-12 { flex: 0 0 100%; }

/* GRID */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-1 { grid-template-columns: repeat(1, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* HEADER */
.header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--logo-color);
    text-decoration: none;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-card);
}

.toggle-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn {
    background: none;
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 1rem;
}

.toggle-btn:hover {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

/* MAIN */
.main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* FOOTER */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
    color: var(--text-secondary);
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #8b5cf6 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* FEATURES SECTION */
.features-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* HOW IT WORKS SECTION */
.how-it-works-section {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background-color: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA SECTION */
.cta-section {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-blue) 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* UTILITIES */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }



/* RESPONSIVE */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* MERCHANTS PAGE SPECIFIC */
.search-section {
    background-color: var(--bg-secondary);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-primary);
}

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    padding-left: 3rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.125rem;
    z-index: 1;
}

.category-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.category-btn {
    background-color: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-btn:hover {
    background-color: var(--border-primary);
    border-color: var(--text-secondary);
}

.category-btn.active {
    background-color: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.results-count {
    color: var(--text-secondary);
    font-size: 1rem;
}

.sort-select {
    min-width: 150px;
}

.merchants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.merchant-card {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.merchant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.merchant-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.merchant-logo {
    width: 120px !important;
    height: 120px !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--card-background) 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 1.5rem !important;
    font-size: 2.5rem !important;
    color: var(--text-secondary) !important;
    border: 3px solid transparent !important;
    background-clip: padding-box !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

.merchant-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
}

.merchant-logo:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

.merchant-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    position: relative !important;
    z-index: 1 !important;
}

.merchant-info {
    flex: 1;
    min-width: 0;
}

.merchant-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.merchant-category {
    display: inline-block;
    background-color: var(--accent-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.merchant-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.merchant-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-primary);
    margin-top: 1rem;
}

.merchant-actions .btn {
    flex: 1;
    justify-content: center;
}

@media (max-width: 768px) {
    .merchants-grid {
        grid-template-columns: 1fr;
    }
    
    .category-filters {
        justify-content: center;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .merchant-header {
        flex-direction: column;
        text-align: center;
    }
    
    .merchant-logo {
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
        width: 120px !important;
        height: 120px !important;
        border-radius: 20px !important;
    }
    
    .merchant-actions {
        flex-direction: column;
    }
}

/* LOGIN PAGE SPECIFIC */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

.login-card {
    max-width: 400px;
    width: 100%;
    padding: 2.5rem;
}

.login-card h1 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.login-form {
    margin-bottom: 1.5rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .btn {
    margin-top: 1rem;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* DASHBOARD PAGE SPECIFIC */
.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.action-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.action-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.action-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* PRODUCTS PAGE SPECIFIC */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.merchant-name {
    color: var(--text-secondary);
    font-size: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.product-card {
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-blue);
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    padding: 0 1.5rem;
    margin: 1rem 0;
}

.product-images {
    margin: 1rem 1.5rem;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.product-options {
    margin: 1rem 1.5rem;
}

.option-group {
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-primary);
}

.option-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.value-tag {
    background-color: var(--accent-blue);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-primary);
    margin-top: 1rem;
}

.product-actions .btn {
    flex: 1;
    justify-content: center;
}

/* PROFILE PAGE SPECIFIC */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    padding: 0;
    overflow: hidden;
}

.profile-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
}

.profile-logo {
    width: 150px !important;
    height: 150px !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--card-background) 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 2.5rem !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

.profile-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
}

.profile-logo:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

.logo-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    position: relative !important;
    z-index: 1 !important;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-category {
    display: inline-block;
    background-color: var(--accent-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.profile-description,
.profile-contact {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-primary);
}

.profile-description h3,
.profile-contact h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.profile-description p,
.profile-contact p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.profile-actions {
    padding: 1.5rem 2rem;
    text-align: center;
}

/* FORM PAGES SPECIFIC */
.profile-form,
.product-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-primary);
}

.logo-upload {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.current-logo {
    width: 200px !important;
    height: 200px !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--card-background) 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

.current-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
}

.current-logo:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

.current-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    position: relative !important;
    z-index: 1 !important;
}

.no-logo {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.upload-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.file-input {
    display: none;
}

.image-upload {
    margin: 1rem 0;
}

.upload-area {
    border: 2px dashed var(--border-primary);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.upload-area:hover {
    border-color: var(--accent-blue);
}

.upload-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

.image-preview {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.preview-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid var(--border-primary);
}

.current-images {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.current-image {
    position: relative;
    width: 100px;
    height: 100px;
}

.current-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.options-container {
    margin-bottom: 1rem;
}

.option-group {
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-primary);
}

.option-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.option-name-input {
    flex: 1;
}

.option-values {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-value-input {
    margin-bottom: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* CART PAGE SPECIFIC */
.cart-container {
    max-width: 800px;
    margin: 0 auto;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-cart h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-cart p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-primary);
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.item-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.item-price {
    font-weight: 600;
    color: var(--accent-blue);
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity {
    min-width: 2rem;
    text-align: center;
    font-weight: 600;
}

.item-total {
    font-weight: 600;
    color: var(--accent-blue);
    min-width: 4rem;
    text-align: right;
}

.cart-summary {
    background-color: var(--bg-card);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border-primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.total-amount {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent-blue);
}

.cart-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* CHECKOUT PAGE SPECIFIC */
.checkout-form {
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.checkout-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.order-summary {
    background-color: var(--bg-card);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border-primary);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.order-summary h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.order-items {
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-primary);
}

.order-item:last-child {
    border-bottom: none;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.item-quantity {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.item-price {
    font-weight: 600;
    color: var(--accent-blue);
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.125rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-primary);
}

/* ORDER CONFIRMATION PAGE SPECIFIC */
.confirmation-container {
    max-width: 800px;
    margin: 0 auto;
}

.confirmation-card {
    padding: 0;
    overflow: hidden;
}

.confirmation-header {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.confirmation-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.confirmation-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.order-details,
.customer-details,
.order-items {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-primary);
}

.order-details h3,
.customer-details h3,
.order-items h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-primary);
}

.detail-row:last-child {
    border-bottom: none;
}

.confirmation-actions {
    padding: 2rem;
    text-align: center;
}

/* ORDERS PAGE SPECIFIC */
.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.order-filters {
    display: flex;
    gap: 1rem;
}

.orders-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card {
    padding: 0;
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
}

.order-id {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-blue);
}

.order-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending { background-color: #fbbf24; color: #92400e; }
.status-confirmed { background-color: #3b82f6; color: var(--button-text-color); }
.status-preparing { background-color: #f59e0b; color: var(--button-text-color); }

.status-delivered { background-color: #059669; color: var(--button-text-color); }
.status-cancelled { background-color: #ef4444; color: var(--button-text-color); }

.order-details {
    padding: 1.5rem;
}

.customer-info,
.order-items {
    margin-bottom: 1.5rem;
}

.customer-info h4,
.order-items h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.customer-info p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-primary);
}

.order-item:last-child {
    border-bottom: none;
}

.order-total {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--accent-blue);
    text-align: right;
    padding-top: 1rem;
    border-top: 1px solid var(--border-primary);
}

.order-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-primary);
}

/* PRODUCT SELECTION PAGE SPECIFIC */
.product-selection-container {
    max-width: 800px;
    margin: 0 auto;
}

.product-selection-card {
    padding: 0;
    overflow: hidden;
}

.product-selection-card .product-header {
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
}

.product-selection-card .product-image {
    width: 150px;
    height: 150px;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
}

.product-selection-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-selection-card .product-info {
    flex: 1;
    margin-left: 1.5rem;
}

.product-selection-card .product-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-selection-card .product-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.product-selection-card .product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.product-options {
    padding: 2rem;
    border-bottom: 1px solid var(--border-primary);
}

.product-options h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.option-values {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.option-value:hover {
    background-color: var(--bg-secondary);
}

.option-value input[type="radio"] {
    margin: 0;
}

.option-text {
    font-size: 0.875rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    border-bottom: 1px solid var(--border-primary);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-display {
    min-width: 3rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.125rem;
}

.selection-actions {
    display: flex;
    gap: 1rem;
    padding: 2rem;
}

.selection-actions .btn {
    flex: 1;
    justify-content: center;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
    
    .product-selection-card .product-header {
        flex-direction: column;
        text-align: center;
    }
    
    .product-selection-card .product-info {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .selection-actions {
        flex-direction: column;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .item-quantity {
        justify-content: center;
    }
    
    .order-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .upload-controls {
        flex-direction: column;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Sleeker Buttons */
.btn, .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning {
    border: none;
    border-radius: 1.5rem;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
    cursor: pointer;
    outline: none;
    min-height: 2.75rem;
    letter-spacing: 0.01em;
    display: inline-block;
}
.btn:hover, .btn-primary:hover, .btn-secondary:hover, .btn-success:hover, .btn-danger:hover, .btn-warning:hover {
    box-shadow: 0 4px 16px var(--shadow-color);
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.08);
}
.btn:active, .btn-primary:active, .btn-secondary:active, .btn-success:active, .btn-danger:active, .btn-warning:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px var(--shadow-color);
}

/* Sleeker Theme Toggle */
.theme-toggle {
    background: linear-gradient(135deg, var(--surface-color) 60%, var(--primary-color) 100%);
    border: none;
    color: var(--text-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 1.35rem;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(.4,2,.6,1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    box-shadow: 0 2px 8px var(--shadow-color);
    backdrop-filter: blur(10px);
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    border: 2px solid var(--primary-color);
}
.theme-toggle:hover {
    background: linear-gradient(135deg, var(--primary-color) 60%, var(--surface-color) 100%);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 16px var(--shadow-color);
    transform: scale(1.07);
}
.theme-toggle:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px var(--shadow-color);
}
.theme-toggle svg {
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
}
/* Make toggle fit header better */
.theme-toggle-container {
    display: none !important;
    margin-right: auto;
    margin-left: 0.5rem;
    gap: 0.5rem;
}

/* Hide number input arrows for all browsers, with !important */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
input[type=number] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* Test Page Specific Styles */
.test-controls button {
    background: var(--primary-color);
    color: var(--button-text-color);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.test-controls button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.test-controls button:active {
    transform: translateY(0);
}

.theme-toggle-btn, .lang-toggle-btn {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.theme-toggle-btn:hover, .lang-toggle-btn:hover {
    background-color: var(--hover-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.theme-toggle-btn:active, .lang-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* Language toggle specific */
.lang-toggle-btn::before {
    content: '🌐';
}

/* Theme toggle specific */
.theme-toggle-btn::before {
    content: '🌙';
}

.light-mode .theme-toggle-btn::before {
    content: '☀️';
}

/* Cache buster: 20250717105306 */

/* AGGRESSIVE LOGO OVERRIDES - MUST BE LAST */
.merchant-logo,
.merchant-logo *,
.merchant-logo::before,
.merchant-logo::after {
    width: 120px !important;
    height: 120px !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--card-background) 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    margin-right: 1.5rem !important;
    flex-shrink: 0 !important;
}

.merchant-logo::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 20px !important;
    padding: 4px !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    mask-composite: exclude !important;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    -webkit-mask-composite: xor !important;
}

.merchant-logo:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

.merchant-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    position: relative !important;
    z-index: 1 !important;
}

.profile-logo,
.profile-logo *,
.profile-logo::before,
.profile-logo::after {
    width: 150px !important;
    height: 150px !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--card-background) 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    margin-right: 2.5rem !important;
    flex-shrink: 0 !important;
}

.profile-logo::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 20px !important;
    padding: 4px !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    mask-composite: exclude !important;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    -webkit-mask-composite: xor !important;
}

.profile-logo:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

.logo-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    position: relative !important;
    z-index: 1 !important;
}

.current-logo,
.current-logo *,
.current-logo::before,
.current-logo::after {
    width: 200px !important;
    height: 200px !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--card-background) 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    margin: 0 auto !important;
}

.current-logo::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 20px !important;
    padding: 4px !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    mask-composite: exclude !important;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    -webkit-mask-composite: xor !important;
}

.current-logo:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

.current-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    position: relative !important;
    z-index: 1 !important;
}

/* MOBILE OVERRIDES */
@media (max-width: 768px) {
    .merchant-logo,
    .merchant-logo *,
    .merchant-logo::before,
    .merchant-logo::after {
        width: 120px !important;
        height: 120px !important;
        border-radius: 20px !important;
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .profile-logo,
    .profile-logo *,
    .profile-logo::before,
    .profile-logo::after {
        width: 150px !important;
        height: 150px !important;
        border-radius: 20px !important;
    }
    
    .current-logo,
    .current-logo *,
    .current-logo::before,
    .current-logo::after {
        width: 200px !important;
        height: 200px !important;
        border-radius: 20px !important;
    }
}



/* Final cache buster: 202507171111113 */

/* Message Styles */
.success-message {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-message::before {
    content: "✓";
    font-weight: bold;
    font-size: 16px;
}

.error-message {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message::before {
    content: "✗";
    font-weight: bold;
    font-size: 16px;
}

/* Loading state for forms */
.form-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.form-card.loading button[type="submit"] {
    background-color: var(--text-secondary);
    cursor: not-allowed;
}

/* Cache buster: 2024-12-30 - Added message styles and form loading states */



