:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --accent: #7c3aed;
    --accent-hover: #6d28d9;
    --accent-pink: #e94560;
    --text-primary: #f1f1f1;
    --text-secondary: #94a3b8;
    --border: #2d2d44;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
}

/* Sidebar */
.sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    width: 260px;
    min-height: 100vh;
    transition: transform 0.3s;
}
.sidebar .logo {
    background: linear-gradient(135deg, #7c3aed, #e94560);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}
.nav-item:hover { background: rgba(124, 58, 237, 0.1); color: var(--text-primary); }
.nav-item.active { background: rgba(124, 58, 237, 0.2); color: #a78bfa; font-weight: 600; }
.nav-divider { height: 1px; background: var(--border); margin: 8px 16px; }

/* Brand selector */
.brand-selector {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 13px;
    width: 100%;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.brand-selector:focus { outline: none; border-color: var(--accent); }

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

/* Inputs */
.input-field {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.input-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.input-field::placeholder { color: #4a5568; }

.label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; font-weight: 500; }

/* Buttons */
.btn-primary {
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
    background: rgba(124,58,237,0.15);
    color: #a78bfa;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid rgba(124,58,237,0.3);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(124,58,237,0.25); }

.btn-sm {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger { background: rgba(239,68,68,0.2); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.35); }

/* Badge */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(124,58,237,0.15);
    color: #a78bfa;
}

/* Page header */
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }

/* Toast */
#toasts { position: fixed; top: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.toast {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.toast.success { background: #065f46; color: #6ee7b7; }
.toast.error { background: #7f1d1d; color: #fca5a5; }

/* Spinner */
.spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Auth tabs */
.auth-tab { cursor: pointer; transition: all 0.2s; border: none; background: none; color: inherit; }
.auth-tab.active { color: var(--accent); border-bottom: 2px solid var(--accent); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { position: fixed; z-index: 50; transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
}

/* Select styling */
select.input-field { appearance: auto; }

/* Color input pair */
.color-pair { display: flex; align-items: center; gap: 8px; }
.color-pair input[type="color"] { width: 40px; height: 40px; border-radius: 8px; cursor: pointer; background: transparent; border: 0; padding: 0; }
.color-pair input[type="text"] { flex: 1; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-secondary); }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }

/* Activity feed */
.activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(45,45,68,0.5); }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; }

/* Step tabs */
.step-tab { text-align: center; border: none; cursor: pointer; }
.step-tab:hover { background: rgba(124,58,237,0.1); }
