* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    
    --primary: #667eea;
    --primary-dark: #5568d3;
    --primary-light: #8b9bef;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    min-height: 100vh;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    z-index: 9999;
}

[data-theme="dark"] .theme-toggle {
    box-shadow: 0 20px 25px -5px rgba(255, 255, 255, 0.15),
                0 10px 10px -5px rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 25px 35px -5px rgb(0 0 0 / 0.3);
}

[data-theme="dark"] .theme-toggle:hover {
    box-shadow: 0 25px 35px -5px rgba(139, 92, 246, 0.5),
                0 15px 20px -5px rgba(139, 92, 246, 0.3);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Navbar - Modern Flat Design */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.nav-brand a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.nav-brand a i {
    color: var(--primary);
    font-size: 28px;
}

.nav-brand a:hover {
    color: var(--primary);
}

.nav-search {
    flex: 1;
    max-width: 500px;
}

.nav-search form {
    display: flex;
    gap: 8px;
}

.nav-search input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
}

.nav-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.nav-search button {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.nav-search button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .nav-search button:hover {
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.4),
                0 4px 6px -2px rgba(139, 92, 246, 0.3);
}

.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
}

.nav-menu a:hover, .nav-menu a.active {
    background: var(--bg-secondary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Alert - Modern Design */
.alert {
    padding: 16px 24px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 600;
    border-radius: var(--radius-md);
    animation: slideDown 0.5s ease;
    border-left: 4px solid;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-color: var(--warning);
}

/* Hero Section - Modern Gradient */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 16px;
    color: white;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    position: relative;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: white;
    font-weight: 600;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.hero-features .feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.hero-features .feature i {
    font-size: 24px;
}

/* Check Order Box */
.check-order-box {
    max-width: 500px;
    margin: 30px auto 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.check-order-box h3 {
    color: white;
    margin-bottom: 16px;
    font-size: 18px;
}

.check-order-box form {
    display: flex;
    gap: 10px;
}

.check-order-box input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.check-order-box button {
    padding: 12px 28px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.check-order-box button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.check-order-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Categories - Modern Grid */
.categories {
    padding: 50px 0;
    background: var(--bg-primary);
}

.categories h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: var(--text-primary);
    font-weight: 800;
    position: relative;
    padding-bottom: 16px;
}

.categories h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.category-card {
    width: 160px;
    flex-shrink: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
}

[data-theme="dark"] .category-card {
    box-shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.1),
                0 2px 4px -1px rgba(255, 255, 255, 0.05),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(102, 126, 234, 0.2),
                0 10px 10px -5px rgba(102, 126, 234, 0.15),
                0 0 0 1px rgba(102, 126, 234, 0.1);
    border-color: var(--primary);
}

[data-theme="dark"] .category-card:hover {
    box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.4),
                0 10px 10px -5px rgba(139, 92, 246, 0.3),
                0 0 0 1px var(--primary),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.category-card.active {
    border-color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(102, 126, 234, 0.3),
                0 4px 6px -2px rgba(102, 126, 234, 0.2),
                0 0 0 2px rgba(102, 126, 234, 0.1);
    background: var(--bg-secondary);
}

.category-image {
    height: 120px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-name {
    padding: 16px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    color: var(--text-primary);
    background: var(--bg-primary);
}

/* Products Section - Modern Cards */
.products {
    padding: 50px 0;
    background: var(--bg-secondary);
}

.products h2 {
    margin-bottom: 35px;
    font-size: 32px;
    color: var(--text-primary);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    padding-bottom: 16px;
}

.products h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.products h2 i {
    color: var(--primary);
    font-size: 28px;
}

.category-desc {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 16px;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.product-card {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06),
                0 1px 0 0 rgba(255, 255, 255, 0.05) inset;
    position: relative;
}

[data-theme="dark"] .product-card {
    box-shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.1),
                0 2px 4px -1px rgba(255, 255, 255, 0.05),
                0 1px 0 0 rgba(255, 255, 255, 0.08) inset;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(102, 126, 234, 0.25),
                0 12px 20px -8px rgba(102, 126, 234, 0.2),
                0 0 0 1px rgba(102, 126, 234, 0.1);
    border-color: var(--primary);
}

[data-theme="dark"] .product-card:hover {
    box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.5),
                0 12px 20px -8px rgba(139, 92, 246, 0.4),
                0 0 0 1px var(--primary),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.badge-discount, .badge-popular {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3),
                0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

[data-theme="dark"] .badge-discount,
[data-theme="dark"] .badge-popular {
    box-shadow: 0 4px 12px rgba(255,255,255,0.2),
                0 2px 4px rgba(255,255,255,0.1);
}

.badge-discount {
    background: var(--danger);
}

.badge-popular {
    background: var(--warning);
    top: 48px;
}

.product-info {
    padding: 20px;
    background: var(--bg-primary);
}

.product-category {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--radius-sm);
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
    min-height: 44px;
    font-weight: 700;
    line-height: 1.4;
}

.product-price {
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-original {
    text-decoration: line-through;
    color: var(--text-tertiary);
    font-size: 13px;
}

.price-discount, .price-normal {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.stock-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin: 12px 0;
}

.stock-info.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    font-size: 14px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
}

[data-theme="dark"] .btn {
    box-shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.1),
                0 2px 4px -1px rgba(255, 255, 255, 0.05);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2),
                0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .btn:hover {
    box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.15),
                0 4px 6px -2px rgba(255, 255, 255, 0.1);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .btn:active {
    box-shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.1),
                0 2px 4px -1px rgba(255, 255, 255, 0.05);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.3),
                0 2px 4px -1px rgba(102, 126, 234, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 15px -3px rgba(102, 126, 234, 0.4),
                0 4px 6px -2px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 30px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 80px;
    margin-bottom: 24px;
    color: var(--text-tertiary);
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: 24px;
    font-size: 16px;
    color: var(--text-secondary);
}

/* Check Order Page */
.check-order-page {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.check-order-page .page-header {
    text-align: center;
    margin-bottom: 40px;
}

.check-order-page .page-header h1 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.check-order-page .page-header p {
    color: var(--text-secondary);
}

.glass-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

[data-theme="dark"] .glass-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-order-form label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.search-order-form input {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    width: 100%;
    transition: var(--transition);
}

.search-order-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

[data-theme="dark"] .search-order-form input {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

[data-theme="dark"] .search-order-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: 50px 0 25px;
    margin-top: 80px;
    border-top: 2px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-section i {
    color: var(--primary);
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* Auth Pages - Modern Glass */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 45px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    max-width: 480px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h1 {
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    font-weight: 800;
}

.auth-header h2 {
    font-size: 22px;
    color: var(--gray);
    font-weight: 600;
}

.auth-form .form-group {
    margin-bottom: 22px;
}

.auth-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--dark);
    font-size: 14px;
}

.auth-form input, .auth-form select, .auth-form textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: rgba(248, 250, 252, 0.8);
}

.auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
}

.auth-footer p {
    margin: 12px 0;
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

/* Checkout Section - Modern */
.checkout-section {
    padding: 50px 0;
    min-height: calc(100vh - 60px);
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
}

.checkout-card {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .checkout-card {
    box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.1),
                0 4px 6px -2px rgba(255, 255, 255, 0.05),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

.checkout-card h2, .checkout-card h3 {
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 800;
}

.product-detail {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
}

.product-detail img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.product-detail h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-detail .category {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1),
                0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3),
                0 1px 2px 0 rgba(255, 255, 255, 0.1);
}

.required {
    color: var(--danger);
}

.payment-methods {
    display: grid;
    gap: 15px;
    margin-bottom: 35px;
}

.payment-method {
    display: block;
    padding: 20px 24px;
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.7) 0%, rgba(255, 255, 255, 0.5) 100%);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.payment-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.payment-method:hover::before {
    left: 100%;
}

.payment-method:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(102, 126, 234, 0.03) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.payment-method:has(input:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary) 0%, rgba(102, 126, 234, 0.9) 100%);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.3);
    transform: translateY(-4px);
}

.payment-method:has(input:checked) .method-name {
    color: white;
}

.payment-method:has(input:checked) .method-fee {
    color: rgba(255, 255, 255, 0.85);
}

.payment-method input[type="radio"] {
    margin-right: 15px;
    cursor: pointer;
    accent-color: var(--primary);
}

.method-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.method-name {
    font-weight: 700;
    font-size: 16px;
    transition: color 0.35s ease;
}

.method-fee {
    font-size: 13px;
    color: var(--gray);
    font-weight: 600;
    transition: color 0.35s ease;
}

.price-detail {
    margin-top: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.price-total {
    font-size: 24px;
    font-weight: 800;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: none;
    margin-top: 15px;
}

.info-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 15px;
    margin-top: 25px;
    border-left: 4px solid var(--info);
}

.info-box i {
    color: var(--info);
    font-size: 22px;
}

.info-box ul {
    margin-left: 20px;
    margin-top: 8px;
}

/* Transaction Detail - Modern */
.transaction-detail-section {
    padding: 50px 0;
    min-height: calc(100vh - 60px);
}

.transaction-detail-card {
    max-width: 850px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-header {
    padding: 50px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.status-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.status-header i {
    font-size: 70px;
    margin-bottom: 20px;
    position: relative;
}

.status-header h2 {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 800;
    position: relative;
}

.status-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.status-processing {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.status-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.status-failed {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.status-cancelled {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.transaction-info {
    padding: 45px;
}

.transaction-info h3 {
    margin: 35px 0 20px;
    color: var(--dark);
    font-weight: 800;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.info-table td {
    padding: 18px 0;
}

.info-table td:first-child {
    width: 40%;
    color: var(--gray);
    font-weight: 600;
}

.info-table td:last-child {
    font-weight: 700;
}

.badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
}

.notes-box {
    background: rgba(102, 126, 234, 0.05);
    padding: 25px;
    border-radius: 15px;
    margin-top: 25px;
    border-left: 4px solid var(--primary-color);
}

.transaction-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 35px 45px;
    background: rgba(248, 250, 252, 0.8);
}

/* Transactions List */
.transactions-section {
    padding: 50px 0;
    min-height: calc(100vh - 60px);
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 12px;
    font-weight: 800;
    text-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.page-header p {
    opacity: 0.9;
    font-size: 17px;
}

.transactions-list {
    max-width: 1000px;
    margin: 0 auto;
}

.transaction-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.transaction-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    padding: 18px 30px;
    background: rgba(102, 126, 234, 0.05);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.transaction-code, .transaction-date {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
}

.transaction-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 25px;
    padding: 30px;
    align-items: center;
}

.transaction-product {
    display: flex;
    gap: 18px;
    align-items: center;
}

.transaction-product img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.transaction-product h3 {
    font-size: 17px;
    margin-bottom: 6px;
    font-weight: 700;
}

.transaction-price {
    font-size: 20px;
    font-weight: 800;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Admin Styles - Modern Dark */
.admin-body {
    background: #0f172a;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: rgba(30, 27, 75, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header {
    padding: 30px 25px;
    background: rgba(102, 126, 234, 0.1);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header i {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.sidebar-header h2 {
    font-weight: 800;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 25px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-weight: 600;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(102, 126, 234, 0.15);
    color: white;
    border-left-color: var(--primary-color);
}

.sidebar-nav a.logout {
    color: #ef4444;
    margin-top: 25px;
}

.admin-main {
    margin-left: 280px;
    flex: 1;
    padding: 35px;
    background: #0f172a;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.admin-header h1 {
    font-size: 36px;
    color: white;
    font-weight: 800;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.7);
}

.admin-user i {
    font-size: 36px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 35px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.stat-info h3 {
    font-size: 32px;
    margin-bottom: 6px;
    color: white;
    font-weight: 800;
}

.stat-info p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 600;
}

.admin-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    margin-bottom: 35px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.card-header h2 {
    font-size: 22px;
    color: white;
    font-weight: 800;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.admin-table th {
    padding: 18px;
    text-align: left;
    font-weight: 700;
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255,255,255,0.9);
}

.admin-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

.filter-form {
    padding: 25px;
}

.form-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.admin-form {
    padding: 30px;
}

.admin-form .form-group input,
.admin-form .form-group select,
.admin-form .form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-form .form-group label {
    color: white;
}

/* Admin Modal Overrides: ensure inputs are visible on white modal */
.modal-content .admin-form .form-group label {
    color: var(--dark);
}

.modal-content .admin-form .form-group input,
.modal-content .admin-form .form-group select,
.modal-content .admin-form .form-group textarea {
    background: rgba(248, 250, 252, 0.9);
    border: 2px solid rgba(102, 126, 234, 0.2);
    color: var(--dark);
}

.modal-content .admin-form .form-group input:focus,
.modal-content .admin-form .form-group select:focus,
.modal-content .admin-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.field-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}

.field-row input, .field-row select {
    flex: 1;
}

/* Modal - Modern */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 60px auto;
    padding: 40px;
    border-radius: 25px;
    max-width: 650px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-large {
    max-width: 950px;
}

.modal-close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 36px;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--dark);
    transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
    
    .nav-search {
        width: 100%;
        max-width: none;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .checkout-sidebar {
        order: -1;
    }
    
    .transaction-content {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        width: 75px;
    }
    
    .admin-sidebar .sidebar-header h2,
    .admin-sidebar .sidebar-nav a span {
        display: none;
    }
    
    .admin-main {
        margin-left: 75px;
    }
    
    .form-row {
        flex-direction: column;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Payment Gateway Page - Dark Mode Support */
.payment-gateway-section {
    padding: 50px 0;
    min-height: calc(100vh - 60px);
}

.payment-gateway-section h2,
.payment-gateway-section h3 {
    color: var(--text-primary);
}

.payment-gateway-section p {
    color: var(--text-secondary);
}

#paymentContainer {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.7) 0%, rgba(102, 126, 234, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.1);
    animation: slideInUp 0.5s ease-out;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#paymentContainer:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#qrCodeContainer {
    background: white;
    padding: 25px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
}

#qrCodeContainer:hover {
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.25);
}

#qrCodeDisplay {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 10px;
    animation: fadeInScale 0.5s ease-out;
}

#tokenContainer {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#tokenContainer:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive QR Container */
@media (max-width: 768px) {
    #tokenContainer {
        padding: 15px;
    }
    
    #qrCodeDisplay {
        padding: 15px;
    }
    
    #qrCodeContainer {
        padding: 20px;
    }
}

#statusMessage {
    color: var(--text-primary);
    font-weight: 600;
}

#loadingSpinner {
    color: var(--text-secondary);
}

/* Product Detail Page - Dark Mode Support */
.product-detail-section {
    padding: 50px 0;
    background: var(--bg-secondary);
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.product-main-image {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-details h1 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 800;
}

.product-category-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.price-section {
    margin: 24px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stock-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 12px;
}

.product-description {
    margin: 24px 0;
    line-height: 1.8;
    color: var(--text-secondary);
}

.product-description h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Profile Page - Dark Mode Support */
.profile-section {
    padding: 50px 0;
    min-height: calc(100vh - 60px);
}

.profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 40px;
    border-radius: var(--radius-xl);
    text-align: center;
    color: white;
    margin-bottom: 30px;
    box-shadow: var(--shadow-xl);
}

.profile-header i {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.profile-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: 800;
}

.profile-header p {
    opacity: 0.9;
    font-size: 16px;
}

.profile-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    background: var(--bg-primary);
    padding: 8px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.profile-tab {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.profile-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.profile-tab:hover:not(.active) {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.profile-content {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.profile-content h2 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 35%;
    font-weight: 600;
    color: var(--text-secondary);
}

.info-value {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

/* Check Order Page - Dark Mode Support */
.check-order-section {
    padding: 50px 0;
    min-height: calc(100vh - 60px);
}

.search-result {
    max-width: 900px;
    margin: 40px auto;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.order-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.order-header h2 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.order-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 14px;
}

.order-body {
    padding: 30px;
}

.order-body h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.order-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.order-item img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.order-item-info {
    flex: 1;
}

.order-item-info h4 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.order-item-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
}

.order-summary {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
    border-bottom: none;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    padding-top: 16px;
}

.summary-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.summary-value {
    color: var(--text-primary);
    font-weight: 700;
}

/* Auth Pages - Enhanced Dark Mode Support */
[data-theme="dark"] .auth-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .auth-header h1 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .auth-header h2 {
    color: var(--text-secondary);
}

[data-theme="dark"] .auth-form label {
    color: var(--text-primary);
}

[data-theme="dark"] .auth-form input,
[data-theme="dark"] .auth-form select,
[data-theme="dark"] .auth-form textarea {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .auth-form input:focus,
[data-theme="dark"] .auth-form select:focus,
[data-theme="dark"] .auth-form textarea:focus {
    background: var(--bg-primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

[data-theme="dark"] .auth-footer p {
    color: var(--text-secondary);
}

[data-theme="dark"] .auth-footer a {
    color: var(--primary);
}

/* Admin Dark Mode Enhancements */
[data-theme="dark"] .admin-body {
    background: var(--bg-primary);
}

[data-theme="dark"] .admin-sidebar {
    background: var(--bg-secondary);
}

[data-theme="dark"] .admin-main {
    background: var(--bg-primary);
}

/* Transaction Cards - Enhanced */
[data-theme="dark"] .transaction-detail-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .transaction-info {
    background: var(--bg-primary);
}

[data-theme="dark"] .transaction-info h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .info-table td {
    color: var(--text-primary);
}

[data-theme="dark"] .info-table td:first-child {
    color: var(--text-secondary);
}

[data-theme="dark"] .transaction-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .transaction-item:hover {
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
}

[data-theme="dark"] .transaction-header {
    background: var(--bg-secondary);
}

[data-theme="dark"] .transaction-code,
[data-theme="dark"] .transaction-date {
    color: var(--text-secondary);
}

[data-theme="dark"] .transaction-product h3 {
    color: var(--text-primary);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .product-showcase {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .profile-header {
        padding: 30px 20px;
    }
    
    .profile-header i {
        font-size: 60px;
    }
    
    .profile-header h1 {
        font-size: 24px;
    }
    
    .profile-tabs {
        flex-direction: column;
    }
    
    .profile-content {
        padding: 20px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-label {
        width: 100%;
        font-size: 14px;
    }
    
    .order-item {
        flex-direction: column;
    }
    
    .order-item img {
        width: 100%;
        height: 200px;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
/* Modal Checkout */
.checkout-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(4px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-primary);
    margin: auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-checkout {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.modal-header {
    padding: 25px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    padding: 5px;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-body {
    padding: 25px;
}

.checkout-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.summary-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.summary-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}

.summary-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 15px;
}

.summary-item.summary-total {
    background: linear-gradient(135deg, var(--primary) 0%, #5568d3 100%);
    color: white;
    padding: 16px 15px;
    border-radius: 12px;
    margin-top: 10px;
}

.summary-item.summary-total .summary-label {
    color: rgba(255, 255, 255, 0.9);
}

.summary-item.summary-total .summary-value {
    color: white;
    font-size: 18px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-footer .btn {
    min-width: 120px;
}

.modal-info {
    border-radius: 10px;
}

/* Dark mode modal */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background: #1e293b;
    }

    .modal-header {
        border-bottom-color: #334155;
    }

    .modal-footer {
        border-top-color: #334155;
    }

    .checkout-summary .summary-item {
        background: #334155;
    }

    .checkout-summary .summary-item:hover {
        background: rgba(102, 126, 234, 0.2);
    }
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 100%;
        top: 50% !important;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 15px 20px;
        flex-direction: column-reverse;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* Payment Section */
.payment-section {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.7) 0%, rgba(102, 126, 234, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
}

.payment-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.1);
}

#qrCodeContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    background: white;
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

#qrCodeContainer:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

#qrCodeDisplay {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInScale 0.5s ease-out;
}

@media (max-width: 768px) {
    .payment-section {
        padding: 20px;
    }

    .payment-card {
        padding: 20px;
    }

    #qrCodeContainer {
        padding: 20px;
    }
}