:root {

    --primary: #F97316;
    --primary-dark: #EA580C;
    --primary-hover: #EA580C;
    --primary-light: #FFEDD5;
    --primary-border: #FDBA74;

    --accent: #1F2937;

    --bg: #FFF8F1;
    --bg-body: #FFF8F1;
    --card: #FFFFFF;
    --bg-surface: #FFFFFF;
    --bg-muted: #F3F4F6;

    --text-main: #1F2937;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;

    --border-color: #E5E7EB;

    --danger: #DC2626;
    --danger-hover: #B91C1C;
    --danger-light: #FEF2F2;
    --danger-border: #FECACA;

    --success-bg: #F0FDF4;
    --success-text: #166534;
    --success-border: #BBF7D0;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;

    --shadow-sm: 0 1px 3px rgba(31, 41, 55, 0.06);
    --shadow-md: 0 6px 18px rgba(31, 41, 55, 0.08);
    --sidebar-width: 14.5rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 13.5px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (max-width: 1366px) and (min-width: 769px) {
    html {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14.5px;
    }
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.55;
    min-height: 100vh;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--primary);
}

a.link-default,
a.link-default:visited,
a.link-default:hover {
    color: #0000EE;
    text-decoration: underline;
}

h1, h2, h3, h4 {
    color: var(--accent);
    font-weight: 700;
    line-height: 1.25;
}

p {
    color: var(--text-secondary);
}

code {
    font-family: Consolas, Monaco, monospace;
    font-size: 0.88em;
    background: var(--bg-muted);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

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

.text-sm {
    font-size: 0.875rem;
}

.text-right {
    text-align: right;
}

.brand-link {
    display: inline-flex;
     flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    line-height: 1.1;
}

.brand-wordmark {
    font-size: 1.38rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent);
}

.brand-wordmark::after {
    content: ".";
    color: var(--primary);
}

.brand-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.58rem 1.15rem;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
    line-height: 1.25;
}

.btn-sm {
    padding: 0.38rem 0.78rem;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.8rem 1.55rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #FFFFFF;
}

.btn-secondary {
    background-color: var(--card);
    color: var(--accent);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-border);
    color: var(--primary-dark);
}

.btn-white {
    background-color: #FFFFFF;
    color: var(--accent);
    border-color: #E5E7EB;
}

.btn-white:hover {
    background-color: #F3F4F6;
    border-color: #D1D5DB;
    color: var(--accent);
}

.btn-danger {
    background-color: var(--danger-light);
    color: var(--danger);
    border-color: var(--danger-border);
}

.btn-danger:hover {
    background-color: var(--danger);
    color: #FFFFFF;
    border-color: var(--danger);
}

.btn:disabled,
.btn.btn-disabled {
    background-color: var(--bg-muted);
    color: var(--text-muted);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.78;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    line-height: 1.3;
    white-space: nowrap;
}

.badge-active,
.badge-bookable {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary-border);
}

.badge-inactive {
    background-color: var(--bg-muted);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.sport-tag {
    display: inline-block;
    padding: 0.2rem 0.58rem;
    font-size: 0.78rem;
    font-weight: 600;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-sm);
    margin: 0.12rem 0.25rem 0.12rem 0;
}

.alert {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border-color: var(--success-border);
}

.alert-error {
    background-color: var(--danger-light);
    color: #7F1D1D;
    border-color: var(--danger-border);
}

.alert-info {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-border);
}

.card {
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.35rem;
    margin-bottom: 1.35rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 0.95rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.page-title {
    font-size: 1.55rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.page-subtitle {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.empty-state {
    text-align: center;
    padding: 2.6rem 1.25rem;
    background: var(--bg-body);
    border: 1px dashed var(--primary-border);
    border-radius: var(--radius-md);
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.empty-state-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 440px;
    margin: 0 auto 1rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

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

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.38rem;
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 0.94rem;
    font-family: inherit;
    color: var(--text-main);
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

textarea.form-control {
    min-height: 85px;
    resize: vertical;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.field-error {
    font-size: 0.82rem;
    color: var(--danger);
    margin-top: 0.3rem;
    font-weight: 500;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 0.6rem;
    margin-top: 0.35rem;
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.checkbox-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.checkbox-card input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.data-table th,
.data-table td {
    padding: 0.8rem 0.95rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table th {
    background-color: var(--bg-body);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.data-table tbody tr:hover {
    background-color: var(--bg-body);
}

.table-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.public-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-navbar {
    background: var(--card);
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 0;
}

.public-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.public-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.public-main {
    flex: 1;
}

.public-footer {
    background: var(--card);
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 0;
    font-size: 0.86rem;
    color: var(--text-secondary);
    margin-top: 3rem;
}

.public-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-section {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.hero-eyebrow {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.hero-title {
    color: var(--accent);
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 1.85rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

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

.feature-card {
    background: var(--card);
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.12rem;
    margin-bottom: 0.5rem;
}

.pricing-section {
    padding: 1rem 0 2.5rem;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.section-header h2 {
    color: var(--accent);
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
}

.pricing-single-wrap {
    max-width: 460px;
    margin: 0 auto;
}

.pricing-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

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

.pricing-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.4rem 0 1.15rem;
}

.pricing-price {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.pricing-price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: "✓";
    color: #374151;
    font-weight: 700;
}

.checkout-wrap {
    max-width: 960px;
    margin: 2rem auto;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr;
    gap: 1.5rem;
    align-items: start;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.payment-tile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card);
    cursor: pointer;
    font-weight: 700;
    color: var(--accent);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.payment-tile:hover {
    border-color: var(--primary-border);
}

.payment-tile.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.payment-tile input[type="radio"] {
    accent-color: var(--primary);
}

.paymongo-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.92rem;
}

.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    margin-top: 0.35rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent);
}

.auth-wrapper {
    max-width: 480px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

.auth-card {
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.owner-shell {
    display: flex;
    min-height: 100vh;
}

.owner-sidebar {
    width: var(--sidebar-width);
    background-color: var(--card);
    color: var(--accent);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.22s ease;
}

.sidebar-brand {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.sidebar-section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 1.1rem 1.25rem 0.45rem;
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    padding: 0.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.62rem 0.85rem;
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 0.93rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-link:hover {
    background-color: var(--bg-body);
    color: var(--primary-dark);
}

.sidebar-link.active {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 700;
}

.sidebar-label {
    flex: 1;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
}

.sidebar-user-role {
    display: block;
    color: var(--text-muted);
    font-size: 0.74rem;
}

.sidebar-user-name {
    color: var(--accent);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(31, 41, 55, 0.45);
    z-index: 90;
}

.owner-main-wrap {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.owner-topbar {
    background: var(--card);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 40;
}

.owner-topbar-left,
.owner-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.sidebar-toggle-btn {
    display: none;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    color: var(--accent);
}

.facility-topbar-title {
    font-size: 0.98rem;
    color: var(--accent);
}

.topbar-user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.owner-content {
    flex: 1;
    padding: 1.65rem 1.75rem;
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
}

.owner-footer {
    padding: 1rem 1.75rem;
    border-top: 1px solid var(--border-color);
    background: var(--card);
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--accent);
    margin: 0.35rem 0 0.2rem;
}

.stat-value-sm {
    font-size: 1.4rem;
}

.stat-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

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

.crud-layout {
    display: grid;
    grid-template-columns: 22.5rem 1fr;
    gap: 1.35rem;
    align-items: start;
}

.chart-frame {
    border-left: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    height: 210px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 38px,
        rgba(249, 115, 22, 0.12) 39px
    );
    margin-bottom: 0.5rem;
}

.chart-axis-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--text-muted);
    padding: 0 0.5rem;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.95rem;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.calendar-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    table-layout: fixed;
}

.calendar-grid th,
.calendar-grid td {
    border: 1px solid var(--border-color);
    padding: 0.55rem;
    text-align: center;
}

.calendar-grid th {
    background: var(--bg-body);
    font-weight: 700;
    color: var(--text-secondary);
}

.calendar-time-col {
    width: 92px;
    background: var(--bg-body);
    font-weight: 600;
    color: var(--text-muted);
}

.calendar-slot-empty {
    color: var(--text-muted);
    height: 42px;
    background: #FFFFFF;
}

.qr-scanner-box {
    max-width: 420px;
    margin: 1rem auto;
    padding: 2.5rem 1.5rem;
    border: 2px dashed var(--primary-border);
    border-radius: var(--radius-lg);
    background: var(--primary-light);
    text-align: center;
}

.customer-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.customer-navbar {
    background: var(--card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.customer-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 1rem;
}

.mobile-nav-toggle {
    display: none;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.5rem;
    cursor: pointer;
}

.customer-nav-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 1.5rem;
    gap: 1rem;
}

.customer-nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.customer-nav-link {
    padding: 0.48rem 0.85rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.customer-nav-link:hover {
    background: var(--bg-body);
    color: var(--accent);
}

.customer-nav-link.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.customer-nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.customer-content {
    flex: 1;
    padding-top: 1.75rem;
    padding-bottom: 2rem;
}

.search-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input-row {
    display: flex;
    gap: 0.65rem;
}

.filter-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 600;
}

.filter-chip.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.courts-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr));
    gap: 1.25rem;
}

.court-card {
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.court-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.court-card-banner {
    height: 135px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    position: relative;
}

.court-card-initials {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
}

.court-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.court-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent);
}

.court-card-title a {
    color: var(--accent);
}

.court-card-title a:hover {
    color: var(--primary-dark);
}

.court-card-facility {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.court-card-footer {
    padding: 0.95rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.court-rate-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent);
}

.booking-layout {
    display: grid;
    grid-template-columns: 1.45fr 0.95fr;
    gap: 1.35rem;
    align-items: start;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 0.6rem;
    margin-top: 0.45rem;
}

.slot-btn {
    padding: 0.6rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--accent);
    font-family: inherit;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.slot-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.slot-btn.selected {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary-dark);
    font-weight: 700;
}

@media (max-width: 980px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .crud-layout,
    .grid-2col,
    .feature-grid,
    .checkout-grid,
    .booking-layout {
        grid-template-columns: 1fr;
    }
}

.nav-toggle-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .owner-sidebar {
        transform: translateX(-100%);
    }

    .owner-sidebar.open,
    #sidebarToggleState:checked ~ .owner-sidebar {
        transform: translateX(0);
    }

    .sidebar-close-btn {
        display: inline-block;
    }

    .sidebar-backdrop.open,
    #sidebarToggleState:checked ~ .sidebar-backdrop {
        display: block;
    }

    .owner-main-wrap {
        margin-left: 0;
    }

    .sidebar-toggle-btn {
        display: inline-flex;
    }

    .owner-content {
        padding: 1.25rem 1rem;
    }

    .owner-topbar {
        padding: 0.75rem 1rem;
    }

    .topbar-user-name {
        display: none;
    }

    .form-row,
    .stat-grid,
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .customer-navbar-inner {
        flex-wrap: wrap;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    .customer-nav-collapse {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-color);
    }

    .customer-nav-collapse.open,
    #customerNavToggleState:checked ~ .customer-nav-collapse {
        display: flex;
    }

    .customer-nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .customer-nav-user {
        justify-content: space-between;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-color);
    }

    .search-input-row {
        flex-direction: column;
    }
}

.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.is-hidden { display: none; }
.flex-1 { flex: 1; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-1-5 { gap: 0.35rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.w-100 { width: 100%; }
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mr-1 { margin-right: 0.25rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-xs { font-size: 0.75rem; }
.text-md { font-size: 1rem; }
.text-lg { font-size: 1.15rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-italic { font-style: italic; }
.text-primary { color: var(--primary); }
.text-primary-dark { color: var(--primary-dark); }
.text-success { color: var(--success-text); }
.text-danger { color: var(--danger); }
.text-warning { color: #B45309; }
.text-info { color: #1E40AF; }
.cursor-pointer { cursor: pointer; }

.modal-backdrop {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-card {
    width: 100%;
    max-width: 440px;
    margin: auto;
}

.modal-card-md {
    max-width: 460px;
}

.modal-card-lg {
    max-width: 560px;
}

.modal-card-xl {
    max-width: 640px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-close-btn {
    text-decoration: none;
    color: #4B5563;
    font-size: 1.5rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.col-actions-wide {
    min-width: 220px;
}

.db-error-list {
    margin: 0.5rem 0 0 1.25rem;
}

.nav-badge-sm {
    padding: 0.15rem 0.45rem;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.forbidden-wrap {
    max-width: 600px;
    margin: 4rem auto;
    text-align: center;
}

.forbidden-card {
    padding: 2.5rem;
}

.forbidden-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.forbidden-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #1F2937;
}

.auth-alt-link {
    margin-top: 0.45rem;
}

body.layout-redirect {
    font-family: sans-serif;
    background: #FFF8F1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    color: #1F2937;
}

.redirect-box {
    text-align: center;
}

.redirect-spinner {
    border: 3px solid #FFEDD5;
    border-top: 3px solid #F97316;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: redirectSpin 0.6s linear infinite;
    margin: 0 auto 12px;
}

@keyframes redirectSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.discover-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.discover-toolbar-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.discover-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.discover-layout {
    display: block;
}

.discover-layout.mode-list .discover-map-pane {
    display: none;
}

.discover-layout.mode-map .discover-list-pane {
    display: none;
}

.discover-layout.mode-map #discoverMap {
    height: 580px;
}

.discover-map-header-left,
.discover-map-header-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.map-status-box {
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #F9FAFB;
}

.map-status-box--error {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #991B1B;
}

.map-status-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.map-status-actions {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.hub-popup-directions {
    display: block;
    width: 100%;
    text-align: center;
    background: #F3F4F6;
    color: #1F2937 !important;
    border: 1px solid #D1D5DB;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 0.45rem;
}

.hub-popup-directions:hover {
    background: #E5E7EB;
}

.discover-court-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.discover-card-banner {
    position: relative;
    padding: 0;
    overflow: hidden;
    height: 180px;
    display: block;
    background: #F9FAFB;
}

.discover-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discover-card-banner .court-card-initials {
    height: 100%;
    width: 100%;
    border-radius: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discover-badge-open {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ECFDF5;
    color: #065F46;
}

.discover-badge-bookable {
    position: absolute;
    top: 8px;
    right: 8px;
}

.discover-perk-strip {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.discover-perk-strip--member {
    background: #ECFDF5;
    color: #065F46;
    border-bottom: 1px solid #A7F3D0;
}

.discover-perk-strip--voucher {
    background: #FEF3C7;
    color: #92400E;
    border-bottom: 1px solid #FDE68A;
}

.discover-perk-strip--program {
    background: #EFF6FF;
    color: #1E40AF;
    font-weight: 600;
    border-bottom: 1px solid #BFDBFE;
}

.discover-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.discover-card-title {
    margin-top: 0.25rem;
    font-size: 1.12rem;
}

.discover-card-hours {
    font-size: 0.8rem;
    color: #4B5563;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.discover-card-footer {
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.btn-focus-map {
    font-size: 0.78rem;
}

.discover-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.discover-map-title {
    font-size: 0.95rem;
    color: var(--accent);
}

.map-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
}

#discoverMap {
    width: 100%;
    height: 520px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #E5E7EB;
    z-index: 1;
}

.map-legend-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: #F9FAFB;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.map-legend-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.map-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}

.legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.legend-dot.partner { background: #16A34A; }
.legend-dot.external { background: #F97316; }
.legend-dot.user { background: #2563EB; }

.distance-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.geo-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.user-location-pulse {
    position: relative;
    width: 18px;
    height: 18px;
}

.user-location-pulse::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.28);
    animation: qcPulse 2s ease-out infinite;
}

.user-location-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #2563EB;
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.55);
}

@keyframes qcPulse {
    0%   { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(2.1); opacity: 0; }
}

#discoverMap .leaflet-popup-content-wrapper {
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16);
}

#discoverMap .leaflet-popup-content {
    margin: 0;
    width: 268px !important;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.hub-popup-banner {
    width: 100%;
    height: 108px;
    background: linear-gradient(135deg, #16A34A, #15803D);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    overflow: hidden;
}

.hub-popup-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hub-popup-body {
    padding: 0.75rem 0.85rem 0.85rem;
}

.hub-popup-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.hub-popup-addr {
    font-size: 0.78rem;
    color: #4B5563;
    margin-bottom: 0.45rem;
    line-height: 1.35;
}

.hub-popup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.55rem;
}

.hub-popup-tag {
    background: #F3F4F6;
    color: #374151;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.hub-popup-distance {
    display: inline-block;
    background: #EFF6FF;
    color: #1D4ED8;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.55rem;
}

.hub-popup-external-badge {
    background: #FFF7ED;
    color: #9A3412;
    border: 1px solid #FDBA74;
    border-radius: 6px;
    padding: 0.45rem 0.55rem;
    font-size: 0.74rem;
    line-height: 1.35;
    font-weight: 600;
    margin-top: 0.35rem;
}

.hub-popup-cta {
    display: block;
    width: 100%;
    text-align: center;
    background: #16A34A;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.84rem;
    padding: 0.48rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 0.35rem;
}

.hub-popup-cta:hover {
    background: #15803D;
}

@media (max-width: 960px) {
    .discover-layout.mode-split {
        grid-template-columns: 1fr;
    }

    .discover-layout.mode-split .discover-map-pane {
        position: static;
        order: -1;
    }

    #discoverMap {
        height: 360px;
    }
}

.facility-card-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.facility-photo-layout {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.facility-photo-preview-col {
    width: 280px;
    flex-shrink: 0;
}

.facility-photo-preview-box {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #F3F4F6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-photo-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.facility-photo-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 1rem;
}

.facility-photo-placeholder-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.25rem;
}

.facility-photo-delete-btn {
    color: var(--danger);
    width: 100%;
}

.facility-photo-upload-col {
    flex: 1;
    min-width: 260px;
}

.facility-schedule-panel {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.facility-schedule-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1F2937;
}

.facility-24h-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
}

.facility-hours-helper {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: #FFF7ED;
    border: 1px solid #FFEDD5;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

.book-facility-info-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.book-badge-open {
    background: #ECFDF5;
    color: #065F46;
}

.book-facility-info-body {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.book-facility-thumb {
    width: 190px;
    height: 125px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    flex-shrink: 0;
    background: #F3F4F6;
}

.book-facility-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-facility-initials {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.book-facility-meta {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.book-facility-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
}

.book-facility-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.book-facility-court-desc {
    margin: 0.35rem 0 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.badge-info-soft {
    background: #DBEAFE;
    color: #1E40AF;
    font-weight: 700;
}

.badge-success-soft {
    background: #DCFCE7;
    color: #166534;
    font-weight: 700;
}

.badge-warning-soft {
    background: #FEF3C7;
    color: #92400E;
    font-weight: 700;
}

.badge-danger-soft {
    background: #FEE2E2;
    color: #991B1B;
    font-weight: 700;
}

.badge-neutral-soft {
    background: #F3F4F6;
    color: #374151;
    font-weight: 600;
}

.badge-gcash {
    background: #EFF6FF;
    color: #1D4ED8;
    font-weight: 600;
}

.badge-maya {
    background: #ECFDF5;
    color: #047857;
    font-weight: 600;
}

.badge-card {
    background: #FFF7ED;
    color: #C2410C;
    font-weight: 600;
}

.divider-line {
    border: 0;
    border-top: 1px solid #E5E7EB;
    margin: 0.5rem 0;
}

.divider-line-sm {
    border: 0;
    border-top: 1px solid #E5E7EB;
    margin: 0.35rem 0;
}

.font-mono {
    font-family: monospace;
}

.code-xs {
    font-size: 12px;
}

.text-13 {
    font-size: 13px;
}

.text-capitalize {
    text-transform: capitalize;
}

.terms-modal-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.terms-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.terms-modal-toggle:checked + .terms-modal-overlay {
    display: flex;
}

.terms-modal-close {
    cursor: pointer;
    color: #4B5563;
    font-size: 1.6rem;
    line-height: 1;
    padding: 0.15rem 0.4rem;
}

.terms-scroll-body {
    overflow-y: auto;
    padding: 1rem;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #1F2937;
    white-space: pre-wrap;
    margin-bottom: 1rem;
}

.terms-consent-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.8rem 0.9rem;
}

.terms-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: #1F2937;
}

.terms-consent-checkbox {
    margin-top: 0.18rem;
    cursor: pointer;
}

.terms-link-label {
    color: #EA580C;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.checkout-page-wrap {
    max-width: 880px;
    margin: 3rem auto;
}

.checkout-page-header {
    text-align: center;
    margin-bottom: 2rem;
    display: block;
}

.checkout-split-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 2rem;
    align-items: flex-start;
}

.checkout-summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.checkout-refund-policy {
    font-size: 0.88rem;
    font-weight: 600;
}

.checkout-refund-policy--allowed {
    color: #166534;
}

.checkout-refund-policy--none {
    color: #991B1B;
}

.checkout-total-label {
    font-size: 1.1rem;
    font-weight: 600;
}

.checkout-total-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #166534;
}

.checkout-sandbox-note {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    font-size: 12px;
    color: #1E40AF;
}

.checkout-xendit-card {
    border: 2px solid #2563EB;
}

.checkout-submit-btn {
    width: 100%;
    font-size: 1.05rem;
}

.checkout-fallback-summary {
    cursor: pointer;
    font-weight: 700;
    color: #4B5563;
    font-size: 0.95rem;
}

.checkout-fallback-form {
    position: relative;
}

.checkout-method-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-methods-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.checkout-payment-tile {
    border: 1px solid #D1D5DB;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    background: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.checkout-tile-icon {
    font-size: 1.15rem;
}

.checkout-tile-label {
    font-size: 12px;
    display: block;
}

#pay-method-card:checked ~ .payment-methods-grid label[for="pay-method-card"],
#pay-method-gcash:checked ~ .payment-methods-grid label[for="pay-method-gcash"],
#pay-method-maya:checked ~ .payment-methods-grid label[for="pay-method-maya"],
#pay-method-bank:checked ~ .payment-methods-grid label[for="pay-method-bank"] {
    border: 2px solid #EA580C;
    background: #FFF7ED;
}

#method-box-card,
#method-box-wallet,
#method-box-bank,
.wallet-label-gcash,
.wallet-label-maya {
    display: none;
}

#pay-method-card:checked ~ #method-box-card,
#pay-method-gcash:checked ~ #method-box-wallet,
#pay-method-maya:checked ~ #method-box-wallet,
#pay-method-bank:checked ~ #method-box-bank {
    display: block;
}

#pay-method-gcash:checked ~ #method-box-wallet .wallet-label-gcash,
#pay-method-maya:checked ~ #method-box-wallet .wallet-label-maya {
    display: block;
}

.checkout-otp-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.85rem;
    margin-top: 1rem;
}

.checkout-otp-input {
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-align: center;
    max-width: 150px;
}

.receipt-wrap {
    max-width: 620px;
    margin: 3rem auto;
}

.receipt-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.receipt-status-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
}

.receipt-status-icon--refunded {
    background: #DBEAFE;
    color: #1E40AF;
}

.receipt-status-icon--paid {
    background: #DCFCE7;
    color: #166534;
}

.receipt-status-icon--pending {
    background: #FEF3C7;
    color: #92400E;
}

.receipt-heading {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.receipt-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: left;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.receipt-amount {
    font-size: 1.35rem;
}

.receipt-amount--refunded {
    color: #1E40AF;
}

.receipt-amount--paid {
    color: #166534;
}

.receipt-amount--pending {
    color: #92400E;
}

.receipt-downpayment-note {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #92400E;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 13px;
    text-align: left;
}

.hub-popup-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    color: #EA580C;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}

.payment-method-code {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
}

.badge-danger-text {
    background: #FEE2E2;
    color: #DC2626;
}

.badge-pending-soft {
    background: #FEF3C7;
    color: #D97706;
}

.badge-partial-soft {
    background: #FEF3C7;
    color: #B45309;
    font-weight: 700;
}

.badge-reviewed {
    background: #FFFBEB;
    color: #B45309;
    border: 1px solid #FDE68A;
}

.pagination-bar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.vouchers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1.25rem;
    padding: 1rem 0;
}

.voucher-card {
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 0;
}

.voucher-card--active {
    border-color: var(--primary);
}

.voucher-percent {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.voucher-title {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.voucher-message {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 0.75rem;
}

.voucher-meta-box {
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.empty-state-compact {
    margin: 0.5rem 0;
}

.star-rating-picker {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.25rem;
    justify-content: center;
}

.star-rating-picker input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-rating-picker label {
    font-size: 2.15rem;
    color: #D1D5DB;
    cursor: pointer;
    line-height: 1;
    transition: color 0.12s ease;
}

.star-rating-picker input[type="radio"]:checked ~ label,
.star-rating-picker label:hover,
.star-rating-picker label:hover ~ label {
    color: #F59E0B;
}

.modal-card-review {
    width: 100%;
    max-width: 480px;
    margin: 1rem;
}

.review-star-hint {
    margin-top: 0.35rem;
}

.confirm-pass-card {
    text-align: center;
    padding: 2rem;
}

.confirm-code-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-muted);
    border-radius: 999px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.confirm-court-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.confirm-qr-box {
    width: 210px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
}

.confirm-qr-inner {
    width: 168px;
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-qr-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 0.65rem;
}

.confirm-equipment-block {
    margin: 0.75rem 0;
    padding: 0.5rem 0;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
}

.confirm-equipment-title {
    margin-bottom: 0.35rem;
}

.summary-line-plain {
    border: none;
    padding: 0.15rem 0;
}

.summary-line-discount {
    color: #065F46;
    background: #ECFDF5;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
}

.summary-line-paid {
    padding-top: 0.5rem;
}

.summary-line-balance {
    border-bottom: none;
    padding-top: 0.4rem;
}

.confirm-paid-amount {
    color: #166534;
    font-size: 1.1rem;
}

.confirm-balance-amount {
    color: #B45309;
    font-size: 1.2rem;
}

.pay-status-wrap {
    margin-top: 2px;
}

.pay-balance-detail {
    margin-top: 3px;
    line-height: 1.35;
}

.refund-status-note {
    font-size: 11px;
    margin-top: 4px;
    font-weight: 600;
}

.refund-status-note--eligible {
    color: #166534;
}

.refund-status-note--none {
    color: #991B1B;
}

.refund-notice-box {
    padding: 0.75rem 0.9rem;
    border-radius: 6px;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.refund-notice-box--eligible {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

.refund-notice-box--none {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.refund-notice-sub {
    font-size: 12px;
    margin-top: 3px;
}

.modal-backdrop-dark {
    background: rgba(15, 23, 42, 0.55);
}

.modal-card-500 {
    width: 100%;
    max-width: 500px;
    margin: auto;
}

.refund-summary-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.refund-summary-amount {
    font-size: 1.3rem;
    color: #166534;
}

.refund-fallback-note {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #92400E;
    padding: 0.65rem 0.8rem;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 1rem;
}

.membership-terms-trigger {
    margin-top: 0.2rem;
}

.membership-terms-link {
    font-size: 12px;
    color: #EA580C;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.badge-member-perk {
    background: #FED7AA;
    color: #9A3412;
    font-weight: 700;
}

.badge-member-off {
    background: #EA580C;
    color: #fff;
    font-weight: 700;
}

.membership-search-input {
    width: 240px;
}

.membership-program-card {
    border: 1px solid #FED7AA;
    border-radius: 8px;
    padding: 1.25rem;
    background: #FFFDF9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.membership-program-list {
    font-size: 13px;
    color: #4B5563;
    padding-left: 1.25rem;
    margin-bottom: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.membership-terms-note {
    margin-bottom: 0.5rem;
    font-size: 12.5px;
    color: #4B5563;
}

.membership-refund-line {
    margin-bottom: 1rem;
    font-size: 12px;
}

.membership-program-actions {
    border-top: 1px solid #FED7AA;
    padding-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.book-unready-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1F2937;
}

.book-discount-banner {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-left: 4px solid #D97706;
    padding: 0.85rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.book-discount-title {
    color: #92400E;
}

.book-discount-sub {
    font-size: 12px;
    color: #B45309;
    margin-top: 2px;
}

.book-discount-badge {
    background: #D97706;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.book-layout-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.book-pay-tile {
    border: 1px solid #D1D5DB;
    background: #fff;
    padding: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    display: block;
}

.book-pay-tile:has(input:checked),
.book-pay-tile.is-selected {
    border: 2px solid #EA580C;
    background: #FFF7ED;
}

.book-pay-tile-title {
    display: block;
    margin-top: 4px;
}

.book-courts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.6rem;
}

.book-court-option {
    display: block;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 8px;
    border: 2px solid #E5E7EB;
    background: #fff;
    color: #1F2937;
}

.book-court-option--selected {
    border-color: #EA580C;
    background: #FFF7ED;
}

.book-court-selected-badge {
    background: #EA580C;
    color: #fff;
    font-size: 10px;
}

.book-court-fixed-rate {
    font-size: 11px;
    color: #C2410C;
    font-weight: 600;
    margin-top: 0.2rem;
}

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

.book-conflict-alert {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 0.5rem;
}

.book-week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.4rem;
}

.book-week-day {
    padding: 0.45rem 0.55rem;
    border-radius: 6px;
    border: 1px solid #BBF7D0;
    background: #F0FDF4;
    font-size: 12px;
}

.book-week-day--booked {
    border-color: #FECACA;
    background: #FEF2F2;
}

.book-week-day-label {
    display: block;
    color: #1F2937;
}

.book-week-day-status {
    font-size: 11px;
    font-weight: 600;
    color: #166534;
}

.book-week-day-status--booked {
    color: #DC2626;
}

.book-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    max-height: 220px;
    overflow-y: auto;
    padding: 0.5rem;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
}

.book-slots-empty {
    grid-column: 1 / -1;
    padding: 1rem;
    text-align: center;
    color: #6B7280;
}

.slot-item-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #D1D5DB;
    cursor: pointer;
    font-size: 12px;
    color: #1F2937;
}

.slot-item-label--booked {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #9CA3AF;
    cursor: not-allowed;
}

.slot-item-label--past {
    background: #F3F4F6;
    border-color: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
}

.slot-item-label--preview {
    cursor: default;
}

.slot-tag-booked {
    margin-left: auto;
    color: #DC2626;
    font-weight: 700;
}

.slot-tag-past {
    margin-left: auto;
    color: #9CA3AF;
}

.slot-avail-tag {
    margin-left: auto;
    color: #166534;
    font-weight: 600;
}

.book-equip-panel {
    background: #FFFDF9;
    border: 1px solid #FED7AA;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.book-equip-heading {
    font-weight: 700;
    color: #9A3412;
}

.book-equip-empty {
    padding: 0.4rem 0;
}

.book-equip-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 220px;
    overflow-y: auto;
}

.customer-eq-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
}

.badge-equip-general {
    background: #EEF2FF;
    color: #3730A3;
    font-size: 10px;
    margin-left: 4px;
}

.text-lost-muted {
    color: #9CA3AF;
}

.eq-qty-input {
    width: 65px;
    text-align: center;
}

.book-pay-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.book-terms-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
}

.book-terms-box--error {
    border-color: #FCA5A5;
}

.book-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #1F2937;
}

.book-terms-error {
    margin-top: 0.4rem;
}

.book-submit-stack {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.book-summary-total-label {
    font-size: 1.1rem;
}

.book-summary-total-val {
    font-size: 1.35rem;
    color: #EA580C;
}

.book-due-now-box {
    background: #F9FAFB;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-due-now-val {
    font-size: 1.4rem;
    color: #166534;
}

.book-refund-banner {
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    font-size: 12px;
}

.book-refund-banner--allowed {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

.book-refund-banner--none {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.book-gallery-main {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

.book-gallery-thumb-link {
    display: inline-block;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #D1D5DB;
}

.book-gallery-thumb-link--active {
    border-color: #EA580C;
}

.book-gallery-thumb-img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    display: block;
}

.book-reviews-empty {
    padding: 0.75rem 0;
}

.book-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.book-review-item {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.book-review-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.book-review-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.book-review-author {
    font-size: 0.92rem;
    color: var(--text-main);
}

.book-review-meta {
    margin-top: 0.15rem;
    margin-bottom: 0.35rem;
}

.book-review-comment {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-main);
    word-break: break-word;
}

.book-reviews-pagination {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.review-stars-display {
    color: #D97706;
    font-size: 1rem;
}

.sub-inactive-wrap {
    max-width: 680px;
    margin: 3rem auto;
}

.sub-inactive-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.sub-inactive-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--danger-light);
    color: var(--danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-inactive-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.sub-inactive-desc {
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

.sub-inactive-summary {
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 2rem;
    display: inline-block;
    text-align: left;
    min-width: 320px;
}

.sub-inactive-line {
    margin-bottom: 0.4rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.col-min-170 {
    min-width: 170px;
}

.col-min-140 {
    min-width: 140px;
}

.retention-pct-input {
    width: 70px;
    padding: 0.25rem 0.4rem;
}

.retention-pct-unit {
    font-size: 0.85rem;
}

.checkin-code-input {
    font-family: monospace;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.checkin-result-card {
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    background: #FFF8F1;
}

.checkin-player-name {
    font-size: 1.2rem;
    margin: 0;
}

.checkin-mark-paid-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.activity-filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: flex-end;
}

.badge-role-xs {
    font-size: 10px;
    padding: 2px 6px;
}

.badge-action-info {
    background: #EFF6FF;
    color: #1E40AF;
}

.badge-action-warn {
    background: #FEE2E2;
    color: #991B1B;
}

.activity-entity-code {
    font-size: 0.8rem;
    background: #F3F4F6;
    padding: 2px 5px;
    border-radius: 3px;
}

.activity-details-cell {
    max-width: 320px;
    word-break: break-word;
    font-size: 0.875rem;
}

.activity-pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.walkin-ref-header {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 1.25rem;
}

.walkin-ref-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    color: #EA580C;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.walkin-ref-code {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1F2937;
    margin: 0.25rem 0;
}

.walkin-status-badge {
    font-size: 0.85rem;
}

.walkin-invoice-card {
    border: 2px solid #FED7AA;
    background: #FFFCF8;
}

.walkin-invoice-header {
    background: #FFF7ED;
    border-bottom: 1px solid #FFEDD5;
}

.walkin-invoice-title {
    color: #9A3412;
}

.walkin-invoice-body {
    padding: 1rem 0;
}

.walkin-equip-block {
    padding: 0.5rem 0;
    margin: 0.5rem 0;
    border-top: 1px dashed #E5E7EB;
    border-bottom: 1px dashed #E5E7EB;
}

.walkin-total-box {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #FFF;
    border-radius: 8px;
    border: 2px solid #EA580C;
    text-align: center;
}

.walkin-total-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.walkin-total-amount {
    font-size: 2.25rem;
    font-weight: 800;
    color: #EA580C;
    line-height: 1.2;
    margin: 0.25rem 0;
}

.review-avg-badge {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
}

.walkin-layout-grid {
    align-items: flex-start;
    max-width: 960px;
    margin: 0 auto;
    gap: 2rem;
}

.owner-split-sports {
    grid-template-columns: 1.1fr 1.6fr;
    gap: 2rem;
    align-items: flex-start;
}

.owner-split-members {
    grid-template-columns: 1fr 1.8fr;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.staff-notice-box {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    font-size: 12px;
    color: #1E40AF;
    margin-bottom: 1rem;
}

.rates-fieldset-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.form-control-readonly,
.form-control[readonly] {
    background: #F3F4F6;
}

.col-min-150 {
    min-width: 150px;
}

.col-min-180 {
    min-width: 180px;
}

.sports-rates-stack {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.member-search-input {
    width: 160px;
}

.member-status-select {
    width: 130px;
}

.facility-map-canvas {
    height: 260px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    z-index: 1;
}

.facility-schedule-panel:has(#is_24h:checked) #timeInputsRow {
    opacity: 0.5;
    pointer-events: none;
}

#refund-policy:has(#allow_refunds:not(:checked)) #refundCutoffRow {
    opacity: 0.5;
    pointer-events: none;
}

.facility-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.facility-cutoff-wrap {
    max-width: 380px;
}

.modal-card-sm {
    max-width: 420px;
}

.btn-apply-addr {
    margin-left: 0.5rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
}

.sub-alert-banner {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-alert-banner--warn {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-left: 4px solid #D97706;
}

.sub-alert-banner--expired {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-left: 4px solid #DC2626;
}

.sub-alert-title {
    font-size: 1.05rem;
}

.sub-alert-title--warn {
    color: #92400E;
}

.sub-alert-title--expired {
    color: #991B1B;
}

.sub-alert-desc {
    margin: 2px 0 0;
    font-size: 13px;
}

.sub-alert-desc--warn {
    color: #B45309;
}

.sub-alert-desc--expired {
    color: #B91C1C;
}

.sub-status-badge {
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
}

.sub-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.sub-price-val {
    font-size: 2.25rem;
    font-weight: 800;
    color: #166534;
}

.sub-plan-desc {
    margin: 0;
    font-size: 13.5px;
}

.sub-meta-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.sub-features-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.sub-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-left: 1.25rem;
    margin-bottom: 1.75rem;
    font-size: 13px;
    color: #374151;
}

.sub-renew-btn {
    font-size: 1.1rem;
}

.sub-resource-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #E5E7EB;
}

.sub-resource-label {
    font-size: 14px;
}

.sub-resource-val {
    font-size: 14px;
    font-weight: 700;
}

.text-blue {
    color: #2563EB;
}

.readiness-card {
    margin-bottom: 1.5rem;
    border-left: 4px solid #EAB308;
}

.readiness-card--ready {
    border-left-color: #16A34A;
}

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

@media (max-width: 1120px) {
    .readiness-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.readiness-item {
    background: #F9FAFB;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.readiness-item-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.overdue-alert-banner {
    background: #FEE2E2;
    border: 1px solid #F87171;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.overdue-alert-icon {
    font-size: 1.5rem;
}

.overdue-alert-title {
    color: #991B1B;
    font-size: 1rem;
}

.overdue-alert-desc {
    color: #7F1D1D;
    margin: 0;
}

.forecast-chart-body {
    padding: 1.5rem 0.5rem 0.5rem;
}

.forecast-bars-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 160px;
    padding: 0 1rem;
    border-bottom: 2px solid var(--border-color);
}

.forecast-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    height: 100%;
}

.forecast-bar-val {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.forecast-bar {
    width: 28px;
    min-height: 8px;
    background: var(--bg-muted);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.forecast-bar--active {
    background: var(--primary);
}

.forecast-bar-h-0 { height: 8px; }
.forecast-bar-h-5 { height: 10px; }
.forecast-bar-h-10 { height: 14px; }
.forecast-bar-h-15 { height: 21px; }
.forecast-bar-h-20 { height: 28px; }
.forecast-bar-h-25 { height: 35px; }
.forecast-bar-h-30 { height: 42px; }
.forecast-bar-h-35 { height: 49px; }
.forecast-bar-h-40 { height: 56px; }
.forecast-bar-h-45 { height: 63px; }
.forecast-bar-h-50 { height: 70px; }
.forecast-bar-h-55 { height: 77px; }
.forecast-bar-h-60 { height: 84px; }
.forecast-bar-h-65 { height: 91px; }
.forecast-bar-h-70 { height: 98px; }
.forecast-bar-h-75 { height: 105px; }
.forecast-bar-h-80 { height: 112px; }
.forecast-bar-h-85 { height: 119px; }
.forecast-bar-h-90 { height: 126px; }
.forecast-bar-h-95 { height: 133px; }
.forecast-bar-h-100 { height: 140px; }

.forecast-bar-day {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 8px;
}

.retention-stat-num {
    font-size: 1.3rem;
}

.owner-split-courts {
    grid-template-columns: 1.15fr 1.6fr;
    gap: 2rem;
    align-items: flex-start;
}

.court-sports-panel {
    background: #FFF8F1;
    border: 1px solid #FED7AA;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.court-sport-check-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
    cursor: pointer;
}

.court-sport-rates-inline {
    margin-left: 0.35rem;
}

.court-photo-edit-card {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.5rem;
    background: #F9FAFB;
    text-align: center;
    width: 130px;
}

.court-photo-edit-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.4rem;
}

.btn-micro {
    padding: 2px 6px;
}

.mt-7 {
    margin-top: 1.75rem;
}

.mt-8 {
    margin-top: 2rem;
}

.court-fixed-rate-badge {
    background: #FFF7ED;
    color: #C2410C;
    font-size: 11px;
}

.court-desc-note {
    margin-top: 0.15rem;
}

.court-thumb-sm {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #E5E7EB;
}

.badge-live-loans {
    font-size: 0.8rem;
}

.inventory-loans-scroll {
    max-height: 440px;
    overflow-y: auto;
}

.empty-state-sm {
    padding: 1.5rem;
}

.loan-row-overdue {
    background: #FFF1F2;
}

.inventory-search-input {
    max-width: 180px;
}

.badge-sport-xs {
    font-size: 10px;
}

.btn-found-xs {
    padding: 1px 5px;
    font-size: 10px;
    margin-left: 4px;
}

.badge-avail-lg {
    font-size: 0.85rem;
    font-weight: 700;
}

.badge-low-stock {
    background: #FEF3C7;
    color: #92400E;
    font-size: 10px;
    margin-top: 2px;
}

.cal-filter-form {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
}

.cal-court-select {
    width: 140px;
}

.cal-week-input {
    width: 135px;
}

.calendar-grid-wrap {
    overflow-x: auto;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.calendar-th-time {
    width: 125px;
    padding: 0.5rem;
    background: #F9FAFB;
}

.calendar-th-day {
    padding: 0.5rem;
    background: #F9FAFB;
    border-left: 1px solid #E5E7EB;
}

.calendar-th-day--today {
    background: #FFF7ED;
}

.calendar-day-name {
    font-weight: 700;
    color: #374151;
}

.calendar-day-name--today {
    color: #EA580C;
}

.calendar-row {
    border-top: 1px solid #E5E7EB;
}

.calendar-td-time {
    padding: 0.5rem 0.25rem;
    font-size: 11px;
    color: #6B7280;
    background: #F9FAFB;
    font-weight: 600;
}

.calendar-td-cell {
    vertical-align: top;
    padding: 0.35rem;
    border-left: 1px solid #E5E7EB;
    min-width: 115px;
    height: 60px;
    background: #fff;
}

.calendar-td-cell--today {
    background: #FFFCF8;
}

.calendar-event {
    background: #FEF3C7;
    border-left: 3px solid #D97706;
    padding: 3px 5px;
    border-radius: 4px;
    font-size: 11px;
    text-align: left;
}

.calendar-event--confirmed {
    background: #DCFCE7;
    border-left-color: #166534;
}

.calendar-event--cancelled {
    background: #FEE2E2;
    border-left-color: #DC2626;
    opacity: 0.6;
}

.calendar-event-name {
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.calendar-event-meta {
    display: block;
    font-size: 10px;
}

.calendar-event-time {
    font-size: 10px;
    color: #4B5563;
}

.calendar-empty-dash {
    color: #D1D5DB;
    font-size: 11px;
}

.bookings-search-input {
    width: 170px;
}

.bookings-filter-input {
    width: 130px;
}

.badge-sport-orange {
    background: #FFF7ED;
    color: #EA580C;
    display: inline-block;
    margin-top: 2px;
}

.badge-pay-xs {
    font-size: 10px;
}

.booking-bal-xs {
    font-size: 11px;
    margin-top: 3px;
    line-height: 1.35;
}

.badge-status-pill {
    background: #F3F4F6;
    font-weight: 700;
    color: #3B82F6;
}

.badge-status-pill--confirmed { color: #166534; }
.badge-status-pill--completed { color: #059669; }
.badge-status-pill--cancelled { color: #DC2626; }
.badge-status-pill--no_show { color: #6B7280; }

.walkin-type-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.walkin-type-tabs {
    display: flex;
    gap: 0.75rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.walkin-type-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    font-size: 0.9rem;
}

#walkinTypeNew:checked ~ .walkin-type-tabs label[for="walkinTypeNew"],
#walkinTypeExisting:checked ~ .walkin-type-tabs label[for="walkinTypeExisting"] {
    border: 2px solid #EA580C;
    background: #FFF7ED;
    font-weight: 600;
}

#walkinNewFields,
#walkinExistingFields {
    display: none;
}

#walkinTypeNew:checked ~ #walkinNewFields,
#walkinTypeExisting:checked ~ #walkinExistingFields {
    display: block;
}

.modal-card-walkin {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 1rem;
}

.walkin-gear-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.85rem;
    margin-top: 0.5rem;
}

.walkin-gear-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 180px;
    overflow-y: auto;
}

.walkin-gear-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #E5E7EB;
}

.walkin-summary-box {
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 1rem;
}

.walkin-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 0.25rem;
}

.walkin-summary-divider {
    border: 0;
    border-top: 1px solid #FDBA74;
    margin: 0.35rem 0;
}

.walkin-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 800;
    color: #C2410C;
}
