:root {
    color-scheme: light;
    --bh-page: #edf3f0;
    --bh-surface: #ffffff;
    --bh-surface-soft: #f6f9f7;
    --bh-text: #1c302c;
    --bh-muted: #687a75;
    --bh-border: #dce6e1;
    --bh-accent: #c83f45;
    --bh-accent-hover: #a92f36;
    --bh-shadow: 0 12px 35px rgba(24, 59, 53, 0.08);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bh-page: #121c1a;
    --bh-surface: #1b2926;
    --bh-surface-soft: #22332f;
    --bh-text: #edf4f1;
    --bh-muted: #a2b4ae;
    --bh-border: #354944;
    --bh-accent: #f06b6d;
    --bh-accent-hover: #ff8584;
    --bh-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

html, body {
    background: var(--bh-page);
}

body {
    color: var(--bh-text);
    transition: color 180ms ease, background-color 180ms ease;
}

.content-wrapper {
    color: var(--bh-text);
    background: var(--bh-page);
}

.main-header, .main-footer {
    color: var(--bh-text);
    background: var(--bh-surface);
    border-color: var(--bh-border);
}

.main-header { box-shadow: 0 1px 0 var(--bh-border); }
.main-sidebar, .sidebar-light-red { background: var(--bh-surface); transition: background-color 180ms ease; }
.brand-link, .user-panel, .sidebar-light-red .brand-link, .sidebar-light-red .user-panel { border-color: var(--bh-border); }
.brand-link, .user-panel .info a, .nav-sidebar .nav-link, .main-header .nav-link, .main-footer a { color: var(--bh-text); }

.main-sidebar .brand-link {
    display: flex;
    height: 60px;
    align-items: center;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
}

.main-sidebar .brand-image {
    float: none;
    width: 32px;
    height: 32px;
    max-height: 32px;
    margin: 0 10px 0 0;
    object-fit: cover;
}

.main-sidebar .sidebar { padding: 0 8px 14px; }
.main-sidebar .user-panel { align-items: center; margin: 12px 4px 12px !important; padding: 0 2px 12px !important; }
.main-sidebar .user-panel .image img { width: 34px; height: 34px; object-fit: cover; }
.main-sidebar .user-panel .info { padding-left: 10px; }
.main-sidebar .user-panel .info a { max-width: 152px; overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.main-sidebar .nav-sidebar > .nav-item { margin-bottom: 2px; }
.main-sidebar .nav-sidebar > .nav-item > .nav-link { min-height: 38px; padding: 8px 10px; font-size: 13px; }
.main-sidebar .nav-sidebar .nav-icon { width: 20px; margin-right: 7px; font-size: 13px; }
.main-sidebar .nav-sidebar p { font-weight: 500; }
.main-sidebar .nav-sidebar .badge { margin-top: 1px; font-size: 10px; }

.nav-sidebar .nav-link {
    margin: 2px 8px;
    border-radius: 5px;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.nav-sidebar .nav-link:hover {
    color: var(--bh-accent-hover);
    background: var(--bh-surface-soft);
html[data-theme="dark"] .sidebar-light-red .nav-sidebar > .nav-item > .nav-link.active { background: var(--bh-accent); }
    transform: translateX(2px);
}

.nav-sidebar .nav-link.active, .sidebar-light-red .nav-sidebar > .nav-item > .nav-link.active {
    color: #fff;
    background: var(--bh-accent);
    box-shadow: 0 5px 12px rgba(200, 63, 69, 0.2);
}

.dashboard-view .content-header { padding: 16px 20px 8px; }
.dashboard-view .content-header h1 { margin: 0; font-size: 21px; font-weight: 700; }
.dashboard-view .content { padding: 10px 20px 20px; }
.dashboard-view .small-box { min-height: 122px; margin-bottom: 14px; overflow: hidden; }
.dashboard-view .small-box .inner { padding: 14px 16px 10px; }
.dashboard-view .small-box .inner h3 { margin: 0 0 4px; font-size: 27px; font-weight: 700; }
.dashboard-view .small-box .inner p { margin: 0; font-size: 13px; font-weight: 600; }
.dashboard-view .small-box .icon { top: 12px; right: 12px; }
.dashboard-view .small-box .icon > i { top: 0; font-size: 48px; transition: transform 180ms ease; }
.dashboard-view .small-box:hover .icon > i { transform: scale(1.08); }
.dashboard-view .small-box-footer { padding: 6px 10px; font-size: 12px; }
.dashboard-view .info-box { min-height: 76px; margin-bottom: 14px; padding: 9px 11px; }
.dashboard-view .info-box-icon { width: 54px; height: 54px; border-radius: 5px; font-size: 20px; }
.dashboard-view .info-box-content { padding: 2px 8px; }
.dashboard-view .info-box-text { font-size: 11px; font-weight: 600; }
.dashboard-view .info-box-number { font-size: 18px; font-weight: 700; }
.dashboard-view .card { margin-bottom: 16px; }
.dashboard-view .card-header { min-height: 44px; padding: 10px 14px; }
.dashboard-view .card-title { margin: 0; font-size: 14px; font-weight: 700; }
.dashboard-view .card-tools .btn-tool { padding: 3px 7px; font-size: 12px; }
.dashboard-view .table th, .dashboard-view .table td { padding: 8px 10px; font-size: 12px; vertical-align: middle; }
.dashboard-view .nav-pills.flex-column .nav-link { padding: 9px 14px; font-size: 13px; }
.dashboard-view .small-box, .dashboard-view .info-box, .dashboard-view .card { animation: bh-dashboard-enter 260ms ease-out both; }
.dashboard-view .row > [class*="col-"]:nth-child(2) > .small-box,
.dashboard-view .row > [class*="col-"]:nth-child(2) > .info-box { animation-delay: 35ms; }
.dashboard-view .row > [class*="col-"]:nth-child(3) > .small-box,
.dashboard-view .row > [class*="col-"]:nth-child(3) > .info-box { animation-delay: 70ms; }
.dashboard-view .row > [class*="col-"]:nth-child(4) > .small-box,
.dashboard-view .row > [class*="col-"]:nth-child(4) > .info-box { animation-delay: 105ms; }

@keyframes bh-dashboard-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.bloodhub-theme-toggle {
    min-width: 40px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
}

.bloodhub-theme-toggle:hover, .bloodhub-theme-toggle:focus {
    color: var(--bh-accent) !important;
    background: var(--bh-surface-soft);
}

.card, .info-box, .modal-content, .dropdown-menu, .callout, .list-group-item {
    color: var(--bh-text);
    background-color: var(--bh-surface);
    border-color: var(--bh-border);
    border-radius: 6px;
    box-shadow: var(--bh-shadow);
}

.card-header, .card-footer { background-color: var(--bh-surface-soft); border-color: var(--bh-border); }
.content-header h1, .card-title, .modal-title { color: var(--bh-text); }
.small-box { border-radius: 6px; box-shadow: var(--bh-shadow); transition: transform 180ms ease, box-shadow 180ms ease; }
.small-box .inner h3, .small-box .inner p, .small-box-footer { color: #fff; }
.small-box .icon { color: rgba(255, 255, 255, 0.16); }
.small-box.bg-warning .inner h3, .small-box.bg-warning .inner p, .small-box.bg-warning .small-box-footer { color: #21312b; }
.small-box.bg-warning .icon { color: rgba(33, 49, 43, 0.16); }
.info-box[class*="bg-"] { color: #fff; }
.info-box[class*="bg-"] .info-box-text { color: rgba(255, 255, 255, 0.78); }
.info-box.bg-warning { color: #21312b; }
.info-box.bg-warning .info-box-text { color: rgba(33, 49, 43, 0.72); }
.content .info-box, .content .card { transition: transform 180ms ease, box-shadow 180ms ease; }
.content .info-box:hover, .content .small-box:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(24, 59, 53, 0.14); }
.small-box-footer { transition: background-color 160ms ease, padding 160ms ease; }
.small-box:hover .small-box-footer { padding-left: 17px; background: rgba(0, 0, 0, 0.12); }

.form-control, .custom-select, .input-group-text, .select2-container--bootstrap4 .select2-selection {
    color: var(--bh-text);
    background-color: var(--bh-surface);
    border-color: var(--bh-border);
    border-radius: 4px;
}

.form-control:focus, .custom-select:focus {
    color: var(--bh-text);
    background-color: var(--bh-surface);
    border-color: var(--bh-accent);
    box-shadow: 0 0 0 3px rgba(200, 63, 69, 0.14);
}

.btn-primary, .bg-primary { background-color: var(--bh-accent) !important; border-color: var(--bh-accent) !important; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--bh-accent-hover) !important; border-color: var(--bh-accent-hover) !important; }
.btn { border-radius: 4px; transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease; }
.btn:hover { transform: translateY(-1px); }
.table { color: var(--bh-text); }
.table td, .table th, .table thead th, .table-bordered td, .table-bordered th { border-color: var(--bh-border); }
.table thead th { color: var(--bh-muted); background: var(--bh-surface-soft); font-weight: 600; }
.table-hover tbody tr:hover { color: var(--bh-text); background: var(--bh-surface-soft); }
.breadcrumb { background: transparent; }

.bloodhub-loader {
    position: fixed;
    z-index: 20000;
    inset: 0;
    display: none;
    place-items: center;
    background: var(--bh-page);
    pointer-events: none;
}

.bloodhub-loader.is-visible { display: grid; }

.bloodhub-loader-mark {
    position: relative;
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    color: var(--bh-accent);
    font-size: 30px;
    animation: bh-drop-beat 900ms ease-in-out infinite;
}

.bloodhub-loader-mark::before, .bloodhub-loader-mark::after {
    position: absolute;
    inset: 0;
    border: 1px solid var(--bh-accent);
    border-radius: 50%;
    content: "";
    animation: bh-drop-ripple 1.8s ease-out infinite;
}

.bloodhub-loader-mark::after { animation-delay: 900ms; }

html[data-theme="dark"] body,
html[data-theme="dark"] .content-wrapper,
html[data-theme="dark"] .main-header,
html[data-theme="dark"] .main-footer,
html[data-theme="dark"] .main-sidebar,
html[data-theme="dark"] .sidebar-light-red { color: var(--bh-text); background-color: var(--bh-page); }

html[data-theme="dark"] .main-header,
html[data-theme="dark"] .main-footer,
html[data-theme="dark"] .brand-link,
html[data-theme="dark"] .user-panel { border-color: var(--bh-border); }

html[data-theme="dark"] .card,
html[data-theme="dark"] .info-box,
html[data-theme="dark"] .small-box,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .callout,
html[data-theme="dark"] .list-group-item { color: var(--bh-text); background-color: var(--bh-surface); border-color: var(--bh-border); }

html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-footer,
html[data-theme="dark"] .table thead th,
html[data-theme="dark"] .table-hover tbody tr:hover { color: var(--bh-text); background-color: var(--bh-surface-soft); }

html[data-theme="dark"] .content .info-box.bg-light,
html[data-theme="dark"] .content .card.bg-light {
    color: var(--bh-text) !important;
    background: var(--bh-surface-soft) !important;
    border: 1px solid var(--bh-border);
}
html[data-theme="dark"] .content .info-box.bg-light .info-box-text { color: var(--bh-muted) !important; }
html[data-theme="dark"] .content .info-box.bg-light .info-box-number { color: var(--bh-text) !important; }

html[data-theme="dark"] .text-dark,
html[data-theme="dark"] .content-header h1,
html[data-theme="dark"] .card-title,
html[data-theme="dark"] .modal-title,
html[data-theme="dark"] .dropdown-item { color: var(--bh-text) !important; }

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .custom-select,
html[data-theme="dark"] .input-group-text,
html[data-theme="dark"] .select2-container--bootstrap4 .select2-selection,
html[data-theme="dark"] .select2-dropdown { color: var(--bh-text); background-color: var(--bh-surface); border-color: var(--bh-border); }

html[data-theme="dark"] .table,
html[data-theme="dark"] .table td,
html[data-theme="dark"] .table th,
html[data-theme="dark"] .table-bordered td,
html[data-theme="dark"] .table-bordered th { color: var(--bh-text); border-color: var(--bh-border); }

html[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) { background-color: rgba(255, 255, 255, 0.025); }
html[data-theme="dark"] .dropdown-item:hover, html[data-theme="dark"] .dropdown-item:focus { color: var(--bh-text); background-color: var(--bh-surface-soft); }
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .text-secondary,
html[data-theme="dark"] .info-box-text { color: var(--bh-muted) !important; }
html[data-theme="dark"] .small-box .inner h3,
html[data-theme="dark"] .small-box .inner p,
html[data-theme="dark"] .small-box-footer,
html[data-theme="dark"] .info-box[class*="bg-"] .info-box-text { color: #fff !important; }
html[data-theme="dark"] .sidebar-light-red .brand-link,
html[data-theme="dark"] .sidebar-light-red .user-panel .info a,
html[data-theme="dark"] .sidebar-light-red .nav-sidebar > .nav-item > .nav-link,
html[data-theme="dark"] .sidebar-light-red .nav-sidebar > .nav-item > .nav-link .nav-icon { color: var(--bh-text) !important; }
html[data-theme="dark"] .sidebar-light-red .nav-sidebar > .nav-item > .nav-link:hover { color: var(--bh-accent-hover) !important; }
html[data-theme="dark"] .sidebar-light-red .nav-sidebar > .nav-item > .nav-link.active,
html[data-theme="dark"] .sidebar-light-red .nav-sidebar > .nav-item > .nav-link.active .nav-icon { color: #fff !important; }
html[data-theme="dark"] .main-header .navbar-nav .nav-link { color: var(--bh-text) !important; }
html[data-theme="dark"] .main-header .navbar-nav .nav-link:hover { color: var(--bh-accent-hover) !important; }
html[data-theme="dark"] .breadcrumb-item a { color: var(--bh-accent-hover) !important; }
html[data-theme="dark"] .small-box.bg-warning .inner h3,
html[data-theme="dark"] .small-box.bg-warning .inner p,
html[data-theme="dark"] .small-box.bg-warning .small-box-footer,
html[data-theme="dark"] .info-box.bg-warning,
html[data-theme="dark"] .info-box.bg-warning .info-box-text { color: #21312b !important; }
html[data-theme="dark"] .small-box.bg-warning .small-box-footer { background: rgba(0, 0, 0, 0.08); }
html[data-theme="dark"] .small-box.bg-warning .icon { color: rgba(33, 49, 43, 0.16); }
html[data-theme="dark"] .card-body,
html[data-theme="dark"] .info-box-content,
html[data-theme="dark"] .list-group-item { color: var(--bh-text); }

@keyframes bh-drop-beat { 0%, 100% { transform: translateY(0) scale(1); } 45% { transform: translateY(-5px) scale(1.08); } }
@keyframes bh-drop-ripple { 0% { opacity: 0.65; transform: scale(0.55); } 100% { opacity: 0; transform: scale(1.35); } }

@media (max-width: 767.98px) {
    .content-header { padding: 14px 14px 0; }
    .content { padding: 14px; }
    .main-footer { padding: 12px 14px; }
    .table-responsive { border-color: var(--bh-border); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.public-entry { min-height: 100vh; background: var(--bh-page); font-family: "Source Sans Pro", "Segoe UI", sans-serif; }
.content-wrapper a:not(.btn):not(.nav-link) { text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 160ms ease, text-decoration-color 160ms ease; }
.content-wrapper a:not(.btn):not(.nav-link):hover { color: var(--bh-accent-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(200, 63, 69, 0.5);
    outline-offset: 2px;
}
.main-header .nav-link { transition: color 160ms ease, background-color 160ms ease; }
.main-header .nav-link:hover { color: var(--bh-accent) !important; background: var(--bh-surface-soft); }
.public-header { display: flex; min-height: 76px; align-items: center; justify-content: space-between; padding: 12px clamp(20px, 6vw, 88px); border-bottom: 1px solid var(--bh-border); background: var(--bh-surface); }
.public-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--bh-text); font-size: 18px; font-weight: 700; }
.public-brand:hover { color: var(--bh-text); text-decoration: none; }
.public-brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.public-header-actions { display: flex; align-items: center; gap: 18px; }
.public-header-actions a { color: var(--bh-text); font-weight: 600; }
.public-theme-toggle { display: grid; width: 40px; height: 40px; place-items: center; color: var(--bh-text); background: var(--bh-surface-soft); border: 1px solid var(--bh-border); border-radius: 50%; cursor: pointer; }

.entry-layout { display: grid; min-height: calc(100vh - 76px); grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr); }
.entry-story { position: relative; display: flex; min-height: 620px; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(44px, 8vw, 120px); color: #f6fbf8; background: linear-gradient(135deg, #163a34 0%, #24574b 62%, #347266 100%); isolation: isolate; }
.entry-story::before { position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px); background-size: 25px 25px; content: ""; mask-image: linear-gradient(120deg, transparent 10%, #000 100%); opacity: 0.38; }
.entry-kicker { display: inline-flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 25px; color: #c9e2d7; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.entry-kicker i { color: #ff8a8c; }
.entry-story h1 { max-width: 500px; margin: 0 0 20px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5.4vw, 72px); font-weight: 400; line-height: 1.06; }
.entry-story h1 span { color: #ff9a94; }
.entry-copy { max-width: 490px; margin-bottom: 34px; color: #d1e2dc; font-size: 17px; line-height: 1.65; }
.entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.entry-primary-link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; color: #fff; background: var(--bh-accent); border-radius: 4px; font-weight: 700; text-decoration: none; transition: transform 150ms ease, background-color 150ms ease; }
.entry-primary-link:hover { color: #fff; background: var(--bh-accent-hover); text-decoration: none; transform: translateY(-2px); }
.entry-text-link { padding: 12px 4px; color: #e4f0eb; font-weight: 600; }
.entry-text-link:hover { color: #fff; }
.entry-proof { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 54px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.entry-proof span { color: #d5e5df; font-size: 14px; }
.entry-proof i { margin-right: 7px; color: #ff9a94; }
.entry-drop-art { position: absolute; right: 5%; top: 12%; display: grid; width: clamp(110px, 10vw, 150px); aspect-ratio: 1; place-items: center; color: rgba(255, 155, 148, 0.8); font-size: clamp(42px, 5vw, 64px); border: 1px solid rgba(236, 255, 245, 0.18); border-radius: 50%; box-shadow: 0 0 0 18px rgba(236, 255, 245, 0.035), 0 0 0 38px rgba(236, 255, 245, 0.025); animation: bh-hero-drop 4.8s ease-in-out infinite; }
.entry-form-side { display: flex; align-items: center; justify-content: center; padding: 56px clamp(28px, 6vw, 86px); background: var(--bh-surface); }
.entry-form { width: 100%; max-width: 410px; }
.entry-form h2 { margin: 0 0 8px; color: var(--bh-text); font-family: Georgia, "Times New Roman", serif; font-size: 36px; font-weight: 400; }
.entry-form-intro { margin-bottom: 30px; color: var(--bh-muted); font-size: 15px; }
.entry-form label { display: block; margin-bottom: 7px; color: var(--bh-text); font-size: 13px; font-weight: 700; }
.entry-form .form-group { margin-bottom: 19px; }
.entry-form .form-control { width: 100%; min-height: 48px; padding: 10px 13px; background-color: var(--bh-surface-soft); }
.entry-submit { width: 100%; min-height: 49px; margin-top: 4px; color: #fff; background: var(--bh-accent); border: 0; font-size: 15px; font-weight: 700; }
.entry-submit:hover, .entry-submit:focus { color: #fff; background: var(--bh-accent-hover); }
.entry-register { margin: 22px 0 0; color: var(--bh-muted); text-align: center; }
.entry-register a { color: var(--bh-accent-hover); font-weight: 700; }
.entry-help { margin-top: 28px; padding-top: 18px; color: var(--bh-muted); border-top: 1px solid var(--bh-border); font-size: 13px; line-height: 1.55; }
.entry-help i { margin-right: 6px; color: var(--bh-accent); }

html[data-theme="dark"] .public-header, html[data-theme="dark"] .entry-form-side { background: var(--bh-surface); }
html[data-theme="dark"] .public-brand, html[data-theme="dark"] .public-header-actions a, html[data-theme="dark"] .public-theme-toggle { color: var(--bh-text); }
html[data-theme="dark"] .public-theme-toggle { background: var(--bh-surface-soft); border-color: var(--bh-border); }
html[data-theme="dark"] .register-logo a { color: var(--bh-text); }
html[data-theme="dark"] .register-card-body,
html[data-theme="dark"] .register-card-body .input-group-text { color: var(--bh-text); background-color: var(--bh-surface); border-color: var(--bh-border); }
.register-theme-toggle { position: fixed; z-index: 10; top: 18px; right: 20px; }
.loader-file-manager .fa-spinner { color: var(--bh-accent); }

@keyframes bh-hero-drop { 0%, 100% { transform: translateY(0) rotate(-7deg); } 50% { transform: translateY(-12px) rotate(7deg); } }

@media (max-width: 991.98px) {
    .entry-layout { grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr); }
    .entry-story { padding: 54px 38px; }
    .entry-drop-art { right: 7%; top: 8%; opacity: 0.5; }
    .entry-form-side { padding: 48px 32px; }
}

@media (max-width: 767.98px) {
    .public-header { min-height: 66px; padding: 10px 18px; }
    .entry-layout { display: block; }
    .entry-story { min-height: 450px; padding: 62px 26px 38px; }
    .entry-story h1 { max-width: 500px; font-size: 48px; }
    .entry-copy { font-size: 16px; }
    .entry-drop-art { display: none; }
    .entry-proof { gap: 10px 20px; margin-top: 35px; }
    .entry-form-side { padding: 48px 24px 56px; }
    .entry-form h2 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .entry-drop-art { animation: none; }
}

.donor-register-page {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--bh-text);
    background: var(--bh-page);
    font-family: "Source Sans Pro", "Segoe UI", sans-serif;
}

.register-motion {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(220, 236, 228, 0.72), transparent 62%);
}

.register-motion::before {
    position: absolute;
    inset: -80px;
    background-image: repeating-linear-gradient(132deg, transparent 0 46px, rgba(32, 83, 69, 0.055) 46px 47px), repeating-linear-gradient(42deg, transparent 0 92px, rgba(200, 63, 69, 0.035) 92px 93px);
    background-size: 280px 280px, 360px 360px;
    content: "";
    animation: bh-register-drift 42s linear infinite;
}

.register-header,
.register-main {
    position: relative;
    z-index: 1;
}

.register-header {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    padding: 12px max(24px, calc((100vw - 1240px) / 2));
    border-bottom: 1px solid var(--bh-border);
    background: color-mix(in srgb, var(--bh-surface) 90%, transparent);
}

.register-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.register-header-actions > a {
    color: var(--bh-muted);
    font-size: 14px;
    text-decoration: none;
}

.register-header-actions strong { color: var(--bh-accent-hover); }

.register-main {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0 64px;
}

.register-intro { margin: 0 0 28px; }

.register-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--bh-accent-hover);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.register-intro h1 {
    margin: 0 0 8px;
    color: var(--bh-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.12;
}

.register-intro p,
.register-form-heading p { margin: 0; color: var(--bh-muted); }

.register-form-surface {
    padding: clamp(22px, 3.5vw, 40px);
    background: var(--bh-surface);
    border: 1px solid var(--bh-border);
    border-radius: 6px;
    box-shadow: var(--bh-shadow);
    animation: bh-register-arrive 340ms ease-out both;
}

.register-form-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bh-border);
}

.register-form-heading h2 {
    margin: 0 0 5px;
    color: var(--bh-text);
    font-size: 20px;
    font-weight: 700;
}

.register-form-heading p { font-size: 14px; }

.register-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    color: var(--bh-accent-hover);
    background: var(--bh-surface-soft);
    border: 1px solid var(--bh-border);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.register-fields {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px 22px;
}

.register-fields > input[type="hidden"] { display: none; }
.register-fields > .input-group { display: block; min-width: 0; margin: 0 !important; }
.register-fields > .input-group:nth-of-type(1),
.register-fields > .input-group:nth-of-type(2),
.register-fields > .input-group:nth-of-type(3) { grid-column: span 6; }
.register-fields > .input-group:nth-of-type(4),
.register-fields > .input-group:nth-of-type(5) { grid-column: span 3; }
.register-fields > .input-group:nth-of-type(6),
.register-fields > .input-group:nth-of-type(7),
.register-fields > .input-group:nth-of-type(8),
.register-fields > .input-group:nth-of-type(9),
.register-fields > .input-group:nth-of-type(10),
.register-fields > .input-group:nth-of-type(11) { grid-column: span 4; }
.register-fields > .input-group:nth-of-type(12) { grid-column: span 8; }
.register-fields > .input-group:nth-of-type(13) { grid-column: span 4; }

.register-label {
    display: block;
    margin-bottom: 7px;
    color: var(--bh-text);
    font-size: 13px;
    font-weight: 700;
}

.register-fields .form-control,
.register-fields .select2-container--default .select2-selection--single {
    width: 100%;
    min-height: 46px;
    color: var(--bh-text);
    background-color: var(--bh-surface-soft);
    border: 1px solid var(--bh-border);
    border-radius: 4px;
    box-shadow: none;
}

.register-fields .form-control { padding: 10px 12px; }
.register-fields textarea.form-control { min-height: 46px; }
.register-fields .input-group-append { display: none; }
.register-fields .select2-container { width: 100% !important; }
.register-fields .select2-selection--single { display: flex; align-items: center; }
.register-fields .select2-selection__rendered { color: var(--bh-text) !important; line-height: 1.4 !important; }
.register-fields .select2-selection__arrow { top: 9px !important; }

.register-actions {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 6px;
    padding-top: 22px;
    border-top: 1px solid var(--bh-border);
}

.register-actions p { margin: 0; color: var(--bh-muted); font-size: 13px; }
.register-actions p i { margin-right: 6px; color: var(--bh-accent); }
.register-submit { min-height: 48px; padding: 10px 18px; font-weight: 700; }
.register-form-surface .alert { border-radius: 4px; }
.register-theme-toggle { position: fixed; z-index: 10; top: 18px; right: 20px; }

html[data-theme="dark"] .donor-register-page { background: var(--bh-page); }
html[data-theme="dark"] .register-motion { background: linear-gradient(145deg, rgba(69, 13, 27, 0.48), transparent 62%); }
html[data-theme="dark"] .register-motion::before { background-image: repeating-linear-gradient(132deg, transparent 0 46px, rgba(244, 237, 240, 0.045) 46px 47px), repeating-linear-gradient(42deg, transparent 0 92px, rgba(243, 52, 93, 0.045) 92px 93px); }
html[data-theme="dark"] .register-header { background: color-mix(in srgb, var(--bh-surface) 90%, transparent); }
html[data-theme="dark"] .register-form-surface { background: var(--bh-surface); }
html[data-theme="dark"] .register-fields .form-control,
html[data-theme="dark"] .register-fields .select2-container--default .select2-selection--single,
html[data-theme="dark"] .register-fields .select2-dropdown { color: var(--bh-text); background-color: var(--bh-surface-soft); border-color: var(--bh-border); }
html[data-theme="dark"] .register-fields .select2-results__option { color: var(--bh-text); background-color: var(--bh-surface); }

html[data-theme="dark"] .entry-story {
    background: linear-gradient(135deg, #170b0f 0%, #321019 58%, #531326 100%);
}
html[data-theme="dark"] .entry-story::before {
    background-image: radial-gradient(rgba(255, 230, 236, 0.14) 1px, transparent 1px);
}
html[data-theme="dark"] .entry-kicker { color: #f0c7d0; }
html[data-theme="dark"] .entry-copy { color: #e0cbd1; }

html[data-theme="dark"] .dashboard-view .info-box[class*="bg-"],
html[data-theme="dark"] .dashboard-view .small-box[class*="bg-"] {
    color: var(--bh-text) !important;
    background: var(--bh-surface) !important;
    border: 1px solid var(--bh-border);
}
html[data-theme="dark"] .dashboard-view .info-box[class*="bg-"] .info-box-icon,
html[data-theme="dark"] .dashboard-view .small-box[class*="bg-"] .icon {
    color: var(--bh-accent-hover) !important;
}
html[data-theme="dark"] .dashboard-view .info-box[class*="bg-"] .info-box-text { color: var(--bh-muted) !important; }
html[data-theme="dark"] .dashboard-view .info-box[class*="bg-"] .info-box-number,
html[data-theme="dark"] .dashboard-view .small-box[class*="bg-"] .inner h3,
html[data-theme="dark"] .dashboard-view .small-box[class*="bg-"] .inner p { color: var(--bh-text) !important; }
html[data-theme="dark"] .dashboard-view .small-box[class*="bg-"] .small-box-footer {
    color: var(--bh-accent-hover) !important;
    background: var(--bh-surface-soft);
}

@keyframes bh-register-drift { from { background-position: 0 0, 0 0; } to { background-position: 280px 280px, -360px 360px; } }
@keyframes bh-register-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
    .register-main { width: min(100% - 36px, 760px); padding-top: 36px; }
    .register-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .register-fields > .input-group { grid-column: auto !important; }
    .register-fields > .input-group:nth-of-type(12),
    .register-fields > .input-group:nth-of-type(13) { grid-column: span 2 !important; }
}

@media (max-width: 575.98px) {
    .register-header { min-height: 64px; padding: 10px 16px; }
    .register-header .public-brand { gap: 8px; font-size: 15px; }
    .register-header .public-brand img { width: 32px; height: 32px; }
    .register-header-actions { gap: 10px; }
    .register-header-actions > a { max-width: 118px; font-size: 12px; line-height: 1.35; }
    .register-main { width: calc(100% - 28px); padding: 28px 0 40px; }
    .register-intro h1 { font-size: 34px; }
    .register-form-surface { padding: 20px 16px; }
    .register-form-heading { align-items: flex-start; }
    .register-step { padding: 7px; font-size: 11px; }
    .register-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .register-fields > .input-group,
    .register-fields > .input-group:nth-of-type(12),
    .register-fields > .input-group:nth-of-type(13) { grid-column: 1 / -1 !important; }
    .register-actions { align-items: stretch; flex-direction: column; }
    .register-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .register-motion::before,
    .register-form-surface { animation: none; }
}

html[data-theme="dark"] body {
    --bh-page: #09080a;
    --bh-surface: #120d10;
    --bh-surface-soft: #1b1216;
    --bh-text: #f4edf0;
    --bh-muted: #b4a4aa;
    --bh-border: #3a1a24;
    --bh-accent: #d60f3e;
    --bh-accent-hover: #f3345d;
    --bh-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}

.admin-overview { padding: 20px 20px 34px; }
.admin-overview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 2px 0 20px; }
.admin-eyebrow { display: block; margin-bottom: 8px; color: var(--bh-accent-hover); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.admin-eyebrow i { margin-right: 6px; }
.admin-overview-heading h1 { margin: 0 0 5px; color: var(--bh-text); font-size: 25px; font-weight: 700; }
.admin-overview-heading p { margin: 0; color: var(--bh-muted); font-size: 13px; }
.admin-heading-actions { display: flex; align-items: center; gap: 9px; }
.admin-heading-actions .btn { padding: 8px 12px; font-size: 12px; font-weight: 600; }
.admin-heading-actions .btn i { margin-right: 6px; }
.admin-primary-action { color: #fff; background: var(--bh-accent); border: 1px solid var(--bh-accent); }
.admin-primary-action:hover { color: #fff; background: var(--bh-accent-hover); border-color: var(--bh-accent-hover); }
.admin-secondary-action { color: var(--bh-text); background: var(--bh-surface); border: 1px solid var(--bh-border); }
.admin-secondary-action:hover { color: var(--bh-accent-hover); background: var(--bh-surface-soft); border-color: var(--bh-accent); }

.admin-metrics { margin: 0 -7px 12px; }
.admin-metrics > [class*="col-"] { padding: 0 7px; }
.admin-metric-card {
    position: relative;
    display: flex;
    min-height: 130px;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 14px;
    padding: 16px 18px;
    color: var(--bh-text);
    background: var(--bh-surface);
    border: 1px solid var(--bh-border);
    border-radius: 6px;
    box-shadow: var(--bh-shadow);
    text-decoration: none !important;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.admin-metric-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--metric-accent, var(--bh-accent)); content: ""; }
.admin-metric-card:hover { color: var(--bh-text); border-color: var(--metric-accent, var(--bh-accent)); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18); text-decoration: none; transform: translateY(-2px); }
.admin-metric-icon { position: absolute; top: 14px; right: 15px; display: grid; width: 34px; height: 34px; place-items: center; color: var(--metric-accent, var(--bh-accent)); background: color-mix(in srgb, var(--metric-accent, var(--bh-accent)) 12%, transparent); border-radius: 5px; font-size: 14px; }
.admin-metric-label { margin-bottom: 7px; color: var(--bh-muted); font-size: 12px; font-weight: 600; }
.admin-metric-card > strong { color: var(--bh-text); font-size: 27px; font-weight: 700; line-height: 1.15; }
.admin-metric-note { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; color: var(--bh-muted); font-size: 11px; }
.admin-metric-note i { color: var(--metric-accent, var(--bh-accent)); transition: transform 160ms ease; }
.admin-metric-card:hover .admin-metric-note i { transform: translateX(3px); }
.metric-red { --metric-accent: #df3155; }
.metric-green { --metric-accent: #32a879; }
.metric-amber { --metric-accent: #e8a53b; }
.metric-blue { --metric-accent: #538fd4; }

.admin-overview-main { margin: 0 -7px 24px; }
.admin-overview-main > [class*="col-"] { padding: 0 7px; }
.admin-panel { min-height: 292px; padding: 18px; color: var(--bh-text); background: var(--bh-surface); border: 1px solid var(--bh-border); border-radius: 6px; box-shadow: var(--bh-shadow); animation: bh-dashboard-enter 280ms ease-out both; }
.admin-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.admin-panel-heading h2, .admin-section-heading h2 { margin: 0 0 5px; color: var(--bh-text); font-size: 14px; font-weight: 700; }
.admin-panel-heading p, .admin-section-heading p { margin: 0; color: var(--bh-muted); font-size: 11px; }
.admin-panel-period { padding: 5px 8px; color: var(--bh-muted); background: var(--bh-surface-soft); border: 1px solid var(--bh-border); border-radius: 4px; font-size: 10px; }
.admin-chart-wrap { position: relative; height: 214px; }
.admin-activity-panel { min-height: 292px; }
.admin-view-link { color: var(--bh-accent-hover); font-size: 11px; font-weight: 600; white-space: nowrap; }
.admin-view-link i { margin-left: 4px; transition: transform 160ms ease; }
.admin-view-link:hover { color: var(--bh-accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.admin-view-link:hover i { transform: translateX(3px); }
.admin-activity-list { margin: 0; padding: 0; list-style: none; }
.admin-activity-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--bh-border); }
.admin-activity-list li:first-child { padding-top: 2px; border-top: 0; }
.admin-activity-icon { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; color: var(--bh-accent-hover); background: color-mix(in srgb, var(--bh-accent) 14%, transparent); border-radius: 50%; font-size: 10px; }
.admin-activity-icon.activity-post { color: #e2a54b; background: rgba(226, 165, 75, 0.12); }
.admin-activity-copy { display: grid; min-width: 0; flex: 1; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; }
.admin-activity-copy strong { overflow: hidden; color: var(--bh-text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-activity-copy span { overflow: hidden; color: var(--bh-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-activity-copy time { grid-column: 1 / -1; color: var(--bh-muted); font-size: 9px; }
.admin-empty-activity { display: grid; min-height: 184px; place-content: center; gap: 10px; color: var(--bh-muted); font-size: 12px; text-align: center; }
.admin-empty-activity i { color: var(--bh-accent-hover); font-size: 22px; }

.admin-section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 0 0 12px; }
.admin-shortcut-grid { margin: 0 -6px; }
.admin-shortcut-grid > [class*="col-"] { padding: 0 6px; }
.admin-shortcut-card { display: flex; min-height: 72px; align-items: center; gap: 10px; margin-bottom: 12px; padding: 11px; color: var(--bh-text); background: var(--bh-surface); border: 1px solid var(--bh-border); border-radius: 5px; text-decoration: none !important; transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease; }
.admin-shortcut-card:hover { color: var(--bh-text); background: var(--bh-surface-soft); border-color: var(--bh-accent); text-decoration: none; transform: translateY(-2px); }
.admin-shortcut-icon { display: grid; width: 33px; height: 33px; flex: 0 0 33px; place-items: center; color: var(--bh-accent-hover); background: color-mix(in srgb, var(--bh-accent) 12%, transparent); border-radius: 5px; font-size: 13px; }
.admin-shortcut-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.admin-shortcut-copy strong { overflow: hidden; color: var(--bh-text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-shortcut-copy small { overflow: hidden; color: var(--bh-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-shortcut-count { color: var(--bh-muted); font-size: 10px; font-weight: 700; }
.admin-shortcut-arrow { color: var(--bh-accent-hover); font-size: 10px; }

.admin-activity-table-card .card-header { padding: 15px 17px; }
.admin-activity-table-card .card-title { display: block; margin-bottom: 5px; }
.admin-activity-table-caption { color: var(--bh-muted); font-size: 11px; }
.admin-activity-table-card table { min-width: 700px; }
.admin-activity-table-card td, .admin-activity-table-card th { padding: 10px 12px; font-size: 12px; vertical-align: middle; }
.admin-activity-table-card code { color: var(--bh-accent-hover); font-size: 11px; }

@keyframes bh-shortcut-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.admin-shortcut-card { animation: bh-shortcut-enter 240ms ease-out both; }
.admin-shortcut-grid > [class*="col-"]:nth-child(2) .admin-shortcut-card { animation-delay: 25ms; }
.admin-shortcut-grid > [class*="col-"]:nth-child(3) .admin-shortcut-card { animation-delay: 50ms; }
.admin-shortcut-grid > [class*="col-"]:nth-child(4) .admin-shortcut-card { animation-delay: 75ms; }

@media (max-width: 991.98px) {
    .admin-overview-main .admin-panel { margin-bottom: 14px; }
    .admin-overview-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 575.98px) {
    .admin-overview { padding: 14px 12px 24px; }
    .admin-overview-heading h1 { font-size: 21px; }
    .admin-heading-actions { width: 100%; }
    .admin-heading-actions .btn { flex: 1; }
    .admin-metric-card { min-height: 112px; padding: 13px; }
    .admin-metric-card > strong { font-size: 23px; }
    .admin-metric-icon { top: 10px; right: 10px; width: 28px; height: 28px; font-size: 12px; }
    .admin-panel { padding: 14px; }
    .admin-shortcut-card { min-height: 68px; gap: 7px; padding: 8px; }
    .admin-shortcut-icon { width: 28px; height: 28px; flex-basis: 28px; font-size: 11px; }
    .admin-shortcut-copy strong { font-size: 10px; }
    .admin-shortcut-copy small { font-size: 8px; }
    .admin-shortcut-count { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .admin-metric-card,
    .admin-panel,
    .admin-shortcut-card { animation: none; transition: none; }
}