/* ===========================
   Pickleball Booking System - Professional Public Styles
   =========================== */

:root {
    --pbs-primary: #1e3a8a;
    --pbs-primary-light: #3b82f6;
    --pbs-primary-dark: #1e40af;
    --pbs-secondary: #0ea5e9;
    --pbs-success: #10b981;
    --pbs-warning: #F59e0b;
    --pbs-danger: #ef4444;
    --pbs-light: #F5F5F5;
    --pbs-dark: #212121;
    --pbs-border: #E0E0E0;
    --pbs-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --pbs-shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --pbs-shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --pbs-radius: 16px;
    --pbs-radius-sm: 12px;
}

/* ===========================
   Bilingual Text Styles (English + Arabic)
   =========================== */

/* Bilingual in headings */
h4 

/* Bilingual in buttons */
.pbs-btn 

/* Bilingual in badges */
.pbs-card-badge 

/* Bilingual in step titles */
.pbs-step-title-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

/* Bilingual in features */
.pbs-feature .pbs-feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pbs-feature-text 

/* Bilingual in tab buttons */
.pbs-tab-btn .pbs-tab-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.pbs-tab-btn .pbs-tab-text 

/* Bilingual in summary labels */
.pbs-summary-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pbs-summary-label 

/* ===========================
   End Bilingual Styles
   =========================== */

/* Container */
.pbs-booking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    direction: rtl;
}

/* Header */
.pbs-booking-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding: 30px;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e9 100%);
    border-radius: var(--pbs-radius);
    box-shadow: var(--pbs-shadow);
}

.pbs-header-icon {
    font-size: 5em;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.pbs-booking-header h2 {
    font-size: 2.8em;
    color: var(--pbs-dark);
    margin: 0 0 15px 0;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.pbs-booking-header p {
    font-size: 1.2em;
    color: #555;
    margin: 0;
    font-weight: 500;
}

/* Step Title */
.pbs-step-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    font-size: 1.8em;
    color: var(--pbs-dark);
    font-weight: 800;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--pbs-radius-sm);
    border-right: 5px solid var(--pbs-primary);
}

.pbs-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--pbs-primary) 0%, var(--pbs-primary-dark) 100%);
    color: white;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.3em;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    animation: pulse-number 2s ease-in-out infinite;
}

@keyframes pulse-number {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 25px rgba(30, 58, 138, 0.5);
        transform: scale(1.05);
    }
}

/* Booking Types Grid */
.pbs-booking-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    perspective: 1000px;
}

/* Ensure equal heights for cards */
@media (min-width: 993px) {
    .pbs-booking-types {
        align-items: stretch;
    }
    
    .pbs-booking-type-card {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .pbs-booking-type-card > * {
        flex-shrink: 0;
    }
    
    .pbs-card-features {
        flex-grow: 1;
    }
}

/* Booking Type Card */
.pbs-booking-type-card {
    position: relative;
    background: white;
    border: 3px solid var(--pbs-border);
    border-radius: var(--pbs-radius);
    padding: 35px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--pbs-shadow);
    overflow: hidden;
}

.pbs-booking-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--pbs-primary), var(--pbs-primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.pbs-booking-type-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--pbs-shadow-lg);
    border-color: var(--pbs-primary);
}

.pbs-booking-type-card:hover::before {
    transform: scaleX(1);
}

.pbs-booking-type-card.pbs-card-selected {
    border-color: var(--pbs-primary);
    border-width: 3px;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e9 100%);
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.25);
    transform: translateY(-8px) scale(1.02);
}

.pbs-booking-type-card.pbs-card-selected::before {
    transform: scaleX(1);
}

.pbs-booking-type-card.pbs-card-featured {
    border-color: var(--pbs-secondary);
    background: linear-gradient(135deg, #f3f8ff 0%, #e3f2fd 100%);
}

/* Card Badge */
.pbs-card-badge {
    position: absolute;
    top: -14px;
    right: 20px;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85em;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: pulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pbs-badge-popular {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
}

.pbs-badge-best {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Card Icon */
.pbs-card-icon {
    font-size: 4em;
    margin-bottom: 20px;
    display: inline-block;
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-8px) rotate(-3deg);
    }
    66% {
        transform: translateY(-4px) rotate(3deg);
    }
}

.pbs-booking-type-card:hover .pbs-card-icon {
    animation: bounce-icon 0.6s ease;
}

@keyframes bounce-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

.pbs-booking-type-card h4 {
    font-size: 1.7em;
    margin: 0 0 8px 0;
    font-weight: 800;
    color: var(--pbs-dark);
    letter-spacing: -0.5px;
}

.pbs-card-subtitle {
    color: #64748b;
    font-size: 1.15em;
    font-weight: 600;
    margin: 0 0 18px 0;
}

.pbs-card-description {
    color: #64748b;
    font-size: 1em;
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 500;
}

/* Price */
.pbs-card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 25px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: var(--pbs-radius-sm);
}

.pbs-price-amount {
    font-size: 3em;
    font-weight: 800;
    color: var(--pbs-primary);
    line-height: 1;
}

.pbs-price-currency {
    font-size: 1.3em;
    color: #666;
    font-weight: 600;
}

/* Features */
.pbs-card-features {
    text-align: right;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--pbs-radius-sm);
}

.pbs-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 1em;
    font-weight: 600;
    color: #475569;
    transition: all 0.3s ease;
}

.pbs-feature:hover {
    transform: translateX(-5px);
    color: var(--pbs-primary);
}

.pbs-feature-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pbs-primary) 0%, var(--pbs-primary-light) 100%);
    color: white;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.8em;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

/* Duration Tabs for Private Booking */
.pbs-duration-tabs {
    margin: 25px 0;
}

.pbs-tabs-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: var(--pbs-radius-sm);
}

.pbs-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 700;
    color: #64748b;
    transition: all 0.3s ease;
    position: relative;
}

.pbs-tab-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--pbs-primary);
}

.pbs-tab-btn.active {
    background: linear-gradient(135deg, var(--pbs-primary) 0%, var(--pbs-primary-light) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.pbs-tab-icon {
    font-size: 1.4em;
}

.pbs-tab-text {
    font-size: 1em;
}

.pbs-tabs-content {
    position: relative;
    min-height: 120px;
}

.pbs-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.pbs-tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pbs-tab-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--pbs-radius-sm);
}

.pbs-tab-price .pbs-price-amount {
    font-size: 3em;
    font-weight: 800;
    color: var(--pbs-primary);
    line-height: 1;
}

.pbs-tab-price .pbs-price-currency {
    font-size: 1.3em;
    color: #666;
    font-weight: 600;
}

.pbs-tab-features {
    text-align: right;
    margin: 20px 0;
}

.pbs-feature-item {
    padding: 10px 0;
    font-size: 1.05em;
    font-weight: 600;
    color: #334155;
    border-bottom: 2px solid #e2e8f0;
}

.pbs-feature-item:last-child {
    border-bottom: none;
}

/* Dates Container - Simple List Layout */
.pbs-dates-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 35px;
    padding: 5px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Month Separator */
.pbs-month-separator {
    padding: 12px 0;
    font-size: 1em;
    font-weight: 700;
    color: var(--pbs-primary);
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pbs-month-separator:first-child {
    margin-top: 0;
}

.pbs-month-separator::before {
    content: '📅';
    font-size: 1.1em;
}

.pbs-times-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
    padding: 10px;
}

/* Date Card - Simple Row Style */
.pbs-date-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: auto;
}

/* Time Card - Keep Original Size */
.pbs-time-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 3px solid #e5e7eb;
    border-radius: var(--pbs-radius-sm);
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

/* Date Card Styles */
.pbs-date-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    background: var(--pbs-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.pbs-date-card:hover {
    border-color: var(--pbs-primary);
    transform: translateX(-3px);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.15);
}

.pbs-date-card:hover::before {
    transform: scaleY(1);
}

.pbs-date-card.pbs-selected {
    border-color: var(--pbs-primary);
    background: linear-gradient(135deg, var(--pbs-primary) 0%, var(--pbs-primary-dark) 100%);
    color: white;
    transform: translateX(-3px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.25);
}

.pbs-date-card.pbs-selected::before {
    transform: scaleY(1);
    background: rgba(255,255,255,0.5);
}

.pbs-date-card.pbs-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(1);
}

/* Time Card Styles */
.pbs-time-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pbs-primary), var(--pbs-primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.pbs-time-card:hover {
    border-color: var(--pbs-primary);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.2);
}

.pbs-time-card:hover::before {
    transform: scaleX(1);
}

.pbs-time-card.pbs-selected {
    border-color: var(--pbs-primary);
    background: linear-gradient(135deg, var(--pbs-primary) 0%, var(--pbs-primary-dark) 100%);
    color: white;
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
}

.pbs-time-card.pbs-selected::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.5));
}

.pbs-time-card.pbs-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(1);
}

/* Date Card - Simple Row Design */
.pbs-date-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pbs-date-icon {
    font-size: 1.8em;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 8px;
    flex-shrink: 0;
}

.pbs-date-card.pbs-selected .pbs-date-icon {
    background: rgba(255,255,255,0.2);
}

.pbs-date-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pbs-date-day {
    font-size: 0.85em;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pbs-date-card.pbs-selected .pbs-date-day {
    color: rgba(255,255,255,0.85);
}

.pbs-date-full {
    font-size: 1.1em;
    font-weight: 700;
    color: #1e293b;
}

.pbs-date-card.pbs-selected .pbs-date-full {
    color: white;
}

.pbs-date-arrow {
    font-size: 1.5em;
    color: #cbd5e1;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.pbs-date-card:hover .pbs-date-arrow {
    color: var(--pbs-primary);
    transform: translateX(-3px);
}

.pbs-date-card.pbs-selected .pbs-date-arrow {
    color: white;
}

/* Time Card Text Styles */
.pbs-time-card.pbs-selected .pbs-time-text {
    color: white;
    font-weight: 700;
}

/* Time Card */
.pbs-time-text {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--pbs-dark);
    line-height: 1.3;
    margin-bottom: 10px;
}

.pbs-time-card.pbs-selected .pbs-time-text {
    color: white;
}

.pbs-time-info {
    font-size: 0.9em;
    font-weight: 600;
    color: #64748b;
    margin-top: 10px;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    display: inline-block;
}

.pbs-time-card.pbs-selected .pbs-time-info {
    color: rgba(255,255,255,0.95);
    background: rgba(255,255,255,0.2);
}

/* Summary Card */
.pbs-summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid var(--pbs-border);
    border-radius: var(--pbs-radius);
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.pbs-summary-card::before {
    content: '✓';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 8em;
    color: var(--pbs-primary);
    opacity: 0.03;
    font-weight: 900;
}

.pbs-summary-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--pbs-primary), var(--pbs-primary-light), var(--pbs-secondary));
}

.pbs-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
    z-index: 1;
}

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

.pbs-summary-label {
    color: #64748b;
    font-weight: 700;
    font-size: 1.05em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pbs-summary-value {
    color: var(--pbs-dark);
    font-weight: 700;
    font-size: 1.1em;
    text-align: left;
}

.pbs-summary-total {
    margin-top: 15px;
    padding-top: 25px;
    border-top: 3px solid var(--pbs-primary);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    margin-left: -35px;
    margin-right: -35px;
    margin-bottom: -35px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 35px;
}

.pbs-summary-total .pbs-summary-label {
    color: var(--pbs-primary-dark);
    font-size: 1.2em;
}

.pbs-summary-total .pbs-summary-value {
    font-size: 2em;
    background: linear-gradient(135deg, var(--pbs-primary) 0%, var(--pbs-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.pbs-btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1.08em;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: var(--pbs-radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.pbs-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pbs-btn:hover::before {
    width: 300px;
    height: 300px;
}

.pbs-btn-primary {
    background: linear-gradient(135deg, var(--pbs-primary) 0%, var(--pbs-primary-light) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    font-weight: 800;
}

.pbs-btn-primary:hover {
    background: linear-gradient(135deg, var(--pbs-primary-dark) 0%, var(--pbs-primary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
    color: #ffffff;
}

.pbs-btn-secondary {
    background: #9E9E9E;
    color: white;
}

.pbs-btn-secondary:hover {
    background: #757575;
    transform: translateY(-2px);
}

.pbs-btn-success {
    background: linear-gradient(135deg, var(--pbs-success) 0%, #059669 100%);
    color: #ffffff;
    font-size: 1.2em;
    padding: 18px 45px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    animation: successPulse 2s ease-in-out infinite;
    font-weight: 800;
}

@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    }
    50% {
        box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
    }
}

.pbs-btn-success:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
    color: #ffffff;
}

.pbs-btn-back {
    margin-top: 20px;
}

/* Loading */
.pbs-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1em;
}

.pbs-loading:after {
    content: "";
    display: inline-block;
    margin-right: 10px;
    width: 20px;
    height: 20px;
    border: 3px solid var(--pbs-border);
    border-top-color: var(--pbs-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Notes */
.pbs-booking-notes {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3CD 100%);
    border: 3px solid #FFE082;
    border-radius: var(--pbs-radius);
    padding: 30px;
    margin-top: 50px;
    box-shadow: var(--pbs-shadow);
    position: relative;
    overflow: hidden;
}

.pbs-booking-notes::before {
    content: '💡';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3em;
    opacity: 0.1;
}

.pbs-booking-notes h4 {
    margin: 0 0 20px 0;
    color: var(--pbs-dark);
    font-size: 1.4em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pbs-booking-notes h4::before {
    content: '⚠️';
    font-size: 1.2em;
}

.pbs-booking-notes ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pbs-booking-notes li {
    padding: 12px 0;
    color: #555;
    line-height: 1.8;
    font-size: 1.05em;
    position: relative;
    padding-right: 25px;
}

.pbs-booking-notes li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: #F57C00;
    font-size: 1.5em;
    line-height: 1;
}

/* Step Visibility */
.pbs-step {
    display: none;
}

.pbs-step.pbs-step-active {
    display: block;
    animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .pbs-booking-types {
        grid-template-columns: 1fr;
    }
    
    .pbs-dates-container {
        max-width: 100%;
    }
    
    .pbs-times-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* Medium screens - keep 2 columns if there's space */
@media (min-width: 768px) and (max-width: 992px) {
    .pbs-booking-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pbs-booking-type-card {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .pbs-card-features {
        flex-grow: 1;
    }
}

@media (max-width: 768px) {
    .pbs-booking-container {
        padding: 20px 12px;
    }
    
    /* Header - أصغر وأكثر تناسقاً */
    .pbs-booking-header {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .pbs-booking-header h2 {
        font-size: 1.5em;
        margin-bottom: 8px;
    }
    
    .pbs-header-icon {
        font-size: 3em;
        margin-bottom: 12px;
    }
    
    .pbs-booking-header p {
        font-size: 0.95em;
    }
    
    /* Booking Types Cards - أصغر وأكثر إحكاماً */
    .pbs-booking-types {
        gap: 16px;
    }
    
    .pbs-booking-type-card {
        padding: 20px 16px;
        border-width: 2px;
        border-radius: 12px;
    }
    
    /* Card Badge - أصغر */
    .pbs-card-badge {
        top: -10px;
        right: 12px;
        padding: 6px 12px;
        font-size: 0.75em;
    }
    
    /* Card Icon - أصغر */
    .pbs-card-icon {
        font-size: 2.5em;
        margin-bottom: 12px;
    }
    
    /* Card Title - أصغر */
    .pbs-booking-type-card h4 {
        font-size: 1.3em;
        margin-bottom: 6px;
    }
    
    /* Card Description - أصغر */
    .pbs-card-description {
        font-size: 0.9em;
        margin-bottom: 16px;
        line-height: 1.5;
    }
    
    /* Price - أصغر وأكثر إحكاماً */
    .pbs-card-price {
        padding: 10px;
        margin: 16px 0;
        border-radius: 8px;
    }
    
    .pbs-price-amount {
        font-size: 2em;
    }
    
    .pbs-price-currency {
        font-size: 1em;
    }
    
    /* Features - أصغر */
    .pbs-card-features {
        margin: 16px 0;
        padding: 14px;
        border-radius: 8px;
        min-height: auto;
    }
    
    .pbs-feature {
        padding: 6px 0;
        font-size: 0.85em;
        gap: 8px;
    }
    
    .pbs-feature-icon {
        width: 20px;
        height: 20px;
        font-size: 0.7em;
    }
    
    /* Duration Tabs - أصغر وأكثر إحكاماً */
    .pbs-duration-tabs {
        margin: 16px 0;
        padding: 14px;
        border-radius: 8px;
    }
    
    .pbs-tabs-header {
        gap: 6px;
        padding: 4px;
        margin-bottom: 12px;
        border-radius: 8px;
    }
    
    .pbs-tab-btn {
        padding: 10px 12px;
        font-size: 0.9em;
        border-radius: 6px;
    }
    
    .pbs-tab-icon {
        font-size: 1.1em;
    }
    
    .pbs-tab-btn .pbs-tab-text 
    

    
    .pbs-tab-price {
        margin: 12px 0;
        padding: 8px;
    }
    
    .pbs-tab-price .pbs-price-amount {
        font-size: 1.8em;
    }
    
    .pbs-tab-price .pbs-price-currency {
        font-size: 0.95em;
    }
    
    .pbs-tab-features {
        padding: 10px 0;
    }
    
    .pbs-feature-item {
        font-size: 0.85em;
        padding: 6px 0;
    }
    
    /* Step Title - أصغر */
    .pbs-step-title {
        font-size: 1.15em;
        padding: 12px;
        gap: 12px;
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .pbs-step-number {
        width: 38px;
        height: 38px;
        font-size: 1em;
    }
    
    /* Dates - أصغر وأكثر إحكاماً */
    .pbs-dates-container {
        gap: 8px;
        padding: 0;
        margin-bottom: 20px;
    }
    
    .pbs-date-card {
        padding: 12px 16px;
        border-radius: 8px;
        border-width: 2px;
    }
    
    .pbs-date-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3em;
    }
    
    .pbs-date-info {
        gap: 10px;
    }
    
    .pbs-date-full {
        font-size: 0.9em;
    }
    
    .pbs-month-separator {
        font-size: 0.9em;
        padding: 8px 0;
        margin-top: 16px;
        margin-bottom: 6px;
    }
    
    /* Times - أصغر وأكثر إحكاماً */
    .pbs-times-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
        margin-bottom: 20px;
        padding: 5px;
    }
    
    .pbs-time-card {
        padding: 14px;
        border-radius: 8px;
        border-width: 2px;
    }
    
    .pbs-time-icon {
        font-size: 1.3em;
        margin-bottom: 6px;
    }
    
    .pbs-time-label {
        font-size: 1em;
        margin-bottom: 4px;
    }
    
    .pbs-time-period {
        font-size: 0.8em;
    }
    
    /* Summary Card - أصغر */
    .pbs-summary-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .pbs-summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }
    
    .pbs-summary-label 
    

    
    .pbs-summary-value {
        font-size: 0.95em;
    }
    
    .pbs-summary-total {
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: -20px;
        padding: 20px;
    }
    
    .pbs-total-label {
        font-size: 1.1em;
    }
    
    .pbs-total-amount {
        font-size: 1.8em;
    }
    
    /* Buttons - أصغر وأكثر إحكاماً */
    .pbs-btn {
        padding: 12px 24px;
        font-size: 0.95em;
        border-radius: 8px;
    }
    
    .pbs-btn 
    

    
    .pbs-btn-success {
        padding: 14px 32px;
        font-size: 1em;
    }
    
    /* Notes - أصغر */
    .pbs-booking-notes {
        padding: 14px;
        margin-bottom: 20px;
        border-radius: 10px;
        border-width: 2px;
    }
    
    .pbs-note-icon {
        font-size: 1.5em;
    }
    
    .pbs-note-content {
        font-size: 0.85em;
    }
    
    /* Loading & Messages - أصغر */
    .pbs-loading-text,
    .pbs-success-text {
        font-size: 1em;
    }
    
    .pbs-error-message {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        margin-bottom: 20px;
        border-radius: 10px;
        border-width: 2px;
    }
    
    .pbs-error-icon {
        font-size: 1.5em;
    }
    
    .pbs-error-text {
        font-size: 0.95em;
    }
    
    /* Bilingual text sizes for mobile */
    
    

    
    /* Single column on mobile */
    .pbs-booking-types {
        grid-template-columns: 1fr !important;
    }
    
    /* Reduce animations on mobile for better performance */
    .pbs-booking-type-card:hover {
        transform: translateY(-4px);
    }
    
    .pbs-booking-type-card.pbs-card-selected {
        transform: translateY(-4px);
    }
    
    /* Progress bar - أصغر */
    .pbs-progress-container {
        padding: 14px;
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .pbs-progress-bar {
        height: 8px;
        margin-bottom: 8px;
    }
    
    .pbs-progress-text {
        font-size: 0.85em;
    }
}

/* RTL Support */
body.rtl .pbs-feature {
    flex-direction: row-reverse;
}

body.rtl .pbs-card-features {
    text-align: left;
}

body.rtl .pbs-summary-row {
    flex-direction: row-reverse;
}

/* ===========================
   Enhanced Features
   =========================== */

/* Progress Bar */
.pbs-progress-container {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: var(--pbs-radius-sm);
    box-shadow: var(--pbs-shadow);
}

.pbs-progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
}

.pbs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pbs-primary), var(--pbs-primary-light));
    border-radius: 20px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.pbs-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.pbs-progress-text {
    text-align: center;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
}

/* Loading Overlay */
.pbs-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.3s ease;
}

.pbs-loading-spinner {
    width: 70px;
    height: 70px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--pbs-primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.pbs-loading-text {
    color: white;
    font-size: 1.3em;
    font-weight: 600;
    margin-top: 25px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Success Message */
.pbs-success-icon {
    font-size: 5em;
    animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pbs-success-text {
    color: white;
    font-size: 1.8em;
    font-weight: 700;
    margin-top: 20px;
}

.pbs-success-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
    margin-top: 10px;
}

/* Error Message */
.pbs-error-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 3px solid #ef4444;
    border-radius: var(--pbs-radius-sm);
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pbs-error-icon {
    font-size: 2em;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.pbs-error-text {
    flex: 1;
    color: #991b1b;
    font-weight: 600;
    font-size: 1.05em;
}

/* Enhanced Date/Time Cards */
.pbs-date-card,
.pbs-time-card {
    position: relative;
    overflow: hidden;
}

.pbs-date-card::after,
.pbs-time-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(30, 58, 138, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pbs-date-card:hover::after,
.pbs-time-card:hover::after {
    opacity: 1;
}

.pbs-date-card.pbs-selected::after,
.pbs-time-card.pbs-selected::after {
    opacity: 1;
    background: linear-gradient(135deg, transparent 0%, rgba(30, 58, 138, 0.2) 100%);
}

/* Improved Summary Card */
.pbs-summary-card {
    position: relative;
    overflow: hidden;
}

.pbs-summary-card::before {
    content: '✓';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 6em;
    color: var(--pbs-primary);
    opacity: 0.05;
    font-weight: 900;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .pbs-booking-container {
        padding: 20px 12px;
    }
    
    /* Header - أصغر وأكثر تناسقاً */
    .pbs-booking-header {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .pbs-booking-header h2 {
        font-size: 1.5em;
        margin-bottom: 8px;
    }
    
    .pbs-header-icon {
        font-size: 3em;
        margin-bottom: 12px;
    }
    
    .pbs-booking-header p {
        font-size: 0.95em;
    }
    
    /* Booking Types Cards - أصغر وأكثر إحكاماً */
    .pbs-booking-types {
        gap: 16px;
    }
    
    .pbs-booking-type-card {
        padding: 20px 16px;
        border-width: 2px;
        border-radius: 12px;
    }
    
    /* Card Badge - أصغر */
    .pbs-card-badge {
        top: -10px;
        right: 12px;
        padding: 6px 12px;
        font-size: 0.75em;
    }
    
    /* Card Icon - أصغر */
    .pbs-card-icon {
        font-size: 2.5em;
        margin-bottom: 12px;
    }
    
    /* Card Title - أصغر */
    .pbs-booking-type-card h4 {
        font-size: 1.3em;
        margin-bottom: 6px;
    }
    
    /* Card Description - أصغر */
    .pbs-card-description {
        font-size: 0.9em;
        margin-bottom: 16px;
        line-height: 1.5;
    }
    
    /* Price - أصغر وأكثر إحكاماً */
    .pbs-card-price {
        padding: 10px;
        margin: 16px 0;
        border-radius: 8px;
    }
    
    .pbs-price-amount {
        font-size: 2em;
    }
    
    .pbs-price-currency {
        font-size: 1em;
    }
    
    /* Features - أصغر */
    .pbs-card-features {
        margin: 16px 0;
        padding: 14px;
        border-radius: 8px;
        min-height: auto;
    }
    
    .pbs-feature {
        padding: 6px 0;
        font-size: 0.85em;
        gap: 8px;
    }
    
    .pbs-feature-icon {
        width: 20px;
        height: 20px;
        font-size: 0.7em;
    }
    
    /* Duration Tabs - أصغر وأكثر إحكاماً */
    .pbs-duration-tabs {
        margin: 16px 0;
        padding: 14px;
        border-radius: 8px;
    }
    
    .pbs-tabs-header {
        gap: 6px;
        padding: 4px;
        margin-bottom: 12px;
        border-radius: 8px;
    }
    
    .pbs-tab-btn {
        padding: 10px 12px;
        font-size: 0.9em;
        border-radius: 6px;
    }
    
    .pbs-tab-icon {
        font-size: 1.1em;
    }
    
    .pbs-tab-btn .pbs-tab-text 
    

    
    .pbs-tab-price {
        margin: 12px 0;
        padding: 8px;
    }
    
    .pbs-tab-price .pbs-price-amount {
        font-size: 1.8em;
    }
    
    .pbs-tab-price .pbs-price-currency {
        font-size: 0.95em;
    }
    
    .pbs-tab-features {
        padding: 10px 0;
    }
    
    .pbs-feature-item {
        font-size: 0.85em;
        padding: 6px 0;
    }
    
    /* Step Title - أصغر */
    .pbs-step-title {
        font-size: 1.15em;
        padding: 12px;
        gap: 12px;
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .pbs-step-number {
        width: 38px;
        height: 38px;
        font-size: 1em;
    }
    
    /* Dates - أصغر وأكثر إحكاماً */
    .pbs-dates-container {
        gap: 8px;
        padding: 0;
        margin-bottom: 20px;
    }
    
    .pbs-date-card {
        padding: 12px 16px;
        border-radius: 8px;
        border-width: 2px;
    }
    
    .pbs-date-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3em;
    }
    
    .pbs-date-info {
        gap: 10px;
    }
    
    .pbs-date-full {
        font-size: 0.9em;
    }
    
    .pbs-month-separator {
        font-size: 0.9em;
        padding: 8px 0;
        margin-top: 16px;
        margin-bottom: 6px;
    }
    
    /* Times - أصغر وأكثر إحكاماً */
    .pbs-times-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
        margin-bottom: 20px;
        padding: 5px;
    }
    
    .pbs-time-card {
        padding: 14px;
        border-radius: 8px;
        border-width: 2px;
    }
    
    .pbs-time-icon {
        font-size: 1.3em;
        margin-bottom: 6px;
    }
    
    .pbs-time-label {
        font-size: 1em;
        margin-bottom: 4px;
    }
    
    .pbs-time-period {
        font-size: 0.8em;
    }
    
    /* Summary Card - أصغر */
    .pbs-summary-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .pbs-summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }
    
    .pbs-summary-label 
    

    
    .pbs-summary-value {
        font-size: 0.95em;
    }
    
    .pbs-summary-total {
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: -20px;
        padding: 20px;
    }
    
    .pbs-total-label {
        font-size: 1.1em;
    }
    
    .pbs-total-amount {
        font-size: 1.8em;
    }
    
    /* Buttons - أصغر وأكثر إحكاماً */
    .pbs-btn {
        padding: 12px 24px;
        font-size: 0.95em;
        border-radius: 8px;
    }
    
    .pbs-btn 
    

    
    .pbs-btn-success {
        padding: 14px 32px;
        font-size: 1em;
    }
    
    /* Notes - أصغر */
    .pbs-booking-notes {
        padding: 14px;
        margin-bottom: 20px;
        border-radius: 10px;
        border-width: 2px;
    }
    
    .pbs-note-icon {
        font-size: 1.5em;
    }
    
    .pbs-note-content {
        font-size: 0.85em;
    }
    
    /* Loading & Messages - أصغر */
    .pbs-loading-text,
    .pbs-success-text {
        font-size: 1em;
    }
    
    .pbs-error-message {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        margin-bottom: 20px;
        border-radius: 10px;
        border-width: 2px;
    }
    
    .pbs-error-icon {
        font-size: 1.5em;
    }
    
    .pbs-error-text {
        font-size: 0.95em;
    }
    
    /* Bilingual text sizes for mobile */
    
    

    
    /* Single column on mobile */
    .pbs-booking-types {
        grid-template-columns: 1fr !important;
    }
    
    /* Reduce animations on mobile for better performance */
    .pbs-booking-type-card:hover {
        transform: translateY(-4px);
    }
    
    .pbs-booking-type-card.pbs-card-selected {
        transform: translateY(-4px);
    }
    
    /* Progress bar - أصغر */
    .pbs-progress-container {
        padding: 14px;
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .pbs-progress-bar {
        height: 8px;
        margin-bottom: 8px;
    }
    
    .pbs-progress-text {
        font-size: 0.85em;
    }
}

/* Extra small screens (iPhone SE, etc) */
@media (max-width: 380px) {
    .pbs-booking-container {
        padding: 16px 10px;
    }
    
    .pbs-booking-header {
        padding: 14px;
        margin-bottom: 20px;
    }
    
    .pbs-booking-header h2 {
        font-size: 1.3em;
    }
    
    .pbs-header-icon {
        font-size: 2.5em;
        margin-bottom: 10px;
    }
    
    .pbs-booking-header p {
        font-size: 0.85em;
    }
    
    .pbs-booking-types {
        gap: 14px;
    }
    
    .pbs-booking-type-card {
        padding: 16px 12px;
    }
    
    .pbs-card-badge {
        padding: 5px 10px;
        font-size: 0.7em;
    }
    
    .pbs-card-icon {
        font-size: 2.2em;
        margin-bottom: 10px;
    }
    
    .pbs-booking-type-card h4 {
        font-size: 1.2em;
    }
    
    .pbs-card-description {
        font-size: 0.85em;
        margin-bottom: 14px;
    }
    
    .pbs-card-price {
        padding: 8px;
        margin: 14px 0;
    }
    
    .pbs-price-amount {
        font-size: 1.8em;
    }
    
    .pbs-price-currency {
        font-size: 0.95em;
    }
    
    .pbs-card-features {
        padding: 12px;
        margin: 14px 0;
    }
    
    .pbs-feature {
        font-size: 0.8em;
        padding: 5px 0;
    }
    
    .pbs-duration-tabs {
        padding: 12px;
        margin: 14px 0;
    }
    
    .pbs-tab-btn {
        padding: 8px 10px;
        font-size: 0.85em;
    }
    
    .pbs-tab-price .pbs-price-amount {
        font-size: 1.6em;
    }
    
    .pbs-step-title {
        font-size: 1.05em;
        padding: 10px;
        gap: 10px;
    }
    
    .pbs-step-number {
        width: 34px;
        height: 34px;
        font-size: 0.95em;
    }
    
    .pbs-times-container {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .pbs-time-card {
        padding: 12px 8px;
    }
    
    .pbs-time-icon {
        font-size: 1.2em;
    }
    
    .pbs-time-label {
        font-size: 0.9em;
    }
    
    .pbs-time-period {
        font-size: 0.75em;
    }
    
    .pbs-summary-card {
        padding: 16px;
    }
    
    .pbs-summary-total {
        margin-left: -16px;
        margin-right: -16px;
        margin-bottom: -16px;
        padding: 16px;
    }
    
    .pbs-total-amount {
        font-size: 1.6em;
    }
    
    .pbs-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    .pbs-btn-success {
        padding: 12px 28px;
        font-size: 0.95em;
    }
}

/* ===========================
   Additional UX Enhancements
   =========================== */

/* Improve button hover states */
.pbs-btn {
    position: relative;
    z-index: 1;
}

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

/* Better focus states for accessibility */
.pbs-btn:focus,
.pbs-tab-btn:focus,
.pbs-date-card:focus,
.pbs-time-card:focus {
    outline: 3px solid rgba(30, 58, 138, 0.5);
    outline-offset: 3px;
}

/* Smooth transitions for all interactive elements */
.pbs-booking-type-card,
.pbs-date-card,
.pbs-time-card,
.pbs-btn,
.pbs-tab-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure proper spacing on large screens */
@media (min-width: 1400px) {
    .pbs-booking-container {
        max-width: 1400px;
    }
    
    .pbs-booking-types {
        gap: 40px;
    }
}

/* Improve card consistency */
.pbs-card-features {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Better visual hierarchy */
.pbs-booking-type-card h4 {
    margin-bottom: 12px;
}

.pbs-card-description {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure buttons stay at bottom of cards */
.pbs-booking-type-card .pbs-btn {
    margin-top: auto;
}

/* Improved badge positioning */
.pbs-card-badge {
    white-space: nowrap;
    z-index: 10;
}

/* Better price display */
.pbs-card-price,
.pbs-tab-price {
    margin: 20px 0;
}

/* Enhanced duration tabs */
.pbs-duration-tabs {
    background: #f8fafc;
    padding: 20px;
    border-radius: var(--pbs-radius-sm);
    margin: 20px 0;
}

/* Improve feature items in tabs */
.pbs-tab-features {
    padding: 15px 0;
}

.pbs-feature-item {
    padding: 8px 0;
    font-weight: 600;
    color: #475569;
}

/* Better spacing for bilingual content */

/* Loading states improvement */
.pbs-loading {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure proper RTL support */
[dir="rtl"] .pbs-booking-container,
.pbs-booking-container[dir="rtl"] {
    direction: rtl;
}

/* Print styles */
@media print {
    .pbs-btn,
    .pbs-loading-overlay,
    .pbs-error-message {
        display: none;
    }
    
    .pbs-booking-container {
        max-width: 100%;
        padding: 20px;
    }
    
    .pbs-booking-type-card,
    .pbs-summary-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* =================================================================
    right: auto;
    left: 15px;
}

/* =================================================================
   PLAYERS LIST FEATURE V2 - Professional Design
   Show registered players in a beautiful side panel
   ================================================================= */

/* Time Slot Wrapper - Contains Card + Players Preview */
.pbs-time-slot-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: stretch;
}

.pbs-time-slot-wrapper .pbs-time-card {
    flex: 1;
    margin-bottom: 0 !important;
}

/* Players Preview Panel - Beautiful Side Panel */
.pbs-players-preview {
    flex: 0 0 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pbs-players-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.pbs-players-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
}

/* Players Preview Header */
.pbs-players-preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    position: relative;
    z-index: 1;
}

.pbs-players-icon {
    font-size: 1.3em;
}

.pbs-players-count {
    font-size: 1.4em;
    font-weight: 800;
    color: white;
}

.pbs-players-text {
    font-size: 0.9em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

/* Players Avatars Container */
.pbs-players-avatars {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 45px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Mini Avatar */
.pbs-mini-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95em;
    color: white;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pbs-mini-avatar:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.35);
    border-color: white;
}

.pbs-more-avatar {
    font-size: 0.75em;
    background: rgba(255, 255, 255, 0.15);
    border-style: dashed;
}

/* Mini Loader */
.pbs-mini-loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* View All Button */
.pbs-view-all-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.pbs-view-all-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.pbs-view-all-btn:active {
    transform: translateY(0);
}

/* Modal Styles - Enhanced */
.pbs-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
}

.pbs-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.pbs-modal-content {
    position: relative;
    max-width: 550px;
    margin: 50px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-height: calc(100vh - 100px);
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pbs-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.pbs-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.pbs-modal-body {
    padding: 35px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

/* Players List Header - Enhanced */
.pbs-players-list-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
}

.pbs-players-list-header h3 {
    font-size: 1.8em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 15px 0;
    font-weight: 900;
}

.pbs-players-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1em;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Players List - Enhanced */
.pbs-players-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pbs-player-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pbs-player-item:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    border-left-color: #764ba2;
}

.pbs-player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3em;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pbs-player-name {
    flex: 1;
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1em;
}

.pbs-player-number {
    font-size: 0.9em;
    color: #64748b;
    font-weight: 700;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Available Spots - Enhanced */
.pbs-available-spots {
    margin-top: 20px;
    padding: 18px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-align: center;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.1em;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

/* No Players State */
.pbs-no-players {
    text-align: center;
    padding: 50px 20px;
    color: #94a3b8;
}

.pbs-no-players p {
    font-size: 1.3em;
    margin: 12px 0;
    font-weight: 600;
}

/* Loading State in Modal */
.pbs-modal-loading {
    text-align: center;
    padding: 50px 20px;
}

.pbs-loading-spinner {
    width: 55px;
    height: 55px;
    margin: 0 auto 25px;
    border: 5px solid #f1f5f9;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pbs-time-slot-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .pbs-players-preview {
        flex: 1;
    }
    
    .pbs-modal-content {
        margin: 20px;
        border-radius: 16px;
    }
    
    .pbs-modal-body {
        padding: 25px;
    }
    
    .pbs-players-list-header h3 {
        font-size: 1.5em;
    }
    
    .pbs-player-item {
        padding: 14px 16px;
        gap: 14px;
    }
    
    .pbs-player-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
    }
    
    .pbs-mini-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9em;
    }
}

/* RTL Support */
body.rtl .pbs-player-item {
    border-left: none;
    border-right: 4px solid #667eea;
}

body.rtl .pbs-player-item:hover {
    transform: translateX(-6px);
    border-right-color: #764ba2;
}

body.rtl .pbs-modal-close {
    right: auto;
    left: 20px;
}
