/* Host portal — warm dark theme (site shell + app Driveway reds) */

:root {
    --hp-bg: #0a0606;
    --hp-bg-mid: #120909;
    --hp-panel: #161010;
    --hp-panel-2: #1c1212;
    --hp-input: #100c0c;
    --hp-border: rgba(220, 38, 38, 0.18);
    --hp-border-strong: rgba(220, 38, 38, 0.32);
    --hp-text: #faf7f5;
    --hp-muted: #c4b5b0;
    --hp-muted-2: #9a8580;
    --hp-accent: #b00000;
    --hp-accent-deep: #a31d01;
    --hp-accent-hot: #dc2626;
    --hp-accent-hover: #b91c1c;
    --hp-rose: #fecaca;
    --hp-coral: #f87171;
    --hp-focus-ring: rgba(176, 0, 0, 0.35);
    --hp-radius: 14px;
    --hp-radius-sm: 10px;
}

.hp-main {
    padding-top: 90px;
    min-height: 70vh;
    color: var(--hp-text);
    background:
        radial-gradient(ellipse 80% 50% at 18% -10%, rgba(176, 0, 0, 0.28), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 10%, rgba(163, 29, 1, 0.12), transparent 50%),
        linear-gradient(180deg, #991b1b 0%, var(--hp-bg-mid) 42%, var(--hp-bg) 72%);
    background-attachment: fixed;
}

.hp-wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 2.25rem 1.35rem 4.5rem;
}

.hp-auth-wrap {
    max-width: 460px;
}

.hp-kicker {
    color: var(--hp-rose);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.6rem;
}

.hp-title {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.85rem;
    color: var(--hp-text);
}

.hp-lead {
    color: var(--hp-muted);
    line-height: 1.65;
    margin: 0 0 1.85rem;
}

.hp-card {
    background: linear-gradient(165deg, var(--hp-panel-2) 0%, var(--hp-panel) 100%);
    border: 1px solid var(--hp-border);
    border-radius: 16px;
    padding: 1.65rem 1.5rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.hp-field {
    margin-bottom: 1.1rem;
}

.hp-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e8ddd8;
    margin-bottom: 0.4rem;
}

.hp-field input,
.hp-field select,
.hp-field textarea {
    width: 100%;
    box-sizing: border-box;
    background: var(--hp-input);
    border: 1px solid rgba(196, 181, 176, 0.22);
    border-radius: var(--hp-radius-sm);
    color: var(--hp-text);
    padding: 0.78rem 0.9rem;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-field input::placeholder,
.hp-field textarea::placeholder {
    color: var(--hp-muted-2);
}

.hp-field input:focus,
.hp-field select:focus,
.hp-field textarea:focus {
    outline: none;
    border-color: var(--hp-accent-hot);
    box-shadow: 0 0 0 3px var(--hp-focus-ring);
}

.hp-field-hint {
    font-size: 0.8rem;
    color: var(--hp-muted-2);
    margin-top: 0.4rem;
    line-height: 1.45;
}

.hp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hp-check {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1.15rem 0;
    color: #e8ddd8;
    font-size: 0.95rem;
}

.hp-check input {
    width: auto;
    accent-color: var(--hp-accent);
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(180deg, var(--hp-accent-hot) 0%, var(--hp-accent) 100%);
    color: #fff;
    border: none;
    border-radius: var(--hp-radius-sm);
    padding: 0.8rem 1.3rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(176, 0, 0, 0.35);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.hp-btn:hover {
    background: linear-gradient(180deg, var(--hp-accent-hover) 0%, var(--hp-accent-deep) 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(163, 29, 1, 0.4);
}

.hp-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.hp-btn-outline {
    background: transparent;
    border: 1px solid rgba(196, 181, 176, 0.35);
    color: #f0e6e2;
    box-shadow: none;
}

.hp-btn-outline:hover {
    border-color: var(--hp-coral);
    background: rgba(176, 0, 0, 0.12);
    color: #fff;
    box-shadow: none;
}

.hp-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.hp-status {
    margin-top: 1.1rem;
    font-size: 0.9rem;
    color: var(--hp-muted);
}

.hp-status.is-error {
    color: #fca5a5;
}

.hp-status.is-ok {
    color: #86efac;
}

.hp-switch-auth {
    margin-top: 1.4rem;
    font-size: 0.9rem;
    color: var(--hp-muted);
}

.hp-switch-auth a {
    color: var(--hp-coral);
    font-weight: 600;
}

.hp-switch-auth a:hover {
    color: var(--hp-rose);
}

.hp-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.65rem;
}

.hp-event-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hp-event-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    background: linear-gradient(165deg, var(--hp-panel-2) 0%, var(--hp-panel) 100%);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 1.1rem 1.2rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-event-item:hover {
    border-color: var(--hp-border-strong);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.hp-event-item h3 {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
    color: var(--hp-text);
}

.hp-event-meta {
    font-size: 0.85rem;
    color: var(--hp-muted);
    line-height: 1.45;
}

.hp-badge {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    background: rgba(254, 202, 202, 0.12);
    color: var(--hp-rose);
}

.hp-badge.published {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
}

.hp-badge.draft {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
}

.hp-badge.unclaimed {
    background: rgba(251, 146, 60, 0.18);
    color: #fdba74;
}

.hp-badge.checked-in {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    text-transform: none;
}

.hp-empty {
    text-align: center;
    padding: 2.75rem 1.25rem;
    color: var(--hp-muted);
    background: var(--hp-panel);
    border-radius: var(--hp-radius);
    border: 1px dashed var(--hp-border-strong);
}

.hp-suggest {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    background: var(--hp-input);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    max-height: 220px;
    overflow: auto;
}

.hp-suggest li button {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #f0e6e2;
    padding: 0.7rem 0.9rem;
    font: inherit;
    cursor: pointer;
    border-bottom: 1px solid rgba(31, 20, 20, 0.9);
}

.hp-suggest li:last-child button {
    border-bottom: none;
}

.hp-suggest li button:hover {
    background: rgba(176, 0, 0, 0.16);
}

.hp-callout {
    background: rgba(176, 0, 0, 0.14);
    border: 1px solid rgba(220, 38, 38, 0.35);
    border-radius: 12px;
    padding: 0.95rem 1.1rem;
    color: var(--hp-rose);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.35rem;
}

.hp-wrap-wide {
    max-width: 1100px;
}

.hp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.35rem;
    border-bottom: 1px solid var(--hp-border);
    padding-bottom: 0.55rem;
}

.hp-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--hp-muted);
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.hp-tab:hover {
    color: var(--hp-text);
    background: rgba(176, 0, 0, 0.1);
}

.hp-tab.is-active {
    color: #fff;
    background: rgba(176, 0, 0, 0.22);
    border-color: var(--hp-border-strong);
}

.hp-tab-panel {
    display: none;
}

.hp-tab-panel.is-active {
    display: block;
}

.hp-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.hp-section-head h2 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--hp-text);
}

.hp-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    background: var(--hp-panel);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.hp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.hp-table th,
.hp-table td {
    text-align: left;
    padding: 0.8rem 0.95rem;
    border-bottom: 1px solid rgba(220, 38, 38, 0.1);
    vertical-align: top;
}

.hp-table th {
    color: var(--hp-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.2);
}

.hp-table tr:last-child td {
    border-bottom: none;
}

.hp-table tr:hover td {
    background: rgba(176, 0, 0, 0.06);
}

.hp-actions-cell {
    white-space: nowrap;
}

.hp-btn-sm {
    padding: 0.42rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

.hp-ticket-preview {
    margin-top: 1.1rem;
    padding: 1.1rem;
    background: var(--hp-input);
    border: 1px solid var(--hp-border);
    border-radius: 12px;
}

.hp-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.35rem 0;
    color: var(--hp-muted-2);
    font-size: 0.85rem;
}

.hp-divider::before,
.hp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--hp-border);
}

.hp-social-row {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 0.55rem;
}

.hp-social-row #googleSignInBtn {
    display: flex;
    justify-content: center;
}

.hp-apple-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #fff;
    color: #1a0f0f;
    border: none;
    border-radius: var(--hp-radius-sm);
    padding: 0.78rem 1.25rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.hp-apple-btn:hover {
    background: #faf5f3;
}

.hp-apple-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.hp-add-reg {
    margin-top: 1.35rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--hp-border);
}

.hp-card.hp-add-reg {
    margin-top: 0;
    padding-top: 1.65rem;
    border-top: none;
}

.hp-add-reg-title {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
    color: var(--hp-text);
}

.hp-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.hp-share-card {
    margin-bottom: 1.35rem;
}

.hp-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

.hp-share-row input[type='text'] {
    flex: 1 1 220px;
    min-width: 0;
    box-sizing: border-box;
    background: var(--hp-input);
    border: 1px solid rgba(196, 181, 176, 0.22);
    border-radius: var(--hp-radius-sm);
    color: var(--hp-text);
    padding: 0.65rem 0.85rem;
    font: inherit;
    font-size: 0.88rem;
}

.hp-share-row .hp-btn {
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .hp-main {
        background-attachment: scroll;
    }

    .hp-wrap {
        padding: 1.75rem 1.15rem 3.5rem;
    }

    .hp-row {
        grid-template-columns: 1fr;
    }

    .hp-row-3 {
        grid-template-columns: 1fr;
    }

    .hp-title {
        font-size: 1.65rem;
    }

    .hp-card {
        padding: 1.35rem 1.2rem;
    }
}
