@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --rh-background: #f5f6fa;
    --rh-surface: rgba(255, 255, 255, 0.88);
    --rh-border: rgba(223, 43, 42, 0.12);
    --rh-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    --rh-text: #1f2933;
    --rh-muted: #475467;
    --rh-accent: #df2b2a;
    --rh-accent-soft: rgba(223, 43, 42, 0.1);
    --rh-positive: #2d6a4f;
    --rh-positive-soft: rgba(45, 106, 79, 0.1);
}

html {
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(223, 43, 42, 0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(54, 85, 143, 0.18), transparent 60%),
        var(--rh-background);
    color: var(--rh-text);
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.our-guides-page {
    background-color: #ffffff;
    min-height: 100vh;
    width: 100%;
    padding: clamp(1.5rem, 4vw, 3rem) 0;
    display: flex;
    justify-content: center;
}

.our-guides-shell {
    background-color: #ffffff;
    width: min(1100px, 100%);
    margin: 0 auto;
    box-shadow: none;
    border-radius: 0;
}

.our-guides-menu {
    padding: clamp(0.75rem, 2vw, 1.25rem);
    border-radius: 16px;
    border: 1px solid rgba(223, 43, 42, 0.14);
    background: #ffffff;
}

.our-guides-menu__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.our-guides-menu__chip {
    font-weight: 600;
    letter-spacing: 0.01em;
    padding-inline: 1rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.our-guides-menu__chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(223, 43, 42, 0.18);
}

.our-guides-menu__chip--active {
    background: rgba(223, 43, 42, 0.12);
    border-color: rgba(223, 43, 42, 0.4) !important;
    color: var(--rh-accent);
    box-shadow: 0 10px 24px rgba(223, 43, 42, 0.22);
}

.packages-page {
    background-color: #ffffff;
    min-height: 100vh;
    width: 100%;
    padding: clamp(1.5rem, 4vw, 3rem) 0;
    display: flex;
    justify-content: center;
}

.packages-shell {
    width: min(1100px, 100%);
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: none;
    border-radius: 0;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3rem);
}

.packages-loading {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--rh-accent);
    text-decoration: none;
}

.layout-backdrop {
    min-height: calc(100vh - 4.5rem);
    padding: clamp(1.25rem, 2.8vw, 3rem) clamp(1.5rem, 4vw, 3rem) 2.5rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.layout-shell {
    width: 100%;
    max-width: 1100px;
    background: var(--rh-surface);
    backdrop-filter: blur(18px);
    border-radius: 24px;
    border: 1px solid var(--rh-border);
    box-shadow: var(--rh-shadow);
    padding: clamp(1rem, 2vw, 2rem);
}

.admin-layout-shell {
    max-width: 1320px;
}

.layout-content {
    padding: 0;
}

.layout-body {
    max-width: 100%;
    width: 100%;
}

.mud-appbar {
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 35px rgba(17, 25, 40, 0.35);
}

.rh-appbar {
    background-color: #df2b2a !important;
}

.appbar-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #f8fafc;
    letter-spacing: 0.01em;
    transition: opacity 0.18s ease;
}

.appbar-logo-link:hover {
    opacity: 0.88;
}

.appbar-account-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    color: #e2e8f0;
    transition: color 0.18s ease, transform 0.18s ease;
}

.appbar-account-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.mobile-admin-menu {
    min-width: 220px;
}

.mobile-admin-menu__header {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    opacity: 0.7;
    cursor: default;
}

.mud-button.mud-button-filled-primary {
    box-shadow: 0 12px 22px rgba(223, 43, 42, 0.24);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.mud-button.mud-button-filled-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(223, 43, 42, 0.28);
}

.mud-typography-subtitle2 {
    color: var(--rh-muted);
}

.mud-paper,
.mud-card {
    border-radius: 20px !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.mud-table {
    border-radius: 18px;
    overflow: hidden;
}

.mud-table thead th {
    background-color: rgba(223, 43, 42, 0.08);
    color: var(--rh-text);
    font-weight: 600;
}

.mud-table tbody tr:hover {
    background-color: rgba(223, 43, 42, 0.06);
}

.mud-tab,
.mud-tab-slider {
    border-radius: 999px;
}

.mud-dialog {
    width: 100vw !important;
    max-width: 720px;
    border-radius: 18px;
}

.mud-dialog-content > .mud-form > .mud-input-control,
.mud-dialog-content > .mud-form > .mud-select {
    margin-top: 10px;
    margin-bottom: 10px;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--rh-positive);
    background-color: var(--rh-positive-soft);
}

.invalid {
    outline: 1px solid #c02727;
}

.validation-message {
    color: #c02727;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnI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IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: 18px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
}

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

.darker-border-checkbox.form-check-input {
    border-color: #7c8790;
}

@media (max-width: 992px) {
    .layout-backdrop {
        padding: 1.25rem 1.5rem 2.25rem;
    }

    .account-layout-surface {
        padding: 1rem 1.25rem 2.25rem;
    }

    .layout-shell {
        border-radius: 20px;
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .layout-backdrop {
        padding: 1rem 1rem 1.75rem;
    }

    .account-layout-surface {
        padding: 0.75rem 1rem 1.75rem;
    }

    .layout-shell {
        border-radius: 18px;
        padding: 1.25rem;
        box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
    }

    .mud-dialog {
        margin: 0 1rem;
    }
}

/* Account experience */
.account-page {
    display: flex;
    justify-content: center;
    padding: clamp(0.75rem, 2.5vw, 1.75rem) 0 2.5rem;
}

.account-layout-surface {
    display: flex;
    justify-content: center;
    padding: clamp(0.75rem, 2.5vw, 1.75rem) clamp(1rem, 4vw, 2rem) 2.5rem;
    min-height: calc(100vh - 4rem);
}

.account-page__shell {
    width: min(560px, 100%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.account-card {
    background: var(--rh-surface);
    border-radius: 24px;
    border: 1px solid var(--rh-border);
    box-shadow: var(--rh-shadow);
    padding: clamp(1.5rem, 3.2vw, 2.25rem);
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.account-card__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.account-card__badge {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(223, 43, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rh-accent);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.account-card__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(31, 41, 51, 0.58);
}

.account-title {
    margin: 0;
    font-size: clamp(1.65rem, 3.4vw, 2rem);
    font-weight: 700;
    color: var(--rh-text);
    letter-spacing: -0.015em;
}

.account-subtitle {
    margin: 0;
    color: var(--rh-muted);
    font-size: 0.95rem;
    max-width: 36ch;
}

.account-card__lead,
.account-card__body,
.account-card__footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-hero-image {
    width: min(280px, 60%);
    align-self: center;
    border-radius: 12px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.account-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.account-field label {
    font-weight: 600;
    color: var(--rh-muted);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.account-input,
.account-form textarea,
.account-form select {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 1rem;
    font-size: 1rem;
    color: var(--rh-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    outline: none;
}

.account-input:focus,
.account-form textarea:focus,
.account-form select:focus {
    border-color: rgba(223, 43, 42, 0.65);
    box-shadow: 0 0 0 3px rgba(223, 43, 42, 0.15);
    background: #ffffff;
}

.account-validation {
    font-size: 0.82rem;
    color: #c02727;
}

.account-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.account-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--rh-accent);
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.account-checkbox label {
    font-size: 0.9rem;
    color: var(--rh-muted);
}

.account-button {
    border: none;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #df2b2a, #f55f5e);
    box-shadow: 0 16px 30px rgba(223, 43, 42, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    cursor: pointer;
}

.account-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(223, 43, 42, 0.32);
}

.account-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.account-button--danger {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    box-shadow: 0 16px 30px rgba(185, 28, 28, 0.28);
}

.account-button--danger:hover {
    box-shadow: 0 20px 34px rgba(185, 28, 28, 0.32);
}

.account-button--ghost {
    background: rgba(223, 43, 42, 0.08);
    color: var(--rh-accent);
    box-shadow: none;
    border: 1px solid rgba(223, 43, 42, 0.22);
}

.account-button--ghost:hover {
    background: rgba(223, 43, 42, 0.12);
    box-shadow: none;
}

.account-guest-button {
    text-align: center;
}

.account-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: center;
}

.account-links a {
    color: var(--rh-muted);
    font-weight: 500;
}

.account-links a:hover {
    color: var(--rh-accent);
}

.account-message {
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    background: rgba(223, 43, 42, 0.1);
    border: 1px solid rgba(223, 43, 42, 0.2);
    color: var(--rh-accent);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
}

.account-message h2,
.account-message h3 {
    margin: 0;
    color: var(--rh-text);
    font-weight: 600;
}

.account-alert {
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    border: 1px solid transparent;
}

.account-alert--success {
    background: var(--rh-positive-soft);
    border-color: rgba(45, 106, 79, 0.26);
    color: var(--rh-positive);
}

.account-alert--danger {
    background: rgba(223, 43, 42, 0.1);
    border-color: rgba(223, 43, 42, 0.24);
    color: var(--rh-accent);
}

.account-alert--info {
    background: rgba(54, 85, 143, 0.12);
    border-color: rgba(54, 85, 143, 0.24);
    color: #36558f;
}

.account-divider {
    width: 100%;
    height: 1px;
    background: rgba(148, 163, 184, 0.25);
    margin: 0.2rem 0;
}

.account-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    font-size: 0.92rem;
    color: var(--rh-muted);
}

.account-footer strong {
    color: var(--rh-text);
}

.account-link-button {
    background: none;
    border: none;
    color: var(--rh-accent);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.account-link-button:hover {
    text-decoration: underline;
}

.account-tile {
    border: 1px solid var(--rh-border);
    border-radius: 18px;
    padding: 1.1rem 1.25rem;
    background: var(--rh-surface);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.account-tile__meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.account-tile__title {
    font-weight: 600;
    color: var(--rh-text);
}

.account-tile__subtitle {
    font-size: 0.85rem;
    color: var(--rh-muted);
}

.account-recovery-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-top: 0.5rem;
}

.account-code {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.65rem 0.5rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.08);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--rh-text);
}

.account-steps {
    counter-reset: account-step;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.account-steps li {
    counter-increment: account-step;
    position: relative;
    padding-left: 3rem;
}

.account-steps li::before {
    content: counter(account-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(223, 43, 42, 0.12);
    color: var(--rh-accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-qr {
    width: 180px;
    height: 180px;
    border-radius: 16px;
    border: 1px solid var(--rh-border);
    background: #ffffff;
    margin-top: 0.75rem;
}

/* Account manage area */
.account-manage {
    display: flex;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4rem) 0;
}

.account-manage__shell {
    width: min(1080px, 100%);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.account-manage__header {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.account-manage__title {
    margin: 0;
    font-size: clamp(1.65rem, 3.2vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--rh-text);
}

.account-manage__subtitle {
    margin: 0;
    color: var(--rh-muted);
    max-width: 60ch;
}

.account-manage__content {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.account-manage-nav {
    background: var(--rh-surface);
    border-radius: 20px;
    border: 1px solid var(--rh-border);
    box-shadow: var(--rh-shadow);
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.account-manage-nav__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    font-weight: 500;
    color: var(--rh-muted);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.account-manage-nav__link.active,
.account-manage-nav__link:hover {
    background: var(--rh-accent-soft);
    color: var(--rh-accent);
    transform: translateX(2px);
}

.account-manage-nav__logout {
    margin-top: 0.75rem;
    border: none;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    font-weight: 500;
    color: var(--rh-accent);
    background: rgba(223, 43, 42, 0.08);
    display: flex;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.account-manage-nav__logout:hover {
    background: rgba(223, 43, 42, 0.12);
    color: #ffffff;
}

.account-manage__body {
    background: var(--rh-surface);
    border-radius: 24px;
    border: 1px solid var(--rh-border);
    box-shadow: var(--rh-shadow);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.account-section {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.account-section h3 {
    margin: 0;
    font-weight: 600;
    color: var(--rh-text);
}

.account-section p {
    margin: 0;
    color: var(--rh-muted);
}

.account-section__description {
    font-size: 0.9rem;
    color: var(--rh-muted);
}

.account-section__danger {
    background: rgba(223, 43, 42, 0.08);
    border: 1px solid rgba(223, 43, 42, 0.25);
    border-radius: 16px;
    padding: 1rem;
    color: var(--rh-accent);
}

.account-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(223, 43, 42, 0.1);
    color: var(--rh-accent);
    font-weight: 500;
    font-size: 0.82rem;
}

.account-grid {
    display: grid;
    gap: 1rem;
}

.account-grid.two {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 1024px) {
    .account-manage__content {
        grid-template-columns: 1fr;
    }

    .account-manage-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .account-manage-nav__link,
    .account-manage-nav__logout {
        flex: 1 1 calc(50% - 0.6rem);
        justify-content: center;
    }

    .account-manage-nav__logout {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .account-card {
        border-radius: 20px;
        padding: 1.75rem;
    }

    .account-page {
        padding: 1.5rem 0;
    }

    .account-manage__body {
        border-radius: 20px;
        padding: 1.5rem;
    }
}

