:root {
    --hb-owl-blue: #4A90D9;
    --hb-wing-blue: #3949AB;
    --hb-navy: #03173D;
    --hb-sky-blue: #7CB8F2;
    --hb-owl-orange: #D4944C;
    --hb-background: #F5F7FA;
}

html, body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

.hb-public-appbar {
    padding-inline: 0.5rem;
}

.hb-public-brand {
    min-width: 0;
    padding-inline: 0.5rem;
}

.hb-public-brand-image {
    display: block;
    height: 36px;
    width: auto;
    max-width: min(100%, 220px);
}

.hb-public-nav-desktop {
    gap: 0.25rem;
    padding-right: 0.5rem;
}

.hb-public-mobile-actions {
    gap: 0.25rem;
    padding-right: 0.25rem;
    flex-shrink: 0;
}

.hb-public-mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.5rem;
}

.hb-public-mobile-drawer-label {
    letter-spacing: 0.12em;
    color: rgba(3, 23, 61, 0.56);
}

.hb-public-mobile-drawer-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0 1rem 1.25rem;
}

.hb-public-mobile-link {
    justify-content: flex-start;
    min-height: 2.75rem;
}

/* ===== Landing Page Hero ===== */

.hb-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hb-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
}

.hb-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(3, 23, 61, 0.84) 0%,
        rgba(57, 73, 171, 0.72) 50%,
        rgba(74, 144, 217, 0.55) 100%
    );
    z-index: 1;
}

.hb-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.hb-hero-outline-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #fff !important;
}

/* ===== Trust Bar ===== */

.hb-trust-bar {
    background: var(--hb-wing-blue) !important;
    padding: 1rem 0;
    border-radius: 0 !important;
}

/* ===== Feature Cards ===== */

.hb-feature-card {
    border: 1px solid rgba(3, 23, 61, 0.08);
    border-radius: 12px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.hb-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(74, 144, 217, 0.12);
}

.hb-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.1), rgba(57, 73, 171, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Value Prop ===== */

.hb-value-prop-owl {
    width: min(100%, 280px);
    height: auto;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.08));
}

.hb-check-list .mud-list-item-icon {
    min-width: 32px !important;
}

/* ===== Blog ===== */

.hb-blog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hb-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
}

.hb-blog-content img {
    max-width: 100%;
    height: auto;
}

/* ===== Responsive Hero ===== */

@media (max-width: 959.98px) {
    .hb-public-appbar {
        padding-inline: 0.25rem;
    }

    .hb-public-brand {
        padding-inline: 0.25rem;
    }

    .hb-public-brand-image {
        height: 30px;
        max-width: clamp(9rem, 44vw, 11rem);
    }

    .hb-hero {
        min-height: 80vh;
    }

    .hb-hero-content {
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
}

h1:focus {
    outline: none;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIg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jAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.hb-timesheet-toolbar-stack {
    gap: 1rem;
}

.hb-timesheet-hero {
    background:
        radial-gradient(circle at top left, rgba(124, 184, 242, 0.36), transparent 38%),
        linear-gradient(135deg, rgba(3, 23, 61, 0.96), rgba(57, 73, 171, 0.92));
    border-radius: 20px;
    color: white;
}

.hb-timesheet-kicker {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.hb-timesheet-hero-copy {
    color: rgba(255, 255, 255, 0.84);
    max-width: 34rem;
}

.hb-timesheet-stats {
    gap: 0.75rem;
    justify-content: flex-start;
}

.hb-timesheet-stat-chip {
    font-weight: 700;
}

.hb-timesheet-actions {
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.hb-timesheet {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 250, 0.98));
    overflow: hidden;
}

.hb-timesheet-scroll {
    overflow-x: auto;
}

.hb-timesheet-grid {
    width: 100%;
    min-width: 960px;
    border-collapse: separate;
    border-spacing: 0;
}

.hb-timesheet-grid th,
.hb-timesheet-grid td {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding: 0.9rem 0.75rem;
    vertical-align: middle;
}

.hb-timesheet-grid thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 1;
}

.hb-timesheet-project,
.hb-timesheet-row-label {
    min-width: 220px;
    text-align: left;
    background: rgba(255, 255, 255, 0.92);
}

.hb-timesheet-day-header,
.hb-timesheet-day-cell,
.hb-timesheet-total,
.hb-timesheet-row-total {
    text-align: center;
}

.hb-timesheet-day-header.is-today,
.hb-timesheet-day-cell.is-today {
    background: rgba(74, 144, 217, 0.12);
}

.hb-timesheet-day-header.is-weekend,
.hb-timesheet-day-cell.is-weekend {
    background: rgba(3, 23, 61, 0.05);
}

.hb-timesheet-day-name,
.hb-timesheet-project-name,
.hb-timesheet-row-total {
    font-weight: 700;
}

.hb-timesheet-day-date,
.hb-timesheet-day-total,
.hb-timesheet-area-name {
    color: rgba(3, 23, 61, 0.72);
    font-size: 0.9rem;
}

.hb-timesheet-input .mud-input-slot {
    text-align: center;
}

.hb-timesheet-input .mud-input-root {
    background: rgba(255, 255, 255, 0.9);
}

.hb-timesheet-summary-row td {
    background: rgba(3, 23, 61, 0.04);
    font-weight: 700;
}

.hb-timesheet-mobile-shell {
    display: none;
    position: relative;
    padding-bottom: 5rem;
}

.hb-timesheet-mobile-day {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(3, 23, 61, 0.08);
}

.hb-timesheet-mobile-day:last-child {
    border-bottom: none;
}

.hb-timesheet-mobile-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 20;
}

@media (max-width: 959.98px) {
    .hb-timesheet-actions {
        justify-content: stretch;
        width: 100%;
    }

    .hb-timesheet-stats {
        justify-content: flex-start;
    }

    .hb-timesheet-desktop {
        display: none;
    }

    .hb-timesheet-mobile-shell {
        display: block;
    }
}

@media (min-width: 960px) {
    .hb-timesheet-desktop {
        display: block;
    }
}

.hb-auth-illustration {
    display: block;
    width: min(100%, 11rem);
    height: auto;
    margin: 0 auto 1.5rem;
}

.hb-state-shell {
    max-width: 36rem;
    margin: 0 auto;
}

.hb-state-illustration {
    display: block;
    width: min(100%, 13rem);
    height: auto;
    margin: 0 auto 1.5rem;
}

.hb-menu-avatar {
    display: block;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(3, 23, 61, 0.12);
    background: linear-gradient(180deg, rgba(124, 184, 242, 0.24), rgba(74, 144, 217, 0.14));
}

.hb-menu-avatar-link,
.hb-menu-avatar-button {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}

.hb-menu-avatar-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hb-menu-avatar-button:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.hb-dashboard-chart {
    width: 100%;
}

.hb-dashboard-chart-line {
    min-height: 20rem;
}

.hb-dashboard-chart-pie {
    min-height: 18rem;
}

.hb-dashboard-help-illustration {
    display: flex;
    justify-content: center;
}

.hb-dashboard-help-image {
    width: min(100%, 14rem);
    height: auto;
}

.payment-summary-card,
.payment-checkout-card {
    border-radius: 1.25rem;
    border: 1px solid rgba(3, 23, 61, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 248, 252, 0.98));
}

.payment-summary-card {
    position: relative;
    overflow: hidden;
}

.payment-summary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 0.35rem;
    background: linear-gradient(90deg, #0d6efd, #41a2ff);
}

.payment-summary-eyebrow {
    letter-spacing: 0.14em;
    color: #4d6f91;
}

.payment-summary-title {
    font-weight: 700;
}

.payment-summary-amount {
    font-weight: 700;
    color: #0d6efd;
}

#payment-element {
    min-height: 16rem;
}

.hb-payment-card {
    border-radius: 1rem;
    border: 1px solid rgba(3, 23, 61, 0.08);
    box-shadow: none;
}

.hb-payment-card-amount {
    font-weight: 700;
}

.hb-payment-view-toggle {
    margin-left: 0.5rem;
}

.hb-receipt-preview {
    width: 100%;
    background: rgba(248, 250, 252, 0.85);
    border-radius: 0.75rem;
    min-height: 8rem;
}

.hb-receipt-preview-image {
    display: block;
    width: 100%;
    max-height: 20rem;
    object-fit: contain;
    border-radius: 0.5rem;
}

@media (min-width: 960px) {
    .hb-receipt-card {
        position: sticky;
        top: 1.5rem;
    }
}

@media (max-width: 959.98px) {
    .payment-summary-card,
    .payment-checkout-card {
        border-radius: 1rem;
    }
}

.hb-subscription-section-intro {
    max-width: 46rem;
}

.hb-subscription-summary-badge {
    width: 4.25rem;
    height: auto;
    flex-shrink: 0;
}

.hb-subscription-plan-card {
    height: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(3, 23, 61, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hb-subscription-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(3, 23, 61, 0.08);
}

.hb-subscription-plan-card.is-featured {
    border: 2px solid var(--mud-palette-primary);
}

.hb-subscription-plan-card.is-current {
    border: 2px solid var(--mud-palette-success);
}

.hb-subscription-plan-badge {
    width: 5rem;
    height: auto;
    margin-bottom: 0.75rem;
}

.hb-subscription-comparison {
    overflow-x: auto;
}

.hb-subscription-comparison table {
    min-width: 42rem;
}

.hb-subscription-faq {
    border-radius: 0.75rem;
    overflow: hidden;
}

@media print {
    .hb-report-toolbar {
        display: none !important;
    }

    .mud-paper,
    .mud-card {
        box-shadow: none !important;
    }
}
