/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --accent: #7c3aed;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --transition: 0.2s ease;

    /* Semantic theme variables */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-hover: #f9fafb;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --nav-bg: rgba(255,255,255,0.85);
    --overlay-bg: rgba(0,0,0,0.5);
    --success-bg: #f0fdf4;
    --success-border: #bbf7d0;
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
    --primary-light: rgba(37,99,235,0.15);

    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-input: #0f172a;
    --bg-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-muted: #475569;
    --border-color: #334155;
    --border-light: #1e293b;
    --nav-bg: rgba(15,23,42,0.85);
    --overlay-bg: rgba(0,0,0,0.7);
    --success-bg: rgba(34,197,94,0.1);
    --success-border: rgba(34,197,94,0.2);

    --gray-50: #1e293b;
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-300: #64748b;
    --gray-400: #94a3b8;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --gray-900: #f8fafc;

    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.4), 0 4px 6px rgba(0,0,0,0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg-secondary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, color 0.3s ease;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    gap: 6px;
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

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

.btn-outline { background: var(--bg-card); color: var(--gray-700); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s ease;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 60px;
    gap: 24px;
}
.nav-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}
.brand-icon { color: var(--primary); font-size: 22px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}
.nav-link {
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }
.nav-user { color: var(--gray-500); font-size: 14px; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ===== MAIN CONTENT ===== */
.main-content { flex: 1; padding: 32px 0; }

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 40px 0 32px;
}
.hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 48px 0 32px;
    text-align: center;
}
.how-it-works h2 {
    font-size: 24px;
    margin-bottom: 32px;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}
.step-card {
    text-align: center;
    padding: 24px 16px;
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.step-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.step-card p {
    font-size: 14px;
    color: var(--gray-500);
}

/* ===== MATERIALS SHOWCASE ===== */
.materials-section {
    padding: 48px 0;
}
.materials-section h2 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 32px;
}
.materials-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.material-showcase-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: transform 0.2s, box-shadow 0.2s;
}
.material-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.material-color {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 16px;
}
.material-showcase-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.material-showcase-card p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ===== USPS SECTION ===== */
.usps-section {
    padding: 48px 0;
}
.usps-section h2 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 32px;
}
.usps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.usp-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}
.usp-icon {
    font-size: 32px;
    margin-bottom: 12px;
}
.usp-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}
.usp-card p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ===== SHIPPING HINT ===== */
.shipping-hint {
    font-size: 12px;
    color: var(--gray-500);
    text-align: right;
    margin-top: 2px;
    margin-bottom: 4px;
}
.shipping-row {
    border-top: 1px dashed var(--gray-200);
    padding-top: 8px;
    margin-top: 4px;
}

/* ===== UPLOAD ===== */
.upload-section { margin-bottom: 32px; }
.upload-section h2 { font-size: 22px; margin-bottom: 16px; }

.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-card);
}
.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
}
.upload-icon { color: var(--gray-400); margin-bottom: 12px; }
.upload-text { font-size: 18px; font-weight: 500; color: var(--gray-700); }
.upload-subtext { font-size: 14px; color: var(--gray-400); margin-top: 4px; }

.upload-progress { margin-top: 16px; }
.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 50%;
    border-radius: 4px;
    transition: width 0.3s ease;
}
.progress-text { font-size: 14px; color: var(--gray-500); margin-top: 8px; text-align: center; }

/* ===== 3D PREVIEW ===== */
.preview-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-tertiary);
}
.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.preview-header h3 { font-size: 16px; color: var(--gray-700); }

.model-info { margin-top: 16px; }
.info-grid { display: flex; gap: 24px; flex-wrap: wrap; }
.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.info-label { font-size: 12px; color: var(--gray-500); text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em; }
.info-value { font-size: 16px; font-weight: 600; color: var(--gray-800); }

/* ===== CONFIGURATOR ===== */
.configurator {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-top: 24px;
}
.configurator h2 { font-size: 22px; margin-bottom: 24px; }

.config-section { margin-bottom: 28px; }
.config-section h3 { font-size: 15px; font-weight: 600; color: var(--gray-700); margin-bottom: 12px; }

.material-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.material-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    background: var(--bg-card);
}
.material-card:hover { border-color: var(--primary); }
.material-card.active { border-color: var(--primary); background: var(--primary-light); }
.material-icon { font-size: 24px; }
.material-card strong { font-size: 14px; color: var(--gray-800); }
.material-card small { font-size: 12px; color: var(--gray-500); }

.quality-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.quality-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-card);
}
.quality-option:hover { border-color: var(--primary); }
.quality-option.active { border-color: var(--primary); background: var(--primary-light); }
.quality-option input { display: none; }
.quality-label { display: flex; flex-direction: column; }
.quality-label strong { font-size: 14px; }
.quality-label small { font-size: 12px; color: var(--gray-500); }

/* Slider */
.slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--gray-200);
    border-radius: 3px;
    outline: none;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid var(--bg-primary);
    box-shadow: var(--shadow);
}
.slider-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray-400); margin-top: 6px; }

/* Config row */
.config-row { display: flex; gap: 24px; }
.config-half { flex: 1; }

.color-picker-wrap { display: flex; align-items: center; gap: 12px; }
.color-picker-wrap input[type="color"] {
    width: 48px;
    height: 48px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 2px;
}
#colorHex { font-family: monospace; font-size: 14px; color: var(--gray-600); }

.quantity-control {
    display: flex;
    align-items: center;
    gap: 16px;
}
.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--bg-card);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
#qtyValue { font-size: 20px; font-weight: 600; min-width: 24px; text-align: center; }

textarea {
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color var(--transition);
}
textarea:focus { outline: none; border-color: var(--primary); }

/* Price display */
.price-display {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.price-breakdown { display: flex; flex-direction: column; gap: 8px; }
.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--gray-600);
}
.price-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    border-top: 2px solid var(--gray-200);
    padding-top: 12px;
    margin-top: 8px;
}
.total-value { color: var(--primary); }
.price-loading, .price-error { text-align: center; color: var(--gray-500); font-size: 14px; }
.price-error { color: var(--danger); }

/* ===== AUTH ===== */
.auth-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--border-color);
}
.auth-card-wide {
    max-width: 520px;
}
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}
.auth-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}
.auth-header h2 {
    font-size: 24px;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}
.auth-card h2 { font-size: 24px; margin-bottom: 24px; text-align: center; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-divider {
    text-align: center;
    margin: 20px 0 4px;
    position: relative;
}
.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid var(--border-color);
}
.auth-divider span {
    background: var(--bg-card);
    padding: 0 12px;
    position: relative;
    color: var(--text-muted);
    font-size: 13px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea {
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--bg-input);
    color: var(--text-primary);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group input.has-error, .form-group select.has-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.field-error {
    font-size: 13px;
    color: var(--danger);
    min-height: 0;
}
.form-error { color: var(--danger); font-size: 14px; min-height: 20px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.auth-switch { text-align: center; font-size: 14px; color: var(--gray-500); margin-top: 16px; }

/* Registration Steps */
.reg-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}
.reg-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.reg-step.active {
    color: var(--primary);
}
.reg-step.done {
    color: var(--success);
}
.reg-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    transition: all 0.2s;
}
.reg-step.active .reg-step-num {
    background: var(--primary);
    color: #fff;
}
.reg-step.done .reg-step-num {
    background: var(--success);
    color: #fff;
}
.reg-step-line {
    width: 40px;
    height: 2px;
    background: var(--border-color);
    margin: 0 12px;
}
.reg-step2-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}
.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}
.strength-label {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .auth-card { padding: 24px 20px; }
    .auth-card-wide { max-width: 100%; }
    .form-row { grid-template-columns: 1fr; }
    .reg-step span { display: none; }
}

/* ===== ORDERS ===== */
.orders-section h2 { font-size: 22px; margin-bottom: 20px; }
.orders-list { display: flex; flex-direction: column; gap: 16px; }

.order-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all var(--transition);
}
.order-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.order-number { font-weight: 700; font-size: 16px; color: var(--gray-900); }
.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.order-status.large { font-size: 14px; padding: 6px 16px; }
.order-info {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 10px;
}
.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.order-date { font-size: 13px; color: var(--gray-400); }
.order-price { font-size: 18px; font-weight: 700; color: var(--primary); }

/* Status Timeline */
.status-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 8px;
}
.status-timeline::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--gray-200);
}
.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    flex: 1;
}
.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    border: 2px solid var(--bg-primary);
    transition: all 0.3s;
}
.timeline-step.done .timeline-dot { background: var(--success); }
.timeline-step.active .timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    animation: pulse 2s infinite;
}
.timeline-label { font-size: 10px; color: var(--gray-400); text-align: center; white-space: nowrap; }
.timeline-step.done .timeline-label { color: var(--success); }
.timeline-step.active .timeline-label { color: var(--primary); font-weight: 600; }
.timeline-cancelled { text-align: center; color: var(--danger); font-weight: 600; padding: 8px; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--primary-light); }
    50% { box-shadow: 0 0 0 8px rgba(37,99,235,0.1); }
}

/* Order Detail */
.order-detail { max-width: 900px; margin: 0 auto; }
.order-detail h2 { font-size: 24px; margin: 16px 0 24px; }
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.detail-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.detail-card.full-width { grid-column: 1 / -1; }
.detail-card h3 { font-size: 15px; color: var(--gray-500); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.detail-list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.detail-list div { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.color-swatch { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: middle; border: 1px solid var(--gray-300); }
.price-large { font-size: 22px; font-weight: 700; color: var(--primary); }

/* Success Page */
.success-page { text-align: center; padding: 60px 20px; }
.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
}
.success-page h2 { font-size: 28px; margin-bottom: 12px; }
.success-page p { color: var(--gray-500); margin-bottom: 24px; }

/* Empty State */
.empty-state { text-align: center; padding: 48px 20px; color: var(--gray-500); }
.empty-state .btn { margin-top: 16px; }

/* Loading */
.loading { text-align: center; padding: 48px; color: var(--gray-400); font-size: 14px; }

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px;
    margin-top: auto;
    color: var(--text-secondary);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-section p,
.footer-section a {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 2;
    display: block;
}
.footer-section a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== ADMIN ===== */
.admin-body { background: var(--bg-secondary); }
[data-theme="dark"] .admin-body { background: #0f172a; }
[data-theme="dark"] .admin-nav { background: #020617; }

.admin-nav {
    background: var(--gray-900);
    color: #fff;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 24px;
    gap: 32px;
}
.admin-nav .nav-brand a { color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; }
.admin-nav .nav-links { display: flex; gap: 2px; align-items: center; margin-left: 0; flex: 1; }
.admin-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
}
.admin-nav-link {
    color: var(--gray-400);
    font-size: 14px;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.admin-nav-link:hover { color: #fff; background: var(--gray-700); }
.admin-nav-link.active { color: #fff; background: var(--gray-700); }

/* Dropdown menus */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 14px;
    padding: 8px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-dropdown-trigger:hover { color: #fff; background: var(--gray-700); }
.nav-dropdown-trigger.active { color: #fff; }
.dropdown-arrow { font-size: 10px; transition: transform 0.2s; }
.nav-dropdown.open .dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown.open .nav-dropdown-trigger { color: #fff; background: var(--gray-700); }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius);
    min-width: 180px;
    padding: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 100;
    animation: dropdownFadeIn 0.15s ease;
}
[data-theme="dark"] .nav-dropdown-menu { background: #0f172a; border-color: var(--gray-700); }
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu .admin-nav-link { display: block; width: 100%; padding: 10px 14px; border-radius: calc(var(--radius) - 2px); }
@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.admin-nav .nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.admin-nav .nav-user { color: var(--gray-400); font-size: 13px; }
.admin-nav .btn-outline { color: var(--gray-300); border-color: var(--gray-600); }
.admin-nav .btn-outline:hover { color: #fff; border-color: var(--gray-400); }

.admin-main {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 24px;
}

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    animation: countUp 0.4s ease forwards;
    opacity: 0;
}
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.3s; }
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.stat-card.accent { border-left-color: var(--accent); }
.stat-card.success { border-left-color: var(--success); }
.stat-value { font-size: 28px; font-weight: 700; color: var(--gray-900); }
.stat-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.admin-table th {
    background: var(--gray-50);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-200);
}
.admin-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--gray-100);
}
.admin-table tr.clickable { cursor: pointer; }
.admin-table tr.clickable:hover { background: var(--gray-50); }
.admin-table.small th, .admin-table.small td { padding: 8px 12px; font-size: 13px; }

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.status-pending_payment { background: var(--warning); }
.status-received { background: #3b82f6; }
.status-preparing { background: #8b5cf6; }
.status-printing { background: #6366f1; }
.status-quality_check { background: #14b8a6; }
.status-shipping { background: #f97316; }
.status-delivered { background: var(--success); }
.status-cancelled { background: var(--danger); }

.role-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.role-customer { background: var(--primary-light); color: var(--primary); }
.role-admin { background: #fef3c7; color: #92400e; }

/* Filter Bar */
.filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-btn {
    padding: 6px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    background: var(--bg-card);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--gray-600);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Admin Detail */
.admin-detail .status-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-detail .status-buttons .btn { font-size: 12px; }
.admin-section { margin-bottom: 32px; }
.admin-section h3 { font-size: 18px; margin-bottom: 16px; color: var(--gray-800); }

/* Pricing Admin */
.pricing-category { margin-bottom: 28px; }
.pricing-category h3 { font-size: 16px; margin-bottom: 12px; color: var(--gray-700); }
.pricing-input {
    width: 120px;
    padding: 6px 10px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border-color var(--transition);
}
.pricing-input:focus { outline: none; border-color: var(--primary); }

/* ===== TOGGLE SWITCH ===== */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}
.toggle-switch input { display: none; }
.toggle-slider {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--gray-300);
    border-radius: 13px;
    transition: background var(--transition);
    flex-shrink: 0;
}
.toggle-slider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bg-primary);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform var(--transition);
    box-shadow: var(--shadow);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::after { transform: translateX(22px); }
.toggle-label { font-size: 14px; color: var(--gray-700); }

.express-row { color: var(--warning); font-weight: 600; }

/* ===== CONFIRMATION MODAL ===== */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 20px;
}
.confirm-overlay.confirm-visible { opacity: 1; }
.confirm-modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 700px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.2s ease;
}
.confirm-visible .confirm-modal { transform: translateY(0); }
.confirm-modal h2 { font-size: 22px; margin-bottom: 20px; }
.confirm-details { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--gray-600);
    padding: 6px 0;
    border-bottom: 1px solid var(--gray-100);
}
.confirm-row strong { color: var(--gray-800); }
.confirm-total {
    border-bottom: none;
    border-top: 2px solid var(--gray-200);
    padding-top: 12px;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 700;
}
.confirm-total .total-value { color: var(--primary); }
.confirm-actions { display: flex; gap: 12px; justify-content: flex-end; }

@media (max-width: 768px) {
    .confirm-modal { padding: 24px 20px; }
    .confirm-actions { flex-direction: column-reverse; }
    .confirm-actions .btn { width: 100%; }
}

/* ===== LOADING STATES ===== */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text:last-child { width: 60%; }
.skeleton-card { height: 120px; }
.skeleton-stat { height: 80px; }
.skeleton-row { height: 48px; margin-bottom: 4px; }

.field-error {
    color: var(--danger);
    font-size: 12px;
    min-height: 16px;
    display: block;
}
.has-error {
    border-color: var(--danger) !important;
}

/* ===== TOAST NOTIFICATIONS ===== */
#toastContainer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    min-width: 280px;
    max-width: 420px;
    pointer-events: auto;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--gray-400);
}
.toast.toast-visible { transform: translateX(0); }
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-info { border-left-color: var(--primary); }
.toast-icon { font-size: 16px; font-weight: 700; flex-shrink: 0; }
.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--primary); }
.toast-message { flex: 1; color: var(--gray-700); }
.toast-close {
    background: none; border: none; font-size: 18px; cursor: pointer;
    color: var(--gray-400); padding: 0 2px; line-height: 1; flex-shrink: 0;
}
.toast-close:hover { color: var(--gray-600); }

/* ===== CHART & BULK ACTIONS ===== */
.chart-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.chart-container canvas { width: 100%; }

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--primary-light);
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-size: 14px;
    flex-wrap: wrap;
}
.bulk-actions select {
    padding: 6px 10px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 13px;
}

/* ===== CONTACT & TICKETS ===== */
.contact-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 32px 0;
}
.contact-page h2 {
    font-size: 28px;
    margin-bottom: 8px;
}
.contact-page > p {
    color: var(--gray-500);
    margin-bottom: 32px;
}
.contact-form .form-group {
    margin-bottom: 16px;
}
.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.contact-form textarea {
    resize: vertical;
}

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}
.ticket-card {
    background: var(--bg-secondary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.ticket-card-subject {
    font-weight: 600;
    font-size: 15px;
}
.ticket-card-meta {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 6px;
}

.ticket-detail-page {
    padding: 32px 0;
    max-width: 800px;
    margin: 0 auto;
}

.ticket-conversation {
    margin-top: 24px;
}
.ticket-conversation h3 {
    font-size: 18px;
    margin-bottom: 16px;
}
.ticket-message {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: var(--radius-lg);
    max-width: 85%;
}
.ticket-message-customer {
    background: var(--bg-secondary);
    border: 1px solid var(--gray-200);
    margin-right: auto;
}
.ticket-message-staff {
    background: var(--primary-light);
    border: 1px solid var(--primary);
    margin-left: auto;
}
[data-theme="dark"] .ticket-message-staff {
    background: rgba(37, 99, 235, 0.15);
}
.ticket-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}
.ticket-message-header strong {
    font-size: 14px;
}
.ticket-message-header span {
    color: var(--gray-500);
}
.ticket-message-body {
    font-size: 14px;
    line-height: 1.6;
}

.ticket-reply-form h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.priority-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.priority-low { background: var(--gray-100); color: var(--gray-600); }
.priority-normal { background: #dbeafe; color: #1e40af; }
.priority-high { background: #fef2f2; color: #dc2626; }
[data-theme="dark"] .priority-low { background: var(--gray-700); color: var(--gray-300); }
[data-theme="dark"] .priority-normal { background: rgba(37,99,235,0.2); color: #93bbfd; }
[data-theme="dark"] .priority-high { background: rgba(239,68,68,0.2); color: #fca5a5; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        padding: 80px 24px 24px;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        z-index: 99;
        gap: 8px;
        overflow-y: auto;
    }
    .nav-links.open {
        right: 0;
    }
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: var(--overlay-bg);
        z-index: 98;
        display: none;
    }
    .nav-overlay.active { display: block; }
    .nav-toggle { display: block; z-index: 100; }

    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }
    .steps-grid { grid-template-columns: 1fr; max-width: 400px; }
    .materials-showcase { grid-template-columns: repeat(2, 1fr); }
    .usps-grid { grid-template-columns: repeat(2, 1fr); }
    .upload-zone { padding: 32px 20px; }

    .material-cards { grid-template-columns: repeat(2, 1fr); }
    .quality-options { grid-template-columns: 1fr 1fr; }
    .config-row { flex-direction: column; gap: 16px; }

    .detail-grid { grid-template-columns: 1fr; }
    .status-timeline { overflow-x: auto; }
    .timeline-label { font-size: 8px; }

    .admin-nav { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 8px; }
    .admin-nav .nav-brand { flex: 1; }
    .admin-nav-toggle { display: block; order: 2; }
    .admin-nav .nav-right { order: 3; width: 100%; justify-content: flex-end; gap: 8px; padding-top: 8px; border-top: 1px solid var(--gray-700); margin-top: 4px; }
    .admin-nav .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 2px;
        padding-top: 8px;
        order: 4;
    }
    .admin-nav .nav-links.nav-open { display: flex; }
    .nav-dropdown { width: 100%; }
    .nav-dropdown-trigger { width: 100%; justify-content: space-between; padding: 10px 14px; font-size: 15px; border-radius: var(--radius); }
    .nav-dropdown-menu {
        position: static;
        margin-top: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 2px 0 2px 16px;
        min-width: 0;
        animation: none;
    }
    [data-theme="dark"] .nav-dropdown-menu { background: transparent; border: none; }
    .nav-dropdown-menu .admin-nav-link { font-size: 15px; padding: 10px 14px; }
    .admin-nav-link { padding: 10px 14px; font-size: 15px; }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .admin-table { font-size: 12px; }
    .admin-table th, .admin-table td { padding: 8px 10px; }
}

@media (max-width: 480px) {
    .material-cards { grid-template-columns: 1fr; }
    .quality-options { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* ===== SHOP ===== */

.shop-section { padding: 20px 0; }
.shop-header { text-align: center; margin-bottom: 32px; }
.shop-header h1 { font-size: 2rem; margin-bottom: 8px; }
.shop-header p { color: var(--gray-500); font-size: 1.1rem; }

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.product-card-body { padding: 16px; }
.product-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-900);
}
.product-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    align-items: center;
}
.product-material-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.product-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Delivery Badge */
.delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
}
.delivery-badge::before {
    content: '📦';
    font-size: 11px;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 20px;
}
.product-detail-left {}
.product-detail-image {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
}
.product-detail-placeholder {
    width: 100%;
    height: 300px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}
.product-description {
    margin-top: 16px;
    color: var(--gray-600);
    line-height: 1.6;
}
.product-info-badge {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--gray-50);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-700);
}
.product-detail-right h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Delivery Info */
.delivery-info {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    border-radius: var(--radius);
}
.delivery-info-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
}
.delivery-date {
    font-weight: 600;
    color: var(--success);
}

/* ===== ADMIN PRODUCTS ===== */

.product-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.product-admin-card {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: box-shadow 0.2s;
    border: 1px solid var(--gray-200);
}
.product-admin-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.product-admin-card.inactive {
    opacity: 0.5;
}
.product-admin-image {
    width: 100px;
    min-height: 100px;
    flex-shrink: 0;
    background: var(--gray-100);
    overflow: hidden;
}
.product-admin-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}
.product-admin-info {
    padding: 12px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.product-admin-info h4 {
    font-size: 15px;
    font-weight: 600;
}
.product-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--gray-500);
}
.product-admin-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.product-price {
    font-weight: 700;
    color: var(--primary);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-gray { background: var(--gray-200); color: var(--gray-600); }
.badge-express { background: #fef3c7; color: #92400e; }

/* Product Form */
.product-form {
    max-width: 800px;
}
.product-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.product-form .form-group {
    margin-bottom: 12px;
}
.product-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
}
.product-form input[type="text"],
.product-form input[type="number"],
.product-form input[type="file"],
.product-form select,
.product-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border-color 0.2s;
}
.product-form input:focus,
.product-form select:focus,
.product-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.file-upload-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.thumb-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}
.file-badge {
    font-size: 12px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 10px;
    border-radius: 12px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===== SMART QUEUE ===== */

.queue-toggle {
    display: flex;
    gap: 4px;
}
.smart-queue-table .prio-select {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: var(--bg-card);
}
.prio-select.prio-1 { color: #dc2626; border-color: #fca5a5; background: #fef2f2; }
.prio-select.prio-2 { color: #ea580c; border-color: #fdba74; background: #fff7ed; }
.prio-select.prio-3 { color: #ca8a04; border-color: #fde047; background: #fefce8; }
.prio-select.prio-4 { color: #16a34a; border-color: #86efac; background: #f0fdf4; }
.prio-select.prio-5 { color: #6b7280; border-color: var(--gray-300); background: var(--gray-50); }

.deadline-badge {
    font-size: 13px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 6px;
}
.deadline-overdue {
    color: #dc2626;
    background: #fef2f2;
    font-weight: 700;
}
.deadline-today {
    color: #ea580c;
    background: #fff7ed;
}
.deadline-ok {
    color: #16a34a;
    background: #f0fdf4;
}

.urgency-score {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 10px;
}

.smart-queue-row:hover {
    background: var(--gray-50);
}

/* ===== RESPONSIVE SHOP ===== */

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    .shop-grid {
        grid-template-columns: 1fr 1fr;
    }
    .product-admin-grid {
        grid-template-columns: 1fr;
    }
    .product-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== DRUCKER ===== */

.printer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.printer-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--gray-300);
    padding: 16px 20px;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.printer-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.printer-status-idle { border-left-color: var(--success); }
.printer-status-printing { border-left-color: var(--primary); }
.printer-status-paused { border-left-color: var(--warning); }
.printer-status-error { border-left-color: var(--danger); }
.printer-status-offline { border-left-color: var(--gray-300); opacity: 0.7; }

@keyframes pulse-border {
    0%, 100% { border-left-color: var(--primary); }
    50% { border-left-color: var(--primary-light); }
}
.printer-status-printing {
    animation: pulse-border 2s ease-in-out infinite;
}

.printer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.printer-name {
    font-weight: 600;
    font-size: 15px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.status-dot-idle { background: var(--success); }
.status-dot-printing { background: var(--primary); animation: pulse-status 1.5s infinite; }
.status-dot-paused { background: var(--warning); }
.status-dot-error { background: var(--danger); }
.status-dot-offline { background: var(--gray-400); }

@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.printer-state-label {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.printer-progress {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin: 6px 0;
}
.printer-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}
.printer-progress-text {
    font-size: 12px;
    color: var(--gray-500);
}

.printer-temps {
    font-size: 12px;
    color: var(--gray-500);
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.printer-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}
.printer-last-seen {
    font-size: 12px;
    color: var(--gray-400);
}

.type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
.type-bambu_a1 { background: #dbeafe; color: #1d4ed8; }
.type-snapmaker_u1 { background: #dcfce7; color: #166534; }

/* Printer Form */
.printer-form {
    max-width: 700px;
}
.printer-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.printer-form .form-group {
    margin-bottom: 8px;
}
.printer-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
}
.printer-form input,
.printer-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
}
.printer-form input:focus,
.printer-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Printer Detail */
.printer-detail {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    margin-top: 20px;
}
.printer-detail-info { display: flex; flex-direction: column; gap: 16px; }
.printer-live-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}
.printer-live-status .printer-state-label {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Dashboard Printer Status Grid */
.printer-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.printer-status-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--gray-300);
    padding: 14px 16px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.printer-status-card:hover {
    box-shadow: var(--shadow-md);
}
.printer-status-card.printer-status-idle { border-left-color: var(--success); }
.printer-status-card.printer-status-printing { border-left-color: var(--primary); }
.printer-status-card.printer-status-paused { border-left-color: var(--warning); }
.printer-status-card.printer-status-error { border-left-color: var(--danger); }
.printer-status-card.printer-status-offline { border-left-color: var(--gray-300); opacity: 0.6; }

/* Responsive Drucker */
@media (max-width: 768px) {
    .printer-detail {
        grid-template-columns: 1fr;
    }
    .printer-grid {
        grid-template-columns: 1fr;
    }
    .printer-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== PRODUCT SETTINGS ===== */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}
.lock-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
}
.lock-toggle-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.lock-toggle-item span {
    min-width: 60px;
}

/* ===== PRINTER CONTROLS ===== */
.control-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.control-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.control-select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
    font-size: 13px;
}

/* ===== CAMERA ===== */
.camera-image {
    width: 100%;
    max-width: 640px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

/* ===== AMS ===== */
.ams-unit {
    margin-bottom: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}
.ams-unit-header {
    background: var(--gray-50);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
}
.ams-trays {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    flex-wrap: wrap;
}
.ams-tray, .ams-spool {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 4px 10px;
    background: var(--gray-50);
    border-radius: 6px;
}
.ams-spool-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    flex-shrink: 0;
}

/* ===== CATEGORY NAVIGATION (Shop) ===== */
.category-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-pill {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    background: var(--bg-card);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    color: var(--text-secondary);
}
.category-pill:hover { border-color: var(--primary); color: var(--primary); }
.category-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.cat-count { font-size: 12px; opacity: 0.7; }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray-500);
    padding: 12px 0;
    flex-wrap: wrap;
}
.breadcrumbs a { color: var(--gray-500); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .separator { color: var(--gray-300); }
.breadcrumbs span:last-child { color: var(--gray-800); font-weight: 500; }

/* ===== CATEGORY TREE (Admin) ===== */
.category-tree { list-style: none; }
.category-tree ul { list-style: none; padding-left: 24px; }
.category-tree-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    margin-bottom: 4px;
    background: var(--bg-card);
    font-size: 14px;
}
.category-tree-item:hover { border-color: var(--gray-200); }
.category-tree-item .cat-name { flex: 1; font-weight: 500; }
.category-tree-item .cat-actions { display: flex; gap: 4px; }
.category-tree-item .cat-actions button {
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid var(--gray-200);
    background: var(--bg-card);
    cursor: pointer;
    color: var(--text-secondary);
}
.category-tree-item .cat-actions button:hover { background: var(--gray-50); }
.cat-toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: var(--gray-400);
    border: none;
    background: none;
}

/* ===== MEDIA MANAGER (Admin) ===== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
.media-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--gray-200);
    background: var(--gray-50);
    cursor: default;
}
.media-item.primary { border-color: var(--primary); }
.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-item-overlay {
    position: absolute;
    top: 4px;
    right: 4px;
    opacity: 0;
    transition: var(--transition);
}
.media-item:hover .media-item-overlay { opacity: 1; }
.media-delete-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: var(--danger);
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.media-item-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(37, 99, 235, 0.85);
    color: white;
    font-size: 10px;
    text-align: center;
    padding: 2px;
    font-weight: 600;
}
.media-item-controls {
    position: absolute;
    bottom: 4px;
    right: 4px;
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: var(--transition);
}
.media-item:hover .media-item-controls { opacity: 1; }
.media-sort-btn {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: none;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.media-video-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 14px;
    color: var(--gray-500);
    flex-direction: column;
    gap: 4px;
}
.media-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.video-url-dialog {
    display: flex;
    gap: 8px;
}
.video-url-dialog input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 13px;
}

/* ===== GALLERY (Shop Detail) ===== */
.gallery { margin-bottom: 20px; }
.gallery-main {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-50);
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.gallery-main video {
    max-height: 100%;
}
.gallery-main iframe {
    width: 100%;
    height: 100%;
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.gallery-thumb {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}
.gallery-thumb:hover { border-color: var(--gray-400); }
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumb-video {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 20px;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}
.lightbox-content video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
}
.lightbox-content iframe {
    width: 80vw;
    height: 45vw;
    max-height: 80vh;
    border-radius: 8px;
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 8px;
    z-index: 10;
    transition: var(--transition);
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* ===== RELATED PRODUCTS ===== */
.related-products {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}
.related-products h3 {
    font-size: 20px;
    margin-bottom: 16px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 768px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== ORDER CONFIRMATION ===== */
.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}
.order-confirm-price {
    font-size: 20px;
    color: var(--gray-800);
    margin-top: 12px;
}
.video-link-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--primary);
    font-size: 16px;
}

/* ===== SHOP SEARCH & FILTERS ===== */
.shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 8px;
}
.shop-filters .search-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
}
.shop-filters .search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.filter-controls select,
.filter-controls input[type="number"] {
    padding: 7px 10px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 13px;
    background: var(--bg-input);
    color: var(--text-primary);
}
.filter-controls input[type="number"] {
    width: 80px;
}
.filter-controls .price-separator {
    color: var(--gray-500);
    font-size: 13px;
}
.btn-reset-filters {
    padding: 7px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--gray-600);
    cursor: pointer;
    font-size: 13px;
}
.btn-reset-filters:hover {
    background: var(--gray-100);
}

/* ===== ADDRESS MANAGEMENT ===== */
.address-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.address-item {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 16px;
    background: var(--bg-card);
    position: relative;
}
.address-item.is-default {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}
.address-item .address-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.address-item .address-label .default-badge {
    font-size: 11px;
    background: var(--primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.address-item .address-details {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}
.address-item .address-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}
.address-form-inline {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 20px;
    background: var(--gray-50);
    margin-bottom: 16px;
}
.address-form-inline .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ===== COUPON INPUT ===== */
.coupon-section {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 16px 0;
}
.coupon-section input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    text-transform: uppercase;
}
.coupon-msg-success {
    color: #16a34a;
    font-size: 13px;
    margin-top: 4px;
}
.coupon-msg-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
}

/* ===== DISCOUNT DISPLAY ===== */
.discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #16a34a;
    font-weight: 500;
}
.discount-badge {
    display: inline-block;
    background: #dcfce7;
    color: #16a34a;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}
.price-final {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
}
.price-original {
    text-decoration: line-through;
    color: var(--gray-400);
    font-size: 14px;
    margin-right: 8px;
}

/* ===== ADMIN SETTINGS FORM ===== */
.settings-form h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-800);
}
.settings-form h3:first-child {
    margin-top: 0;
}
.settings-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* ===== ADMIN COUPONS TABLE ===== */
.coupon-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 13px;
}
.coupon-stats-table th,
.coupon-stats-table td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--gray-200);
}
.coupon-stats-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-600);
}
.coupon-active { color: #16a34a; }
.coupon-inactive { color: #dc2626; }
.coupon-expired { color: var(--gray-400); }

/* ===== INVOICE DOWNLOAD ===== */
.invoice-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.invoice-link:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE FILTERS ===== */
@media (max-width: 768px) {
    .shop-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .shop-filters .search-input {
        min-width: 100%;
    }
    .filter-controls {
        flex-wrap: wrap;
    }
    .address-list {
        grid-template-columns: 1fr;
    }
    .address-form-inline .form-row {
        grid-template-columns: 1fr;
    }
    .settings-form .form-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== MODERN UI ENHANCEMENTS ===== */

/* Hero gradient text */

/* Focus states */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: none;
}

/* Page transition */
.page-transition {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 50;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 6px 10px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    line-height: 1;
}
.theme-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.admin-nav .theme-toggle {
    border-color: var(--gray-600);
    color: var(--gray-400);
}
.admin-nav .theme-toggle:hover {
    color: #fff;
    border-color: var(--gray-400);
    background: var(--gray-700);
}

/* Form inputs dark mode */
.form-group input,
.form-group select,
.form-group textarea,
textarea,
.pricing-input,
.coupon-section input,
.shop-filters .search-input,
.control-select,
.video-url-dialog input {
    background: var(--bg-input);
    color: var(--text-primary);
}

/* Product form inputs dark mode */
.product-form input[type="text"],
.product-form input[type="number"],
.product-form select,
.product-form textarea,
.printer-form input,
.printer-form select {
    background: var(--bg-input);
    color: var(--text-primary);
}

/* Bulk actions dark mode */
.bulk-actions select {
    background: var(--bg-input);
    color: var(--text-primary);
}

/* ===== SETTINGS TABS ===== */
.settings-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.settings-tabs::-webkit-scrollbar { display: none; }
.settings-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-tertiary);
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
}
.settings-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    border-radius: var(--radius) var(--radius) 0 0;
}
.settings-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}
.settings-tab-content {
    min-height: 200px;
}

/* ===== CMS PAGES ===== */
.page-content {
    max-width: 800px;
    margin: 40px auto;
    line-height: 1.8;
}
.page-content h2 {
    margin-bottom: 24px;
    font-size: 28px;
}
.page-content h3 {
    margin: 24px 0 12px;
    font-size: 20px;
}
.page-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}
.page-content ul, .page-content ol {
    margin: 0 0 16px 24px;
    color: var(--text-secondary);
}
.page-content li {
    margin-bottom: 6px;
}
.page-content a {
    color: var(--primary);
}
.page-editor-textarea {
    width: 100%;
    min-height: 400px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    resize: vertical;
}

/* ===== LIVESTREAM ===== */
.stream-section {
    margin-top: 8px;
}
.stream-placeholder {
    text-align: center;
    padding: 24px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
}
.stream-qr-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
}
.stream-qr-box {
    text-align: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.stream-qr-img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
}
.stream-viewer-area {
    min-height: 200px;
}
.stream-video {
    width: 100%;
    max-width: 640px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #000;
}
.stream-status-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}
.stream-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.stream-status-indicator.waiting { background: var(--gray-400); }
.stream-status-indicator.connecting { background: var(--warning); animation: pulse-dot 1s infinite; }
.stream-status-indicator.live { background: var(--success); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
@media (max-width: 768px) {
    .stream-qr-section {
        grid-template-columns: 1fr;
    }
    .stream-qr-img {
        width: 160px;
        height: 160px;
    }
}

/* ===== NAV ICONS & BADGES ===== */
.nav-icon-link {
    position: relative;
    font-size: 18px;
    text-decoration: none;
}
.nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* ===== NOTIFICATION DROPDOWN ===== */
.notification-bell-wrap {
    position: relative;
    display: inline-block;
}
.notif-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 340px;
    max-height: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
}
.notif-dropdown.open {
    display: block;
}
.notif-dropdown-header {
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-primary);
}
.notif-dropdown-header a {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
}
.notif-list {
    overflow-y: auto;
    max-height: 360px;
}
.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition);
    font-size: 13px;
}
.notif-item:hover {
    background: var(--bg-hover);
}
.notif-item.unread {
    background: var(--primary-light);
}
[data-theme="dark"] .notif-item.unread {
    background: rgba(37, 99, 235, 0.12);
}
.notif-item-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.notif-item-message {
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notif-item-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}
.notif-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== WARENKORB (CART) ===== */
.cart-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px;
}
.cart-page h2 {
    margin-bottom: 20px;
}
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.cart-empty p {
    font-size: 18px;
    margin-bottom: 16px;
}
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    align-items: center;
}
.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}
.cart-item-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.cart-item-details {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-item-qty button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: background var(--transition);
}
.cart-item-qty button:hover {
    background: var(--bg-tertiary);
}
.cart-item-qty span {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}
.cart-item-price {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}
.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    transition: color var(--transition);
}
.cart-item-remove:hover {
    color: var(--danger);
}
.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}
.cart-summary-row.total {
    border-top: 2px solid var(--border-color);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    gap: 12px;
}
.cart-actions .btn {
    flex-shrink: 0;
}

/* ===== BEWERTUNGEN (REVIEWS) ===== */
.review-section {
    margin-top: 32px;
}
.review-section h3 {
    margin-bottom: 16px;
}
.review-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.review-avg {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
}
.review-avg-stars {
    color: #f59e0b;
    font-size: 20px;
}
.review-avg-count {
    font-size: 13px;
    color: var(--text-muted);
}
.review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.review-card {
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}
.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.review-card-author {
    font-weight: 600;
    color: var(--text-primary);
}
.review-card-date {
    font-size: 12px;
    color: var(--text-muted);
}
.review-card-stars {
    color: #f59e0b;
    margin-bottom: 6px;
}
.review-card-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.review-card-comment {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.review-card .review-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    margin-top: 8px;
}
.review-card .review-delete-btn:hover {
    color: var(--danger);
}
.star-rating {
    color: #f59e0b;
    letter-spacing: 2px;
}
.star-rating-inline {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 1px;
}
.star-rating-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 4px;
}
.star-input {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}
.star-input span {
    font-size: 28px;
    cursor: pointer;
    color: var(--gray-300);
    transition: color 0.15s;
    user-select: none;
}
.star-input span.active {
    color: #f59e0b;
}
.star-input span:hover,
.star-input span:hover ~ span {
    color: #f59e0b;
}
.review-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.review-form h4 {
    margin-bottom: 12px;
    color: var(--text-primary);
}
.review-form .form-group {
    margin-bottom: 12px;
}

/* ===== WUNSCHLISTE (WISHLIST) ===== */
.wishlist-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--gray-300);
    transition: all 0.2s;
    padding: 4px;
    line-height: 1;
}
.wishlist-btn:hover {
    transform: scale(1.15);
}
.wishlist-btn.active {
    color: #ef4444;
}
.wishlist-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 16px;
}
.wishlist-page h2 {
    margin-bottom: 20px;
}
.wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* ===== ACCOUNT PAGE ===== */
.account-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    padding: 24px 0;
    min-height: 60vh;
}
.account-sidebar {
    position: sticky;
    top: 84px;
    align-self: start;
}
.account-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
}
.account-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}
.account-user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}
.account-user-email {
    font-size: 12px;
    color: var(--text-muted);
}
.account-nav {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.account-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}
.account-nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.account-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}
.account-nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}
.account-nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}
.account-nav-logout {
    color: var(--danger);
}
.account-nav-logout:hover {
    background: rgba(239,68,68,0.06);
    color: var(--danger);
}
.account-content {
    min-width: 0;
}
.account-section {
    margin-bottom: 20px;
}
.account-section h2 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.account-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}
.account-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.account-section-link {
    font-size: 13px;
    font-weight: 500;
}
.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 12px;
}
.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.account-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.15s;
}
.account-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.account-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.account-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}
.account-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.account-recent-orders {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.account-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
}
.account-order-row:hover {
    background: var(--bg-hover);
}
.account-order-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.account-order-number {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}
.account-order-date {
    font-size: 12px;
    color: var(--text-muted);
}
.account-order-price {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
}
.account-orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.account-order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all 0.15s;
}
.account-order-card:hover {
    box-shadow: var(--shadow);
}
.account-order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.account-order-card-body {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}
.account-order-card-price {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    margin-top: 8px;
}
.account-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.account-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.account-empty p {
    margin-bottom: 16px;
    font-size: 15px;
}
.account-address-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.account-address-info {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}
.account-address-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .account-page {
        grid-template-columns: 1fr;
    }
    .account-sidebar {
        position: static;
    }
    .account-nav {
        display: flex;
        overflow-x: auto;
        gap: 0;
        -webkit-overflow-scrolling: touch;
    }
    .account-nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 10px 14px;
        font-size: 13px;
    }
    .account-nav-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary);
    }
    .account-nav-divider {
        display: none;
    }
    .account-nav-item span.account-nav-icon {
        display: none;
    }
    .account-stats {
        grid-template-columns: 1fr 1fr;
    }
    .account-address-card {
        flex-direction: column;
    }
    .account-order-row {
        flex-wrap: wrap;
    }
}

/* Legacy dashboard classes kept for compatibility */
.dashboard-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.dashboard-quick-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

/* ===== CONFIGURATOR ACTIONS ===== */
.configurator-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.configurator-actions .btn {
    flex: 1;
    min-width: 140px;
}

/* ===== ADMIN REVIEWS ===== */
.admin-review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
}
.admin-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.admin-review-meta {
    font-size: 13px;
    color: var(--text-secondary);
}
.admin-review-stars {
    color: #f59e0b;
    font-size: 16px;
    margin-bottom: 6px;
}
.admin-review-comment {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.5;
}
.admin-review-actions {
    display: flex;
    gap: 8px;
}

/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .cart-item-price {
        text-align: left;
    }
    .cart-actions {
        flex-direction: column;
    }
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
    .quick-stats {
        flex-direction: column;
    }
    .notif-dropdown {
        width: 300px;
        right: -60px;
    }
    .configurator-actions {
        flex-direction: column;
    }
    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* ===== FILAMENTLAGER ===== */
.filament-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.filament-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.filament-stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}
.filament-stat-card .stat-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}
.filament-stat-card.stat-warning {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.05);
}
.filament-stat-card.stat-warning .stat-value {
    color: var(--warning);
}

/* Material Bar Chart */
.material-bar-chart {
    background: var(--card-bg);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}
.material-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}
.material-bar-row + .material-bar-row {
    border-top: 1px solid var(--gray-100);
}
.material-bar-label {
    min-width: 120px;
    font-size: 14px;
    font-weight: 600;
}
.material-bar-label small {
    font-weight: 400;
    color: var(--gray-500);
}
.material-bar-track {
    flex: 1;
    height: 12px;
    background: var(--gray-100);
    border-radius: 6px;
    overflow: hidden;
}
.material-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}
.material-bar-value {
    min-width: 80px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
}

/* Filament Table */
.filament-table tbody tr:hover {
    background: var(--gray-50);
}
.color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--gray-300);
    vertical-align: middle;
    margin-right: 6px;
}
.stock-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}
.stock-bar {
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
}
.stock-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.stock-bar-fill.stock-ok { background: var(--success); }
.stock-bar-fill.stock-low { background: var(--warning); }
.stock-bar-fill.stock-empty { background: var(--danger); }
.stock-text {
    font-size: 12px;
    color: var(--gray-500);
}
.stock-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.stock-badge.stock-ok { background: rgba(34,197,94,0.12); color: #16a34a; }
.stock-badge.stock-low { background: rgba(245,158,11,0.12); color: #d97706; }
.stock-badge.stock-empty { background: rgba(239,68,68,0.12); color: #dc2626; }
.row-inactive { opacity: 0.5; }

/* Consumption Log */
.consumption-log {
    max-height: 400px;
    overflow-y: auto;
}
.log-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
}
.log-entry + .log-entry {
    border-top: 1px solid var(--gray-100);
}
.log-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
}
.log-consumption .log-icon { background: rgba(239,68,68,0.1); color: #dc2626; }
.log-restock .log-icon { background: rgba(34,197,94,0.1); color: #16a34a; }
.log-adjustment .log-icon { background: rgba(59,130,246,0.1); color: #2563eb; }
.log-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.log-amount {
    font-weight: 600;
}
.log-consumption .log-amount { color: #dc2626; }
.log-restock .log-amount { color: #16a34a; }
.log-note {
    font-size: 13px;
    color: var(--gray-500);
}
.log-date {
    font-size: 12px;
    color: var(--gray-400);
    white-space: nowrap;
}

/* Filament Detail */
.stock-bar-large .stock-bar {
    height: 24px;
    border-radius: 12px;
}
.stock-bar-large .stock-bar-fill {
    border-radius: 12px;
}

/* Filament Form */
.filament-form .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Filament Check in Order Detail */
.filament-check {
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 8px;
}
.filament-check.filament-ok {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.filament-check.filament-missing {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.filament-check-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 700;
}
.filament-ok .filament-check-icon { color: var(--success); font-size: 20px; }
.filament-missing .filament-check-icon { color: var(--danger); font-size: 20px; }
.filament-ok .filament-check-status { color: var(--success); }
.filament-missing .filament-check-status { color: var(--danger); }
.filament-check-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.filament-check-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.filament-spools {
    margin-top: 12px;
    border-top: 1px solid var(--gray-200);
    padding-top: 10px;
}
.filament-spool-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
}
.filament-spool-row .spool-remaining {
    margin-left: auto;
    font-weight: 600;
    font-size: 13px;
}

/* Filament Dots in Order List */
.filament-dot {
    font-size: 24px;
    line-height: 1;
    color: var(--gray-300);
}
.filament-dot-ok { color: var(--success); }
.filament-dot-missing { color: var(--danger); }

/* Demand Summary */
.demand-summary {
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .filament-stats { grid-template-columns: 1fr; }
    .filament-form .form-row { grid-template-columns: 1fr; }
    .material-bar-label { min-width: 80px; }
    .material-bar-value { min-width: 60px; }
    .admin-main { padding: 0 12px; margin: 12px auto; }
    .admin-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .section-header { flex-direction: column; gap: 8px; align-items: flex-start; }
    .filter-bar { flex-wrap: wrap; }
    .bulk-actions { flex-wrap: wrap; }
}
