:root {
    --navy: #073b4c;
    --navy-soft: #0d5367;
    --coral: #ff6b5c;
    --coral-dark: #d9473b;
    --gold: #ffb84f;
    --cream: #fff4da;
    --paper: #fffdf7;
    --ink: #16343d;
    --muted: #60747a;
    --line: rgba(7, 59, 76, .12);
    --shadow: 0 20px 60px rgba(7, 59, 76, .13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -.025em;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.shell {
    width: min(1160px, calc(100% - 2rem));
    margin-inline: auto;
}

.narrow {
    width: min(760px, calc(100% - 2rem));
}

.eyebrow {
    margin-bottom: .9rem;
    color: var(--coral-dark);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: .75rem 1.4rem;
    border: 1px solid var(--coral);
    border-radius: 999px;
    background: var(--coral);
    color: white;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(255, 107, 92, .2);
    transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 107, 92, .28);
}

.button-small {
    min-height: 42px;
    padding: .55rem 1.15rem;
}

.button-outline {
    background: transparent;
    color: var(--coral-dark);
    box-shadow: none;
}

.button-light {
    border-color: white;
    background: white;
    color: var(--navy);
    box-shadow: none;
}

.button-light:hover {
    color: var(--navy);
}

.hero {
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 184, 79, .18), transparent 25rem),
        var(--paper);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
}

.hero-copy h1 {
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.hero-lead {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.17rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.text-link {
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
}

.trust-note {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--muted);
    font-size: .88rem;
}

.trust-icon {
    display: inline-grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    background: var(--cream);
    color: var(--coral-dark);
    font-weight: 900;
}

.hero-art {
    position: relative;
    min-height: 460px;
    border-radius: 50% 45% 44% 55%;
    background: var(--cream);
    box-shadow: var(--shadow);
}

.sun {
    position: absolute;
    top: 50px;
    right: 60px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gold);
}

.person {
    position: absolute;
    z-index: 2;
    bottom: 112px;
    width: 115px;
    height: 175px;
    border-radius: 60px 60px 25px 25px;
}

.person::before {
    content: "";
    position: absolute;
    top: -72px;
    left: 22px;
    width: 72px;
    height: 82px;
    border-radius: 48% 48% 45% 45%;
    background: #a4613f;
}

.person::after {
    content: "";
    position: absolute;
    top: -83px;
    left: 17px;
    width: 82px;
    height: 49px;
    border-radius: 50px 50px 20px 20px;
    background: var(--navy);
}

.person-left {
    left: 70px;
    background: var(--coral);
    transform: rotate(3deg);
}

.person-right {
    right: 68px;
    background: var(--navy-soft);
    transform: rotate(-3deg);
}

.person-right::before {
    background: #73402e;
}

.person-right::after {
    height: 36px;
    background: #271c1a;
}

.table {
    position: absolute;
    z-index: 3;
    bottom: 58px;
    left: 50%;
    width: 340px;
    height: 40px;
    border-radius: 50%;
    background: #f2c683;
    transform: translateX(-50%);
    box-shadow: 0 16px 0 #bd8451;
}

.plate {
    position: absolute;
    top: -8px;
    width: 94px;
    height: 22px;
    border: 5px solid white;
    border-radius: 50%;
}

.plate-left { left: 48px; }
.plate-right { right: 48px; }

.cup {
    position: absolute;
    top: -25px;
    left: calc(50% - 15px);
    width: 30px;
    height: 30px;
    border-radius: 4px 4px 13px 13px;
    background: var(--coral);
}

.speech-bubble {
    position: absolute;
    z-index: 4;
    top: 55px;
    left: 45px;
    padding: .8rem 1rem;
    border-radius: 15px 15px 15px 3px;
    background: white;
    color: var(--navy);
    font-size: .85rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(7, 59, 76, .12);
}

.mission {
    padding: 6rem 0;
    background: white;
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
    text-align: left;
}

.steps article {
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    background: var(--paper);
}

.steps article > span {
    color: var(--coral);
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .1em;
}

.steps h3 {
    margin: 1rem 0 .7rem;
    font-size: 1.35rem;
}

.steps p {
    margin: 0;
    color: var(--muted);
}

.callout {
    padding: 4rem 0;
    background: var(--coral);
}

.callout-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.callout .eyebrow,
.callout h2 {
    color: white;
}

.callout h2 {
    margin: 0;
}

.page-intro {
    min-height: 65vh;
    padding: 7rem 0;
    background: linear-gradient(140deg, var(--cream), var(--paper));
}

.page-intro p:last-child {
    color: var(--muted);
    font-size: 1.15rem;
}

.app-surface {
    min-height: 72vh;
    padding: 4.5rem 0 6rem;
    background: #f4f7f5;
}

.app-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.app-heading h1 {
    max-width: 780px;
    margin-bottom: 1rem;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.app-heading p:last-child {
    color: var(--muted);
}

.api-status {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .5rem;
    padding: .55rem .8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
}

.api-status span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

.api-status.connected span { background: #2f9d68; }
.api-status.unavailable span { background: var(--coral-dark); }

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.action-card {
    min-height: 290px;
    padding: 2rem;
    border-radius: 1.25rem;
    background: white;
    box-shadow: 0 10px 34px rgba(7, 59, 76, .07);
}

.action-card.coral { border-top: 5px solid var(--coral); }
.action-card.gold { border-top: 5px solid var(--gold); }
.action-card.navy { border-top: 5px solid var(--navy); }

.card-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 1.5rem;
    place-items: center;
    border-radius: 14px;
    background: var(--cream);
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 900;
}

.action-card h2 {
    font-size: 1.45rem;
}

.action-card p {
    color: var(--muted);
}

.action-card button {
    margin-top: .5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--coral-dark);
    font-weight: 800;
}

@media (max-width: 850px) {
    .hero-grid,
    .steps,
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 420px;
        width: min(100%, 520px);
        margin-inline: auto;
    }

    .quick-actions {
        gap: 1rem;
    }
}

@media (max-width: 620px) {
    .hero {
        padding-top: 3.5rem;
    }

    .hero-actions,
    .callout-inner,
    .app-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-art {
        min-height: 330px;
    }

    .person {
        bottom: 85px;
        width: 85px;
        height: 125px;
    }

    .person::before {
        top: -55px;
        left: 14px;
        width: 58px;
        height: 62px;
    }

    .person::after {
        top: -64px;
        left: 10px;
        width: 65px;
        height: 40px;
    }

    .person-left { left: 40px; }
    .person-right { right: 40px; }

    .table {
        bottom: 46px;
        width: 260px;
    }

    .speech-bubble {
        top: 32px;
        left: 24px;
    }
}

/* Authenticated application and account flows */
.account-page {
    min-height: calc(100vh - 76px);
    display: grid;
    padding: 4rem 1rem;
    place-items: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 184, 79, .22), transparent 28rem),
        radial-gradient(circle at 85% 80%, rgba(29, 181, 179, .14), transparent 28rem),
        #fffdf8;
}

.account-card {
    width: min(100%, 500px);
    padding: clamp(1.7rem, 5vw, 3rem);
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow);
}

.account-card.centered {
    text-align: center;
}

.account-brand {
    display: block;
    margin-bottom: 2rem;
}

.account-brand img {
    width: 150px;
}

.account-card h1 {
    margin-bottom: .8rem;
    font-size: clamp(2rem, 6vw, 3rem);
}

.account-card > p:not(.eyebrow) {
    color: var(--muted);
}

.account-symbol {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.4rem;
    place-items: center;
    border-radius: 20px;
    background: var(--cream);
    color: var(--coral-dark);
    font-size: 1.7rem;
}

.account-form,
.form-card {
    display: grid;
    gap: 1.25rem;
}

.account-form {
    margin-top: 1.8rem;
}

.account-form label,
.form-card label,
.modal-card label {
    display: grid;
    gap: .45rem;
    color: var(--navy);
    font-size: .82rem;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    padding: .78rem .9rem;
    border: 1px solid rgba(7, 59, 76, .18);
    border-radius: .6rem;
    background: white;
    color: var(--ink);
    font: inherit;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--coral);
    outline: 3px solid rgba(255, 107, 92, .13);
}

input:disabled {
    background: #f3f4f4;
    color: var(--muted);
}

label small,
.account-form small {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 500;
}

.check-row {
    display: flex !important;
    align-items: flex-start;
    grid-template-columns: auto 1fr;
    gap: .6rem !important;
    color: var(--muted) !important;
    font-weight: 600 !important;
}

.check-row input {
    width: auto;
    margin-top: .25rem;
}

.full-button {
    width: 100%;
}

.account-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.4rem;
    color: var(--muted);
    font-size: .82rem;
}

.account-links a {
    color: var(--coral-dark);
    font-weight: 800;
}

.notice {
    margin: 1rem 0;
    padding: .85rem 1rem;
    border: 1px solid #a7dfc1;
    border-radius: .7rem;
    background: #effbf4;
    color: #226544;
    font-size: .86rem;
}

.notice.error {
    border-color: #f0b1ac;
    background: #fff1f0;
    color: #8f2f27;
}

.app-page-heading {
    margin-bottom: 2.2rem;
}

.app-page-heading h1 {
    margin-bottom: .65rem;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.app-page-heading > p:last-child,
.app-page-heading > div > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.compact-heading {
    max-width: 820px;
}

.centered-heading {
    max-width: 860px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.heading-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.dashboard-mark {
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
}

.large-page-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    place-items: center;
    border-radius: 18px;
    background: #f4e7ff;
    color: #9238cd;
    font-size: 1.8rem;
}

.purple-text {
    color: #9238cd !important;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
}

.feature-grid > a,
.portal-card {
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1.6rem;
    border: 1px solid rgba(7, 59, 76, .06);
    border-radius: 1rem;
    background: white;
    color: var(--navy);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(7, 59, 76, .09);
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-grid > a:hover,
.portal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-grid strong,
.portal-card strong {
    margin: .85rem 0 .25rem;
    font-size: 1.05rem;
}

.feature-grid small,
.portal-card small {
    color: var(--muted);
}

.feature-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 14px;
    color: white;
    font-size: 1.45rem;
    box-shadow: 0 8px 20px rgba(7, 59, 76, .14);
}

.feature-icon.teal { background: linear-gradient(135deg, #15b8b0, #3b83f7); }
.feature-icon.coral { background: linear-gradient(135deg, #ff762f, #f14b85); }
.feature-icon.pink { background: linear-gradient(135deg, #f2459c, #e93778); }
.feature-icon.purple { background: linear-gradient(135deg, #9238ed, #e54da8); }
.feature-icon.green { background: linear-gradient(135deg, #16aa72, #22c79f); }
.feature-icon.blue { background: linear-gradient(135deg, #3678ee, #6557ef); }

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
    margin-top: 2rem;
}

.metric-grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.metric-grid article {
    padding: 1.25rem 1.4rem;
    border-radius: .9rem;
    background: white;
    box-shadow: 0 9px 24px rgba(7, 59, 76, .08);
}

.metric-grid small {
    display: block;
    color: var(--muted);
}

.metric-grid strong {
    color: var(--coral-dark);
    font-size: 1.8rem;
}

.content-card {
    margin-bottom: 1.2rem;
    padding: clamp(1.3rem, 3vw, 2rem);
    border: 1px solid rgba(7, 59, 76, .06);
    border-radius: 1rem;
    background: white;
    box-shadow: 0 12px 30px rgba(7, 59, 76, .09);
}

.content-card h2 {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.empty-state {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.empty-state h2,
.empty-state h3 {
    margin: .8rem 0 .5rem;
}

.empty-state p {
    color: var(--muted);
}

.empty-icon {
    color: #c9ced1;
    font-size: 3rem;
}

.compact-empty {
    min-height: 130px;
    box-shadow: none;
}

.gradient-button,
.purple-button,
.secondary-button,
.danger-button,
.danger-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .65rem 1rem;
    border: 0;
    border-radius: .58rem;
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.gradient-button {
    background: linear-gradient(100deg, #ff741d, #e843a6);
    color: white;
}

.purple-button {
    background: linear-gradient(100deg, #9139e8, #e23f96);
    color: white;
}

.secondary-button {
    border: 1px solid var(--line);
    background: white;
    color: var(--navy);
}

.danger-button {
    background: #9e3028;
    color: white;
}

.danger-link {
    padding: .4rem 0;
    background: transparent;
    color: #a53a31;
}

.gradient-button:disabled,
.purple-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1rem;
}

.switch-card {
    display: flex !important;
    align-items: flex-start;
    grid-template-columns: auto 1fr;
    gap: .8rem !important;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: .8rem;
    background: #fbfbfa;
}

.switch-card.highlighted {
    border-color: #f1cab5;
    background: #fff7ed;
}

.switch-card input {
    width: auto;
    margin-top: .2rem;
}

.switch-card span {
    display: grid;
    gap: .25rem;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.chip-picker,
.display-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.choice-chip {
    display: block !important;
    padding: .5rem .8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    cursor: pointer;
}

.choice-chip:has(input:checked) {
    border-color: var(--coral);
    background: #fff0ef;
    color: var(--coral-dark);
}

.choice-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.display-chips > span:not(.muted) {
    padding: .45rem .75rem;
    border: 1px solid var(--line);
    border-radius: .45rem;
    background: #fffdf9;
    font-size: .8rem;
}

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

.profile-details dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem 2rem;
}

.profile-details dl div {
    display: grid;
    gap: .25rem;
}

.profile-details dl .wide {
    grid-column: 1 / -1;
}

.profile-details dt {
    color: var(--muted);
    font-size: .74rem;
}

.profile-details dd {
    margin: 0;
    color: var(--navy);
    font-weight: 700;
}

.search-row {
    display: flex;
    gap: .7rem;
    margin-bottom: 1.3rem;
}

.search-row input {
    max-width: 520px;
}

.centered-search {
    justify-content: center;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.listing-card {
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: white;
    box-shadow: 0 10px 25px rgba(7, 59, 76, .08);
}

.listing-title {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1.2rem;
}

.listing-title h2,
.listing-card h2 {
    margin: 0;
    font-size: 1.15rem;
}

.listing-title small {
    color: var(--muted);
}

.avatar {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--cream);
    color: var(--coral-dark);
    font-weight: 900;
}

.listing-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .7rem;
}

.listing-meta div {
    display: grid;
}

.listing-meta dt {
    color: var(--muted);
    font-size: .7rem;
}

.listing-meta dd {
    margin: 0;
    color: var(--navy);
    font-size: .84rem;
    font-weight: 700;
}

.listing-card > p {
    color: var(--muted);
    font-size: .86rem;
}

.tabs {
    display: flex;
    width: min(100%, 480px);
    margin-bottom: 1.2rem;
    padding: .25rem;
    border-radius: .65rem;
    background: #eceff1;
}

.tabs button {
    flex: 1;
    padding: .6rem;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.tabs button.active {
    background: white;
    color: var(--navy);
    box-shadow: 0 2px 7px rgba(7, 59, 76, .12);
}

.connection-card,
.connection-actions,
.review-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.venue-picker {
    display: grid;
    min-width: min(320px, 100%);
    gap: .35rem;
    color: var(--navy);
    font-size: .75rem;
    font-weight: 800;
}

.booking-venue {
    display: grid;
    gap: .15rem;
    margin-top: .75rem;
    color: var(--navy);
}

.booking-venue small {
    color: var(--muted);
}

.booking-messages {
    display: grid;
    max-width: 620px;
    gap: .55rem;
    margin-top: 1rem;
}

.booking-message {
    display: grid;
    width: fit-content;
    max-width: 100%;
    gap: .1rem;
    padding: .55rem .75rem;
    border-radius: .65rem .65rem .65rem .15rem;
    background: #f0f3f3;
}

.booking-message.own {
    margin-left: auto;
    border-radius: .65rem .65rem .15rem .65rem;
    background: var(--cream);
}

.booking-message small {
    color: var(--muted);
    font-size: .68rem;
}

.message-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .5rem;
}

.message-actions label {
    display: grid;
    gap: .2rem;
    color: var(--navy);
    font-size: .7rem;
    font-weight: 800;
}

.message-actions select {
    min-width: 120px;
}

.connection-card h2 {
    margin: .6rem 0 .4rem;
}

.connection-card p {
    margin: 0;
    color: var(--muted);
}

.connection-actions,
.review-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.status-pill,
.business-type {
    display: inline-block;
    padding: .28rem .55rem;
    border-radius: 999px;
    background: #eef2f2;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.status-pill.confirmed,
.status-pill.active,
.status-pill.approved {
    background: #e7f8ef;
    color: #23794e;
}

.status-pill.pending,
.status-pill.pendingreview {
    background: #fff4d9;
    color: #97610f;
}

.status-pill.cancelled,
.status-pill.declined,
.status-pill.rejected {
    background: #fff0ef;
    color: #9c382f;
}

.friendly-explainer,
.benefits-box {
    margin-bottom: 1.3rem;
    padding: 1.4rem;
    border: 1px solid #ead6f5;
    border-radius: 1rem;
    background: linear-gradient(100deg, #fbf5ff, #fff6fa);
}

.friendly-explainer h2 {
    font-size: 1.2rem;
}

.friendly-explainer > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.friendly-explainer p {
    margin: .3rem 0 0;
    color: var(--muted);
    font-size: .78rem;
}

.business-card {
    position: relative;
}

.business-card .business-type {
    margin-bottom: .8rem;
    background: #f3e8ff;
    color: #8337b5;
}

.business-address {
    margin: .65rem 0;
    color: var(--muted);
    font-size: .8rem;
}

.portal-grid,
.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.portal-card p {
    margin: .7rem 0 0;
    color: #9c382f;
    font-size: .75rem;
}

.dashboard-section {
    margin-top: 1.2rem;
}

.coupon-list {
    display: grid;
    gap: .8rem;
}

.coupon-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: .8rem;
}

.coupon-list h3 {
    margin: .55rem 0 .2rem;
}

.coupon-list p {
    margin: 0;
}

.coupon-list small {
    color: var(--muted);
}

.modal-backdrop {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    padding: 1rem;
    place-items: center;
    background: rgba(4, 15, 18, .72);
}

.modal-card {
    width: min(100%, 720px);
    max-height: calc(100vh - 2rem);
    padding: 1.5rem;
    border-radius: 1rem;
    background: white;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}

.modal-card form {
    display: grid;
    gap: 1rem;
}

.modal-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.modal-heading h2 {
    margin: 0;
}

.modal-heading button {
    border: 0;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
}

.admin-list,
.support-grid {
    display: grid;
    gap: 1rem;
}

.rejection-form {
    display: flex;
    gap: .7rem;
    margin-top: 1rem;
}

.support-grid {
    grid-template-columns: repeat(3, 1fr);
}

.support-grid .content-card {
    margin: 0;
}

.support-workspace {
    display: grid;
    gap: 1rem;
}

.support-workspace form,
.dispute-field {
    display: grid;
    gap: .8rem;
}

.ticket-list {
    display: grid;
    gap: .8rem;
}

.ticket-list article {
    display: grid;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: .8rem;
}

.ticket-list article > div {
    display: grid;
    gap: .3rem;
}

.ticket-list p {
    margin: .3rem 0 0;
}

.ticket-list small {
    color: var(--muted);
}

.safety-reminder {
    border-color: #f0b1ac;
    background: #fff8f7;
}

.status-pill.disputed {
    background: #f3e8ff;
    color: #74359b;
}

.status-pill.resolved,
.status-pill.closed {
    background: #e7f8ef;
    color: #23794e;
}

.support-grid p {
    color: var(--muted);
}

.validation-message,
.validation-errors {
    color: #a13229;
    font-size: .78rem;
}

@media (max-width: 920px) {
    .feature-grid,
    .metric-grid.four,
    .friendly-explainer > div {
        grid-template-columns: repeat(2, 1fr);
    }

    .portal-grid,
    .support-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .feature-grid,
    .metric-grid,
    .metric-grid.four,
    .listing-grid,
    .portal-grid,
    .support-grid,
    .form-grid,
    .mode-grid,
    .friendly-explainer > div,
    .profile-details dl {
        grid-template-columns: 1fr;
    }

    .heading-actions,
    .connection-card,
    .coupon-list article {
        align-items: stretch;
        flex-direction: column;
    }

    .search-row,
    .account-links,
    .rejection-form {
        flex-direction: column;
    }

    .profile-details dl .wide {
        grid-column: auto;
    }
}
