:root {
    --bg: #0b0f1a;
    --surface: #131929;
    --surface2: #1a2238;
    --border: rgba(255,255,255,0.08);
    --text: #e8eaf0;
    --muted: #8891a8;
    --gold: #c9a84c;
    --gold-light: #e4c97e;
    --danger: #f06565;
}

* {
    box-sizing: border-box;
}

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

.page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px 70px;
}

.top-menu {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.top-menu-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.top-menu-logout {
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover {
    background: #263149;
}

.btn-secondary {
    background: var(--surface2);
}

.btn-danger {
    color: var(--danger);
    background: transparent;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 10px;
}

h1 {
    font-size: 34px;
    margin: 0;
}

h2, h3 {
    margin-top: 0;
}

p {
    color: var(--muted);
}

.card,
.client-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

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

input,
select {
    width: 100%;
    padding: 10px 12px;
    margin: 7px 0 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text);
}

label {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin: 10px 0 16px;
}

.checkbox-item {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    color: var(--text);
}

.checkbox-item input {
    width: auto;
    margin-right: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--gold);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

code {
    color: var(--gold-light);
}

.error {
    color: var(--danger);
    font-weight: 700;
}
