:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-soft: #fafafa;

    --text: #18181b;
    --text-muted: #71717a;

    --border: #e4e4e7;
    --border-focus: #18181b;

    --primary: #18181b;
    --primary-hover: #27272a;

    --success: #16803c;
    --success-bg: #ecfdf3;

    --warning: #b54708;
    --warning-bg: #fffaeb;

    --danger: #b42318;
    --danger-bg: #fef3f2;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;

    --shadow:
        0 1px 2px rgba(0, 0, 0, 0.04);

    --content-width: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: 30px;
    line-height: 1.2;
}

h2 {
    font-size: 21px;
}

.text-muted {
    color: var(--text-muted);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 0 18px;

    border: 0;
    border-radius: var(--radius-sm);

    text-decoration: none;
    font-weight: 600;

    cursor: pointer;
}

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

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

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

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

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    min-height: 46px;

    padding: 10px 13px;

    background: white;
    color: var(--text);

    border: 1px solid #d4d4d8;
    border-radius: var(--radius-sm);
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
}

.alert {
    padding: 13px 15px;
    margin-bottom: 20px;

    border-radius: var(--radius-sm);
    font-size: 14px;
}

.alert-danger {
    color: var(--danger);
    background: var(--danger-bg);
}

.alert-success {
    color: var(--success);
    background: var(--success-bg);
}

.hidden {
    display: none !important;
}

.badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;

    background: #f4f4f5;
}

.badge-success {
    color: var(--success);
    background: var(--success-bg);
}

.badge-warning {
    color: var(--warning);
    background: var(--warning-bg);
}

.badge-danger {
    color: var(--danger);
    background: var(--danger-bg);
}

.table-wrap {
    overflow-x: auto;
}

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

th,
td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

th {
    background: var(--surface-soft);
    color: var(--text-muted);
    font-weight: 600;
}
.form-help {
    margin-top: 7px;

    color: var(--text-muted);
    font-size: 13px;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin: 4px 0 24px;

    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;

    cursor: pointer;
}

.checkbox-row input {
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-row a {
    color: var(--text);
    font-weight: 600;
}
.empty-state {
    padding: 35px 15px;
    text-align: center;
    color: var(--text-muted);
}

.privacy-footer { padding: 24px 16px; text-align: center; font-size: .9rem; }
