/* ================================================================
   Pickle Booking — Public Styles
   Flat UI wide layout with announcement banner
   ================================================================ */

:root {
    --pickle-blue: #1565c0;
    --pickle-blue-dark: #0d47a1;
    --pickle-blue-light: #e3f2fd;
    --pickle-blue-hover: #1976d2;
    --pickle-green: #2e7d32;
    --pickle-green-bg: #e8f5e9;
    --pickle-red: #c62828;
    --pickle-red-bg: #fce8e8;
    --pickle-orange: #e65100;
    --pickle-orange-bg: #fff3e0;
    --pickle-text: #263238;
    --pickle-text-light: #546e7a;
    --pickle-border: #e0e4e8;
    --pickle-bg: #f5f7fa;
    --pickle-card: #ffffff;
    --pickle-radius: 10px;
    --pickle-radius-sm: 6px;
    --pickle-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --pickle-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ── Outer Container ─────────────────────────────────────────── */
.pickle-court {
    
    width: 80%;
    max-width: 1900px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: var(--pickle-font);
    color: var(--pickle-text);
    line-height: 1.5;
}

/* ── Owner Bar ───────────────────────────────────────────────── */
.pickle-court__owner-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 20px;
    background: var(--pickle-blue-light);
    border: 1px solid #bbdefb;
    border-radius: var(--pickle-radius);
    margin-bottom: 16px;
    font-size: 0.88em;
}

.pickle-court__owner-bar > span {
    font-weight: 600;
    color: var(--pickle-blue);
}

.pickle-court__owner-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pickle-court__owner-bar a {
    color: var(--pickle-blue);
    text-decoration: none;
    padding: 4px 12px;
    background: var(--pickle-card);
    border: 1px solid #bbdefb;
    border-radius: 4px;
    font-size: 0.92em;
    transition: all 0.15s;
}

.pickle-court__owner-bar a:hover {
    background: var(--pickle-blue);
    color: #fff;
    border-color: var(--pickle-blue);
}

/* ── Announcement Banner ─────────────────────────────────────── */
.pickle-court__announcement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: #c0392b;
    color: #fff;
    border-radius: var(--pickle-radius);
    margin-bottom: 20px;
    font-size: 0.95em;
    font-weight: 500;
    text-align: center;
}

.pickle-court__announcement-icon {
    font-size: 1.3em;
    flex-shrink: 0;
}

.pickle-court__announcement-text {
    flex: 1;
}

/* ── Two-Column Layout ───────────────────────────────────────── */
.pickle-court__layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

/* ── LEFT: Main Content ──────────────────────────────────────── */
.pickle-court__main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Court Identity (Avatar + Title) */
.pickle-court__identity {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.pickle-court__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--pickle-blue-light);
}

.pickle-court__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pickle-court__identity-text {
    min-width: 0;
}

.pickle-court__title {
    font-size: 1.55em;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--pickle-text);
    line-height: 1.2;
}

.pickle-court__location {
    margin: 0;
    color: var(--pickle-text-light);
    font-size: 0.92em;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-bottom: 0;
}

.pickle-court__location a {
    color: var(--pickle-blue);
    text-decoration: none;
}

.pickle-court__location a:hover {
    text-decoration: underline;
}

.pickle-court__calendar-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 5px 12px;
    font-size: 0.8em;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pickle-court__calendar-link:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.pickle-court__calendar-link svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* ── Tab Navigation ─────────────────────────────────────────── */
.pickle-tabs {
    display: flex;
    gap: 4px;
    background: var(--pickle-bg);
    border: 1px solid var(--pickle-border);
    border-radius: var(--pickle-radius);
    padding: 4px;
    margin-bottom: 0;
}

.pickle-tabs__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    font-size: 0.92em;
    font-weight: 600;
    color: var(--pickle-text-light);
    background: transparent;
    border: 2px solid transparent;
    border-radius: calc(var(--pickle-radius) - 2px);
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    font-family: var(--pickle-font);
}

.pickle-tabs__btn:hover {
    color: var(--pickle-blue);
    background: var(--pickle-card);
}

.pickle-tabs__btn--active {
    color: var(--pickle-blue);
    background: var(--pickle-card);
    border-color: var(--pickle-blue);
    box-shadow: 0 1px 4px rgba(21, 101, 192, 0.1);
}

.pickle-tabs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.78em;
    font-weight: 700;
    border-radius: 10px;
    background: var(--pickle-blue-light);
    color: var(--pickle-blue);
}

.pickle-tabs__btn--active .pickle-tabs__count {
    background: var(--pickle-blue);
    color: #fff;
}

.pickle-tab-panel {
    margin-top: -1px;
}

/* Mobile dropdown — hidden on desktop */
.pickle-tabs-mobile {
    display: none;
    margin-bottom: 0;
}

.pickle-tabs-mobile__select {
    width: 100%;
    padding: 12px 40px 12px 14px;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--pickle-blue);
    background: var(--pickle-card);
    border: 2px solid var(--pickle-blue);
    border-radius: var(--pickle-radius);
    cursor: pointer;
    font-family: var(--pickle-font);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231565c0' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
}

.pickle-tabs-mobile__select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}

@media (max-width: 600px) {
    .pickle-tabs {
        display: none;
    }

    .pickle-tabs-mobile {
        display: block;
    }
}

/* ── Booking Card ────────────────────────────────────────────── */
.pickle-booking {
    padding: 24px;
    background: var(--pickle-card);
    border: 1px solid var(--pickle-border);
    border-radius: var(--pickle-radius);
    box-shadow: var(--pickle-shadow);
}

.pickle-booking h2 {
    margin: 0 0 16px;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--pickle-text);
}

.pickle-booking__selectors {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pickle-booking__court-picker {
    flex: 1;
    min-width: 0;
}

.pickle-booking__date-picker {
    flex: 0 0 auto;
}

.pickle-booking__court-picker label,
.pickle-booking__date-picker label {
    display: block;
    font-weight: 600;
    font-size: 0.88em;
    color: var(--pickle-text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pickle-booking__court-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pickle-court-btn {
    padding: 8px 16px;
    font-size: 0.9em;
    font-weight: 500;
    border: 2px solid var(--pickle-border);
    border-radius: var(--pickle-radius-sm);
    background: var(--pickle-card);
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    color: var(--pickle-text);
}

.pickle-court-btn:hover {
    border-color: var(--pickle-blue);
    color: var(--pickle-blue);
}

.pickle-court-btn--active {
    background: var(--pickle-blue);
    color: #fff;
    border-color: var(--pickle-blue);
}

.pickle-court-btn--active:hover {
    background: var(--pickle-blue-dark);
    border-color: var(--pickle-blue-dark);
    color: #fff;
}

.pickle-date-wrap {
    position: relative;
    display: inline-block;
    min-width: 200px;
}

.pickle-date-wrap input[type="date"] {
    padding: 8px 12px;
    font-size: 0.95em;
    border: 2px solid var(--pickle-border);
    border-radius: var(--pickle-radius-sm);
    width: 100%;
    color: transparent;
    background: var(--pickle-card);
    cursor: pointer;
    transition: border-color 0.15s;
}

.pickle-date-wrap input[type="date"]:focus {
    outline: none;
    border-color: var(--pickle-blue);
}

.pickle-date-wrap input[type="date"]::-webkit-datetime-edit {
    color: transparent;
}

.pickle-date-display {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95em;
    font-weight: 500;
    color: var(--pickle-text);
    pointer-events: none;
    white-space: nowrap;
    width: 75%;
    background: #fff;
}

/* Slots Label */
.pickle-booking__slots-label {
    font-weight: 600;
    font-size: 0.88em;
    color: var(--pickle-text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
}

/* Duration Hint */
.pickle-booking__duration-hint {
    padding: 8px 14px;
    background: var(--pickle-blue-light);
    color: var(--pickle-blue);
    border-radius: var(--pickle-radius-sm);
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Slots Grid */
.pickle-booking__slots {
    margin-bottom: 16px;
}

.pickle-booking__slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 8px;
}

.pickle-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    text-align: center;
    border: 2px solid var(--pickle-border);
    border-radius: var(--pickle-radius-sm);
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.15s;
    background: var(--pickle-card);
    user-select: none;
    color: var(--pickle-text);
    gap: 1px;
}

.pickle-slot__to-label {
    font-size: 0.7em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.55;
    line-height: 1;
}

.pickle-slot__price {
    font-size: 0.72em;
    font-weight: 700;
    opacity: 0.75;
    margin-top: 2px;
    line-height: 1;
}

.pickle-slot--selected .pickle-slot__price {
    opacity: 1;
}

.pickle-slot:hover:not(.pickle-slot--unavailable) {
    border-color: var(--pickle-blue);
    color: var(--pickle-blue);
    background: var(--pickle-blue-light);
}

.pickle-slot--selected {
    background: var(--pickle-blue) !important;
    color: #fff !important;
    border-color: var(--pickle-blue) !important;
}

.pickle-slot--unavailable {
    background: var(--pickle-bg);
    color: #b0bec5;
    cursor: not-allowed;
    border-color: transparent;
    position: relative;
}

.pickle-slot--unavailable[data-tooltip] {
    cursor: help;
}

.pickle-slot--unavailable[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #263238;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.3;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.pickle-slot--unavailable[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #263238;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.pickle-slot--unavailable[data-tooltip]:hover::after,
.pickle-slot--unavailable[data-tooltip]:hover::before {
    opacity: 1;
}

.pickle-slot--unavailable .pickle-slot__from,
.pickle-slot--unavailable .pickle-slot__to-label,
.pickle-slot--unavailable .pickle-slot__to {
    text-decoration: line-through;
}

.pickle-booking__not-available {
    padding: 16px;
    background: var(--pickle-orange-bg);
    border-radius: var(--pickle-radius-sm);
    color: var(--pickle-orange);
    text-align: center;
    font-weight: 500;
}

.pickle-booking__fully-booked {
    text-align: center;
    padding: 20px 16px;
    margin-top: 12px;
    background: var(--pickle-orange-bg);
    border-radius: var(--pickle-radius-sm);
}

.pickle-booking__fully-booked p {
    margin: 0 0 12px;
    color: var(--pickle-orange);
    font-weight: 600;
    font-size: 0.95em;
    padding-bottom: 0;
}

.pickle-booking__next-day {
    display: inline-block;
    padding: 8px 20px;
    background: var(--pickle-blue);
    color: #fff;
    border: none;
    border-radius: var(--pickle-radius-sm);
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.pickle-booking__next-day:hover {
    background: var(--pickle-blue-dark, #1a5fb4);
}

.pickle-booking__loading {
    color: var(--pickle-text-light);
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

/* Next Step */
.pickle-booking__next-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.pickle-booking__selection-summary {
    padding: 10px 16px;
    background: var(--pickle-green-bg);
    border-radius: var(--pickle-radius-sm);
    font-weight: 600;
    color: var(--pickle-green);
    font-size: 0.92em;
    flex: 1;
    min-width: 0;
}

.pickle-booking__next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--pickle-blue);
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-size: 0.95em;
    font-weight: 600;
    border-radius: var(--pickle-radius-sm);
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.pickle-booking__next:hover {
    background: var(--pickle-blue-dark);
}

/* Booking Form */
.pickle-booking__form {
    margin-top: 0;
    padding-top: 0;
}

.pickle-booking__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid var(--pickle-border);
    padding: 8px 16px;
    font-size: 0.88em;
    font-weight: 500;
    color: var(--pickle-text-light);
    border-radius: var(--pickle-radius-sm);
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.15s;
}

.pickle-booking__back:hover {
    border-color: var(--pickle-blue);
    color: var(--pickle-blue);
    background: var(--pickle-blue-light);
}

.pickle-booking__form h3 {
    margin: 0 0 16px;
    font-size: 1.1em;
    font-weight: 700;
}

.pickle-booking__selected-time {
    padding: 12px 16px;
    background: var(--pickle-green-bg);
    border-radius: var(--pickle-radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--pickle-green);
    font-size: 0.95em;
}

.pickle-booking__fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pickle-booking__field {
    margin-bottom: 14px;
}

.pickle-booking__field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9em;
    color: var(--pickle-text);
}

.pickle-booking__field input,
.pickle-booking__field textarea,
.pickle-booking__field select {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.95em;
    border: 2px solid var(--pickle-border);
    border-radius: var(--pickle-radius-sm);
    box-sizing: border-box;
    transition: border-color 0.15s;
    background: var(--pickle-card);
    font-family: var(--pickle-font);
    color: var(--pickle-text);
}

.pickle-booking__field input:focus,
.pickle-booking__field textarea:focus,
.pickle-booking__field select:focus {
    outline: none;
    border-color: var(--pickle-blue);
}

.pickle-booking__field textarea {
    resize: vertical;
}

.pickle-booking__field input[type="file"] {
    padding: 8px;
    border-style: dashed;
    background: var(--pickle-bg);
    cursor: pointer;
}

.pickle-booking__field-hint {
    font-size: 0.78em;
    color: var(--pickle-text-light);
    margin: 4px 0 0;
}

.pickle-booking__submit,
button[type=submit].pickle-booking__submit {
    background: var(--pickle-blue);
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-size: 0.95em;
    font-weight: 600;
    border-radius: var(--pickle-radius-sm);
    cursor: pointer;
    transition: background 0.15s;
}

.pickle-booking__submit:hover,
button[type=submit].pickle-booking__submit:hover {
    background: var(--pickle-blue-dark);
}

.pickle-booking__submit:disabled,
button[type=submit].pickle-booking__submit:disabled {
    background: #b0bec5;
    cursor: not-allowed;
}

/* ── Payment QR Code ─────────────────────────────────────────── */
.pickle-payment-qr {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border: 2px solid var(--pickle-blue);
    border-radius: var(--pickle-radius);
    text-align: center;
}

.pickle-payment-qr__header {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(21, 101, 192, 0.15);
}

.pickle-payment-qr__icon {
    font-size: 1.6em;
    flex-shrink: 0;
}

.pickle-payment-qr__header strong {
    display: block;
    font-size: 1.05em;
    color: var(--pickle-blue-dark);
    margin-bottom: 1px;
}

.pickle-payment-qr__header span {
    font-size: 0.85em;
    color: var(--pickle-text-light);
}

.pickle-payment-qr__image-wrap {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border-radius: var(--pickle-radius-sm);
    box-shadow: 0 2px 16px rgba(21, 101, 192, 0.1);
    margin-bottom: 14px;
}

.pickle-payment-qr__image {
    display: block;
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.pickle-payment-qr__actions {
    margin-bottom: 0;
}

.pickle-payment-qr__download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--pickle-blue);
    color: #fff;
    text-decoration: none;
    font-size: 0.88em;
    font-weight: 600;
    border-radius: var(--pickle-radius-sm);
    transition: background 0.15s;
}

.pickle-payment-qr__download:hover {
    background: var(--pickle-blue-dark);
    color: #fff;
    text-decoration: none;
}

/* Messages */
.pickle-booking__message {
    padding: 14px 18px;
    border-radius: var(--pickle-radius-sm);
    margin-top: 16px;
    font-weight: 500;
    font-size: 0.92em;
}

.pickle-booking__message--success {
    background: var(--pickle-green-bg);
    color: var(--pickle-green);
    border: 1px solid #a5d6a7;
}

.pickle-booking__message--error {
    background: var(--pickle-red-bg);
    color: var(--pickle-red);
    border: 1px solid #ef9a9a;
}

/* ── Tournaments ─────────────────────────────────────────────── */
.pickle-tournaments {
    padding: 24px;
    background: var(--pickle-card);
    border: 1px solid var(--pickle-border);
    border-radius: var(--pickle-radius);
    box-shadow: var(--pickle-shadow);
}

.pickle-tournaments h2 {
    margin: 0 0 16px;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--pickle-text);
}

.pickle-tournaments__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pickle-tournament {
    padding: 16px 20px;
    background: var(--pickle-bg);
    border: 1px solid var(--pickle-border);
    border-radius: var(--pickle-radius-sm);
    border-left: 4px solid var(--pickle-blue);
    transition: box-shadow .3s ease, border-color .3s ease;
}

.pickle-tournament--highlight {
    animation: pickle-pulse 0.6s ease-in-out 3;
    border-color: var(--pickle-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .2);
}

@keyframes pickle-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
    50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, .3); }
}

.pickle-tournament__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    position: relative;
}

.pickle-tournament__share {
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid var(--pickle-border);
    border-radius: var(--pickle-radius-sm);
    background: #fff;
    color: var(--pickle-text-light);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.pickle-tournament__share:hover {
    color: var(--pickle-blue);
    border-color: var(--pickle-blue);
    background: var(--pickle-blue-light);
}

.pickle-share-toast {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--pickle-green);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--pickle-radius-sm);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    z-index: 10;
}

.pickle-share-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.pickle-tournament__icon {
    font-size: 1.3em;
    flex-shrink: 0;
}

.pickle-tournament__info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.pickle-tournament__date {
    color: var(--pickle-blue);
    font-weight: 700;
    font-size: 0.95em;
}

.pickle-tournament__sep {
    color: var(--pickle-text-light);
}

.pickle-tournament__title {
    font-weight: 600;
    font-size: 0.95em;
    color: var(--pickle-text);
}

.pickle-tournament__details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.88em;
    margin-bottom: 8px;
    padding-left: 34px;
}

.pickle-tournament__time {
    color: var(--pickle-blue);
    font-weight: 600;
}

.pickle-tournament__fee {
    color: var(--pickle-green);
    font-weight: 600;
}

.pickle-tournament__courts {
    color: var(--pickle-blue);
    font-weight: 500;
}

.pickle-tournament__spots {
    color: var(--pickle-text-light);
}

.pickle-tournament--has-image {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
}

.pickle-tournament__body {
    min-width: 0;
}

.pickle-tournament__sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding-left: 12px;
    max-width: 180px;
}

.pickle-tournament__image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--pickle-radius-sm);
    aspect-ratio: 1;
}

.pickle-tournament__desc {
    color: var(--pickle-text-light);
    font-size: 0.9em;
    margin-bottom: 12px;
    line-height: 1.6;
    padding-left: 34px;
}

.pickle-tournament__desc p {
    margin: 0 0 6px;
}

.pickle-tournament__desc p:last-child {
    padding-bottom: 0;
}

.pickle-tournament__full {
    padding: 8px 16px;
    background: var(--pickle-orange-bg);
    border-radius: var(--pickle-radius-sm);
    color: var(--pickle-orange);
    font-weight: 600;
    text-align: center;
    font-size: 0.9em;
    margin: 8px 0 0;
}

.pickle-tournament__toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 18px;
    font-size: 0.88em;
    font-weight: 600;
    color: var(--pickle-blue);
    background: var(--pickle-card);
    border: 2px solid var(--pickle-blue);
    border-radius: var(--pickle-radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 6px;
    margin-left: 34px;
}

.pickle-tournament__toggle:hover {
    background: var(--pickle-blue);
    color: #fff;
}

.pickle-tournament__form {
    margin-top: 12px;
    margin-left: 34px;
}

.pickle-tournament__back {
    display: none;
}

/* ── Form-active takeover (hides list, shows single form) ────── */

.pickle-tournaments--form-active .pickle-tournament {
    display: none;
}

.pickle-tournaments--form-active .pickle-tournament--active {
    display: block;
    padding: 0;
    background: none;
    border: none;
    border-left: none;
    border-radius: 0;
}

.pickle-tournaments--form-active .pickle-tournament--active .pickle-tournament__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    margin-bottom: 8px;
    background: none;
    border: none;
    color: var(--pickle-blue);
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
}

.pickle-tournaments--form-active .pickle-tournament--active .pickle-tournament__back:hover {
    text-decoration: underline;
}

.pickle-tournaments--form-active .pickle-tournament--active .pickle-tournament__header {
    padding: 10px 14px;
    background: var(--pickle-blue-light);
    border-radius: var(--pickle-radius-sm);
    margin-bottom: 16px;
}

.pickle-tournaments--form-active .pickle-tournament--active .pickle-tournament__details,
.pickle-tournaments--form-active .pickle-tournament--active .pickle-tournament__sidebar,
.pickle-tournaments--form-active .pickle-tournament--active .pickle-tournament__desc,
.pickle-tournaments--form-active .pickle-tournament--active .pickle-tournament__toggle,
.pickle-tournaments--form-active .pickle-tournament--active .pickle-tournament__full {
    display: none;
}

.pickle-tournaments--form-active .pickle-tournament--active .pickle-tournament__form {
    display: block !important;
    margin: 0;
    padding: 0;
}

.pickle-tournaments--form-active .pickle-tournament--active .pickle-tournament__msg {
    margin: 12px 0 0;
}

/* ── RIGHT: Sidebar ──────────────────────────────────────────── */
.pickle-court__sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Gallery Slider */
.pickle-gallery {
    position: relative;
    border-radius: var(--pickle-radius);
    overflow: hidden;
    border: 1px solid var(--pickle-border);
    box-shadow: var(--pickle-shadow);
}

.pickle-gallery__track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.pickle-gallery__slide {
    min-width: 100%;
    flex-shrink: 0;
}

.pickle-gallery__slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.pickle-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
    padding: 0;
}

.pickle-gallery__arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.pickle-gallery__arrow--prev { left: 8px; }
.pickle-gallery__arrow--next { right: 8px; }

.pickle-gallery__dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.pickle-gallery__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.pickle-gallery__dot--active {
    background: #fff;
}

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

.pickle-court__about h3 {
    margin: 0 0 12px;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--pickle-text);
}

.pickle-court__description {
    font-size: 0.92em;
    color: var(--pickle-text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.pickle-court__description p:first-child {
    margin-top: 0;
}

.pickle-court__description p:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.pickle-court__meta-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--pickle-border);
    padding-top: 16px;
}

.pickle-court__meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88em;
    line-height: 1.5;
}

.pickle-meta-icon {
    font-size: 1.1em;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.pickle-court__meta-item strong {
    color: var(--pickle-text);
    font-weight: 700;
    display: block;
    font-size: 0.92em;
}

.pickle-court__meta-item a {
    color: var(--pickle-blue);
    text-decoration: none;
}

.pickle-court__meta-item a:hover {
    text-decoration: underline;
}

/* Court Rules (sidebar) */
.pickle-court__rules {
    padding: 20px;
    background: var(--pickle-card);
    border: 1px solid var(--pickle-border);
    border-radius: var(--pickle-radius);
    box-shadow: var(--pickle-shadow);
}

.pickle-court__rules h3 {
    margin: 0 0 10px;
    font-size: 1.05em;
    font-weight: 700;
}

.pickle-court__rules p {
    font-size: 0.9em;
    color: var(--pickle-text-light);
    line-height: 1.6;
}

/* ── Registration form ───────────────────────────────────────── */
.pickle-register--success {
    padding: 30px;
    background: var(--pickle-green-bg);
    border-radius: var(--pickle-radius);
    text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .pickle-court__layout {
        grid-template-columns: 1fr;
    }

    .pickle-court__main {
        order: -1;
    }

    .pickle-gallery__slide img {
        height: 200px;
    }

    .pickle-tournament__sidebar {
        max-width: 140px;
    }
}

@media (max-width: 600px) {
    .pickle-court {
        padding: 0 0;
        margin: 16px auto;
        width: 90%;
    }

    .pickle-court__identity {
        gap: 12px;
    }

    .pickle-court__avatar {
        width: 48px;
        height: 48px;
    }

    .pickle-court__title {
        font-size: 1.2em;
    }

    .pickle-booking {
        padding: 16px;
    }

    .pickle-booking__selectors {
        flex-direction: column;
        align-items: stretch;
    }

    .pickle-booking__court-picker,
    .pickle-booking__date-picker {
        width: 100%;
        flex: none;
    }

    .pickle-date-wrap {
        width: 100%;
        display: block;
    }

    .pickle-booking__next-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .pickle-booking__next {
        width: 100%;
        justify-content: center;
    }

    .pickle-booking__slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }

    .pickle-slot--unavailable {
        opacity: 0.5;
    }

    .pickle-booking__fields-grid {
        grid-template-columns: 1fr;
    }

    .pickle-court__announcement {
        font-size: 0.88em;
        padding: 10px 16px;
    }

    .pickle-tournament--has-image {
        grid-template-columns: 1fr;
    }

    .pickle-tournament__sidebar {
        flex-direction: row-reverse;
        justify-content: flex-end;
        align-items: center;
        padding-left: 0;
        padding-top: 10px;
        max-width: none;
    }

    .pickle-tournament__sidebar .pickle-tournament__share {
        margin-left: auto;
    }

    .pickle-tournament__image {
        width: 56px;
        height: 56px;
        aspect-ratio: 1;
        flex-shrink: 0;
    }

    .pickle-tournament__details,
    .pickle-tournament__desc,
    .pickle-tournament__form {
        padding-left: 0;
        margin-left: 0;
    }

    .pickle-tournament__toggle {
        margin-left: 0;
    }

    .pickle-tournaments--form-active {
        padding: 16px;
    }

    .pickle-payment-qr {
        padding: 16px;
    }

    .pickle-payment-qr__image {
        max-width: 180px;
    }
}

/* ── Booking Status Page ──────────────────────────────────────── */

.pickle-status-page {
    min-height: 60vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px 60px;
    background: #f7f7f7;
}

.pickle-status-page__container {
    width: 100%;
    max-width: 560px;
}

.pickle-status-page__card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 32px;
    border: 1px solid #e5e5e5;
}

.pickle-status-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.pickle-status-page__ref {
    font-family: 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.pickle-status-page__badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pickle-status-page__badge--pending {
    background: #fff3cd;
    color: #856404;
}

.pickle-status-page__badge--confirmed,
.pickle-status-page__badge--registered {
    background: #d4edda;
    color: #155724;
}

.pickle-status-page__badge--rejected {
    background: #f8d7da;
    color: #721c24;
}

.pickle-status-page__badge--cancelled {
    background: #e2e3e5;
    color: #383d41;
}

.pickle-status-page__title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px;
}

.pickle-status-page__details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pickle-status-page__row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
}

.pickle-status-page__row:last-child {
    border-bottom: none;
}

.pickle-status-page__label {
    flex: 0 0 130px;
    font-weight: 600;
    font-size: 14px;
    color: #666;
}

.pickle-status-page__value {
    flex: 1;
    font-size: 14px;
    color: #1a1a1a;
}

.pickle-status-page__note {
    margin-top: 20px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
}

.pickle-status-page__note--success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.pickle-status-page__note--error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.pickle-status-page__refund-contact {
    margin-top: 16px;
    padding: 16px 20px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid #e65100;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}

.pickle-status-page__refund-contact p {
    margin: 0 0 8px;
    font-weight: 600;
}

.pickle-status-page__refund-contact ul {
    margin: 0 0 8px;
    padding-left: 18px;
    list-style: disc;
}

.pickle-status-page__refund-contact li {
    margin-bottom: 4px;
}

.pickle-status-page__refund-contact a {
    color: #0073aa;
    text-decoration: none;
}

.pickle-status-page__refund-contact a:hover {
    text-decoration: underline;
}

.pickle-status-page__refund-contact-hint {
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.pickle-status-page__refund-proof-img {
    max-width: 200px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-top: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pickle-status-page__refund-proof-img:hover {
    opacity: 0.85;
}

.pickle-status-page__adjustment {
    margin-top: 24px;
    padding: 20px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid #e65100;
    border-radius: var(--pickle-radius-sm, 8px);
}

.pickle-status-page__adjustment-title {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #e65100;
}

.pickle-status-page__lookup label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 10px;
}

.pickle-status-page__lookup-row {
    display: flex;
    gap: 10px;
}

.pickle-status-page__input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.5px;
    outline: none;
    transition: border-color 0.2s;
}

.pickle-status-page__input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.pickle-status-page__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.pickle-status-page__btn:hover {
    background: #005a87;
    color: #fff;
}

.pickle-status-page__btn--outline {
    background: transparent;
    color: #0073aa;
    border: 1.5px solid #0073aa;
}

.pickle-status-page__btn--outline:hover {
    background: #0073aa;
    color: #fff;
}

.pickle-status-page__actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
}

/* ── Owner Action Panel ───────────────────────────────────────── */

.pickle-owner-action {
    margin-top: 24px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.pickle-owner-action__login {
    text-align: center;
}

.pickle-owner-action__login .pickle-status-page__btn {
    margin-top: 12px;
}

.pickle-owner-action__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
}

.pickle-owner-action__text {
    margin: 0 0 16px;
    font-size: 14px;
    color: #64748b;
}

.pickle-owner-action__text--muted {
    margin-bottom: 0;
    color: #94a3b8;
    font-style: italic;
}

.pickle-owner-action__buttons {
    display: flex;
    gap: 10px;
}

.pickle-owner-action__btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.pickle-owner-action__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pickle-owner-action__btn--approve {
    background: #2e7d32;
    color: #fff;
}

.pickle-owner-action__btn--approve:hover:not(:disabled) {
    background: #1b5e20;
}

.pickle-owner-action__btn--reject {
    background: #fff;
    color: #c62828;
    border: 2px solid #c62828;
}

.pickle-owner-action__btn--reject:hover:not(:disabled) {
    background: #c62828;
    color: #fff;
}

.pickle-owner-action__feedback {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.pickle-owner-action__feedback--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.pickle-owner-action__feedback--error {
    background: #fce8e8;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.pickle-owner-action__reject-form {
    margin-top: 16px;
    padding: 16px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.pickle-owner-action__reject-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.pickle-owner-action__select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    appearance: auto;
}

.pickle-owner-action__textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.pickle-owner-action__btn--cancel {
    background: #fff;
    color: #616161;
    border: 2px solid #bdbdbd;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.pickle-owner-action__btn--cancel:hover {
    background: #eeeeee;
}

.pickle-owner-action__rejection-info {
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #fce8e8;
    color: #c62828;
    border: 1px solid #ef9a9a;
    border-radius: 6px;
    font-size: 14px;
}

.pickle-status-page__rejection-reason {
    margin-top: 8px;
    padding: 10px 14px;
    background: #fce8e8;
    color: #c62828;
    border: 1px solid #ef9a9a;
    border-radius: 6px;
    font-size: 14px;
}

.pickle-owner-action__receipt {
    margin-bottom: 16px;
}

.pickle-owner-action__receipt-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.pickle-owner-action__receipt-img {
    display: block;
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pickle-owner-action__receipt-img:hover {
    opacity: 0.85;
}

.pickle-owner-action__receipt-hint {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.pickle-owner-action__no-receipt {
    margin: 0 0 16px;
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
}

/* ── Receipt / Image Popup Modal (public) ─────────────────────── */

.pickle-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pickle-modal--open {
    display: flex;
}

.pickle-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.pickle-modal-img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.pickle-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #333;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.pickle-modal-close:hover {
    background: #555;
}

@media (max-width: 600px) {
    .pickle-status-page {
        padding: 20px 12px 40px;
    }

    .pickle-status-page__card {
        padding: 20px;
    }

    .pickle-status-page__label {
        flex: 0 0 100px;
        font-size: 13px;
    }

    .pickle-status-page__value {
        font-size: 13px;
    }

    .pickle-status-page__lookup-row {
        flex-direction: column;
    }

    .pickle-status-page__header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .pickle-owner-action__buttons {
        flex-direction: column;
    }
}

/* ── Rate Badge (inline) ─────────────────────────────────────── */
.pickle-booking__rate-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    padding: 6px 14px;
    background: var(--pickle-green-bg);
    border: 1px solid #a5d6a7;
    border-radius: 20px;
    align-self: flex-end;
    white-space: nowrap;
    margin-bottom: 2px;
}

.pickle-booking__rate-amount {
    font-size: 1.05em;
    font-weight: 700;
    color: var(--pickle-green);
}

.pickle-booking__rate-label {
    font-size: 0.82em;
    color: var(--pickle-text-light);
    font-weight: 500;
}

/* ── Courts Grid Section ────────────────────────────────────── */
.pickle-courts-grid {
    margin-top: 24px;
    padding: 24px;
    background: var(--pickle-card);
    border: 1px solid var(--pickle-border);
    border-radius: var(--pickle-radius);
    box-shadow: var(--pickle-shadow);
}

.pickle-courts-grid h2 {
    font-size: 1.35em;
    font-weight: 700;
    color: var(--pickle-text);
    margin: 0 0 20px;
    line-height: 1;
}

.pickle-courts-grid__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.pickle-courts-grid__card {
    background: var(--pickle-card);
    border: 1px solid var(--pickle-border);
    border-radius: var(--pickle-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    display: flex;
    flex-direction: column;
}

.pickle-courts-grid__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--pickle-blue);
}

.pickle-courts-grid__image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--pickle-bg);
}

.pickle-courts-grid__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pickle-courts-grid__card:hover .pickle-courts-grid__image img {
    transform: scale(1.05);
}

.pickle-courts-grid__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5em;
    color: #b0bec5;
}

.pickle-courts-grid__info {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.pickle-courts-grid__name {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--pickle-text);
    margin: 0;
}

.pickle-courts-grid__type {
    display: inline-flex;
    align-items: center;
    font-size: 0.82em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}

.pickle-courts-grid__type--open {
    background: #e3f2fd;
    color: #1565c0;
}

.pickle-courts-grid__type--covered {
    background: #fff3e0;
    color: #e65100;
}

.pickle-courts-grid__price {
    font-size: 1.15em;
    font-weight: 800;
    color: var(--pickle-green);
    margin-top: 2px;
}

.pickle-courts-grid__price-starting-from {
    font-size: 0.82em;
    font-weight: 500;
    color: var(--pickle-text-light);
    margin-right: 4px;
    display: block;
}

.pickle-courts-grid__price small {
    font-size: 0.72em;
    font-weight: 500;
    color: var(--pickle-text-light);
}

.pickle-courts-grid__book-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px 14px;
    padding: 10px 0;
    background: var(--pickle-blue);
    color: #fff;
    border: none;
    border-radius: var(--pickle-radius-sm);
    font-size: 0.92em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: center;
}

.pickle-courts-grid__book-btn:hover {
    background: var(--pickle-blue-dark);
}

@media (max-width: 600px) {
    .pickle-courts-grid__list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    .pickle-courts-grid__image {
        height: 140px;
    }

    .pickle-booking__rate-badge {
        padding: 0;
        background: unset;
        border: 0;
        border-radius: 20px;
        align-self: flex-start;
    }

    .pickle-booking__rate-amount {
        font-size: .9em;
    }
}

/* ── Tournament Category / Type Badges ───────────────────────── */

.pickle-tournament__category-badge,
.pickle-tournament__type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pickle-tournament__category-badge {
    background: #dbeafe;
    color: #1e40af;
}

.pickle-tournament__type-badge {
    background: #f3e8ff;
    color: #6b21a8;
}

/* ── Tournament Team Registration ───────────────────────────── */

.pickle-tourney-team-size {
    margin-bottom: 16px;
}

.pickle-tourney-team-size-input {
    width: 100px;
}

.pickle-tourney-team-wizard {
    background: var(--pickle-bg-alt, #f8f9fa);
    border: 1px solid #e2e5ea;
    border-radius: var(--pickle-radius, 8px);
    padding: 20px;
    margin-bottom: 18px;
}

.pickle-tourney-team-wizard__progress {
    margin-bottom: 16px;
}

.pickle-tourney-team-wizard__step-label {
    display: block;
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 8px;
    color: var(--pickle-blue, #2563eb);
}

.pickle-tourney-team-wizard__bar {
    height: 6px;
    background: #e2e5ea;
    border-radius: 3px;
    overflow: hidden;
}

.pickle-tourney-team-wizard__bar-fill {
    height: 100%;
    background: var(--pickle-blue, #2563eb);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.pickle-tourney-team-wizard__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    gap: 12px;
}

.pickle-tourney-team-wizard__nav .pickle-booking__back {
    margin: 0;
}

.pickle-tourney-team-wizard__nav .pickle-booking__submit {
    margin: 0;
}

.pickle-tourney-team-summary {
    background: var(--pickle-bg-alt, #f8f9fa);
    border: 1px solid #e2e5ea;
    border-radius: var(--pickle-radius, 8px);
    padding: 16px 20px;
    margin-bottom: 18px;
}

.pickle-tourney-team-summary h4 {
    margin: 0 0 12px;
    font-size: 0.95em;
    font-weight: 600;
    color: #374151;
}

.pickle-tourney-team-summary__member {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.pickle-tourney-team-summary__member:last-child {
    border-bottom: none;
}

.pickle-tourney-team-summary__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--pickle-blue, #2563eb);
    color: #fff;
    border-radius: 50%;
    font-size: 0.78em;
    font-weight: 700;
    flex-shrink: 0;
}

.pickle-tourney-team-summary__name {
    font-weight: 600;
    color: #1f2937;
}

.pickle-tourney-team-summary__detail {
    font-size: 0.88em;
    color: #6b7280;
}

.pickle-input--error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) !important;
}

.pickle-tourney-team-edit {
    font-size: 0.9em;
}

/* ── Convenience Fee / Price Breakdown ──────────────────────── */

.pickle-booking__price-breakdown {
    margin-top: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.92em;
    line-height: 1.7;
}

.pickle-booking__price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #4b5563;
}

.pickle-booking__price-row.pickle-booking__price-total {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #d1d5db;
    font-weight: 700;
    color: #111827;
    font-size: 1.05em;
}

.pickle-tournament__fee--convenience {
    color: #9333ea;
    font-size: 0.85em;
}

.pickle-status-page__convenience-row {
    color: #9333ea;
}

.pickle-status-page__price-breakdown {
    margin-top: 6px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.92em;
}

.pickle-status-page__price-line {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    color: #4b5563;
}

.pickle-status-page__price-line--total {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid #d1d5db;
    font-weight: 700;
    color: #111827;
}

/* ── Waive Convenience Fee Toggle ────────────────────────────── */

.pickle-booking__waive-fee {
    margin: 4px 0 16px;
}

.pickle-booking__waive-fee label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 18px 10px 12px;
    background: var(--pickle-bg);
    border: 2px solid var(--pickle-border);
    border-radius: 40px;
    font-size: 0.88em;
    font-weight: 600;
    color: var(--pickle-text-light);
    transition: all 0.2s ease;
    user-select: none;
}

.pickle-booking__waive-fee label:hover {
    border-color: var(--pickle-blue);
    color: var(--pickle-blue);
    background: var(--pickle-blue-light);
}

.pickle-booking__waive-fee input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 22px;
    background: #cbd5e1;
    border-radius: 11px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
    border: none;
    padding: 0;
    margin: 0;
}

.pickle-booking__waive-fee input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.pickle-booking__waive-fee input[type="checkbox"]:checked {
    background: var(--pickle-green);
}

.pickle-booking__waive-fee input[type="checkbox"]:checked::after {
    transform: translateX(18px);
}

.pickle-booking__waive-fee input[type="checkbox"]:checked + .pickle-booking__waive-fee-text,
.pickle-booking__waive-fee label:has(input:checked) {
    border-color: var(--pickle-green);
    background: var(--pickle-green-bg);
    color: var(--pickle-green);
}

/* ── Loading Spinner ─────────────────────────────────────────── */

@keyframes pickle-spin {
    to { transform: rotate(360deg); }
}

.pickle-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: pickle-spin 0.6s linear infinite;
    vertical-align: middle;
    flex-shrink: 0;
}

.pickle-btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
    opacity: 0.85;
}

.pickle-overlay-loading {
    position: relative;
    pointer-events: none;
}

.pickle-overlay-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: inherit;
    z-index: 10;
}
