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

:root {
    --teal-primary: #00b8d4;
    --teal-light: #26c6da;
    --teal-glow: #4dd0e1;
    --teal-deep: #0097a7;
    --teal-dark: #00838f;
    --dark: #081120;
    --dark2: #101b2d;
    --glass: rgba(255, 255, 255, 0.08);
    --text: #f1f5f9;
    --muted: #cbd5e1;
    --green: #00c896;
    --blue: #4cc9f0;
    --purple: #9b5de5;
    --gold-credit: #e8c776;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    overflow-x: hidden;
    background:
        linear-gradient(rgba(6,14,24,.60), rgba(6,14,24,.70)),
        url("/static/images/bus-bg.jfif");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(0, 184, 212, 0.15), transparent 35%),
        radial-gradient(circle at bottom left, rgba(38, 198, 218, 0.12), transparent 35%);
    z-index: 0;
    pointer-events: none;
}

header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(6, 12, 24, 0.7);
    border-bottom: 1px solid rgba(0, 184, 212, 0.2);
}

.navbar {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 14px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-frame {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--teal-primary), var(--teal-deep));
    padding: 4px;
    box-shadow:
        0 10px 30px rgba(0, 184, 212, 0.4),
        0 0 20px rgba(38, 198, 218, 0.3);
    animation: float 4s ease-in-out infinite;
}

.logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    background: #fff;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand h1 {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 2.7rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 184, 212, 0.4);
    transform: translateY(-12px);
}

.brand p {
    font-size: 0.92rem;
    color: var(--muted);
    margin-top: 4px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
    cursor: pointer;
    padding: 6px 2px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to left, var(--teal-primary), var(--teal-light));
    transition: 0.3s;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--teal-light);
}

.nav-links a:hover::after {
    width: 100%;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
}

.lang-btn:hover {
    background: var(--teal-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 212, 0.4);
}

.lang-btn.active-lang {
    background: var(--teal-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 184, 212, 0.5);
}

.hero {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 60px;
}

.hero-content {
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-text h2 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 900;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.gradient-text {
    background: linear-gradient(to left, var(--teal-primary), var(--teal-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: #dbe4ee;
    line-height: 2;
    margin-bottom: 35px;
    max-width: 700px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 34px;
    border-radius: 18px;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    transition: 0.35s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    font-family: 'Vazirmatn', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal-primary), var(--teal-deep));
    color: #fff;
    box-shadow: 0 12px 25px rgba(0, 184, 212, 0.35);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 184, 212, 0.5);
}

.hero-card {
    position: relative;
}

.bus-card {
    position: relative;
    overflow: hidden;
    border-radius: 35px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 184, 212, 0.25);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(0, 184, 212, 0.1);
    padding: 18px;
}

.bus-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 25px;
    display: block;
}

.search-section {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.search-card {
    background: rgba(16, 27, 45, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(0, 184, 212, 0.3);
    padding: 35px 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.input-field {
    flex: 1;
    min-width: 180px;
}

.input-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--teal-light);
    font-weight: 500;
}

.input-field input,
.input-field select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: white;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}

.input-field select,
.input-field select option {
    background: #1e293b;
    color: white;
}

.input-field input:focus,
.input-field select:focus {
    outline: none;
    border-color: var(--teal-primary);
    box-shadow: 0 0 12px rgba(0,184,212,0.4);
}

.btn-search {
    background: linear-gradient(135deg, var(--teal-primary), var(--teal-deep));
    border: none;
    padding: 14px 32px;
    border-radius: 28px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-search:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,184,212,0.4);
}

.results-section {
    margin-top: 30px;
    background: rgba(16, 27, 45, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 20px;
    border: 1px solid rgba(0, 184, 212, 0.2);
}

.results-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-right: 15px;
    border-right: 4px solid var(--teal-primary);
}

.route-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.route-table th,
.route-table td {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    vertical-align: middle;
}

.route-table th {
    background: rgba(0,184,212,0.15);
    color: var(--teal-light);
    font-weight: 700;
}

.route-table tr:hover {
    background: rgba(0,184,212,0.08);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--muted);
}

.booking-note {
    text-align: center;
    margin-top: 30px;
    padding: 18px;
    background: rgba(255,193,7,0.12);
    border-radius: 28px;
    border-right: 5px solid #ffc107;
    font-weight: 500;
}

.booking-note i {
    color: #ffc107;
    margin-left: 8px;
}

.sellers-list {
    margin-top: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 24px;
    padding: 20px;
}

.sellers-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--teal-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.seller-card {
    background: rgba(255,255,255,0.05);
    border-radius: 18px;
    padding: 15px;
    border: 1px solid rgba(0,184,212,0.2);
    transition: 0.3s;
}

.seller-card:hover {
    background: rgba(0,184,212,0.08);
    border-color: rgba(0,184,212,0.5);
}

.seller-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--teal-glow);
    margin-bottom: 8px;
}

.seller-address,
.seller-phone {
    font-size: 0.85rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.features {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 40px 20px 80px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h3 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #fff;
}

.section-title p {
    color: #cbd5e1;
    font-size: 1.05rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 28px;
    border: 1px solid rgba(0, 184, 212, 0.15);
    padding: 35px 25px;
    transition: 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 184, 212, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(0, 184, 212, 0.1);
    border-color: rgba(0, 184, 212, 0.4);
}

.feature-icon {
    width: 75px;
    height: 75px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.teal-icon {
    background: linear-gradient(135deg, var(--teal-primary), var(--teal-deep));
}

.blue-icon {
    background: linear-gradient(135deg, #4cc9f0, #4361ee);
}

.green-icon {
    background: linear-gradient(135deg, #00c896, #00f5d4);
}

.purple-icon {
    background: linear-gradient(135deg, #9b5de5, #c77dff);
}

.feature-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: #d1d5db;
    line-height: 1.9;
    font-size: 0.98rem;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: rgba(16, 27, 45, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    border: 1px solid rgba(0, 184, 212, 0.35);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(0, 184, 212, 0.15);
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px 35px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    text-align: center;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.6);
    transform: rotate(90deg);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.modal-container h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 800;
}

.modal-container h3 .teal-highlight {
    color: var(--teal-light);
}

.modal-body-content {
    color: #d1d5db;
    line-height: 2.2;
    font-size: 1rem;
    text-align: right;
}

.modal-body-content .info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    margin-bottom: 10px;
    transition: 0.3s;
}

.modal-body-content .info-row:hover {
    background: rgba(0, 184, 212, 0.1);
}

.modal-body-content .info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.modal-body-content .info-text {
    color: #e2e8f0;
    font-size: 0.95rem;
}

.modal-body-content .info-text strong {
    color: var(--teal-light);
}

.modal-feature-list {
    list-style: none;
    padding: 0;
    text-align: right;
}

.modal-feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.modal-feature-list li::before {
    content: "✦";
    color: var(--teal-primary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 15px;
    transition: 0.3s;
}

.whatsapp-link:hover {
    background: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

.afghan-calendar {
    display: none;
    position: absolute;
    margin-top: 8px;
    background: rgba(16,27,45,0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,184,212,0.3);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    z-index: 10000;
    width: 300px;
    direction: rtl;
    color: #fff;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--teal-primary), var(--teal-deep));
    color: white;
    border-radius: 12px 12px 0 0;
}

.calendar-header button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0.5rem;
}

.calendar-grid div {
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
}

.day-name {
    font-weight: bold;
    background: rgba(255,255,255,0.08);
    margin-bottom: 4px;
    cursor: default;
    color: #94a3b8;
}

.day:hover {
    background: rgba(0,184,212,0.2);
}

.today {
    background: var(--teal-primary) !important;
    color: white;
    font-weight: bold;
}

.selected {
    background: var(--teal-deep) !important;
    color: white;
}

.empty {
    cursor: default;
}

.designer-credit {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px 20px 15px;
    margin: 0 auto;
    max-width: 800px;
}

.credit-card {
    display: inline-block;
    background: rgba(16, 27, 45, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 184, 212, 0.3);
    border-radius: 50px;
    padding: 16px 32px;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(0, 184, 212, 0.08);
    transition: 0.4s;
}

.credit-card:hover {
    border-color: rgba(0, 184, 212, 0.6);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 184, 212, 0.2);
    transform: translateY(-3px);
}

.credit-card span {
    color: #cbd5e1;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.credit-card .name-highlight {
    color: var(--teal-glow);
    font-weight: 800;
    font-size: 1rem;
    text-shadow: 0 0 18px rgba(0, 184, 212, 0.5);
    letter-spacing: 1px;
}

footer {
    position: relative;
    z-index: 2;
    margin-top: 10px;
    padding: 30px 20px;
    border-top: 1px solid rgba(0, 184, 212, 0.15);
    text-align: center;
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-container::-webkit-scrollbar {
    width: 6px;
}

.modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.modal-container::-webkit-scrollbar-thumb {
    background: rgba(0, 184, 212, 0.4);
    border-radius: 3px;
}

.btn-buy {
    background: linear-gradient(135deg, var(--teal-primary), var(--teal-deep));
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-family: 'Vazirmatn', sans-serif;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 184, 212, 0.3);
}

.btn-buy:hover {
    background: linear-gradient(135deg, var(--teal-light), var(--teal-dark));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 184, 212, 0.5);
}

.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    overflow-y: auto;
}

.booking-modal.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
}

.booking-modal .modal-container {
    background: rgba(16,27,45,0.98);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(0,184,212,0.3);
    border-radius: 24px;
    max-width: 1200px;
    width: 98%;
    margin: 20px auto;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 70px rgba(0,0,0,0.7);
}

.booking-modal .modal-header {
    padding: 20px 28px;
    border-bottom: 1px solid rgba(0,184,212,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.booking-modal .modal-header h4 {
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.booking-modal .close-btn {
    background: rgba(255,255,255,0.08);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-modal .close-btn:hover {
    background: rgba(239,68,68,0.6);
    color: white;
}

.booking-modal .modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    color: #cbd5e1;
}

.booking-modal .modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.booking-modal .seats-container {
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(0,184,212,0.2);
}

.booking-modal .bus-layout {
    background: linear-gradient(135deg, rgba(0,184,212,0.1), rgba(0,151,167,0.05));
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,184,212,0.2);
}

.booking-modal .bus-front {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, var(--teal-primary), var(--teal-deep));
    color: white;
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 700;
}

.booking-modal .seats-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.booking-modal .seat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.booking-modal .row-label {
    width: 45px;
    font-weight: 700;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

.booking-modal .row-seats {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
    direction: ltr;
}

.booking-modal .seat {
    width: 55px;
    height: 55px;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(0,184,212,0.3);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}

.booking-modal .seat:hover:not(.booked):not(.sold) {
    border-color: var(--teal-primary);
    transform: scale(1.08);
    background: rgba(0,184,212,0.2);
}

.booking-modal .seat.selected {
    background: linear-gradient(135deg, var(--teal-primary), var(--teal-deep));
    color: white;
    border-color: transparent;
}

.booking-modal .seat.booked,
.booking-modal .seat.sold {
    background: rgba(239,68,68,0.3);
    color: #fca5a5;
    border-color: rgba(239,68,68,0.5);
    cursor: not-allowed;
}

.booking-modal .seat-number {
    font-size: 14px;
    font-weight: 800;
}

.booking-modal .aisle-space {
    width: 30px;
    height: 55px;
    background: transparent;
}

.booking-modal .door-space {
    width: 55px;
    height: 55px;
    background: rgba(255,255,255,0.05);
    border: 2px dashed rgba(0,184,212,0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 20px;
    margin-left: 65px;
}

.booking-modal .empty-space {
    width: 55px;
    height: 55px;
    background: transparent;
}

.booking-modal .row-seats.tight-row {
    gap: 0 !important;
}

.booking-modal .passenger-form {
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(0,184,212,0.2);
    max-height: 500px;
    overflow-y: auto;
    color: #cbd5e1;
}

.booking-modal .passenger-card {
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(0,184,212,0.15);
}

.booking-modal .passenger-title {
    font-weight: 700;
    color: var(--teal-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.booking-modal .form-group {
    margin-bottom: 12px;
}

.booking-modal .form-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 5px;
    display: block;
}

.booking-modal .form-control {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(0,184,212,0.25);
    color: #fff;
    border-radius: 12px;
    font-size: 13px;
    font-family: 'Vazirmatn', sans-serif;
    transition: var(--transition);
}

.booking-modal .form-control:focus {
    border-color: var(--teal-primary);
    outline: none;
    background: rgba(0,184,212,0.08);
    box-shadow: 0 0 0 3px rgba(0,184,212,0.2);
}

.booking-modal .btn-primary {
    background: linear-gradient(135deg, var(--teal-primary), var(--teal-deep));
    border: none;
    padding: 14px;
    border-radius: 16px;
    font-weight: 700;
    width: 100%;
    color: white;
    margin-top: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Vazirmatn', sans-serif;
}

.booking-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,184,212,0.4);
}

.booking-modal .selected-info {
    background: linear-gradient(135deg, var(--teal-primary), var(--teal-deep));
    color: white;
    padding: 14px;
    border-radius: 16px;
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

.booking-modal .route-info-modal {
    background: rgba(0,0,0,0.25);
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid rgba(0,184,212,0.2);
    color: #cbd5e1;
}

.route-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.route-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(0, 184, 212, 0.3);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.route-card:hover {
    background: linear-gradient(145deg, rgba(0, 184, 212, 0.15), rgba(0, 184, 212, 0.06));
    border-color: rgba(0, 184, 212, 0.6);
    box-shadow: 0 12px 30px rgba(0, 184, 212, 0.15);
    transform: translateY(-5px);
}
.route-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
    padding-bottom: 12px;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}

.company-info i {
    color: var(--teal-light);
}

.bus-type-badge {
    background: linear-gradient(135deg, var(--teal-primary), var(--teal-deep));
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.route-card-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 14px;
    padding: 15px;
}

.route-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.point-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.point-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    word-break: break-word;
}

.point-name small {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.route-arrow {
    font-size: 1.5rem;
    color: var(--teal-light);
    flex-shrink: 0;
}

.route-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.detail-item i {
    color: var(--teal-light);
    width: 18px;
    text-align: center;
}

.seat-status.available {
    color: #4ade80;
    font-weight: 700;
}

.seat-status.limited {
    color: #facc15;
    font-weight: 700;
}

.seat-status.full {
    color: #f87171;
    font-weight: 700;
}

.route-card-footer {
    margin-top: auto;
    text-align: center;
}

.route-card-footer .btn-buy {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 1rem;
}


   @media (max-width: 768px) {
       .navbar {
           padding: 12px 14px;
           flex-wrap: wrap;
           row-gap: 10px;
       }

       .logo-frame { width: 56px; height: 56px; border-radius: 16px; }

       .brand h1 { font-size: 1.5rem; transform: translateY(-6px); }

       .nav-links {
           order: 3;
           width: 100%;
           justify-content: center;
           gap: 16px;
           flex-wrap: wrap;
           font-size: 0.9rem;
       }

       .language-switcher { gap: 6px; }
       .lang-btn { padding: 8px 12px; font-size: 0.85rem; }
       .hero { padding: 150px 16px 30px; }

       .hero-content {
           grid-template-columns: 1fr;
           gap: 24px;
           text-align: center;
       }

       .hero-text h2 { font-size: 2rem; }

       .hero-text p {
           font-size: 0.95rem;
           margin-left: auto;
           margin-right: auto;
       }

       .hero-buttons { justify-content: center; }

       .bus-card img { height: 400px; }

       .search-card { padding: 20px 14px; border-radius: 22px; }

       .form-group { flex-direction: column; align-items: stretch; }

       .results-title { font-size: 1.3rem; }

       .route-table { display: block; overflow-x: auto; white-space: nowrap; font-size: 0.8rem; }

       .booking-note { padding: 14px; border-radius: 18px; font-size: 0.85rem; }

       .sellers-grid { grid-template-columns: 1fr; }
       .features { padding: 20px 14px 50px; }

       .section-title h3 { font-size: 1.8rem; }

       .feature-grid { grid-template-columns: 1fr; gap: 16px; }

       .feature-card { padding: 22px 16px;   }

       .modal-container {
           padding: 24px 16px;
           border-radius: 20px;
           max-height: 90vh;
       }

       .modal-icon { font-size: 3rem; }
       .modal-container h3 { font-size: 1.5rem; }

       .booking-modal { padding: 0; align-items: stretch; }

       .booking-modal .modal-container {
           width: 100%;
           max-width: 100%;
           height: 100%;
           max-height: 100dvh;
           margin: 0;
           border-radius: 0;
           min-height: 0;
       }

       .booking-modal .modal-header { padding: 14px 16px; }
       .booking-modal .modal-header h4 { font-size: 15px; }

       .booking-modal .modal-body {
           display: flex !important;
           flex-direction: column;
           grid-template-columns: unset;
           padding: 14px;
           gap: 14px;
           overflow-y: auto;
           min-height: 0;
           -webkit-overflow-scrolling: touch;
           overscroll-behavior: contain;
       }

       .booking-modal .seats-container,
       .booking-modal .passenger-form {
           flex-shrink: 0;
           padding: 16px;
           max-height: none;
       }

       .booking-modal .bus-layout { padding: 14px; margin-bottom: 14px; }

       .booking-modal .seats-grid { gap: 8px; }

       .booking-modal .seat-row { gap: 6px; flex-wrap: nowrap; }

       .booking-modal .row-seats {
           display: grid !important;
           grid-template-columns: repeat(3, 40px) !important;
           grid-auto-flow: column !important;
           justify-content: center !important;
           flex-wrap: nowrap !important;
           gap: 0 !important;
       }

       .booking-modal .row-seats.tight-row {
           display: flex !important;
           flex-wrap: wrap !important;
           justify-content: center !important;

       }

       .booking-modal .row-label { width: 32px; font-size: 11px; }

       .booking-modal .seat {
           width: 40px;
           height: 40px;
           font-size: 11px;
           border-radius: 9px;
       }

       .booking-modal .door-space {
           width: 40px;
           height: 40px;
           margin-left: 0 !important;
           font-size: 16px;
       }

       .booking-modal .aisle-space { width: 16px; height: 40px; }
       .booking-modal .empty-space { width: 40px; height: 40px; }

       .booking-modal .seat-row:has(.door-space) .row-seats {
           gap: 14px !important;
       }

       .booking-modal .form-control { font-size: 13px; padding: 10px 14px; }

       .designer-credit { padding: 20px 14px 10px; }
       .credit-card { padding: 12px 20px; }
       .credit-card span { font-size: 0.8rem; }

       
   }


.swal2-container {
    z-index: 999999 !important;
}

.swal2-popup {
    z-index: 1000000 !important;
}

body > .swal2-container {
    z-index: 999999 !important;
}
