:root {
    --hp-red: #8f1f1f;
    --hp-red-dark: #651515;
    --hp-paper: rgba(249, 243, 238, 0.9);
    --hp-paper-strong: rgba(255, 250, 246, 0.9);
    --hp-paper-soft: rgba(243, 232, 224, 0.56);
    --hp-line: rgba(104, 51, 35, 0.14);
    --hp-line-strong: rgba(104, 51, 35, 0.22);
    --hp-text: #2f241f;
    --hp-text-soft: #68534a;
    --hp-shadow: 0 18px 50px rgba(16, 8, 6, 0.24);
}

html,
body {
    min-height: 100%;
}

body {
    color: var(--hp-text);
}

.hp-page-shell {
    position: relative;
    padding: 1rem;
    border-radius: 1.75rem;
    background:
        linear-gradient(180deg, rgba(252, 247, 243, 0.16), rgba(252, 247, 243, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px) saturate(108%);
    box-shadow: 0 20px 50px rgba(8, 8, 10, 0.18);
}

.hp-shell-hero {
    padding: 1rem 1rem 1.15rem;
    border-radius: 1.2rem;
    background:
        linear-gradient(180deg, rgba(252, 247, 243, 0.88), rgba(247, 238, 232, 0.8));
    border: 1px solid rgba(118, 81, 65, 0.14);
    box-shadow: 0 12px 30px rgba(22, 10, 8, 0.12);
}

.hp-shell-kicker {
    color: rgba(120, 82, 68, 0.88) !important;
    letter-spacing: 0.08em;
}

.hp-shell-title {
    color: var(--hp-text);
    text-shadow: none;
}

.hp-shell-subtitle {
    color: var(--hp-text-soft);
    max-width: 72ch;
    text-shadow: none;
}

.hp-shell-meta {
    color: var(--hp-text-soft) !important;
}

.hp-panel {
    background:
        linear-gradient(180deg, var(--hp-paper-strong), rgba(248, 239, 233, 0.84)),
        linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
    border: 1px solid var(--hp-line);
    backdrop-filter: blur(12px) saturate(125%);
    box-shadow: var(--hp-shadow);
}

.hp-stat-card {
    background:
        linear-gradient(145deg, rgba(253, 247, 243, 0.92), rgba(244, 232, 224, 0.82));
    border: 1px solid var(--hp-line);
    box-shadow: var(--hp-shadow);
}

.hp-summary-card {
    background: linear-gradient(180deg, rgba(138, 44, 29, 0.08), rgba(88, 31, 23, 0.04));
    border: 1px solid var(--hp-line-strong);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
}

.hp-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
}

.hp-summary-total {
    margin-top: 0.4rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--hp-line-strong);
    font-size: 1.05rem;
}

.hp-page-shell .text-muted,
.hp-panel .text-muted,
.hp-stat-card .text-muted,
.table .text-muted,
.form-text {
    color: var(--hp-text-soft) !important;
}

.hp-page-shell .small {
    color: var(--hp-text-soft);
}

.card-header.bg-white {
    background: rgba(250, 244, 239, 0.9) !important;
}

a {
    color: var(--hp-red-dark);
}

a:hover {
    color: var(--hp-red);
}

.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.navbar-light .navbar-brand,
.navbar.navbar-light .nav-link,
.navbar.navbar-light .navbar-toggler {
    color: #fff4ed !important;
}

.navbar.navbar-light .nav-link:hover,
.navbar.navbar-light .nav-link:focus,
.navbar.navbar-light .navbar-brand:hover,
.navbar.navbar-light .navbar-brand:focus {
    color: #ffd2bf !important;
}

.navbar.navbar-light .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar.navbar-light .navbar-toggler-icon {
    filter: invert(1) brightness(2);
}

.hp-pill-btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 18px rgba(30, 14, 10, 0.08);
}

.btn-primary {
    background: linear-gradient(135deg, #a33024, #7d231c);
    border-color: rgba(101, 21, 21, 0.82);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #b83829, #8a2720);
    border-color: rgba(101, 21, 21, 0.95);
}

.btn-outline-secondary,
.btn-outline-primary {
    background: rgba(255, 250, 246, 0.72);
    backdrop-filter: blur(8px);
}

.badge.text-bg-light {
    color: var(--hp-red-dark) !important;
    background: rgba(143, 31, 31, 0.09) !important;
    border: 1px solid rgba(143, 31, 31, 0.1);
}

.alert {
    backdrop-filter: blur(10px);
    box-shadow: var(--hp-shadow);
}

.alert-danger {
    color: #5f1f1b;
    background: rgba(255, 237, 232, 0.88);
    border: 1px solid rgba(168, 62, 46, 0.2);
}

.alert-success {
    color: #214733;
    background: rgba(232, 247, 238, 0.88);
    border: 1px solid rgba(57, 133, 88, 0.2);
}

.form-control,
.form-select,
.input-group-text,
textarea {
    background: rgba(255, 251, 248, 0.9);
    border-color: var(--hp-line);
    color: var(--hp-text);
}

.form-control::placeholder,
textarea::placeholder {
    color: rgba(104, 83, 74, 0.75);
}

.form-control:disabled,
.form-control[readonly] {
    background: rgba(232, 223, 217, 0.7);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 252, 249, 0.32);
    --bs-table-hover-bg: rgba(143, 31, 31, 0.05);
    --bs-table-border-color: var(--hp-line);
    color: var(--hp-text);
}

.table thead.table-light th,
.table-light th {
    background: rgba(121, 52, 32, 0.08) !important;
    color: var(--hp-text-soft);
    border-bottom-color: var(--hp-line-strong);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
}

.table-responsive {
    border-radius: 1rem;
}

.list-group-item {
    border-color: var(--hp-line);
    color: var(--hp-text);
}

.display-6 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.navbar {
    background: rgba(17, 10, 8, 0.48) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

footer .card,
.hp-footer-card {
    background: rgba(252, 247, 243, 0.88) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--hp-shadow);
}

footer,
footer a,
footer .text-black {
    color: var(--hp-text) !important;
}

.hp-focus:focus,
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(143, 31, 31, 0.35) !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 0.22rem rgba(143, 31, 31, 0.14) !important;
}

.hp-trust-strip {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 1rem;
    border: 1px solid rgba(143, 31, 31, 0.14);
    padding: 0.8rem;
}

.hp-trust-strip .item {
    font-size: 0.92rem;
    font-weight: 600;
    color: #4a4a4a;
}

.hp-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hp-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hp-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    display: none;
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
    background: rgba(18, 12, 10, 0.92);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hp-mobile-cta .btn {
    flex: 1;
}

.hp-mobile-space {
    display: none;
    height: 4.5rem;
}

.hp-mobile-cta-secondary {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 3.95rem;
    z-index: 1079;
    font-size: 0.86rem;
}

.hp-mobile-cta-secondary a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 991.98px) {
    .hp-page-shell {
        padding: 0.65rem;
        border-radius: 1.25rem;
    }

    .hp-mobile-cta {
        display: flex;
        gap: 0.55rem;
    }

    .hp-mobile-cta-secondary {
        display: block;
    }

    .hp-mobile-space {
        display: block;
        height: 5.7rem;
    }

    .w-lg-auto {
        width: 100% !important;
    }
}
