/* OTZ professional owner experience */
:root {
    --otz-bg: #07111d;
    --otz-panel: #0d1926;
    --otz-panel-soft: #0a1622;
    --otz-line: #213549;
    --otz-text: #f3f8fb;
    --otz-muted: #879daf;
    --otz-cyan: #20c1df;
    --otz-green: #2ac693;
    --otz-amber: #e8b957;
    --otz-shadow: 0 16px 38px rgba(0, 0, 0, .22);
}

body {
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.card {
    background: var(--otz-panel);
    border-color: var(--otz-line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

.btn {
    min-height: 44px;
    border-radius: 10px;
    padding: 11px 17px;
    font-size: 13px;
    letter-spacing: .01em;
}

.btn-primary {
    background: #18bddd;
    color: #03131b;
    box-shadow: 0 8px 22px rgba(24, 189, 221, .2);
}

.btn-primary:hover {
    background: #3bcae6;
    box-shadow: 0 10px 28px rgba(24, 189, 221, .26);
}

.btn-secondary {
    background: #142333;
    color: #eaf5fb;
    border-color: #2a4055;
}

.btn-large {
    min-height: 50px;
    padding: 13px 21px;
    font-size: 14px;
}

.btn:disabled {
    opacity: .58;
    cursor: not-allowed;
    transform: none;
}

.field {
    gap: 8px;
}

.field label {
    color: #b7c5d1;
    font-size: 11px;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.field label span {
    color: #71879a;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.field input,
.field select,
.field textarea,
table.data input,
table.data select {
    min-height: 47px;
    border: 1px solid #2a4054;
    border-radius: 9px;
    background: #09131f;
    color: #f5f9fc;
    padding: 11px 13px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #596e81;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
table.data input:focus,
table.data select:focus {
    outline: 0;
    border-color: #21bede;
    box-shadow: 0 0 0 3px rgba(33, 190, 222, .12);
}

.field small {
    color: #748a9d;
    font-size: 12px;
    line-height: 1.5;
}

.form-grid {
    gap: 17px;
}

.form-divider {
    position: relative;
    margin: 7px 0 2px;
    border-top: 1px solid #223549;
}

.form-divider span {
    position: relative;
    top: -9px;
    padding-right: 12px;
    background: var(--otz-panel);
    color: #6f8598;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.alert {
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.55;
}

.empty-soft {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px dashed #2a4054;
    border-radius: 12px;
    background: #0a1520;
}

.empty-soft strong {
    color: #dce8ef;
}

.empty-soft span {
    font-size: 12px;
    line-height: 1.5;
}

/* Public platform */
.platform-page {
    margin: 0;
    min-height: 100vh;
    background: var(--otz-bg);
    color: var(--otz-text);
}

.platform-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(117, 151, 177, .18);
    background: rgba(7, 17, 29, .9);
    backdrop-filter: blur(18px);
}

.platform-nav {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.platform-brand,
.auth-logo,
.auth-panel-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #f4f8fb;
    text-decoration: none;
}

.platform-brand img,
.auth-logo img,
.auth-panel-logo img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 11px;
}

.platform-brand span,
.auth-logo span,
.auth-panel-logo span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.platform-brand strong,
.auth-logo strong,
.auth-panel-logo strong {
    font-size: 14px;
    letter-spacing: .045em;
}

.platform-brand small,
.auth-logo small,
.auth-panel-logo small {
    color: #758da1;
    font-size: 10px;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.platform-actions {
    display: flex;
    align-items: center;
    gap: 17px;
}

.owner-link {
    color: #bdccd7;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.owner-link:hover {
    color: #fff;
}

.platform-hero-v2 {
    padding: 76px 0 62px;
    background: radial-gradient(circle at 7% 8%, rgba(23, 189, 224, .12), transparent 28%), radial-gradient(circle at 90% 14%, rgba(20, 127, 232, .08), transparent 30%);
}

.platform-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
    gap: 68px;
    align-items: center;
}

.platform-hero-copy h1 {
    max-width: 700px;
    margin: 15px 0 22px;
    font-size: clamp(45px, 6vw, 78px);
    line-height: .99;
    letter-spacing: -.055em;
}

.platform-hero-copy h1 span {
    color: #82e1ef;
}

.platform-hero-copy > p {
    max-width: 680px;
    margin: 0;
    color: #9eb2c3;
    font-size: 17px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
    margin-top: 29px;
}

.hero-proof {
    display: flex;
    gap: 19px;
    flex-wrap: wrap;
    margin-top: 27px;
    color: #8fa4b5;
    font-size: 12px;
}

.hero-proof b {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-right: 5px;
    border-radius: 50%;
    background: #123829;
    color: #64d8ad;
    font-size: 10px;
}

.platform-hero-visual {
    position: relative;
    overflow: hidden;
    min-height: 440px;
    border: 1px solid #27394b;
    border-radius: 22px;
    background: #07101a;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .32);
}

.platform-hero-visual > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .63;
}

.platform-hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 11, 18, .08), rgba(4, 11, 18, .35) 48%, #07111d 100%);
}

.visual-summary {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 17px;
    border: 1px solid rgba(214, 237, 247, .15);
    border-radius: 12px;
    background: rgba(6, 15, 24, .74);
    backdrop-filter: blur(12px);
}

.visual-summary div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.visual-summary small {
    color: #7f96a7;
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.visual-summary strong {
    font-size: 13px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #92d9bd;
    font-size: 11px;
    font-weight: 800;
}

.live-indicator i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #37cb95;
    box-shadow: 0 0 0 4px rgba(55, 203, 149, .12);
}

.visual-metrics {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    bottom: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgba(214, 237, 247, .14);
    border-radius: 13px;
    background: rgba(6, 15, 24, .84);
    backdrop-filter: blur(14px);
}

.visual-metrics div {
    min-width: 0;
    padding: 15px;
    border-right: 1px solid rgba(214, 237, 247, .1);
}

.visual-metrics div:last-child {
    border-right: 0;
}

.visual-metrics strong,
.visual-metrics span {
    display: block;
}

.visual-metrics strong {
    font-size: 12px;
}

.visual-metrics span {
    overflow: hidden;
    margin-top: 4px;
    color: #758c9e;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.platform-benefits {
    border-top: 1px solid #182a3b;
    border-bottom: 1px solid #182a3b;
    background: #091522;
}

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

.benefit-grid article {
    display: flex;
    gap: 16px;
    padding: 30px 25px;
    border-right: 1px solid #1c3041;
}

.benefit-grid article:first-child {
    padding-left: 0;
}

.benefit-grid article:last-child {
    border-right: 0;
}

.benefit-grid article > span {
    color: #39c6de;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
}

.benefit-grid h3 {
    margin: 0 0 7px;
    font-size: 15px;
}

.benefit-grid p {
    margin: 0;
    color: #7f95a7;
    font-size: 12px;
    line-height: 1.6;
}

.court-directory {
    padding: 74px 0 84px;
}

.directory-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 30px;
}

.directory-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(30px, 4vw, 45px);
    letter-spacing: -.035em;
}

.directory-heading > p {
    max-width: 460px;
    margin: 0;
    color: #8da3b5;
    line-height: 1.65;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.business-card {
    min-height: 245px;
    padding: 22px;
    border: 1px solid #213549;
    border-radius: 15px;
    background: #0c1926;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.business-card:hover {
    transform: translateY(-3px);
    border-color: #36566f;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .22);
}

.business-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.business-card-mark {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border: 1px solid #2a4a61;
    border-radius: 11px;
    background: #10283a;
    color: #66d8e8;
    font-size: 14px;
    font-weight: 900;
}

.court-count {
    padding: 6px 9px;
    border-radius: 99px;
    background: #122436;
    color: #91aabd;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.business-card h3 {
    margin: 22px 0 7px;
    font-size: 20px;
}

.business-card p {
    margin: 0;
    color: #859bad;
    font-size: 13px;
    line-height: 1.6;
}

.business-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #1e3143;
    color: #c7d7e1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.business-card-link span {
    color: #49cae1;
    font-size: 18px;
}

.empty-business-card {
    grid-column: 1 / -1;
    min-height: 200px;
    align-items: flex-start;
}

.owner-cta {
    padding: 0 0 82px;
}

.owner-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 38px 42px;
    border: 1px solid #24445a;
    border-radius: 18px;
    background: #0d2232;
}

.owner-cta h2 {
    margin: 7px 0 9px;
    font-size: 32px;
    letter-spacing: -.03em;
}

.owner-cta p {
    max-width: 700px;
    margin: 0;
    color: #8ea5b6;
    line-height: 1.65;
}

.platform-footer {
    border-top: 1px solid #182b3d;
    background: #06101a;
    color: #6f8699;
    font-size: 11px;
}

.platform-footer .container {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Public court booking page */
.court-public-page {
    background: linear-gradient(180deg, #081522, #07111d 500px);
}

.court-public-hero {
    padding: 54px 0 42px;
    border-bottom: 1px solid #192c3d;
}

.court-public-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
    gap: 54px;
    align-items: end;
}

.back-directory {
    display: inline-block;
    margin-bottom: 35px;
    color: #7890a3;
    text-decoration: none;
    font-size: 12px;
}

.back-directory:hover {
    color: #fff;
}

.court-public-hero h1 {
    margin: 11px 0 14px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -.045em;
}

.court-location {
    display: flex;
    gap: 8px;
    color: #91a7b8;
    line-height: 1.55;
}

.court-location span {
    color: #52cade;
}

.court-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.court-chips .pill {
    display: flex;
    align-items: center;
    gap: 7px;
    border-color: #29445a;
    background: #0d2130;
    color: #b9ceda;
}

.court-chips .pill i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--otz-green);
}

.message-court {
    margin-top: 20px;
}

.booking-steps-card {
    padding: 24px 25px;
    border: 1px solid #253c50;
    border-radius: 15px;
    background: #0c1a28;
}

.booking-steps-card h2 {
    margin: 8px 0 18px;
    font-size: 21px;
}

.booking-steps-card ol {
    display: grid;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.booking-steps-card li {
    display: flex;
    gap: 12px;
}

.booking-steps-card li > span {
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #15364a;
    color: #5fd3e5;
    font-size: 11px;
    font-weight: 900;
}

.booking-steps-card strong,
.booking-steps-card small {
    display: block;
}

.booking-steps-card strong {
    font-size: 12px;
}

.booking-steps-card small {
    margin-top: 3px;
    color: #71899b;
    font-size: 11px;
    line-height: 1.45;
}

.booking-layout-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(310px, .65fr);
    gap: 20px;
    padding-top: 34px;
    padding-bottom: 70px;
}

.booking-panel {
    padding: 27px;
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #203448;
}

.panel-heading.compact {
    margin-bottom: 16px;
}

.panel-heading h2 {
    margin: 7px 0 5px;
    font-size: 24px;
}

.panel-heading p {
    margin: 0;
    color: #8198aa;
    font-size: 12px;
    line-height: 1.55;
}

.secure-booking {
    padding: 6px 9px;
    border-radius: 99px;
    background: #103326;
    color: #72d7b2;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.availability-button {
    width: 100%;
    border-style: dashed;
}

.booking-message {
    margin-top: 14px;
}

.booking-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.openplay-list {
    display: grid;
    gap: 9px;
}

.openplay-item {
    display: flex;
    gap: 13px;
    padding: 13px;
    border: 1px solid #22374a;
    border-radius: 11px;
    background: #0a1622;
}

.openplay-date {
    flex: 0 0 45px;
    width: 45px;
    height: 49px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 9px;
    background: #112c3f;
}

.openplay-date strong {
    font-size: 17px;
    line-height: 1;
}

.openplay-date span {
    margin-top: 3px;
    color: #71b9ca;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.openplay-item > div:last-child {
    min-width: 0;
}

.openplay-item > div:last-child strong,
.openplay-item > div:last-child span,
.openplay-item > div:last-child small {
    display: block;
}

.openplay-item > div:last-child strong {
    font-size: 12px;
}

.openplay-item > div:last-child span {
    margin: 3px 0;
    color: #a9bdc9;
    font-size: 11px;
}

.openplay-item > div:last-child small {
    color: #6f879a;
    font-size: 10px;
    line-height: 1.4;
}

.booking-help {
    padding: 21px;
    border: 1px solid #1f3548;
    border-radius: 14px;
    background: #0a1723;
}

.booking-help strong {
    font-size: 13px;
}

.booking-help p {
    margin: 7px 0 12px;
    color: #7f95a7;
    font-size: 12px;
    line-height: 1.55;
}

.booking-help a {
    color: #51cde2;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

/* Owner login and registration */
.auth-page {
    margin: 0;
    min-height: 100vh;
    background: var(--otz-bg);
    color: var(--otz-text);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(440px, 1.08fr) minmax(430px, .92fr);
}

.auth-brand-panel {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.auth-brand-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-brand-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 10, 17, .62), rgba(4, 10, 17, .35) 38%, rgba(4, 10, 17, .94) 100%), linear-gradient(90deg, rgba(4, 10, 17, .15), rgba(4, 10, 17, .55));
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px 50px;
}

.auth-brand-message {
    max-width: 650px;
}

.auth-brand-message h1 {
    margin: 13px 0 18px;
    font-size: clamp(38px, 5.5vw, 66px);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.auth-brand-message p {
    max-width: 590px;
    margin: 0;
    color: #aec0cd;
    font-size: 15px;
    line-height: 1.7;
}

.auth-capabilities {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.auth-capabilities span {
    padding: 8px 10px;
    border: 1px solid rgba(189, 222, 237, .18);
    border-radius: 8px;
    background: rgba(7, 20, 31, .55);
    color: #a9becb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.auth-brand-footer {
    color: #668094;
}

.auth-form-panel {
    display: grid;
    place-items: center;
    padding: 50px;
    background: #08131f;
}

.auth-form-wrap {
    width: min(440px, 100%);
}

.auth-back-link {
    display: inline-block;
    margin-bottom: 46px;
    color: #718a9d;
    text-decoration: none;
    font-size: 12px;
}

.auth-back-link:hover {
    color: #fff;
}

.form-intro {
    margin-bottom: 27px;
}

.form-intro h2 {
    margin: 8px 0;
    font-size: 37px;
    letter-spacing: -.04em;
}

.form-intro p {
    margin: 0;
    color: #7f96a8;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 17px;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.input-action {
    position: relative;
    display: flex;
}

.input-action input {
    width: 100%;
    padding-right: 66px;
}

.input-action button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    min-width: 53px;
    border: 0;
    border-left: 1px solid #2a4054;
    background: transparent;
    color: #71bed0;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.auth-submit,
.auth-register-link {
    width: 100%;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0;
    color: #63798c;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #213447;
}

.auth-help {
    max-width: 340px;
    margin: 18px auto 0;
    color: #61798b;
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
}

.auth-mobile-brand {
    display: none;
}

.auth-topbar {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(26px, calc((100vw - 1300px) / 2));
    border-bottom: 1px solid #1b2f41;
    background: #08131f;
}

.auth-topbar > div {
    color: #71889b;
    font-size: 12px;
}

.auth-topbar > div a {
    margin-left: 5px;
    color: #54cce1;
    font-weight: 800;
}

.onboarding-layout {
    width: min(1300px, calc(100% - 44px));
    margin: 38px auto 70px;
    display: grid;
    grid-template-columns: minmax(350px, .7fr) minmax(560px, 1.3fr);
    gap: 26px;
    align-items: start;
}

.onboarding-intro {
    position: sticky;
    top: 105px;
    min-height: 670px;
    overflow: hidden;
    padding: 38px;
    border: 1px solid #254056;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(8, 23, 35, .52), rgba(7, 17, 29, .96)), url('/assets/img/otz-cover.webp') center / cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.onboarding-intro h1 {
    margin: 13px 0 18px;
    font-size: 42px;
    line-height: 1.04;
    letter-spacing: -.045em;
}

.onboarding-intro p {
    margin: 0;
    color: #9db1c0;
    line-height: 1.7;
}

.onboarding-points {
    display: grid;
    gap: 20px;
    margin-top: 38px;
}

.onboarding-points > div,
.onboarding-note {
    display: flex;
    gap: 13px;
}

.onboarding-points > div > span,
.onboarding-note > span {
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #163a4e;
    color: #62d3e4;
    font-size: 11px;
    font-weight: 900;
}

.onboarding-points strong,
.onboarding-points small,
.onboarding-note strong,
.onboarding-note small {
    display: block;
}

.onboarding-points strong,
.onboarding-note strong {
    font-size: 12px;
}

.onboarding-points small,
.onboarding-note small {
    margin-top: 4px;
    color: #7891a3;
    font-size: 11px;
    line-height: 1.5;
}

.onboarding-note {
    padding-top: 22px;
    border-top: 1px solid rgba(192, 221, 235, .13);
}

.onboarding-note > span {
    background: #12392b;
    color: #67d5ac;
}

.onboarding-form-panel {
    padding: 8px 29px 30px;
}

.onboarding-form-panel .auth-back-link {
    margin-bottom: 36px;
}

.owner-registration-form {
    border: 1px solid #213649;
    border-radius: 17px;
    background: #0c1825;
}

.form-section {
    padding: 27px 29px;
}

.form-section + .form-section {
    border-top: 1px solid #203448;
}

.form-section-heading {
    display: flex;
    gap: 13px;
    margin-bottom: 23px;
}

.form-section-heading > span {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #14364a;
    color: #5fd0e2;
    font-size: 12px;
    font-weight: 900;
}

.form-section-heading h3 {
    margin: 0;
    font-size: 17px;
}

.form-section-heading p {
    margin: 4px 0 0;
    color: #71899c;
    font-size: 11px;
}

.registration-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 23px 29px;
    border-top: 1px solid #203448;
    border-radius: 0 0 17px 17px;
    background: #0a1521;
}

.registration-submit p {
    max-width: 450px;
    margin: 0;
    color: #6f8699;
    font-size: 10px;
    line-height: 1.6;
}

.registration-submit .btn {
    white-space: nowrap;
}

.success-page {
    display: grid;
    place-items: center;
    padding: 35px;
}

.success-shell {
    width: min(680px, 100%);
}

.success-shell > .auth-logo {
    margin-bottom: 22px;
}

.success-card {
    padding: 43px;
    border: 1px solid #244056;
    border-radius: 19px;
    background: #0b1825;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
}

.success-icon,
.pending-status-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 50%;
}

.success-icon {
    background: #10382a;
    color: #72deb6;
    font-size: 25px;
}

.pending-status-icon {
    background: #382e17;
}

.pending-status-icon span {
    width: 16px;
    height: 16px;
    border: 3px solid #e3b85b;
    border-top-color: transparent;
    border-radius: 50%;
}

.success-card h1 {
    margin: 10px 0 14px;
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: -.04em;
}

.success-card > p {
    margin: 0;
    color: #8fa5b6;
    line-height: 1.7;
}

.account-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 21px 0 17px;
    padding: 13px 15px;
    border: 1px solid #4e4328;
    border-radius: 10px;
    background: #211d12;
}

.account-status-row span {
    color: #8c8268;
    font-size: 10px;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.account-status-row strong {
    color: #e7c473;
    font-size: 10px;
    letter-spacing: .08em;
}

.review-steps {
    display: grid;
    margin: 30px 0;
    border: 1px solid #23384b;
    border-radius: 12px;
    background: #091520;
}

.review-steps > div {
    display: flex;
    gap: 13px;
    padding: 16px;
    border-bottom: 1px solid #1f3244;
}

.review-steps > div:last-child {
    border-bottom: 0;
}

.review-steps > div > span {
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #142b3d;
    color: #7e9caf;
    font-size: 11px;
    font-weight: 900;
}

.review-steps .complete > span {
    background: #11372a;
    color: #69d7ad;
}

.review-steps .current > span {
    background: #3b3018;
    color: #e6bd64;
}

.review-steps strong,
.review-steps small {
    display: block;
}

.review-steps strong {
    font-size: 12px;
}

.review-steps small {
    margin-top: 3px;
    color: #6f8799;
    font-size: 11px;
    line-height: 1.5;
}

.success-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Owner portal shell */
.admin-body {
    margin: 0;
    background: #08121d;
    color: #edf4f8;
}

.admin-app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 23px 17px 18px;
    border-right: 1px solid #1c2f40;
    background: #07111c;
    display: flex;
    flex-direction: column;
}

.admin-brand {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 8px;
    color: #f2f7fa;
    text-decoration: none;
}

.admin-brand img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.admin-brand > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-brand strong {
    font-size: 13px;
    letter-spacing: .04em;
}

.admin-brand small {
    color: #647e91;
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.business-context {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 3px 13px;
    padding: 11px;
    border: 1px solid #213649;
    border-radius: 11px;
    background: #0b1926;
}

.business-avatar {
    flex: 0 0 33px;
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #15384b;
    color: #61d1e3;
    font-size: 12px;
    font-weight: 900;
}

.business-context > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.business-context small {
    color: #61798c;
    font-size: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.business-context strong {
    overflow: hidden;
    color: #d9e5ec;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-nav {
    display: grid;
    gap: 4px;
}

.admin-nav-group {
    display: grid;
    gap: 3px;
    padding-top: 14px;
}

.admin-nav-label {
    padding: 0 11px 6px;
    color: #526a7c;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.admin-nav a,
.sidebar-footer a {
    min-height: 41px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #8298a9;
    text-decoration: none;
    font-size: 11px;
    font-weight: 750;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.admin-nav a:hover,
.sidebar-footer a:hover {
    background: #0d1d2b;
    color: #d6e4eb;
}

.admin-nav a.active {
    border-color: #21445a;
    background: #10283a;
    color: #ebf8fc;
    box-shadow: inset 3px 0 #20c1df;
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.admin-nav a.active .nav-icon {
    color: #4fd0e5;
}

.sidebar-footer {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
}

.sidebar-footer > a {
    border-color: #203648;
    background: #0a1723;
}

.sidebar-secure {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 8px;
    color: #4f687a;
    font-size: 9px;
}

.sidebar-secure > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--otz-green);
}

.admin-workspace {
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 72px;
    padding: 0 30px;
    border-bottom: 1px solid #1d3041;
    background: rgba(9, 20, 31, .92);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 13px;
}

.topbar-context {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.topbar-context small {
    color: #61798b;
    font-size: 8px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.topbar-context strong {
    font-size: 11px;
}

.sidebar-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid #294054;
    border-radius: 9px;
    background: #0e1c29;
    padding: 9px;
    cursor: pointer;
}

.sidebar-toggle span {
    display: block;
    height: 2px;
    margin: 3px 0;
    border-radius: 9px;
    background: #b9cbd5;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9fb4c2;
}

.admin-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #16384b;
    color: #63d3e5;
    font-size: 12px;
    font-weight: 900;
}

.admin-user-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-user-copy strong {
    color: #e4edf2;
    font-size: 10px;
}

.admin-user-copy small {
    color: #60798b;
    font-size: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.logout-link {
    margin-left: 9px;
    padding-left: 17px;
    border-left: 1px solid #24394b;
    color: #7f97a8 !important;
    text-decoration: none;
    font-size: 10px;
}

.logout-link:hover {
    color: #fff !important;
}

.admin-main {
    width: min(1540px, 100%);
    margin: 0 auto;
    padding: 32px 34px 56px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 26px;
}

.page-heading h1 {
    margin: 7px 0 6px;
    font-size: 32px;
    letter-spacing: -.035em;
}

.page-heading p {
    max-width: 700px;
    margin: 0;
    color: #758c9f;
    font-size: 12px;
    line-height: 1.55;
}

.page-view-link {
    min-height: 40px;
}

.admin-main > .card,
.admin-main section.card,
.admin-main div.card {
    border-radius: 14px;
}

.admin-main .admin-grid {
    gap: 16px;
}

.panel {
    padding: 22px;
}

.panel h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.setup-step-grid {
    gap: 16px;
}

.setup-step,
.setup-overview,
.chat-shell {
    border-radius: 14px;
}

.admin-sidebar-backdrop {
    display: none;
}

table.data {
    min-width: 850px;
}

table.data th,
table.data td {
    padding: 13px 15px;
    border-bottom-color: #1b3041;
    font-size: 11px;
}

table.data th {
    background: #0a1622;
    color: #6e8799;
    font-size: 8px;
}

table.data td {
    color: #cddae2;
}

table.data td small {
    color: #697f91;
    line-height: 1.5;
}

.status-badge {
    padding: 5px 8px;
    font-size: 8px;
}

.table-card {
    overflow: hidden;
}

.table-toolbar {
    min-height: 58px;
    padding: 14px 18px;
    border-bottom-color: #203447;
}

.table-toolbar > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.table-toolbar strong {
    font-size: 12px;
}

.table-toolbar small {
    color: #60798b;
    font-size: 9px;
}

/* Dashboard */
.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin: -3px 0 21px;
    padding: 20px 23px;
    border: 1px solid #20384b;
    border-radius: 14px;
    background: #0b1a27;
}

.welcome-kicker {
    color: #5bcce0;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.dashboard-welcome h2 {
    margin: 6px 0 4px;
    font-size: 22px;
}

.dashboard-welcome p {
    margin: 0;
    color: #6f8799;
    font-size: 11px;
}

.today-status {
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border: 1px solid #234055;
    border-radius: 10px;
    background: #0a1723;
}

.today-status > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--otz-green);
    box-shadow: 0 0 0 5px rgba(42, 198, 147, .1);
}

.today-status div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.today-status small {
    color: #627a8d;
    font-size: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.today-status strong {
    font-size: 10px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 18px;
}

.stat {
    position: relative;
    overflow: hidden;
    min-height: 156px;
    padding: 18px;
}

.stat::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(25, 199, 230, .12);
    opacity: .32;
}

.stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat-head > span:last-child {
    color: #607a8d;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.stat-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #112b3c;
    color: #54cbdf;
}

.stat-icon .nav-icon {
    width: 16px;
    height: 16px;
}

.stat-green .stat-icon {
    background: #12372b;
    color: #67d5ad;
}

.stat-amber .stat-icon {
    background: #382d16;
    color: #e6bd65;
}

.stat-cyan .stat-icon {
    background: #123349;
    color: #67d9eb;
}

.stat .label {
    color: #7c92a4;
    font-size: 9px;
    letter-spacing: .1em;
}

.stat .value {
    margin: 5px 0 4px;
    font-size: 27px;
    letter-spacing: -.035em;
}

.stat > small {
    color: #5f7789;
    font-size: 9px;
}

.dashboard-primary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr);
    gap: 16px;
    margin-bottom: 18px;
}

.launch-card,
.availability-card {
    padding: 22px;
}

.launch-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.launch-card-head h2 {
    margin: 6px 0 4px;
    font-size: 19px;
}

.launch-card-head p {
    margin: 0;
    color: #647d90;
    font-size: 10px;
}

.launch-card-head > strong {
    color: #65d4e6;
    font-size: 22px;
}

.progress-track {
    height: 5px;
    overflow: hidden;
    margin: 18px 0;
    border-radius: 99px;
    background: #162938;
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2bc1dc;
}

.launch-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.launch-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid #213648;
    border-radius: 10px;
    background: #0a1722;
    color: #d6e3ea;
    text-decoration: none;
}

.launch-item > span {
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #14354a;
    color: #5bd0e4;
    font-size: 10px;
    font-weight: 900;
}

.launch-item.complete > span {
    background: #12372a;
    color: #65d4aa;
}

.launch-item strong,
.launch-item small {
    display: block;
}

.launch-item strong {
    font-size: 10px;
}

.launch-item small {
    overflow: hidden;
    max-width: 190px;
    margin-top: 3px;
    color: #637c8f;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.section-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.section-card-head h2 {
    margin: 6px 0 0;
    font-size: 19px;
}

.section-card-head > a {
    color: #55cde2;
    text-decoration: none;
    font-size: 9px;
    font-weight: 800;
}

.availability-list {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.availability-list span {
    padding: 7px 9px;
    border: 1px solid #26445a;
    border-radius: 8px;
    background: #0d2231;
    color: #a8c7d4;
    font-size: 9px;
}

.more-slots {
    display: block;
    margin-top: 9px;
    color: #657e91;
}

.messenger-mini-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #203446;
}

.messenger-mini-status > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d6a748;
}

.status-dot.ready {
    background: var(--otz-green);
}

.messenger-mini-status strong,
.messenger-mini-status small {
    display: block;
}

.messenger-mini-status strong {
    font-size: 10px;
}

.messenger-mini-status small {
    margin-top: 2px;
    color: #647d8f;
    font-size: 8px;
}

.messenger-mini-status > a {
    color: #54cde2;
    text-decoration: none;
    font-size: 9px;
    font-weight: 800;
}

.dashboard-table {
    margin-top: 0;
}

/* Settings: accessible 24-hour booking toggle */
.owner-toggle-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    width: 100%;
    min-height: 88px;
    padding: 17px 18px;
    border: 1px solid #29485d;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(17, 41, 56, .96), rgba(10, 29, 42, .96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.owner-toggle-card:hover {
    border-color: #39708c;
    background: linear-gradient(135deg, rgba(20, 48, 65, .98), rgba(10, 31, 45, .98));
}

.owner-toggle-control {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.owner-toggle-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.owner-toggle-track {
    position: relative;
    display: block;
    width: 50px;
    height: 28px;
    border: 1px solid #466276;
    border-radius: 999px;
    background: #152c3c;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .3);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.owner-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #b8c8d2;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .38);
    transition: transform .2s ease, background .2s ease;
}

.owner-toggle-control input:checked + .owner-toggle-track {
    border-color: #27c1dc;
    background: linear-gradient(135deg, #23c7db, #168be7);
    box-shadow: 0 0 0 3px rgba(38, 195, 222, .12), inset 0 1px 1px rgba(255, 255, 255, .22);
}

.owner-toggle-control input:checked + .owner-toggle-track .owner-toggle-thumb {
    background: #ffffff;
    transform: translateX(22px);
}

.owner-toggle-control input:focus-visible + .owner-toggle-track {
    outline: 3px solid rgba(66, 211, 235, .34);
    outline-offset: 3px;
}

.owner-toggle-copy {
    display: block;
    min-width: 0;
}

.owner-toggle-copy strong,
.owner-toggle-copy small {
    display: block;
}

.owner-toggle-copy strong {
    color: #f2f8fb;
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: .01em;
}

.owner-toggle-copy small {
    max-width: 650px;
    margin-top: 5px;
    color: #8eacbc;
    font-size: 10px;
    line-height: 1.55;
}

.owner-toggle-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid #325b72;
    border-radius: 999px;
    background: rgba(11, 28, 40, .72);
    color: #6f8999;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .09em;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.owner-toggle-card:has(input:checked) {
    border-color: rgba(37, 193, 219, .62);
    box-shadow: inset 3px 0 0 #24c4dc, 0 8px 24px rgba(2, 12, 20, .16);
}

.owner-toggle-card:has(input:checked) .owner-toggle-badge {
    border-color: rgba(38, 199, 220, .42);
    background: rgba(31, 184, 218, .12);
    color: #6ce4ef;
}

/* Responsive behavior */
@media (max-width: 1180px) {
    .platform-hero-grid { gap: 40px; }
    .business-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-primary-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .onboarding-layout { grid-template-columns: minmax(320px, .75fr) minmax(500px, 1.25fr); }
}

@media (max-width: 1050px) {
    .admin-app { display: block; }
    .admin-sidebar {
        position: fixed;
        z-index: 80;
        left: 0;
        top: 0;
        width: 272px;
        transform: translateX(-105%);
        transition: transform .2s ease;
        box-shadow: 20px 0 45px rgba(0, 0, 0, .35);
    }
    .sidebar-open .admin-sidebar { transform: translateX(0); }
    .admin-sidebar-backdrop {
        position: fixed;
        z-index: 70;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(1, 7, 12, .7);
        backdrop-filter: blur(4px);
    }
    .sidebar-open .admin-sidebar-backdrop { display: block; }
    .sidebar-open { overflow: hidden; }
    .sidebar-toggle { display: block; }
    .admin-main { padding: 27px 23px 45px; }
    .admin-topbar { padding: 0 22px; }
    .page-view-link { display: none; }
    .auth-shell { grid-template-columns: minmax(380px, .9fr) minmax(420px, 1.1fr); }
    .auth-brand-content { padding: 35px; }
    .court-public-grid { gap: 28px; }
}

@media (max-width: 860px) {
    .platform-hero-v2 { padding-top: 50px; }
    .platform-hero-grid,
    .court-public-grid,
    .booking-layout-v2 { grid-template-columns: 1fr; }
    .platform-hero-visual { min-height: 360px; }
    .benefit-grid { grid-template-columns: 1fr; }
    .benefit-grid article,
    .benefit-grid article:first-child {
        padding: 20px 0;
        border-right: 0;
        border-bottom: 1px solid #1c3041;
    }
    .benefit-grid article:last-child { border-bottom: 0; }
    .directory-heading,
    .owner-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
    .auth-shell { display: block; }
    .auth-brand-panel { display: none; }
    .auth-form-panel { min-height: 100vh; padding: 32px; }
    .auth-mobile-brand { display: block; margin-bottom: 55px; }
    .onboarding-layout {
        width: min(760px, calc(100% - 34px));
        grid-template-columns: 1fr;
        margin-top: 24px;
    }
    .onboarding-intro { position: relative; top: auto; min-height: auto; }
    .onboarding-note { margin-top: 36px; }
    .onboarding-form-panel { padding: 10px 0; }
    .auth-topbar { padding: 0 20px; }
}

@media (max-width: 680px) {
    .container { width: min(calc(100% - 28px), 1180px); }
    .platform-nav { height: 70px; }
    .platform-brand img,
    .auth-logo img { width: 40px; height: 40px; }
    .platform-actions { gap: 9px; }
    .owner-link { display: none; }
    .platform-actions .btn { min-height: 40px; padding: 9px 12px; font-size: 11px; }
    .platform-hero-copy h1 { font-size: 43px; }
    .platform-hero-copy > p { font-size: 15px; }
    .platform-hero-visual { min-height: 310px; }
    .visual-metrics { grid-template-columns: 1fr; left: 14px; right: 14px; bottom: 14px; }
    .visual-metrics div { padding: 9px 12px; border-right: 0; border-bottom: 1px solid rgba(214, 237, 247, .1); }
    .visual-metrics div:last-child { border-bottom: 0; }
    .visual-summary { left: 14px; right: 14px; top: 14px; }
    .business-grid { grid-template-columns: 1fr; }
    .directory-heading h2 { font-size: 32px; }
    .owner-cta-inner { padding: 28px 23px; }
    .owner-cta h2 { font-size: 27px; }
    .platform-footer .container { align-items: flex-start; flex-direction: column; justify-content: center; }
    .court-public-hero { padding-top: 35px; }
    .booking-steps-card { padding: 20px; }
    .booking-panel { padding: 20px; }
    .panel-heading { display: block; }
    .secure-booking { display: inline-flex; margin-top: 11px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid > .field { grid-column: 1 / -1; }
    .auth-form-panel { padding: 26px 20px; }
    .auth-form-wrap { width: 100%; }
    .auth-back-link { margin-bottom: 35px; }
    .form-intro h2 { font-size: 32px; }
    .auth-topbar > div { font-size: 0; }
    .auth-topbar > div a { font-size: 11px; }
    .onboarding-layout { width: min(calc(100% - 24px), 760px); }
    .onboarding-intro { padding: 28px 23px; }
    .onboarding-intro h1 { font-size: 34px; }
    .form-section { padding: 23px 19px; }
    .registration-submit { align-items: stretch; flex-direction: column; padding: 20px; }
    .registration-submit .btn { width: 100%; }
    .success-page { padding: 20px; }
    .success-card { padding: 29px 21px; }
    .success-card h1 { font-size: 30px; }
    .success-actions { display: grid; }
    .admin-topbar { padding: 0 14px; }
    .topbar-context,
    .admin-user-copy { display: none; }
    .logout-link { margin-left: 3px; padding-left: 10px; }
    .admin-main { padding: 22px 14px 40px; }
    .page-heading { align-items: flex-start; }
    .page-heading h1 { font-size: 28px; }
    .page-heading p { font-size: 11px; }
    .dashboard-welcome { align-items: flex-start; flex-direction: column; }
    .today-status { width: 100%; }
    .stats { grid-template-columns: 1fr 1fr; gap: 9px; }
    .stat { min-height: 142px; padding: 14px; }
    .stat .value { font-size: 23px; }
    .stat > small { display: none; }
    .launch-list { grid-template-columns: 1fr; }
    .launch-item small { max-width: none; }
    .table-toolbar { align-items: flex-start; flex-direction: column; }
    .admin-main .admin-grid { grid-template-columns: 1fr; }
    .setup-checks { grid-template-columns: 1fr; }
    .setup-overview { padding: 19px; }
    .setup-overview h2 { font-size: 23px; }
    .admin-user { gap: 7px; }
    .owner-toggle-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px 13px;
        min-height: 0;
        padding: 15px;
    }
    .owner-toggle-badge {
        grid-column: 2;
        justify-self: start;
        min-height: 26px;
        margin-top: -3px;
        padding: 4px 9px;
    }
}

@media (max-width: 430px) {
    .stats { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .court-public-hero h1 { font-size: 38px; }
    .auth-brand-message h1 { font-size: 38px; }
    .success-actions .btn { width: 100%; }
}

/* One-click Facebook Page connection */
.facebook-connect-panel {
    background:
        radial-gradient(circle at 100% 0, rgba(29, 142, 246, .17), transparent 42%),
        linear-gradient(145deg, #0a1c2a, #07131e);
}

.facebook-connect-button {
    width: 100%;
    min-height: 52px;
    margin-top: 18px;
    font-size: 13px;
}

.facebook-connect-button[disabled] {
    cursor: not-allowed;
    filter: grayscale(.45);
    opacity: .55;
}

.privacy-note {
    display: block;
    margin-top: 11px;
    color: #7595a8;
    font-size: 10px;
    line-height: 1.55;
    text-align: center;
}

.connected-page-summary,
.oauth-page-card {
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid #24465d;
    border-radius: 15px;
    background: rgba(6, 20, 31, .82);
}

.connected-page-summary {
    padding: 15px;
    margin-bottom: 15px;
}

.connected-page-summary > div,
.oauth-page-card > div {
    flex: 1;
    min-width: 0;
}

.connected-page-summary strong,
.connected-page-summary small,
.oauth-page-card strong,
.oauth-page-card small {
    display: block;
}

.connected-page-summary strong,
.oauth-page-card strong {
    overflow: hidden;
    color: #f3fbff;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.connected-page-summary small,
.oauth-page-card small {
    margin-top: 4px;
    color: #7897a9;
    font-size: 10px;
}

.oauth-page-avatar {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(61, 187, 240, .4);
    border-radius: 13px;
    background: linear-gradient(145deg, #0f9ee9, #1766dc);
    box-shadow: 0 8px 18px rgba(9, 105, 207, .22);
    color: white;
    font-size: 16px;
    font-weight: 950;
}

.facebook-page-picker {
    margin-bottom: 18px;
}

.oauth-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 17px;
}

.oauth-page-card {
    min-width: 0;
    padding: 14px;
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.oauth-page-card:hover {
    border-color: #249fd5;
    background: rgba(9, 34, 49, .96);
    transform: translateY(-1px);
}

.meta-health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.meta-health-grid > div {
    min-width: 0;
    padding: 13px;
    border: 1px solid #1d3b50;
    border-radius: 13px;
    background: #071722;
}

.meta-health-grid small,
.meta-health-grid strong {
    display: block;
}

.meta-health-grid small {
    margin-bottom: 6px;
    color: #708fa1;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.meta-health-grid strong {
    overflow-wrap: anywhere;
    color: #e8f5fb;
    font-size: 12px;
    line-height: 1.4;
}

.meta-health-grid .health-good { color: #66dfb2; }
.meta-health-grid .health-warn { color: #f7ca69; }
.meta-health-grid .health-bad { color: #ff8f9e; }

.meta-last-check {
    margin: 11px 0 0;
    color: #708fa1;
    font-size: 10px;
}

.advanced-recovery {
    margin-bottom: 20px;
    padding: 18px 21px;
}

.advanced-recovery summary {
    cursor: pointer;
    color: #a5bfce;
    font-size: 12px;
    font-weight: 850;
}

.advanced-recovery[open] summary {
    margin-bottom: 17px;
    color: #dff5ff;
}

.meta-permission-guide code {
    color: #73d9ee;
    font-size: 10px;
}

.alert.info a {
    color: #65d9ef;
    font-weight: 850;
}

@media (max-width: 780px) {
    .oauth-page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .connected-page-summary,
    .oauth-page-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .connected-page-summary .setup-state,
    .oauth-page-card .btn {
        width: 100%;
        margin-left: 55px;
    }
    .meta-health-grid { grid-template-columns: 1fr; }
}
