/* ==========================================
   drov | CSS Custom Properties & Reset
   ========================================== */
:root {
    --bg-primary: #080c14;
    --bg-secondary: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.65);
    --bg-input: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-focus: rgba(56, 189, 248, 0.4);
    
    --primary: #38bdf8;         /* Sky Blue */
    --primary-hover: #0ea5e9;
    --primary-glow: rgba(56, 189, 248, 0.25);
    
    --success: #10b981;         /* Emerald */
    --success-glow: rgba(16, 185, 129, 0.2);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    
    --font-arabic: 'Cairo', sans-serif;
    --font-numeric: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-arabic);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

button, input, select, textarea {
    font-family: inherit;
}

/* ==========================================
   Header & Navigation
   ========================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 12, 20, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    font-family: var(--font-arabic);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
}

.logo-link span {
    color: var(--primary);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.booking-count-badge {
    background-color: var(--primary);
    color: var(--bg-primary);
    font-family: var(--font-numeric);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 50%;
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle;
}

.btn-primary-header {
    background-color: var(--primary);
    color: var(--bg-primary);
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary-header:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 8.5rem 2rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-main) 30%, #e2e8f0 70%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-hero-primary {
    background-color: var(--primary);
    color: var(--bg-primary);
    padding: 1rem 2.25rem;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-hero-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.4);
}

.btn-hero-primary i {
    transition: var(--transition-smooth);
}

.btn-hero-primary:hover i {
    transform: translateX(-4px);
}

.btn-hero-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 1rem 2.25rem;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    backdrop-filter: blur(8px);
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ==========================================
   Search & Filter Bar
   ========================================== */
.search-bar-container {
    width: 100%;
    max-width: 1100px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium), var(--shadow-glow);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 1.5rem;
    align-items: flex-end;
}

.input-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}

.input-block label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-block label i {
    color: var(--primary);
}

.input-block input, .input-block select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-md);
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-arabic);
    transition: var(--transition-smooth);
    width: 100%;
}

.input-block select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1.25rem;
    padding-left: 2.5rem;
}

.input-block input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) sepia(100%) saturate(1000%) hue-rotate(170deg);
    cursor: pointer;
}

.input-block input:focus, .input-block select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background-color: rgba(30, 41, 59, 0.9);
}

.btn-search {
    background-color: var(--primary);
    color: var(--bg-primary);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 3.6rem;
    box-shadow: 0 6px 15px var(--primary-glow);
    transition: var(--transition-smooth);
}

.btn-search:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

/* ==========================================
   Sections General Styling
   ========================================== */
section {
    padding: 6.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-main) 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   Category Filters (Pills)
   ========================================== */
.filter-pills {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.pill:hover, .pill.active {
    background: var(--primary);
    color: var(--bg-primary);
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
    transform: translateY(-2px);
}

/* ==========================================
   Car Grid & Cards
   ========================================== */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.car-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(10px);
}

.car-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: var(--shadow-premium), 0 10px 25px rgba(56, 189, 248, 0.08);
}

.car-image-wrapper {
    position: relative;
    padding-top: 60%;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    overflow: hidden;
}

.car-image-wrapper img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 85%;
    height: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.car-card:hover .car-image-wrapper img {
    transform: translate(-50%, -50%) scale(1.05);
}

.car-category-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(8, 12, 20, 0.7);
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.car-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.car-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.car-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.feature i {
    color: var(--primary);
    font-size: 1rem;
}

.car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.car-price {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.price-num {
    font-family: var(--font-numeric);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.price-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-book-now {
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 0.7rem 1.4rem;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-book-now:hover {
    background-color: var(--primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* ==========================================
   Booking Drawer / Slide-out Panel
   ========================================== */
.booking-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 6, 10, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.booking-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.booking-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    z-index: 1100;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    transform: translateX(-100%);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.booking-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.btn-close-drawer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.btn-close-drawer:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.drawer-body {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
}

/* Inside Drawer UI */
.drawer-car-summary {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.drawer-car-summary img {
    width: 120px;
    height: 80px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
}

.drawer-car-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.drawer-car-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
}

.drawer-car-info .price {
    color: var(--primary);
    font-weight: 700;
    margin-top: 0.25rem;
}

.drawer-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-pricing-breakdown {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin-top: 1.5rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.breakdown-row.total {
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    padding-top: 1rem;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.2rem;
}

.breakdown-row.total .val {
    color: var(--primary);
    font-family: var(--font-numeric);
}

.btn-proceed-checkout {
    background-color: var(--primary);
    color: var(--bg-primary);
    border: none;
    padding: 1.1rem;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 2rem;
    box-shadow: 0 6px 20px var(--primary-glow);
    transition: var(--transition-smooth);
}

.btn-proceed-checkout:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.45);
}

/* ==========================================
   Payment Gateway Modal
   ========================================== */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 6, 10, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.payment-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.payment-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow-premium), var(--shadow-glow);
    overflow: hidden;
    transform: scale(0.95);
    transition: var(--transition-smooth);
}

.payment-modal-overlay.active .payment-modal {
    transform: scale(1);
}

.payment-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.btn-close-payment {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-close-payment:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.payment-body {
    padding: 2rem;
}

.payment-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-row.total {
    border-top: 1px solid var(--border-color);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    font-weight: 700;
    font-size: 1.15rem;
}

.summary-row.total .value {
    color: var(--primary);
    font-family: var(--font-numeric);
}

/* Interactive Simulated Credit Card */
.credit-card-ui {
    background: linear-gradient(135deg, #0e1e38 0%, #1e293b 50%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2rem;
    aspect-ratio: 1.58 / 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-premium);
}

.credit-card-ui::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.card-chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 6px;
    position: relative;
}

.card-chip::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.card-brand {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 2.2rem;
    color: #e2e8f0;
    transition: var(--transition-smooth);
}

.card-number-display {
    font-family: var(--font-numeric);
    font-size: 1.4rem;
    letter-spacing: 2px;
    word-spacing: 6px;
    color: var(--text-main);
    margin: 1.5rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.card-holder-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.card-value-display {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.card-expiry-display {
    font-family: var(--font-numeric);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Payment Form CSS */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.form-group input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem;
    border-radius: var(--border-radius-md);
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background-color: rgba(30, 41, 59, 0.9);
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper input {
    padding-left: 3rem;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.btn-pay-submit {
    background-color: var(--primary);
    color: var(--bg-primary);
    border: none;
    padding: 1.1rem;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 1.5rem;
    box-shadow: 0 5px 15px var(--primary-glow);
    transition: var(--transition-smooth);
}

.btn-pay-submit:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.45);
}

/* Simulated Payment Loader & Success State */
.payment-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 0;
    gap: 1rem;
}

.payment-loading .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(56, 189, 248, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.payment-loading p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.payment-success-anim {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 0;
}

.payment-success-anim h4 {
    font-size: 1.4rem;
    color: var(--success);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.payment-success-anim p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Success Checkmark Animation Styles */
.success-checkmark {
    width: 80px;
    height: 80px;
    position: relative;
    margin-bottom: 1.5rem;
}

.success-checkmark .check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid var(--success);
}

.success-checkmark .check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.success-checkmark .check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
}

.success-checkmark .check-icon .icon-line {
    height: 5px;
    background-color: var(--success);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.success-checkmark .check-icon .icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.success-checkmark .check-icon .icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.success-checkmark .check-icon .icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid var(--success-glow);
}

/* ==========================================
   Bookings Dashboard Section
   ========================================== */
.dashboard-section {
    background: rgba(2, 6, 12, 0.5);
    border-top: 1px solid var(--border-color);
}

.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}

.bookings-list-panel h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.bookings-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.booking-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.booking-item-card:hover, .booking-item-card.active {
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.05);
    transform: translateY(-2px);
}

.booking-item-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.booking-item-info img {
    width: 70px;
    height: 50px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
}

.booking-item-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

.booking-item-text .dates {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.booking-item-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.status-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.booking-item-status .price {
    font-family: var(--font-numeric);
    font-weight: 700;
    color: var(--primary);
}

/* Invoice Display Panel */
.invoice-display-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-premium);
    position: relative;
}

.empty-invoice-state {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-dark);
    gap: 1.5rem;
}

.empty-invoice-state i {
    font-size: 4rem;
}

.empty-invoice-state p {
    font-size: 1.05rem;
    max-width: 300px;
}

/* Digital Invoice Styling */
.digital-invoice {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.invoice-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px dashed var(--border-color);
    padding-bottom: 1.5rem;
}

.invoice-logo {
    font-family: var(--font-arabic);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
}

.invoice-logo span {
    color: var(--primary);
}

.invoice-meta {
    text-align: left;
}

.invoice-meta h4 {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.invoice-meta p {
    font-family: var(--font-numeric);
    font-size: 0.85rem;
    color: var(--text-dark);
}

.invoice-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 0.5rem 0;
}

.invoice-detail-block h5 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.invoice-detail-block p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.invoice-detail-block.highlight p {
    color: var(--primary);
}

.invoice-table {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    margin: 0.5rem 0;
}

.invoice-table-header, .invoice-table-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.invoice-table-header {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.invoice-table-row {
    color: var(--text-main);
    font-size: 0.95rem;
}

.invoice-table-row .price {
    font-family: var(--font-numeric);
}

.invoice-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.invoice-total-row .val {
    color: var(--primary);
    font-family: var(--font-numeric);
}

.invoice-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-invoice-print {
    flex-grow: 1;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 0.85rem;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-invoice-print:hover {
    background: var(--primary);
    color: var(--bg-primary);
}

.btn-invoice-cancel {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.85rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-invoice-cancel:hover {
    background: #ef4444;
    color: #ffffff;
}

/* ==========================================
   How It Works Section
   ========================================== */
.how-it-works-section {
    background-color: rgba(2, 6, 12, 0.2);
    border-top: 1px solid var(--border-color);
}

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

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.step-card:hover {
    border-color: rgba(56, 189, 248, 0.2);
    transform: translateY(-5px);
}

.step-num {
    font-family: var(--font-numeric);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(56, 189, 248, 0.08);
    position: absolute;
    top: 1rem;
    left: 2rem;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-section {
    border-top: 1px solid var(--border-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: var(--shadow-premium);
}

.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.contact-info-item {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.contact-info-item i {
    color: var(--primary);
    font-size: 1.4rem;
    background: rgba(56, 189, 248, 0.08);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-item span {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-premium);
}

.contact-form textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-md);
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-arabic);
    transition: var(--transition-smooth);
    resize: none;
    width: 100%;
}

.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background-color: rgba(30, 41, 59, 0.9);
}

.btn-contact-submit {
    background-color: var(--primary);
    color: var(--bg-primary);
    border: none;
    padding: 1.1rem;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--primary-glow);
    transition: var(--transition-smooth);
    align-self: flex-start;
}

.btn-contact-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.45);
}

/* ==========================================
   Footer Styling
   ========================================== */
footer {
    background-color: #040810;
    border-top: 1px solid var(--border-color);
    padding: 5rem 2rem 2.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto 3.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand h2 {
    font-family: var(--font-numeric);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.footer-brand h2 span {
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 350px;
}

.footer-links h3, .footer-social h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(-4px);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.social-icons a:hover {
    background: var(--primary);
    color: var(--bg-primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* ==========================================
   Animations
   ========================================== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes icon-line-tip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 50px; left: -8px; top: 37px; }
    84% { width: 17px; left: 21px; top: 48px; }
    100% { width: 25px; left: 14px; top: 46px; }
}

@keyframes icon-line-long {
    0% { width: 0; right: 46px; top: 54px; }
    65% { width: 0; right: 46px; top: 54px; }
    84% { width: 55px; right: 0px; top: 35px; }
    100% { width: 47px; right: 8px; top: 38px; }
}

/* ==========================================
   Responsive Media Queries
   ========================================== */
@media (max-width: 1024px) {
    .search-form {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn-search {
        grid-column: span 2;
        width: 100%;
    }
    
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Can be enhanced to a burger menu, but keeping SPA simple */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .payment-modal {
        max-width: 100%;
    }
    
    .credit-card-ui {
        aspect-ratio: 1.6;
        padding: 1.5rem;
    }
    
    .card-number-display {
        font-size: 1.15rem;
    }
}
