:root {
    --st-primary: #0d6efd;
    --st-ink: #1f2a37;
    --st-muted: #5b6472;
    --st-accent: #e8f1ff;
    --st-surface: #ffffff;
    --st-bg: #f8fafc;
    --st-bg-radial-1: #f6fbff;
    --st-bg-radial-2: #fff7ea;
    --st-border: #c6d2e3;
    --st-input-border: #c6d1e0;
    --st-input-bg: #ffffff;
    --st-page-hero-bg: linear-gradient(135deg, #f2f8ff 0%, #fff8ef 100%);
    --st-page-hero-border: #d3dcea;
    --st-nav-bg: #ffffff;
    --st-nav-border: #d9e2f2;
    --st-footer-bg: #ffffff;
    --st-footer-border: #d9e2f2;
    --st-social-link: #263247;
    --st-social-link-hover: #1d4ed8;
    --st-verification-bg: #fff7e8;
    --st-status-pending-bg: #fff4df;
    --st-status-pending-color: #a16207;
    --st-status-active-bg: #e8f7eb;
    --st-status-active-color: #166534;
    --st-status-denied-bg: #fdebec;
    --st-status-denied-color: #991b1b;
}

html[data-theme='dark'] {
    --st-ink: #e4ebf7;
    --st-muted: #a8b6cc;
    --st-surface: #172335;
    --st-bg: #0f1726;
    --st-bg-radial-1: #203250;
    --st-bg-radial-2: #32253f;
    --st-border: #384c69;
    --st-input-border: #4a6183;
    --st-input-bg: #101c2d;
    --st-page-hero-bg: linear-gradient(135deg, #1a2a42 0%, #2d2438 100%);
    --st-page-hero-border: #405674;
    --st-nav-bg: #0f1a2b;
    --st-nav-border: #30445e;
    --st-footer-bg: #0f1a2b;
    --st-footer-border: #30445e;
    --st-social-link: #d7e4fa;
    --st-social-link-hover: #93b8ff;
    --st-verification-bg: #3a2d10;
    --st-status-pending-bg: #3a2d10;
    --st-status-pending-color: #fbbf24;
    --st-status-active-bg: #14331a;
    --st-status-active-color: #6ee7b7;
    --st-status-denied-bg: #3b1517;
    --st-status-denied-color: #fca5a5;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 0.94rem;
    line-height: 1.45;
    color: var(--st-ink);
    background:
        radial-gradient(circle at 5% 0%, var(--st-bg-radial-1) 0%, transparent 45%),
        radial-gradient(circle at 95% 10%, var(--st-bg-radial-2) 0%, transparent 40%),
        var(--st-bg);
}

body.st-app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.st-app-main {
    flex: 1 0 auto;
}

.st-site-footer {
    margin-top: auto;
}

.navbar-brand {
    letter-spacing: 0.3px;
}

.navbar,
.st-site-footer {
    background-color: var(--st-nav-bg) !important;
    border-color: var(--st-nav-border) !important;
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: var(--st-ink);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--st-primary);
}

.account-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--st-ink);
    text-decoration: none;
    padding: 0.25rem 0.35rem;
    border-radius: 999px;
}

.account-menu-toggle:hover,
.account-menu-toggle:focus {
    color: var(--st-primary);
}

.account-menu-avatar {
    width: 1.65rem;
    height: 1.65rem;
    border: 1px solid var(--st-border);
    object-fit: cover;
}

.account-menu-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--st-accent);
    color: var(--st-ink);
}

.page-hero {
    background: var(--st-page-hero-bg);
    border: 1px solid var(--st-page-hero-border);
    border-radius: 0.35rem;
    padding: 2rem;
}

.page-hero h1,
.page-hero h2 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.st-card {
    border: 1px solid var(--st-border);
    border-radius: 0.25rem;
    background: var(--st-surface);
}

.st-card .card-body {
    padding: 1.25rem;
}

.form-label {
    font-weight: 600;
    color: var(--st-ink);
}

.form-text,
.text-muted {
    color: var(--st-muted) !important;
}

.st-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.st-breadcrumb-title {
    font-size: 20px;
    line-height: 1.2;
}

.st-breadcrumb,
.st-breadcrumb a,
.st-breadcrumb-current,
.st-breadcrumb-separator {
    font-size: 20px;
}

.st-breadcrumb a {
    color: var(--st-muted);
    font-weight: 200;
    text-decoration: none;
}

.st-breadcrumb a:hover,
.st-breadcrumb a:focus {
    color: var(--st-primary);
    text-decoration: none;
}

.st-breadcrumb-separator {
    color: var(--st-muted);
    font-weight: 300;
}

.st-breadcrumb-current {
    color: var(--st-ink);
    font-weight: 600;
}

.category-pill {
    border: 1px solid var(--st-border);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--st-surface);
    color: var(--st-ink);
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.category-pill:hover {
    border-color: var(--st-primary);
}

.category-pill.form-check {
    padding-left: 0.75rem;
}

.category-pill .form-check-input {
    margin-left: 0;
}

.category-pill:has(.form-check-input:checked) {
    border-color: var(--st-primary);
    background: var(--st-accent);
    color: #111827;
}

.verification-banner {
    border-left: 5px solid #f59e0b;
    background: var(--st-verification-bg);
    color: var(--st-ink);
    font-weight: 200;
    border-radius: 0.25rem;
    padding: 0.9rem 1rem;
}

.status-chip {
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-pending {
    background: var(--st-status-pending-bg);
    color: var(--st-status-pending-color);
}

.status-active {
    background: var(--st-status-active-bg);
    color: var(--st-status-active-color);
}

.status-denied,
.status-suspended {
    background: var(--st-status-denied-bg);
    color: var(--st-status-denied-color);
}

.auth-wrap {
    max-width: 540px;
    margin: 0 auto;
}

.social-row {
    background: var(--st-surface);
    border: 1px dashed var(--st-border);
    border-radius: 0.25rem;
    padding: 0.75rem;
}

.social-row .input-group-text {
    font-size: 0.75rem;
    min-width: 160px;
}

.social-preview-link {
    color: var(--st-social-link);
}

.social-preview-link:visited {
    color: var(--st-social-link);
}

.social-preview-link:hover,
.social-preview-link:focus {
    color: var(--st-social-link-hover);
    border-color: #9fb4d3;
}

.dashboard-avatar-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.dashboard-avatar-circle {
    width: 56px;
    height: 56px;
    object-fit: cover;
}

.dashboard-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.42);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.18s ease, background-color 0.18s ease;
    pointer-events: none;
}

.dashboard-avatar-link:hover .dashboard-avatar-overlay,
.dashboard-avatar-link:focus-visible .dashboard-avatar-overlay {
    opacity: 1;
    background: rgba(15, 23, 42, 0.52);
}

.dashboard-avatar-link:focus-visible {
    outline: 2px solid var(--st-primary);
    outline-offset: 2px;
    border-radius: 50%;
}

.settings-avatar-preview-wrap {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
}

.settings-avatar-preview,
.settings-avatar-fallback {
    width: 96px;
    height: 96px;
}

.settings-avatar-preview {
    object-fit: cover;
}

.settings-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--st-muted);
    background-color: var(--st-surface);
}

.avatar-crop-stage {
    max-width: 360px;
    margin: 0 auto;
    border: 1px solid var(--st-border);
    border-radius: 0.35rem;
    overflow: hidden;
    background: #101725;
}

.avatar-crop-canvas {
    width: 100%;
    height: auto;
    display: block;
    cursor: grab;
    touch-action: none;
}

.avatar-crop-canvas.is-dragging {
    cursor: grabbing;
}

.theme-toggle-btn i {
    min-width: 0.95rem;
}

.badge {
    border-radius: 0.25rem;
}

.modal-content,
.alert,
.form-control,
.form-select,
.input-group-text {
    border-radius: 0.25rem;
}

.modal-content,
.alert {
    border-color: var(--st-border);
}

.form-control,
.form-select,
.input-group-text {
    border-color: var(--st-input-border);
    background-color: var(--st-input-bg);
    color: var(--st-ink);
}

.form-control::placeholder {
    color: var(--st-muted);
    opacity: 0.85;
}

html[data-theme='dark'] .text-bg-light {
    background-color: #26354e !important;
    color: #dde9ff !important;
}

html[data-theme='dark'] .table {
    --bs-table-color: var(--st-ink);
    --bs-table-bg: var(--st-surface);
    --bs-table-border-color: var(--st-border);
    --bs-table-striped-bg: #1d2a40;
    --bs-table-hover-bg: #24344f;
}

html[data-theme='dark'] .table-light {
    --bs-table-bg: #21324c;
    --bs-table-color: #edf3ff;
}

html[data-theme='dark'] .dropdown-menu {
    background-color: var(--st-surface);
    border-color: var(--st-border);
}

html[data-theme='dark'] .dropdown-item {
    color: var(--st-ink);
}

html[data-theme='dark'] .dropdown-item:hover,
html[data-theme='dark'] .dropdown-item:focus {
    background-color: #24344f;
    color: #edf3ff;
}

html[data-theme='dark'] .dropdown-divider {
    border-color: var(--st-border);
}

html[data-theme='dark'] .form-select option {
    background-color: #ffffff;
    color: #111827;
}

html[data-theme='dark'] .btn-outline-secondary {
    color: var(--st-ink);
    border-color: var(--st-border);
}

html[data-theme='dark'] .btn-outline-secondary:hover {
    background-color: #24344f;
    border-color: #4a6183;
    color: #edf3ff;
}

html[data-theme='dark'] .account-menu-avatar {
    border-color: rgba(148, 163, 184, 0.55);
}

html[data-theme='dark'] .account-menu-avatar-fallback {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

html[data-theme='dark'] .btn-outline-primary {
    color: #93b8ff;
    border-color: #4a6183;
}

html[data-theme='dark'] .dashboard-avatar-overlay {
    background: rgba(2, 6, 23, 0.58);
}

html[data-theme='dark'] .settings-avatar-fallback {
    background-color: #21324c;
    color: #dbe8ff;
}

html[data-theme='dark'] .avatar-crop-stage {
    background: #070d18;
}

html[data-theme='dark'] .btn-outline-danger {
    color: #fca5a5;
    border-color: #6b2e2e;
}

html[data-theme='dark'] .card {
    background-color: var(--st-surface);
    border-color: var(--st-border);
}

html[data-theme='dark'] .modal-content {
    background-color: var(--st-surface);
    color: var(--st-ink);
}

html[data-theme='dark'] .alert-danger {
    background-color: #3b1517;
    border-color: #6b2e2e;
    color: #fca5a5;
}

html[data-theme='dark'] .alert-warning {
    background-color: #3a2d10;
    border-color: #5c4a1a;
    color: #fbbf24;
}

html[data-theme='dark'] .alert-info {
    background-color: #152a44;
    border-color: #2a4a6e;
    color: #93b8ff;
}

html[data-theme='dark'] .alert-success {
    background-color: #14331a;
    border-color: #1f5c2a;
    color: #6ee7b7;
}

html[data-theme='dark'] .border {
    border-color: var(--st-border) !important;
}
