:root {
    --bg: #0b1120;
    --bg-secondary: #111827;
    --panel: #172033;
    --panel-light: #1e293b;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #7c9cff;
    --accent-hover: #6a8cff;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --radius: 20px;
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/*
|--------------------------------------------------------------------------
| Layout
|--------------------------------------------------------------------------
*/

.client-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.client-main {
    flex: 1;
    padding: 36px;
    min-width: 0;
}

/*
|--------------------------------------------------------------------------
| Sidebar
|--------------------------------------------------------------------------
*/

.client-sidebar {
    width: 280px;
    min-height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
}

.client-sidebar-brand {
    margin-bottom: 28px;
}

.client-sidebar-brand a {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.client-sidebar-nav {
    display: grid;
    gap: 8px;
}

.client-sidebar-nav a {
    padding: 13px 16px;
    border-radius: 14px;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
}

.client-sidebar-nav a:hover {
    background: rgba(124, 156, 255, 0.08);
    color: var(--text);
}

.client-sidebar-nav a.active {
    background: rgba(124, 156, 255, 0.14);
    color: var(--accent);
    border: 1px solid rgba(124, 156, 255, 0.15);
}

.client-sidebar-footer {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 24px;
}

/*
|--------------------------------------------------------------------------
| Top Area
|--------------------------------------------------------------------------
*/

.client-topbar {
    margin-bottom: 28px;
}

.client-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.client-topbar h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.client-topbar p {
    color: var(--text-muted);
    line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| Cards + Stats
|--------------------------------------------------------------------------
*/

.client-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.client-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.client-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.client-card .stat {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.client-card .subtext {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/*
|--------------------------------------------------------------------------
| Panels
|--------------------------------------------------------------------------
*/

.client-panel {
    margin-top: 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.client-panel h2 {
    margin-bottom: 18px;
    font-size: 1.2rem;
}

.client-empty-state {
    color: var(--text-muted);
    line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| Updates List
|--------------------------------------------------------------------------
*/

.client-updates-list {
    display: grid;
    gap: 12px;
}

.client-update-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.client-update-row:last-child {
    border-bottom: none;
}

/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.client-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.client-btn-primary {
    background: var(--accent);
    color: white;
}

.client-btn-primary:hover {
    background: var(--accent-hover);
}

.client-btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.client-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.03);
}

.client-btn-full {
    width: 100%;
}

/*
|--------------------------------------------------------------------------
| Login
|--------------------------------------------------------------------------
*/

.client-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.client-login-wrap {
    width: 100%;
    max-width: 520px;
}

.client-login-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.client-login-card h1 {
    font-size: 2.3rem;
    margin: 0 0 12px;
}

.client-login-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.client-login-form {
    display: grid;
    gap: 18px;
}

.client-form-group {
    display: grid;
    gap: 8px;
}

.client-form-group label {
    font-weight: 700;
    font-size: 0.95rem;
}

.client-form-group input,
.client-form-group textarea,
.client-form-group select {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text);
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
    outline: none;
}

/*
|--------------------------------------------------------------------------
| Alerts
|--------------------------------------------------------------------------
*/

.client-alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 700;
}

.client-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fecaca;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1200px) {
    .client-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .client-layout {
        display: block;
    }

    .client-sidebar {
        width: 100%;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .client-grid {
        grid-template-columns: 1fr;
    }

    .client-main {
        padding: 24px;
    }

    .client-update-row {
        flex-direction: column;
        align-items: flex-start;
    }
}