/* Hostport shell (authenticated app — not auth.css / login) */

.hostport-main {
    flex: 1;
    overflow: auto;
    min-width: 0;
}

.main-content {
    width: 100%;
    /* Full-bleed (owner call, 2026-08-05, reversing the 1440px cap): the cap centred pages
       inside the area BESIDE the rail, which reads as off-centre on wide screens. The page
       gutter itself lives on .hp-shell-main alone — this used to add a second one on top,
       and the doubled spacing read differently per page depending on stylesheet cache. */
    box-sizing: border-box;
    position: relative;
}

button.pay-option-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 2px solid var(--hp-border-subtle);
    border-radius: var(--hp-radius-sm);
    background: var(--hp-surface);
    font: inherit;
    color: var(--hp-text);
    box-sizing: border-box;
}

button.pay-option-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hp-shadow-sm);
    border-color: var(--hp-border);
}

button.pay-option-card.selected {
    border-color: var(--hp-primary);
    background: var(--hp-primary-muted);
}

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

.account-field label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--hp-text-secondary);
}

.account-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    font-size: var(--hp-font-md);
    background: var(--hp-bg-base);
    color: var(--hp-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.account-field input:focus {
    outline: none;
    border-color: var(--hp-primary-accent);
    box-shadow: var(--hp-focus-ring);
}

.account-field input:disabled {
    background: var(--hp-bg-dark);
    cursor: not-allowed;
    opacity: 0.7;
}

.account-primary-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--hp-radius-sm);
    font-size: var(--hp-font-md);
    font-weight: 600;
    color: #fff;
    background: var(--hp-gradient-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.1s, box-shadow 0.15s;
}

.account-primary-btn:hover:not(:disabled) {
    box-shadow: 0 4px 14px rgba(110, 146, 192, 0.4);
}

.account-primary-btn:disabled {
    opacity: 0.75;
    cursor: wait;
}

.account-inline-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--hp-radius-sm);
    font-size: var(--hp-font-sm);
    line-height: 1.4;
    color: var(--hp-text);
}

.account-inline-alert.error {
    background: color-mix(in srgb, var(--hp-danger) 16%, transparent);
    color: var(--hp-text);
    border: 1px solid color-mix(in srgb, var(--hp-danger) 35%, transparent);
    border-inline-start: 2px solid var(--hp-danger);
}

.account-inline-alert.success {
    background: color-mix(in srgb, var(--hp-success) 16%, transparent);
    color: var(--hp-text);
    border: 1px solid color-mix(in srgb, var(--hp-success) 35%, transparent);
    border-inline-start: 2px solid var(--hp-success);
}

.account-inline-alert.info {
    background: rgba(110, 146, 192, 0.22);
    color: var(--hp-text);
    border: 1px solid rgba(110, 146, 192, 0.42);
    border-inline-start: 2px solid var(--hp-primary-accent);
}

.account-inline-alert.warning {
    background: color-mix(in srgb, var(--hp-warning) 16%, transparent);
    color: var(--hp-text);
    border: 1px solid color-mix(in srgb, var(--hp-warning) 35%, transparent);
    border-inline-start: 2px solid var(--hp-warning);
}


/* --- crash recovery UX ------------------------------------------------------------------- */

/* Circuit-death banner (#blazor-error-ui is toggled to display:block by blazor.web.js). */
#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--hp-z-crash);
    padding: 0.75rem 3rem 0.75rem 1.25rem;
    background: #7f1d1d;
    color: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.45);
}

#blazor-error-ui .reload {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
    margin-left: 0.5rem;
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 1rem;
    top: 0.75rem;
    cursor: pointer;
}

/* HpCrashGuard fallback: inline card for page regions, floating card when it guards the dialog host. */
.hp-crash-guard {
    padding: 1rem 1.25rem;
    border: 1px solid var(--hp-danger);
    border-radius: var(--hp-radius-sm);
    background: var(--hp-surface-raised);
    margin: 1rem 0;
}

.hp-crash-guard-overlay {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    z-index: var(--hp-z-crash);
    margin: 0;
    max-width: min(90vw, 40rem);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
