/* HoleInWhen.com - brand styling (navy / emerald / gold). */
:root {
    /* Brand palette */
    --navy: #13294b;
    --emerald: #1aa25a;
    --emerald-dark: #14813f;
    --light-green: #8fd19e;
    --gold: #d7a63e;
    --white: #ffffff;

    /* Semantic aliases (kept so existing rules map onto the new brand):
       primary brand color -> navy, positive/CTA -> emerald, highlight -> gold. */
    --swa-blue: var(--navy);
    /* headers, titles, primary text accents */
    --green: var(--emerald);
    /* CTAs, positive states, links accents */
    --swa-yellow: var(--gold);
    /* highlight pills / callouts */
    --sky-blue: #2f80c4;
    /* info accent */
    --steel-blue: #5e7e95;
    --orange: #e08a2e;
    --light-blue: var(--light-green);
    --swa-red: #d5152e;
    /* functional danger only (delete/negative) */
    --gray: #5b6b7b;
    --black: #10233f;
    /* near-navy body text */

    --bg: #f3f7f4;
    --card: #ffffff;
    --border: #e0e8e2;
    --radius: 14px;
    --shadow: 0 2px 10px rgba(19, 41, 75, 0.08);
    --shadow-lg: 0 12px 32px rgba(19, 41, 75, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--black);
    background: var(--bg);
    line-height: 1.6;
}

h1,
h2,
h3,
.brand-name,
.auth-title,
.account-h1 {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.muted {
    color: var(--gray);
}

a {
    color: var(--swa-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--navy);
}

.brand:hover {
    text-decoration: none;
}

.brand-mark-img {
    display: block;
    width: 36px;
    height: 36px;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.brand-accent {
    color: var(--emerald);
}

.brand-dot {
    color: var(--navy);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav a {
    color: var(--gray);
    font-weight: 600;
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: var(--swa-blue);
    text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--emerald);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--emerald-dark);
    box-shadow: var(--shadow);
}

.btn-green {
    background: var(--emerald);
    color: var(--white);
}

.btn-green:hover {
    background: var(--emerald-dark);
}

.btn-yellow {
    background: var(--gold);
    color: var(--navy);
}

.btn-yellow:hover {
    background: #c9962f;
}

.btn-ghost {
    background: transparent;
    color: var(--swa-blue);
    border: 1.5px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--swa-blue);
}

.btn-danger {
    background: transparent;
    color: var(--swa-red);
    border: 1.5px solid #f3c7cd;
}

.btn-danger:hover {
    background: var(--swa-red);
    color: var(--white);
}

.btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--emerald-dark) 100%);
    color: var(--white);
    padding: 64px 0 120px;
    position: relative;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.1;
}

.hero p.lead {
    font-size: 1.2rem;
    max-width: 620px;
    margin: 0 0 8px;
    opacity: .95;
}

.hero .stat-pill {
    display: inline-block;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    margin-top: 18px;
}

.hero .stat-pill b {
    color: var(--swa-yellow);
}

/* ---------- Cards / sections ---------- */
section {
    padding: 52px 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 6px;
}

.section-sub {
    color: var(--gray);
    margin: 0 0 28px;
    font-size: 1.05rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Alert setup panel floats over the hero */
.setup-wrap {
    margin-top: -84px;
    position: relative;
    z-index: 10;
}

.setup-card {
    padding: 26px;
    box-shadow: var(--shadow-lg);
}

.setup-card h2 {
    margin: 0 0 4px;
    font-size: 1.4rem;
}

.setup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-weight: 600;
    font-size: .85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.field input,
.field select {
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
    color: var(--black);
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--swa-blue);
    box-shadow: 0 0 0 3px rgba(48, 76, 178, .12);
}

.group-picker {
    display: flex;
    gap: 8px;
}

.group-picker button {
    flex: 1;
    padding: 12px 0;
    border: 1.5px solid var(--border);
    background: var(--white);
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    color: var(--gray);
}

.group-picker button.active {
    background: var(--swa-blue);
    color: var(--white);
    border-color: var(--swa-blue);
}

.channel-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.channel-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-weight: 600;
    color: var(--gray);
    background: var(--white);
    user-select: none;
}

.channel-opt.active {
    border-color: var(--swa-blue);
    color: var(--swa-blue);
    background: #eef1fb;
}

.channel-opt input {
    accent-color: var(--swa-blue);
    width: 16px;
    height: 16px;
}

/* Multi-select course checklist */
#course-filter {
    margin-bottom: 8px;
}

.course-checklist {
    max-height: 220px;
    overflow-y: auto;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    padding: 4px;
}

.course-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    user-select: none;
}

.course-check:hover {
    background: #f3f5fb;
}

.course-check input {
    accent-color: var(--swa-blue);
    width: 16px;
    height: 16px;
    flex: none;
}

.course-check.checked {
    color: var(--swa-blue);
    background: #eef1fb;
}

.course-check[hidden] {
    display: none;
}

/* Multi-select 2-hour time windows: a compact scrollable checklist that reuses
   the .course-checklist / .course-check styles for a consistent look. */
.window-checklist {
    max-height: 168px;
}

/* Provider / delivery status strip */
.status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.status-strip .chip {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
}

.status-strip .chip b {
    color: var(--swa-yellow);
}

/* Delivery log */
.delivery-log {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.delivery-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .85rem;
}

.delivery-row .d-icon {
    font-size: 1.1rem;
}

.delivery-row .d-main {
    flex: 1;
}

.delivery-row .d-recipient {
    font-weight: 600;
}

.delivery-row .d-detail {
    color: var(--gray);
    font-size: .78rem;
}

.d-status {
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}

.d-status.sent {
    background: #e6f6ec;
    color: var(--green);
}

.d-status.logged {
    background: #eef1fb;
    color: var(--swa-blue);
}

.d-status.error {
    background: #fbeaec;
    color: var(--swa-red);
}

.d-status.skipped {
    background: #f0f0f0;
    color: var(--gray);
}

.form-msg {
    margin-top: 14px;
    font-weight: 600;
}

.form-msg.error {
    color: var(--swa-red);
}

.form-msg.success {
    color: var(--green);
}

/* Availability preview */
.avail-preview {
    margin-top: 18px;
    border-top: 1px dashed var(--border);
    padding-top: 16px;
}

.slot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.slot-chip {
    background: #eef1fb;
    color: var(--swa-blue);
    border: 1px solid #dde3f7;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
}

.slot-chip.full {
    background: #fbeaec;
    color: var(--swa-red);
    border-color: #f4ccd2;
}

/* How it works */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.step {
    padding: 24px;
    text-align: center;
}

.step .step-num {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    background: #eef1fb;
    color: var(--swa-blue);
}

.step h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.step p {
    margin: 0;
    color: var(--gray);
    font-size: .95rem;
}

/* Course grid */
.course-search {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.course-search input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-size: 1rem;
    font-family: inherit;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.course-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-card h3 {
    margin: 0;
    font-size: 1.15rem;
}

.course-card .loc {
    color: var(--gray);
    font-size: .9rem;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.tag {
    font-size: .78rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    background: #eef1fb;
    color: var(--steel-blue);
}

.tag.price {
    background: #e6f6ec;
    color: var(--green);
}

.course-card .card-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
    padding-top: 8px;
}

/* Section backgrounds */
.section-alt {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ---------- Dashboard ---------- */
.dash-head {
    background: var(--swa-blue);
    color: var(--white);
    padding: 40px 0;
}

.dash-head h1 {
    margin: 0 0 6px;
    font-size: 2rem;
}

.dash-controls {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 18px;
}

.dash-controls .field {
    flex: 1;
    min-width: 220px;
}

.dash-controls .field label {
    color: rgba(255, 255, 255, .85);
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: -28px 0 30px;
}

.stat-card {
    padding: 20px;
    text-align: center;
}

.stat-card .num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--swa-blue);
}

.stat-card .num.green {
    color: var(--green);
}

.stat-card .num.red {
    color: var(--swa-red);
}

.stat-card .lbl {
    color: var(--gray);
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.dash-columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 22px;
    align-items: start;
}

.panel {
    padding: 22px;
}

.panel h2 {
    margin: 0 0 16px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Live alerts feed */
.feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 620px;
    overflow-y: auto;
}

.alert-hit {
    border: 1px solid var(--border);
    border-left: 5px solid var(--green);
    border-radius: 10px;
    padding: 14px 16px;
    background: #fbfffc;
    animation: pop .35s ease;
}

.alert-hit.unread {
    border-left-color: var(--swa-yellow);
    background: #fffdf4;
}

.alert-hit .hit-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.alert-hit .hit-course {
    font-weight: 700;
    font-size: 1.05rem;
}

.alert-hit .hit-time {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--swa-blue);
}

.alert-hit .hit-meta {
    color: var(--gray);
    font-size: .88rem;
    margin-top: 4px;
}

.alert-hit .hit-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.badge {
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.badge.green {
    background: #e6f6ec;
    color: var(--green);
}

.badge.spots {
    background: #eef1fb;
    color: var(--swa-blue);
}

@keyframes pop {
    from {
        transform: translateY(-6px);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

/* Active alerts list */
.alert-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.alert-row:last-child {
    border-bottom: none;
}

.alert-row .a-course {
    font-weight: 700;
}

.alert-row .a-meta {
    color: var(--gray);
    font-size: .85rem;
}

.alert-row .a-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.on {
    background: var(--green);
    box-shadow: 0 0 0 3px #e6f6ec;
}

.status-dot.off {
    background: var(--gray);
}

.empty {
    text-align: center;
    color: var(--gray);
    padding: 40px 10px;
}

.empty .big {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 133, 34, .5);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(0, 133, 34, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 133, 34, 0);
    }
}

.toast-wrap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.toast {
    background: var(--white);
    border-left: 5px solid var(--green);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 14px 18px;
    min-width: 280px;
    animation: pop .3s ease;
}

.toast .t-title {
    font-weight: 800;
    color: var(--green);
}

.toast .t-body {
    font-size: .9rem;
    color: var(--gray);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 28px 0;
    margin-top: 40px;
    text-align: center;
}

.site-footer p {
    margin: 4px 0;
    font-size: .9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-columns {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.1rem;
    }
}

@media (max-width: 560px) {
    .setup-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .site-nav a:not(.btn) {
        display: none;
    }
}

/* ------------------------------------------------------------------ */
/* Auth: nav user chip + login/register page                          */
/* ------------------------------------------------------------------ */
.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--swa-blue);
}

.nav-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--swa-blue);
    color: var(--white);
    font-size: .8rem;
    font-weight: 700;
}

.field-hint {
    margin-top: 4px;
    font-size: .78rem;
    color: var(--gray);
}

.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 48px 20px 64px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 32px 30px 26px;
}

.auth-tabs {
    display: flex;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 22px;
}

.auth-tab {
    flex: 1;
    padding: 9px 0;
    border: 0;
    background: transparent;
    border-radius: 7px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--gray);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.auth-tab.active {
    background: var(--white);
    color: var(--swa-blue);
    box-shadow: var(--shadow);
}

.auth-title {
    font-size: 1.5rem;
    margin: 0 0 4px;
    color: var(--black);
}

.auth-sub {
    margin: 0 0 20px;
    font-size: .92rem;
}

.auth-card .field {
    margin-bottom: 14px;
}

.auth-submit {
    width: 100%;
    margin-top: 6px;
    justify-content: center;
}

.auth-switch {
    margin: 18px 0 0;
    text-align: center;
    font-size: .9rem;
}

.auth-switch a {
    color: var(--swa-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Account settings page                                              */
/* ------------------------------------------------------------------ */
.account-wrap {
    max-width: 560px;
    padding: 40px 20px 64px;
}

.account-h1 {
    margin: 0 0 4px;
    color: var(--black);
}

.account-card {
    padding: 22px 24px;
    margin-top: 20px;
}

.account-card h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    color: var(--swa-blue);
}

.account-card .field {
    margin-bottom: 14px;
}

.account-card.danger-zone {
    border-color: #f3c9cf;
    background: #fdf4f5;
}

.account-card.danger-zone h2 {
    color: var(--swa-red);
}

/* ------------------------------------------------------------------ */
/* Verification / reset / admin                                       */
/* ------------------------------------------------------------------ */
.auth-forgot {
    margin: -4px 0 14px;
    font-size: .88rem;
}

.auth-forgot a {
    color: var(--swa-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-forgot a:hover {
    text-decoration: underline;
}

/* Generic outcome page (verify / reset results) */
.message-wrap {
    display: flex;
    justify-content: center;
    padding: 56px 20px 72px;
}

.message-card {
    max-width: 460px;
    text-align: center;
    padding: 34px 30px;
}

.message-card h1 {
    margin: 8px 0 6px;
    font-size: 1.5rem;
}

.message-card .btn {
    margin-top: 18px;
}

.message-icon {
    font-size: 2.6rem;
    line-height: 1;
}

.message-card.ok .message-icon {
    color: var(--green);
}

.message-card.bad .message-icon {
    color: var(--orange);
}

/* Verify banner on the dashboard */
.verify-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin: 18px 0 -6px;
    padding: 12px 16px;
    border: 1px solid #ffe2a8;
    background: #fff8e8;
    color: #7a5c00;
    border-radius: 10px;
    font-size: .92rem;
}

/* Admin table */
.admin-wrap {
    padding: 32px 20px 64px;
}

.admin-wrap h1 {
    margin: 0 0 4px;
    color: var(--black);
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--gray);
}

.pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 600;
    background: #eef0f6;
    color: var(--gray);
}

.pill.ok {
    background: #e2f3e6;
    color: var(--green);
}

/* ------------------------------------------------------------------ */
/* Branded auth (login / signup) two-panel treatment                  */
/* ------------------------------------------------------------------ */
.auth-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    width: min(880px, 100%);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--card);
}

.auth-brand-panel {
    position: relative;
    padding: 44px 36px 130px;
    background: linear-gradient(160deg, var(--navy) 0%, var(--emerald-dark) 100%);
    color: #ffffff;
    overflow: hidden;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: url("/static/img/course-bg.svg") center bottom / 100% 120px no-repeat;
    opacity: 0.9;
}

.auth-brand-logo {
    display: block;
    width: 76px;
    height: 76px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25));
}

.auth-brand-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.7rem;
    line-height: 1.12;
    margin: 18px 0 10px;
    color: #ffffff;
}

.auth-brand-sub {
    margin: 0;
    font-size: .98rem;
    opacity: .92;
    max-width: 34ch;
}

.auth-brand-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    position: relative;
    z-index: 1;
}

.auth-brand-list li {
    position: relative;
    padding-left: 26px;
    margin: 9px 0;
    font-size: .95rem;
    font-weight: 600;
}

.auth-brand-list li::before {
    content: "\2714";
    position: absolute;
    left: 0;
    color: var(--light-green);
    font-weight: 700;
}

/* Card sits flush inside the layout (the layout owns the shadow/radius). */
.auth-layout .auth-card {
    max-width: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 34px 34px 28px;
}

@media (max-width: 760px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        padding: 30px 26px 96px;
    }

    .auth-brand-title {
        font-size: 1.45rem;
    }
}

/* ------------------------------------------------------------------ */
/* Hero course silhouette + "Instant Tee Time Notifications" banner   */
/* ------------------------------------------------------------------ */
.hero {
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110px;
    background: url("/static/img/course-bg.svg") center bottom / 100% 110px no-repeat;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.promo-banner {
    background: linear-gradient(120deg, var(--navy) 0%, #1c3f52 55%, var(--emerald-dark) 100%);
    color: #ffffff;
}

.promo-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 30px 0;
}

.promo-icon {
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
}

.promo-text {
    flex: 1 1 auto;
}

.promo-text h2 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 1.55rem;
}

.promo-text p {
    margin: 0;
    opacity: .9;
    max-width: 60ch;
}

.promo-banner .btn {
    flex: 0 0 auto;
}

@media (max-width: 680px) {
    .promo-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .promo-text p {
        margin: 0 auto;
    }
}

/* ------------------------------------------------------------------ */
/* Mobile navigation (hamburger) + responsive tweaks                  */
/* ------------------------------------------------------------------ */
.nav-toggle {
    display: none;
    /* hidden on desktop */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 640px) {
    .header-inner {
        position: relative;
    }

    .nav-toggle {
        display: flex;
    }

    /* Collapse the nav into a dropdown panel below the header. */
    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 12px;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 13px 20px;
        font-size: 1.02rem;
    }

    .site-nav .nav-user {
        padding: 13px 20px;
        border-top: 1px solid var(--border);
        margin-top: 4px;
    }

    /* Buttons (Sign up / Log out) become full-width pills inside the menu. */
    .site-nav .btn {
        margin: 10px 20px 2px;
        justify-content: center;
        width: auto;
    }

    /* Slightly smaller wordmark so brand + hamburger always fit. */
    .brand-name {
        font-size: 1.05rem;
    }

    .brand-mark-img {
        width: 32px;
        height: 32px;
    }

    /* Hero: dial down oversized type/padding on phones. */
    .hero {
        padding: 40px 0 88px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p.lead {
        font-size: 1.05rem;
    }

    /* Keep pickers from overflowing narrow screens. */
    .group-picker,
    .channel-picker,
    .slot-chips {
        flex-wrap: wrap;
    }

    /* Promo banner text sizing. */
    .promo-text h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 360px) {
    .brand-name {
        font-size: 0.95rem;
    }
}


/* Legal pages (Terms, Privacy) */
.legal-wrap {
    max-width: 760px;
    padding-top: 32px;
    padding-bottom: 56px;
}

.legal-wrap h1 {
    margin-bottom: 4px;
}

.legal-wrap h2 {
    margin-top: 28px;
    margin-bottom: 8px;
    font-size: 1.15rem;
    color: var(--swa-blue);
}

.legal-wrap p,
.legal-wrap li {
    line-height: 1.6;
    color: var(--black);
}

.legal-wrap ul {
    margin: 8px 0 8px 22px;
}

.legal-wrap li {
    margin-bottom: 6px;
}

.legal-note {
    background: #fff8e6;
    border: 1px solid var(--swa-yellow);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 16px 0 8px;
    font-size: .92rem;
    color: var(--gray);
}

/* Footer legal links */
.footer-links {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-links a {
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    opacity: .9;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}


/* SMS consent checkbox on the alert form */
.consent-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 16px;
    font-size: .88rem;
    color: var(--gray);
    line-height: 1.5;
    cursor: pointer;
}

.consent-check input {
    accent-color: var(--swa-blue);
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: none;
}

.consent-check a {
    color: var(--swa-blue);
    font-weight: 600;
}


/* Expired-alert badge */
.badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 2px 8px;
    border-radius: 999px;
    vertical-align: middle;
}

.badge.expired {
    background: #fdecec;
    color: var(--swa-red);
    border: 1px solid var(--swa-red);
}

/* Inline "edit alert" panel on the dashboard */
.alert-row {
    flex-wrap: wrap;
}

.alert-edit {
    flex-basis: 100%;
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.edit-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-start;
}

.edit-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    font-size: .85rem;
    color: var(--gray);
}

.edit-field select {
    padding: 8px 10px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    font-size: .95rem;
}

.edit-wins {
    flex: 1 1 100%;
}

.win-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.win-opt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
}

.win-opt input {
    accent-color: var(--swa-blue);
}

.edit-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* Admin operations metrics grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
}

.metric .mv {
    font-weight: 800;
    color: var(--swa-blue);
    font-size: 1.05rem;
}

.metric .ml {
    font-size: .8rem;
    color: var(--gray);
}

.metric.err {
    grid-column: 1 / -1;
    border-color: var(--swa-red);
    background: #fdecec;
}

.metric.err .mv {
    color: var(--swa-red);
    font-size: .9rem;
    font-weight: 600;
}


/* ============================= SEO PAGES ================================ */

/* Breadcrumb */
.breadcrumb {
    font-size: .85rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.breadcrumb a {
    color: var(--swa-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Course grid (courses index + city pages) */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.course-seo-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}

.course-seo-card:hover {
    border-color: var(--swa-blue);
    box-shadow: 0 2px 10px rgba(48, 76, 178, .12);
}

.cs-name {
    font-weight: 700;
    color: var(--black);
    font-size: .95rem;
}

.cs-meta {
    font-size: .8rem;
    color: var(--gray);
}

.cs-link {
    font-size: .8rem;
    font-weight: 700;
    color: var(--swa-blue);
    margin-top: 4px;
}

/* Course detail CTA box */
.seo-cta-box {
    background: #eef1fb;
    border: 1.5px solid var(--swa-blue);
    border-radius: 14px;
    padding: 24px;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seo-cta-box h2 {
    margin: 0;
    color: var(--swa-blue);
    font-size: 1.15rem;
}

.seo-cta-box p {
    margin: 0;
    color: var(--gray);
}

/* Pricing grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
    align-items: start;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    background: var(--white);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--swa-blue);
    box-shadow: 0 4px 20px rgba(48, 76, 178, .15);
}

.plan-badge {
    position: absolute;
    top: -13px;
    left: 24px;
    background: var(--swa-blue);
    color: var(--white);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 3px 12px;
    border-radius: 999px;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--black);
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--swa-blue);
}

.plan-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: .9rem;
    color: var(--gray);
    flex: 1;
}

.plan-note {
    font-size: .78rem;
    color: var(--gray);
    text-align: center;
    margin: 0;
}

/* Pricing FAQ */
.pricing-faq h2 {
    margin-bottom: 20px;
    color: var(--black);
}

.pfaq-item {
    border-top: 1px solid var(--border);
    padding: 18px 0;
}

.pfaq-item h3 {
    font-size: 1rem;
    color: var(--black);
    margin-bottom: 6px;
}

.pfaq-item p {
    margin: 0;
    color: var(--gray);
    line-height: 1.6;
}