/* Google Fonts */
:root {
    /* Light Theme Colors (Phone Shop / Tech Vibe) */
    --bg-light: #f8fafc;
    --text-light: #0f172a;
    --text-muted-light: #64748b;
    --glass-bg-light: rgba(255, 255, 255, 0.7);
    --glass-border-light: rgba(14, 165, 233, 0.3);
    
    /* Dark Theme Colors (Premium Neon / Phone Shop) */
    --bg-dark: #0f172a; /* Deep blueish dark */
    --text-dark: #f8fafc;
    --text-muted-dark: #94a3b8;
    --glass-bg-dark: rgba(30, 41, 59, 0.7);
    --glass-border-dark: rgba(14, 165, 233, 0.2);
    
    /* Brand Colors (Cyan & Magenta tech vibe) */
    --primary: #0ea5e9;      /* Tech Cyan */
    --primary-hover: #0284c7;
    --secondary: #8b5cf6;    /* Purple */
    --success: #10b981;
    --success-hover: #059669;
    --danger: #f43f5e;       /* Rose/Neon Red */
    --danger-hover: #e11d48;
    --warning: #f59e0b;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Default Theme Application (Dark by default as requested) */
[data-theme="dark"] {
    --bg-color: var(--bg-dark);
    --text-color: var(--text-dark);
    --text-muted: var(--text-muted-dark);
    --glass-bg: var(--glass-bg-dark);
    --glass-border: var(--glass-border-dark);
}

[data-theme="light"] {
    --bg-color: var(--bg-light);
    --text-color: var(--text-light);
    --text-muted: var(--text-muted-light);
    --glass-bg: var(--glass-bg-light);
    --glass-border: var(--glass-border-light);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    transition: var(--transition);
    /* Soft background gradient based on theme - Tech Vibe */
    background-image: radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.15) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
    background-attachment: fixed;
}

/* App Layout (Desktop Mode - Compact by default) */
.app-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    width: 100%;
    transition: grid-template-columns 0.3s ease;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border-radius: 0; /* Override generic glass panel */
    border-top: none;
    border-bottom: none;
    border-left: none;
    background: rgba(255, 255, 255, 0.03);
    z-index: 10;
}

[data-theme="light"] .sidebar { background: rgba(255, 255, 255, 0.6); }

.sidebar-header {
    margin-bottom: 2rem;
    text-align: center;
}

.sidebar-header h2 {
    font-size: 1.8rem;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 2rem;
}

[data-theme="light"] .sidebar-user { background: rgba(0, 0, 0, 0.05); }

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.welcome-text { font-size: 0.8rem; color: var(--text-muted); }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-item i {
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
}

.nav-item:hover i {
    color: var(--primary);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(139, 92, 246, 0.2));
    border-left: 4px solid var(--primary);
    color: var(--primary);
}

.nav-item.active i {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* Sidebar Collapsed State */
.app-layout.sidebar-collapsed {
    grid-template-columns: 80px 1fr;
}
.app-layout.sidebar-collapsed .sidebar-logo span,
.app-layout.sidebar-collapsed .user-info,
.app-layout.sidebar-collapsed .sidebar-nav span,
.app-layout.sidebar-collapsed .sidebar-text {
    display: none;
}
.app-layout.sidebar-collapsed .sidebar-user {
    justify-content: center;
}
.app-layout.sidebar-collapsed .sidebar-footer {
    align-items: center;
}
.app-layout.sidebar-collapsed .nav-item {
    justify-content: center;
    padding: 1rem 0;
}
.app-layout.sidebar-collapsed .sidebar-header {
    justify-content: center !important;
}
.app-layout.sidebar-collapsed #sidebar-toggle {
    margin: 0 auto;
}
.app-layout.sidebar-collapsed .rate-box {
    padding: 0.5rem;
}
.app-layout.sidebar-collapsed .sidebar-footer > div {
    flex-direction: column;
}

.main-content {
    padding: 0;
    overflow-y: auto;
    height: 100vh;
}

.content-section > *:not(.section-header) {
    margin-left: 2rem;
    margin-right: 2rem;
}

.content-section > *:last-child {
    margin-bottom: 2rem;
}

/* Override old headers for content sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 2rem 0;
    padding: 1.5rem 2rem;
    border-radius: 0 !important;
    border-top: none !important;
    border-right: none !important;
    border-left: none !important;
    border-bottom: 1px solid var(--glass-border) !important;
    background: rgba(0, 0, 0, 0.2) !important;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

/* Theme Toggle Button (Now in Sidebar) */
.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}
.theme-toggle:hover {
    background: var(--primary);
    color: white;
}

/* Typography & General */
.hidden { display: none !important; }
h1, h2, h3 { font-weight: 600; }
a { color: var(--primary); text-decoration: none; }

/* Loader */
#loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 9999;
}
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4); }
.btn-success { background: var(--success); color: white; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.btn-success:hover { background: var(--success-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4); }
.btn-danger { background: var(--danger); border-color: transparent; }
.btn-danger:hover { box-shadow: 0 0 15px rgba(239, 68, 68, 0.5); background: #dc2626; }
.btn-secondary { background: transparent; color: var(--text-color); border: 1px solid var(--glass-border); }
.btn-secondary:hover { background: var(--glass-bg); }
.btn-icon { padding: 0.5rem; border-radius: 8px; font-size: 1.25rem; background: transparent; color: var(--text-color); border: 1px solid transparent; cursor: pointer; transition: var(--transition); }
.btn-icon:hover { background: var(--glass-border); }

/* Inputs & Forms */
.input-group {
    position: relative;
    margin-bottom: 1.25rem;
}
.input-group i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.25rem;
}
.input-group input, .form-group input, .form-group select, form input, form select, .wholesalers-sidebar input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 3.25rem;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}
[data-theme="dark"] .input-group input, [data-theme="dark"] .form-group input, [data-theme="dark"] .form-group select, [data-theme="dark"] form input, [data-theme="dark"] form select, [data-theme="dark"] .wholesalers-sidebar input {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}
.form-group input, .form-group select, form input:not(.input-group input), form select { padding-left: 1rem; }
.input-group input:focus, .form-group input:focus, .form-group select:focus, form input:focus, form select:focus, .wholesalers-sidebar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-muted); font-size: 0.95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Login Section */
#login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.5s ease-out;
}
.login-box {
    width: 100%;
    max-width: 420px;
    padding: 3rem 2.5rem;
}
.login-box .logo {
    text-align: center;
    margin-bottom: 2.5rem;
}
.login-box .logo i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-box button { width: 100%; margin-top: 1rem; padding: 1rem; font-size: 1.1rem; }
.error-msg { color: var(--danger); font-size: 0.9rem; margin-top: 1rem; text-align: center; height: 20px; font-weight: 500; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Dashboard, Settings, Wholesalers, Cashier Sections */
#dashboard-section, #settings-section, #wholesalers-section, #cashier-section { 
    animation: fadeIn 0.5s ease-out; 
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    margin-bottom: 2rem;
}
.header-left { display: flex; align-items: center; gap: 2rem; }
.header-left h1 { font-size: 1.75rem; display: flex; align-items: center; gap: 0.75rem; }
.rate-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.header-right { display: flex; align-items: center; gap: 1.5rem; }
.welcome-text { color: var(--text-muted); font-size: 1.05rem; }

/* Actions Bar */
.actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.25rem 2rem;
    margin-bottom: 1.5rem;
    align-items: center;
    justify-content: space-between;
}
.search-box { flex: 1; min-width: 250px; position: relative; }
.search-box i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1.2rem; }
.search-box input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 3rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.03);
    color: var(--text-color);
}
[data-theme="dark"] .search-box input { background: rgba(255,255,255,0.02); }
.filter-box select {
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
}
[data-theme="dark"] .filter-box select option { background: var(--bg-dark); }
[data-theme="light"] .filter-box select option { background: var(--bg-light); }

/* Table */
.products-container { padding: 1rem; overflow: hidden; }
.table-responsive { overflow-x: auto; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    font-size: 0.95rem;
}
tbody tr { transition: var(--transition); }
tbody tr:hover { background: rgba(255, 255, 255, 0.05); }
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.price-usd { font-weight: 600; font-size: 1.05rem; }
.price-try { color: var(--text-muted); font-size: 0.9rem; display: block; margin-top: 0.2rem; }
.stock-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    min-width: 60px;
}
.stock-high { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.stock-low { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.stock-warn { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.action-btns { display: flex; gap: 0.5rem; }
.btn-edit { color: var(--primary); }
.btn-edit:hover { background: rgba(59, 130, 246, 0.1); }
.btn-delete { color: var(--danger); }
.btn-delete:hover { background: rgba(239, 68, 68, 0.1); }

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal:not(.hidden) .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.modal-header h3 { font-size: 1.5rem; }
.form-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2.5rem; }

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 3000;
    transform: translateY(100px) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast.show { transform: translateY(0) scale(1); opacity: 1; }
.toast i { font-size: 1.5rem; color: var(--success); }
.toast.toast-error i { color: var(--danger); }

/* Empty State */
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }
.empty-state i { font-size: 4rem; opacity: 0.5; margin-bottom: 1rem; }

/* Wholesalers (Toptancılar) Layout */
.wholesalers-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
    align-items: start;
}
.wholesalers-sidebar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
    position: sticky;
    top: 5rem;
}
.wholesaler-tabs { list-style: none; padding: 0; margin-top: 1rem; max-height: 50vh; overflow-y: auto; }
.wholesaler-tab {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}
.wholesaler-tab:hover { background: rgba(14, 165, 233, 0.1); color: var(--text-color); }
.wholesaler-tab.active { background: var(--primary); color: white; font-weight: 500; }
.wholesaler-content-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.wholesaler-sub-tabs { display: flex; gap: 1rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 0.5rem; }
.wholesaler-sub-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.wholesaler-sub-tab:hover { color: var(--text-color); }
.wholesaler-sub-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.order-paid { text-decoration: line-through; opacity: 0.6; }

/* Cashier (Kasa) Layout */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.stat-card h3 { font-size: 1rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.stat-card .amount { font-size: 1.8rem; font-weight: bold; }
.amount.income { color: var(--success); }
.amount.expense { color: var(--danger); }
.amount.profit { color: var(--primary); }
.cashier-forms-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.transaction-income { border-left: 4px solid var(--success); }
.transaction-expense { border-left: 4px solid var(--danger); }

/* Responsive */
@media (max-width: 900px) {
    .app-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    .sidebar-footer {
        display: none; /* Mobilde hide footer elements to save space, or move them elsewhere */
    }
    .main-content {
        padding: 1rem;
        height: auto;
    }
    #dashboard-section, #settings-section, #wholesalers-section, #cashier-section { padding: 0; }
    .wholesalers-layout { grid-template-columns: 1fr; }
    .cashier-forms-layout { grid-template-columns: 1fr; }
    .wholesalers-sidebar { position: static; }
    header { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.25rem; }
    .header-left { justify-content: space-between; width: 100%; }
    .header-right { justify-content: space-between; }
    .actions-bar { flex-direction: column; align-items: stretch; padding: 1.25rem; }
    #btn-add-product { width: 100%; }
    .search-box { width: 100%; }
    .filter-box select { width: 100%; }
    .form-row { grid-template-columns: 1fr; }
    .modal-content { padding: 1.5rem; margin: 1rem; max-height: 90vh; overflow-y: auto; }
    
    .section-header {
        margin: -1rem -1rem 1.5rem -1rem;
        top: -1rem;
    }
}
/* Custom Toggle Switch for Tablet Mode */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .4s;
}
input:checked + .slider {
    background-color: var(--primary);
    border-color: var(--primary);
}
input:checked + .slider:before {
    transform: translateX(24px);
    background-color: white;
}
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Tablet Mode Overrides */
body.tablet-mode .app-layout { grid-template-columns: 260px 1fr; }
body.tablet-mode .nav-item { padding: 1rem; font-size: 1rem; gap: 1rem; }
body.tablet-mode .main-content { padding: 0; }
body.tablet-mode .content-section > *:not(.section-header) {
    margin-left: 2.5rem;
    margin-right: 2.5rem;
}
body.tablet-mode .section-header { 
    margin: 0 0 2rem 0; 
    padding: 1.5rem 2.5rem; 
    border-radius: 0; 
    top: 0;
}
body.tablet-mode th, body.tablet-mode td { padding: 1rem; }
body.tablet-mode td { font-size: 1rem; }
body.tablet-mode th { font-size: 0.9rem; }
body.tablet-mode .btn { padding: 0.85rem 1.5rem; font-size: 1rem; }

/* Custom Searchable Select */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}
.custom-select-trigger {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}
.custom-select-trigger:hover, .custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(108, 92, 237, 0.2);
}
.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    z-index: 9999;
    display: none;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.custom-select-wrapper.open .custom-select-dropdown {
    display: flex;
    flex-direction: column;
}
.custom-select-search {
    padding: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.1);
}
.custom-select-search input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 0.95rem;
    outline: none;
}
.custom-select-options {
    list-style: none;
    max-height: 250px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}
.custom-select-options li {
    padding: 0.75rem 1rem;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.custom-select-options li:hover {
    background: rgba(255, 255, 255, 0.1);
}
.custom-select-options li.disabled {
    color: var(--text-muted);
    cursor: default;
}
.custom-select-options li.disabled:hover {
    background: transparent;
}
.custom-select-options li.hidden {
    display: none;
}
.custom-select-options li.optgroup {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-weight: 600;
    cursor: default;
}

/* Marketplace Badges */
.badge-active { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-inactive { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

