:root {
    --yb-primary: #2563eb;
    --yb-primary-dark: #1e40af;
    --yb-accent: #fb7185;
    --yb-accent-dark: #f43f5e;
    --yb-dark: #0f172a;
    --yb-light: #eef3fb;
    --yb-muted: #64748b;
}

* { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', system-ui, sans-serif;
    background: var(--yb-light);
    color: #1e293b;
}

.text-accent { color: var(--yb-accent) !important; }
.text-primary-yb { color: var(--yb-primary) !important; }

/* ---------- Navbar ---------- */
.yb-navbar {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 4px 20px rgba(15, 23, 42, .06);
    padding-top: .65rem;
    padding-bottom: .65rem;
}
.yb-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.3rem;
    letter-spacing: .2px;
    color: var(--yb-dark);
}
.yb-navbar .brand-logo,
.dash-brand .brand-logo {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--yb-primary), var(--yb-accent));
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .3);
}
.yb-navbar .nav-link {
    color: #334155;
    font-weight: 500;
    border-radius: 8px;
    padding: .5rem .9rem;
    transition: color .15s ease, background .15s ease;
}
.yb-navbar .nav-link:hover {
    color: var(--yb-primary);
    background: rgba(37, 99, 235, .08);
}
/* Mobile (collapsed) navbar: full-width, evenly stacked buttons */
@media (max-width: 991.98px) {
    .yb-navbar .navbar-collapse { padding-bottom: .35rem; }
    .yb-navbar .navbar-nav .btn { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn-accent {
    background: var(--yb-accent);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(251, 113, 133, .4);
}
.btn-accent:hover { background: var(--yb-accent-dark); color: #fff; }

/* Show/hide password eye toggle */
.pw-toggle { cursor: pointer; background: #fff; }
.pw-toggle:hover { color: var(--yb-primary); }

/* Payment request actions: equal full-width buttons on phones */
@media (max-width: 575.98px) {
    .pay-actions { width: 100%; }
    .pay-actions form { flex: 1 1 0; }
}

/* Highlighted primary CTA — Book Tickets (solid indigo) */
.btn-book-hl {
    background: #6366f1;
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(99, 102, 241, .35);
}
.btn-book-hl:hover { background: #4f46e5; color: #fff; }

.btn-primary {
    background: var(--yb-primary);
    border-color: var(--yb-primary);
    font-weight: 600;
}
.btn-primary:hover { background: var(--yb-primary-dark); border-color: var(--yb-primary-dark); }

.btn-light-glass {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
    font-weight: 600;
    backdrop-filter: blur(4px);
}
.btn-light-glass:hover { background: rgba(255, 255, 255, .26); color: #fff; }

/* ---------- Hero ---------- */
.yb-hero {
    position: relative;
    background: radial-gradient(900px 500px at 90% 10%, #3b82f6 0%, transparent 55%),
                linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
    color: #fff;
    padding: 5.5rem 0 8.5rem;
    overflow: hidden;
}
.yb-hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 70px;
    background: var(--yb-light);
    clip-path: ellipse(80% 100% at 50% 100%);
    z-index: 1;
}
/* decorative blobs + dot grid */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    opacity: .5;
    z-index: 0;
}
.hero-blob.b1 { width: 320px; height: 320px; top: -90px; right: -60px; background: rgba(59, 130, 246, .45); }
.hero-blob.b2 { width: 260px; height: 260px; bottom: 20px; left: -100px; background: rgba(251, 113, 133, .35); }
.hero-dots {
    position: absolute;
    top: 40px; left: 40px;
    width: 160px; height: 110px;
    background-image: radial-gradient(rgba(255, 255, 255, .35) 1.6px, transparent 1.6px);
    background-size: 18px 18px;
    opacity: .5;
    z-index: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    padding: .4rem 1rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 1.3rem;
}
.hero-badge .pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, .7);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); }
    70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.yb-hero h1 { font-weight: 700; font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.12; }
.yb-hero h1 .hl {
    color: #fbbf24;
    position: relative;
    white-space: nowrap;
}
.yb-hero h1 .hl::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 8px;
    background: rgba(251, 191, 36, .25);
    border-radius: 4px;
    z-index: -1;
}
.yb-hero p.lead { font-size: 1.13rem; color: rgba(255, 255, 255, .9); max-width: 520px; }

.hero-trust { gap: .65rem; }
.hero-avatars { display: flex; }
.hero-avatars span {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid #1e3a8a;
    margin-left: -10px;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 600; color: #fff;
}
.hero-avatars span:first-child { margin-left: 0; }
.hero-stars { color: #fbbf24; }

.hero-stats { gap: 2.4rem; }
.hero-stats .num { font-size: 1.7rem; font-weight: 700; color: #fbbf24; }
.hero-stats .lbl { font-size: .82rem; color: rgba(255, 255, 255, .78); }

/* Hero image (right) */
.hero-photo-wrap {
    position: relative;
    z-index: 2;
    animation: floatUp .8s ease both;
}
.hero-photo-wrap::before {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .5), rgba(251, 113, 133, .5));
    filter: blur(6px);
    z-index: -1;
}
.hero-photo {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 24px;
    border: 4px solid rgba(255, 255, 255, .6);
    box-shadow: 0 30px 60px rgba(8, 15, 40, .55);
}
.hero-tag {
    position: absolute;
    background: #fff;
    color: #1e293b;
    border-radius: 16px;
    padding: .8rem 1rem;
    box-shadow: 0 16px 34px rgba(8, 15, 40, .3);
    display: flex;
    align-items: center;
    gap: .65rem;
    z-index: 3;
}
.hero-tag .ico {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
}
.hero-tag-price { bottom: 26px; left: -20px; animation: floatY 4s ease-in-out infinite; }
.hero-tag-price .ico { background: rgba(37, 99, 235, .12); color: var(--yb-primary); }
.hero-tag-seats { top: 26px; right: -20px; animation: floatY 4s ease-in-out infinite 1.2s; }
.hero-tag-seats .ico { background: rgba(251, 113, 133, .14); color: var(--yb-accent); }
.hero-tag .t-num { font-weight: 700; font-size: 1.05rem; line-height: 1; }
.hero-tag .t-lbl { font-size: .72rem; color: var(--yb-muted); }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
@keyframes floatUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Compact hero (booking homepage) */
.yb-hero-compact { padding: 5rem 0 7rem; min-height: 440px; display: flex; align-items: center; }
.yb-hero-compact h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
.yb-hero-compact .lead { max-width: 560px; }

/* Trips section header + filter bar */
.trips-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.8rem;
}
.trip-filter {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: .4rem .4rem .4rem 1.1rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}
.trip-filter i { color: var(--yb-primary); font-size: 1.1rem; }
.trip-filter input {
    border: none;
    outline: none;
    padding: .35rem .25rem;
    font-size: .95rem;
    width: 150px;
    background: transparent;
}
.trip-filter .btn { border-radius: 50px; }
@media (max-width: 575px) {
    .trip-filter { width: 100%; }
    .trip-filter input { flex: 1; width: auto; }
}

/* ---------- Inner page header ---------- */
.yb-page-head {
    background: radial-gradient(700px 300px at 80% -20%, #3b82f6 0%, transparent 55%),
                linear-gradient(135deg, #0f172a, #1e40af);
    color: #fff;
    padding: 3.5rem 0 5rem;
}
.yb-page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.yb-page-head .head-quote {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.12rem;
    color: rgba(255, 255, 255, .9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}
.yb-page-head .head-info {
    display: flex;
    gap: 1.4rem;
    justify-content: center;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, .82);
    font-size: .88rem;
}
.yb-page-head .head-info span { display: inline-flex; align-items: center; }

/* Trip header meta line (date / time / Gujarati date) */
.trip-head-meta {
    color: #fff;
    font-weight: 500;
    font-size: .95rem;
    margin-top: .25rem;
}

/* Trip description under the header meta line */
.trip-head-desc {
    color: rgba(255, 255, 255, .85);
    font-size: .9rem;
    line-height: 1.7;
    max-width: 720px;
    margin-top: .75rem;
}

/* ---------- Search card ---------- */
.yb-search-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .15);
    padding: 1.6rem;
    position: relative;
    z-index: 5;
    margin-top: -4rem;
}

/* ---------- Section heading ---------- */
.section-title {
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: .6rem;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 52px; height: 3px;
    background: var(--yb-accent);
    border-radius: 2px;
}
.text-center .section-title::after { left: 50%; transform: translateX(-50%); }
.section-sub { color: var(--yb-muted); max-width: 560px; }

/* ---------- Trip cards ---------- */
.trip-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(15, 23, 42, .07);
    transition: transform .2s ease, box-shadow .2s ease;
    background: #fff;
}
.trip-card:hover { transform: translateY(-6px); box-shadow: 0 16px 38px rgba(15, 23, 42, .15); }
.trip-card .card-strip { height: 6px; background: linear-gradient(90deg, var(--yb-primary), var(--yb-accent)); }
.trip-card { min-height: 340px; }
.trip-card .card-body { padding: 1.6rem 1.5rem; }
.trip-card .route { font-weight: 600; font-size: 1.32rem; }
.trip-card .price { font-weight: 700; color: var(--yb-primary); font-size: 1.55rem; }
.trip-divider { margin: .4rem 0 1rem; border-color: #e9eef6; opacity: 1; }
/* Card description, cut at 2 full lines with an ellipsis. */
.trip-desc {
    color: #64748b;
    font-size: .85rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.trip-more {
    font-size: .82rem;
    font-weight: 600;
    color: var(--yb-primary);
    text-decoration: none;
}
.trip-more:hover { text-decoration: underline; }
.seat-badge { background: rgba(37, 99, 235, .1); color: var(--yb-primary-dark); font-weight: 600; }
.seat-badge.low { background: rgba(220, 53, 69, .12); color: #c22; }
.guj-date-badge {
    display: inline-block;
    background: rgba(245, 158, 11, .12);
    color: #b45309;
    font-weight: 600;
    font-size: .82rem;
    padding: .35rem .7rem;
    border-radius: 8px;
}

/* ---------- Trip list (compact rows) ---------- */
.trip-list { display: flex; flex-direction: column; gap: .85rem; }
.trip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border-radius: 14px;
    border-left: 4px solid var(--yb-primary);
    padding: 1rem 1.3rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
    transition: transform .15s ease, box-shadow .15s ease;
}
.trip-row:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15, 23, 42, .12); }
.tr-route {
    font-weight: 600;
    font-size: 1.12rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
}
.tr-tag {
    background: rgba(37, 99, 235, .1);
    color: var(--yb-primary-dark);
    font-size: .72rem;
    font-weight: 600;
    padding: .2rem .55rem;
    border-radius: 50px;
}
.tr-meta {
    color: var(--yb-muted);
    font-size: .85rem;
    margin-top: .35rem;
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
}
.tr-guj { color: #b45309; }
.tr-side { display: flex; align-items: center; gap: 1.1rem; flex-shrink: 0; }
.tr-price { font-weight: 700; color: var(--yb-primary); font-size: 1.2rem; white-space: nowrap; }
.tr-price small { color: var(--yb-muted); font-weight: 500; font-size: .7rem; }

/* ---------- How it works ---------- */
.step-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.4rem;
    height: 100%;
    box-shadow: 0 6px 22px rgba(15, 23, 42, .06);
    transition: transform .2s ease;
    position: relative;
}
.step-card:hover { transform: translateY(-4px); }
.step-num {
    position: absolute;
    top: -16px; left: 1.4rem;
    width: 38px; height: 38px;
    background: var(--yb-accent);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(251, 113, 133, .45);
}
.step-card .step-icon { font-size: 2rem; color: var(--yb-primary); margin-bottom: .6rem; }

/* ---------- Features ---------- */
.feature-icon {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(37, 99, 235, .12);
    color: var(--yb-primary);
    font-size: 1.6rem;
    margin: 0 auto 1rem;
}

/* ---------- CTA band ---------- */
.yb-cta {
    background: radial-gradient(600px 300px at 90% 0%, #3b82f6 0%, transparent 60%),
                linear-gradient(135deg, var(--yb-primary-dark), var(--yb-primary));
    border-radius: 22px;
    color: #fff;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.yb-cta h3 { font-weight: 700; }

/* ---------- Payment page ---------- */
.pb-6 { padding-bottom: 6rem !important; }
.pay-wrap { position: relative; z-index: 5; margin-top: -4rem; }
.pay-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .09);
    padding: 1.4rem;
    height: 100%;
}
.pay-card .form-label { font-size: .88rem; margin-bottom: .25rem; }
.pay-amount-box {
    background: radial-gradient(500px 200px at 90% 0%, #3b82f6 0%, transparent 60%),
                linear-gradient(135deg, var(--yb-primary-dark), var(--yb-primary));
    color: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.4rem;
}
.pay-amount-box { padding: 1.2rem; }
.pay-amount-box .label { font-size: .8rem; opacity: .85; }
.pay-amount-box .amt { font-size: 2.1rem; font-weight: 700; line-height: 1.05; }
.pay-timer {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .3);
    padding: .35rem .9rem; border-radius: 50px;
    font-size: .85rem; margin-top: .7rem;
}
.pay-step-label {
    display: flex; align-items: center; gap: .55rem;
    font-weight: 700; font-size: 1.05rem;
    margin-bottom: 1rem;
}
.pay-step-label span {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--yb-accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; flex-shrink: 0;
}
.pay-qr {
    max-width: 230px; width: 100%;
    border: 6px solid #fff; border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
    outline: 1px solid #e2e8f0;
}
.upi-id-box {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    background: #f1f5fb; border-radius: 10px; padding: .6rem .9rem;
}
.sum-row {
    display: flex; justify-content: space-between;
    padding: .5rem 0; border-bottom: 1px dashed #e6ebf3; font-size: .92rem;
}


/* Icon inputs */
.pay-input .input-group-text {
    background: #fff;
    border-right: 0;
    color: var(--yb-primary);
}
.pay-input .form-control { border-left: 0; padding-left: .25rem; }
.pay-input:focus-within .input-group-text,
.pay-input:focus-within .form-control {
    border-color: var(--yb-primary);
    box-shadow: none;
}
.pay-input:focus-within {
    border-radius: .5rem;
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15);
}

/* Screenshot dropzone */
.upload-drop {
    display: block;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
    background: #f8fafc;
    margin-bottom: 0;
}
.upload-drop:hover { border-color: var(--yb-primary); background: #eef4ff; }
.upload-drop.has-file { border-style: solid; border-color: var(--yb-primary); background: #fff; }
.upload-inner i { font-size: 1.5rem; color: var(--yb-primary); display: block; margin-bottom: .2rem; }
.upload-inner .up-title { font-weight: 600; font-size: .92rem; }
.upload-preview { max-height: 130px; border-radius: 10px; margin-top: .7rem; box-shadow: 0 6px 16px rgba(15, 23, 42, .12); }

/* ---------- Seat map ---------- */
.seat-legend { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--yb-muted); }
.seat-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.seat-dot-legend { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.seat-dot-legend.available { background: #e2e8f0; border: 1px solid #cbd5e1; }
.seat-dot-legend.selected  { background: var(--yb-accent); }
.seat-dot-legend.taken     { background: #94a3b8; }

/* Two-deck sleeper seat map (Lower / Upper) */
.book-container { max-width: 1480px; }

.deck-wrap { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4rem; align-items: flex-start; justify-content: center; margin-top: 2.5rem; }
.deck { flex: 1 1 280px; max-width: 340px; }
.deck-title {
    text-align: center; color: var(--yb-primary-dark);
    font-weight: 700; font-size: 1.1rem; margin-bottom: .85rem;
}
.deck-cabin {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.1rem 1.2rem 1.4rem;
    background: #fff;
}
.cabin-front {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 30px;
    border-bottom: 2px dashed #e2e8f0;
    padding-bottom: .55rem;
    margin-bottom: .85rem;
}
.driver-box {
    width: 32px; height: 30px;
    border: 1.5px solid #cbd5e1;
    border-radius: 7px;
    background: #f8fafc;
    color: #475569;
    font-size: 1rem; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
}

.seat-map {
    display: grid;
    grid-template-columns: 1fr .5fr 1fr 1fr; /* single | aisle | mid | window */
    gap: 16px 12px;
    justify-items: center;
    align-items: center;
}
.aisle { width: 100%; }
.seat {                          /* sleeper berth: number on top, price below */
    width: 100%; max-width: 64px;
    height: 84px;
    border-radius: 10px;
    overflow: hidden;
    display: flex; flex-direction: column;
    position: relative;
    user-select: none;
    transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.seat span { pointer-events: none; }
.seat-no {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.05rem; line-height: 1;
}
.seat-price {
    font-size: .82rem; font-weight: 700; text-align: center;
    padding: 4px 2px; line-height: 1;
    background: #f3f5f9;
}
.seat-empty { visibility: hidden; }
.seat.available {
    background: #fff;
    border: 1.5px solid #cbd5e1;
    color: #1e3a8a;                 /* dark-blue seat number */
    cursor: pointer;
}
.seat.available:hover { border-color: var(--yb-primary); box-shadow: 0 4px 10px rgba(37, 99, 235, .12); }
.seat.available input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 2; }
.seat.available input:focus { outline: none; }
.seat.selected {
    background: var(--yb-accent) !important;  /* pink = selected */
    border-color: var(--yb-accent) !important;
    color: #fff !important;
}
.seat.selected .seat-price { background: rgba(255, 255, 255, .18); }
.seat.taken { background: #94a3b8; border: 1.5px solid #94a3b8; color: #fff; cursor: not-allowed; } /* booked */
.seat.held  { background: #fcd9a5; border: 1.5px solid #fcd9a5; color: #92400e; cursor: not-allowed; } /* held */

.booking-summary { position: sticky; top: 90px; }

/* Booking-summary section titles + single-line passenger rows */
.summary-title { display: flex; align-items: center; font-weight: 700; font-size: .98rem; color: var(--yb-dark); margin-bottom: .85rem; }
.summary-div { margin: 1.25rem 0; border-top: 1px solid #eef2f7; opacity: 1; }
.pax-empty { color: #94a3b8; font-size: .82rem; padding: .2rem 0 .3rem; }
.pax-rows { display: flex; flex-direction: column; gap: .55rem; max-height: 340px; overflow-y: auto; padding-right: 3px; }
.pax-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
    padding: .6rem .65rem; border: 1px solid #e8edf5; border-radius: 11px; background: #fbfcff;
}
.pax-row .pax-seat {
    flex: 0 0 auto; white-space: nowrap;
    font-weight: 700; font-size: .72rem; letter-spacing: .02em; text-transform: uppercase;
    color: var(--yb-primary-dark); background: #e8f0fe;
    border-radius: 7px; padding: .45rem .55rem;
}
.pax-row .form-control, .pax-row .form-select { font-size: .85rem; padding: .42rem .5rem; }
.pax-row [data-f=name]   { flex: 1 1 110px; min-width: 0; }
.pax-row [data-f=gender] { flex: 0 0 112px; }
.pax-row [data-f=age]    { flex: 0 0 70px; }
@media (max-width: 575.98px) {
    .pax-row [data-f=name], .pax-row [data-f=gender], .pax-row [data-f=age] { flex: 1 1 100%; }
}

/* Passenger summary on the payment page */
.pay-pax { border-top: 1px dashed #e2e8f0; padding-top: .9rem; margin-top: .25rem; }
.pay-pax-list { max-height: 200px; overflow-y: auto; padding-right: 4px; }
.pay-pax-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid #f1f5f9; }
.pay-pax-item:last-child { border-bottom: 0; }
.pay-pax-seat { font-size: .72rem; font-weight: 700; color: var(--yb-primary-dark); background: #eef4ff; border-radius: 6px; padding: .15rem .45rem; }
.pay-pax-name { font-weight: 600; }
.pay-pax-meta { font-size: .8rem; color: #64748b; margin-left: auto; }

/* Passenger list on the track / ticket page */
.track-pax { border: 1px solid #eef2f7; border-radius: 10px; padding: .9rem 1rem; background: #fff; }
.track-pax-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: #94a3b8; font-weight: 700; margin-bottom: .6rem; }
.track-pax-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid #f1f5f9; }
.track-pax-item:last-child { border-bottom: 0; }
.track-pax-seat { font-size: .72rem; font-weight: 700; color: var(--yb-primary-dark); background: #eef4ff; border-radius: 6px; padding: .15rem .45rem; }
.track-pax-name { font-weight: 600; color: #1f2937; }
.track-pax-meta { font-size: .8rem; color: #64748b; margin-left: auto; }

/* Booking summary */
.booking-summary .sum-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 0;
    font-size: .95rem;
    border-bottom: 1px dashed #e6ebf3;
}
.booking-summary .sum-line span:first-child { color: var(--yb-muted); }
.booking-summary .sum-line span:last-child { font-weight: 600; }
.booking-summary .total-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(37, 99, 235, .07);
    border: 1px solid rgba(37, 99, 235, .15);
    border-radius: 12px;
    padding: .85rem 1rem;
    margin: 1rem 0;
}
.booking-summary .total-box span:first-child { font-weight: 700; }
.booking-summary .total-box span:last-child { font-weight: 700; font-size: 1.4rem; color: var(--yb-primary); }
.booking-summary .hold-note {
    color: var(--yb-muted);
    font-size: .8rem;
    text-align: center;
    margin: .7rem 0 0;
}
/* No colored glow on disabled buttons */
.btn:disabled, .btn.disabled { box-shadow: none !important; opacity: .55; }

/* ---------- Login ---------- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(800px 400px at 80% 0%, #3b82f6 0%, transparent 55%),
                linear-gradient(135deg, #0f172a, #1e40af);
}
.login-card {
    background: #fff;
    width: 100%;
    max-width: 410px;
    border-radius: 20px;
    padding: 2.4rem;
    box-shadow: 0 30px 60px rgba(8, 15, 40, .45);
}
.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--yb-primary), var(--yb-accent));
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .35);
}
.login-card .input-group-text { background: #f1f5fb; border-right: none; color: var(--yb-muted); }
.login-card .form-control { border-left: none; }

/* ---------- Admin layout ---------- */
:root { --sidebar-w: 265px; --topbar-h: 64px; }

.dash-body { background: #eef2f9; }

.dash-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .05);
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0 1.1rem;
    z-index: 1040;
}
.dash-brand {
    display: flex; align-items: center; gap: .55rem;
    font-weight: 700; font-size: 1.15rem;
    color: var(--yb-dark); text-decoration: none;
}
.sidebar-toggle { font-size: 1.3rem; color: var(--yb-dark); }

.dash-sidebar {
    position: fixed;
    top: var(--topbar-h); bottom: 0; left: 0;
    width: var(--sidebar-w);
    background: var(--yb-dark);
    padding: 1.2rem .8rem;
    overflow-y: auto;
    z-index: 1035;
}
.dash-menu { list-style: none; padding: 0; margin: 0; }
.dash-menu a {
    display: flex; align-items: center; gap: .75rem;
    padding: .7rem .9rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    margin-bottom: .25rem;
    transition: background .15s ease, color .15s ease;
}
.dash-menu a i { font-size: 1.15rem; flex-shrink: 0; }
.dash-menu a span { white-space: nowrap; }
.dash-menu a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.dash-menu a.active {
    background: linear-gradient(135deg, var(--yb-primary), var(--yb-accent));
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .35);
}
/* Thank-you page */
.ty-icon {
    width: 68px; height: 68px;
    margin: 0 auto;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 2.1rem;
    display: flex; align-items: center; justify-content: center;
}
.ty-ref {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: .9rem 1rem;
}
.ty-ref-label {
    color: #64748b;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.ty-ref-code {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--yb-dark);
}

.bell-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    color: #475569;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.bell-link:hover { background: #eef2f7; color: var(--yb-primary); }
.bell-count {
    position: absolute;
    top: 2px; right: 2px;
    min-width: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .64rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

.nav-badge {
    margin-left: auto;
    flex-shrink: 0;
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.5;
}

.dash-main {
    margin-left: var(--sidebar-w);
    margin-top: var(--topbar-h);
    min-height: calc(100vh - var(--topbar-h));
}

.sidebar-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, .5);
    z-index: 1030;
    display: none;
}

@media (max-width: 991px) {
    .dash-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .dash-main { margin-left: 0; }
    body.sidebar-open .dash-sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-backdrop { display: block; }
}

/* Admin stat cards */
.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
    display: flex; align-items: center; gap: 1rem;
    height: 100%;
}
.stat-card .stat-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff; flex-shrink: 0;
}
.stat-card .stat-num { font-size: 1.7rem; font-weight: 700; line-height: 1; }
.stat-card .stat-lbl { color: var(--yb-muted); font-size: .85rem; }
.bg-grad-blue   { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.bg-grad-amber  { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.bg-grad-green  { background: linear-gradient(135deg, #059669, #10b981); }
.bg-grad-coral  { background: linear-gradient(135deg, #f43f5e, #fb7185); }

/* Trip description panel (shown on the ticket / track page) */
.trip-desc-card {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-left: 4px solid var(--yb-primary);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
}
.trip-desc-title {
    display: flex; align-items: center; gap: .45rem;
    font-weight: 700; font-size: .82rem;
    text-transform: uppercase; letter-spacing: .05em;
    color: var(--yb-primary-dark);
    margin-bottom: .65rem;
}
.trip-desc-title i { color: var(--yb-primary); font-size: 1rem; }
.trip-desc {
    color: #475569;
    font-size: .95rem;
    line-height: 1.8;
    white-space: normal;
}
.trip-desc p { margin: 0 0 .75rem; }
.trip-desc p:last-child { margin-bottom: 0; }

/* Track booking result card */
.track-result { padding: 0; overflow: hidden; }
.track-head {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: .75rem;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid #eef2f7;
}
.track-ref-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; font-weight: 600; }
.track-ref { font-size: 1.6rem; font-weight: 800; letter-spacing: 1px; color: var(--yb-dark); }
.track-banner { display: flex; align-items: center; gap: .55rem; padding: .8rem 1.5rem; font-size: .9rem; font-weight: 500; }
.track-banner i { font-size: 1.1rem; flex-shrink: 0; }
.track-banner-pending   { background: #fff7ed; color: #9a3412; }
.track-banner-approved  { background: #ecfdf5; color: #065f46; }
.track-banner-rejected,
.track-banner-cancelled { background: #fef2f2; color: #991b1b; }
.track-body { padding: 1.5rem; }
.track-details .td-item { display: flex; align-items: flex-start; gap: .7rem; }
.td-ico {
    width: 38px; height: 38px; border-radius: 10px;
    background: #f1f5f9; color: var(--yb-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; flex-shrink: 0;
}
.td-ico-amt { background: rgba(5, 150, 105, .12); color: #059669; }
.td-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #94a3b8; font-weight: 600; }
.td-value { display: block; font-weight: 700; color: #1f2937; font-size: .95rem; }
.td-amount { color: #059669; font-size: 1.05rem; }
.track-lock {
    background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px;
    padding: .8rem 1rem; color: #64748b; font-size: .85rem; text-align: center;
}

/* Admin seat-pricing editor */
.price-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #eef2f7; }
.price-deck-wrap { gap: 2rem; margin-top: .5rem; }
.price-deck-wrap .deck { max-width: 320px; }
.pseat {                          /* berth, matching the frontend seat map */
    width: 100%; max-width: 64px; height: 84px;
    border: 1.5px solid #cbd5e1; border-radius: 10px; background: #fff;
    overflow: hidden;
    color: #1e3a8a;
    display: flex; flex-direction: column;
    cursor: pointer; user-select: none;
    transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.pseat:hover { border-color: var(--yb-primary); box-shadow: 0 4px 10px rgba(37, 99, 235, .12); }
.pseat-num {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.05rem; line-height: 1;
}
.pseat-price {
    font-size: .72rem; font-weight: 600; text-align: center;
    padding: 4px 2px; line-height: 1;
    background: #f3f5f9;
}
.pseat.selected { border-color: var(--yb-primary); background: #eef4ff; box-shadow: inset 0 0 0 2px rgba(37, 99, 235, .35); }
.pseat.selected .pseat-price { background: #dbe7fe; }
.pseat.just-set { border-color: #22c55e; background: #dcfce7; }
.pseat.just-set .pseat-price { background: #bbf7d0; color: #166534; }
.pseat.status-booked { border-style: dashed; opacity: .85; }
.pseat.status-held { border-color: #f6c177; }
.pseat.locked { cursor: not-allowed; opacity: .6; }
.pseat.locked:hover { border-color: #cbd5e1; box-shadow: none; }
.pseat.locked .pseat-price { color: #94a3b8; }
.pseat-empty { visibility: hidden; border: none; background: none; cursor: default; }

/* Settings form */
.settings-form { max-width: 880px; }
.settings-ico {
    width: 42px; height: 42px;
    border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.15rem;
    flex-shrink: 0;
}
.logo-thumb {
    width: 74px; height: 74px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    overflow: hidden;
    flex-shrink: 0;
}
.logo-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.yb-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
}

.status-pill { display: inline-flex; align-items: center; white-space: nowrap; font-weight: 600; font-size: .78rem; padding: .35rem .7rem; border-radius: 50px; }
.status-pending  { background: rgba(245, 158, 11, .15); color: #b45309; }
.status-approved { background: rgba(16, 185, 129, .15); color: #047857; }
.status-rejected { background: rgba(244, 63, 94, .15); color: #be123c; }
.status-cancelled { background: rgba(100, 116, 139, .18); color: #475569; }
.status-active   { background: rgba(37, 99, 235, .12); color: #1e40af; }
.status-inactive { background: rgba(100, 116, 139, .15); color: #475569; }

/* ---------- Payment request cards ---------- */
.pay-card { padding: 1rem 1.1rem; }

.pay-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.pay-card-ref { font-size: 1.05rem; letter-spacing: .3px; }
.pay-card-tags { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin-top: .6rem; }
.pay-card-amt { text-align: right; flex-shrink: 0; line-height: 1.2; }
.pay-card-amt .amt { font-weight: 800; font-size: 1.4rem; color: var(--yb-primary); }
.pay-card-amt .amt-label { display: block; font-size: .66rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .4px; }
.pay-card-amt .amt-sub { display: block; font-size: .72rem; color: #94a3b8; margin-top: .1rem; }

.pay-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .5rem .9rem; margin-top: .8rem; }
.pay-meta-item { display: flex; align-items: center; gap: .5rem; font-size: .86rem; color: #475569; min-width: 0; }
.pay-meta-item > i { color: var(--yb-primary); font-size: .95rem; flex-shrink: 0; }
.pay-meta-item > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-meta-item strong { color: var(--yb-dark); font-weight: 600; }

/* Seats can be a long list, so give it the full row and let it wrap. */
.pay-meta-seats { grid-column: 1 / -1; align-items: flex-start; }
.pay-meta-seats > i { margin-top: .15rem; }
.pay-meta-seats > span { overflow: visible; text-overflow: clip; white-space: normal; }

.pay-card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem .9rem; margin-top: .85rem; padding-top: .8rem; border-top: 1px solid #eef1f5; }
.pay-card-confirm { font-size: .82rem; color: #64748b; flex: 1 1 220px; min-width: 0; }
.pay-card-confirm .badge { font-size: .72rem; }
.pay-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.pay-actions form { margin: 0; }

@media (max-width: 575.98px) {
    .pay-card-amt .amt { font-size: 1.25rem; }
    .pay-meta { grid-template-columns: 1fr 1fr; }
    .pay-meta-item:first-child { grid-column: 1 / -1; }
}

/* ---------- Segmented control (tab-style toggle) ---------- */
.seg-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: #e2e8f0;
    border: 1px solid #d3dbe7;
    border-radius: 12px;
    max-width: 100%;
}
.seg-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .5rem 1.15rem;
    border-radius: 9px;
    font-weight: 600;
    font-size: .9rem;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.seg-tab:hover { color: var(--yb-primary); }
.seg-tab.active {
    background: #fff;
    color: var(--yb-primary);
    box-shadow: 0 1px 4px rgba(15, 23, 42, .12);
}

/* Full-width segmented toggles on phones (each option splits the width evenly) */
@media (max-width: 767.98px) {
    .seg-tabs { display: flex; width: 100%; }
    .seg-tab { flex: 1 1 0; padding-left: .5rem; padding-right: .5rem; }
}

/* ---------- Customer avatar ---------- */
.cust-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.15rem; color: #fff;
    background: linear-gradient(135deg, var(--yb-primary), var(--yb-accent));
    flex-shrink: 0;
}
.cust-avatar.sm { width: 36px; height: 36px; font-size: .9rem; }

/* Collapsible per-seat passenger list in the customer booking history */
.pax-toggle > summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    font-size: .8rem;
    font-weight: 500;
    color: var(--yb-primary);
    user-select: none;
}
.pax-toggle > summary::-webkit-details-marker { display: none; }
.pax-toggle > summary::after {
    content: "\F282";              /* bi-chevron-down */
    font-family: "bootstrap-icons";
    font-size: .7rem;
    margin-left: .3rem;
    transition: transform .2s ease;
}
.pax-toggle[open] > summary::after { transform: rotate(180deg); }
.pax-toggle > summary:hover { color: var(--yb-primary-dark); }

/* Highlight tag for the matched family-member name in customer search results */
.pax-match-tag {
    display: inline-block;
    padding: .1rem .5rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--yb-primary);
    background: rgba(37, 99, 235, .1);
}

/* ---------- Compact table cards on phones/tablets ---------- */
@media screen and (max-width: 991.98px) {
    .trips-table thead, .booked-table thead, .hist-table thead { display: none; }
    .trips-table, .trips-table tbody,
    .booked-table, .booked-table tbody,
    .hist-table, .hist-table tbody { display: block; width: 100%; }
    .trips-table tr, .booked-table tr, .hist-table tr {
        display: block;
        background: #fff;
        border: 1px solid #e9edf3;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
        padding: .85rem 1rem;
        margin-bottom: .8rem;
    }
    .trips-table td, .booked-table td, .hist-table td { display: block; border: 0 !important; padding: 0; }
    .trips-table td.row-actions, .booked-table td.row-actions {
        margin-top: .75rem;
        padding-top: .75rem;
        border-top: 1px solid #f0f2f6 !important;
        display: flex;
        flex-wrap: wrap;
        gap: .4rem;
    }
    .trips-table td.row-actions .btn { margin: 0; }
}

/* ---------- Footer ---------- */
/* Sticky footer: keep the footer at the bottom on short public pages. */
.app-body { display: flex; flex-direction: column; min-height: 100vh; }
.app-body .yb-footer { margin-top: auto; }
.yb-footer { background: var(--yb-dark); color: #fff; }
.yb-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.yb-footer a:hover { color: #fff; }
.footer-brand { font-weight: 700; font-size: 1.25rem; }
.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: clamp(1.9rem, 5.5vw, 2.8rem);
    font-weight: 700;
    color: #fff !important;
    letter-spacing: .5px;
    line-height: 1.1;
}
.footer-phone:hover { color: var(--yb-accent) !important; }
.footer-divider { border-color: rgba(255, 255, 255, .15); max-width: 320px; margin: 1.6rem auto; opacity: 1; }

@media (max-width: 991px) {
    .hero-photo { height: 320px; }
}
@media (max-width: 575px) {
    .hero-stats { gap: 1.4rem !important; }
    .yb-cta { padding: 2rem 1.3rem; }
    .hero-tag-price { left: 10px; }
    .hero-tag-seats { right: 10px; }
}

/* ---------- Mobile layout polish ---------- */
@media (max-width: 767.98px) {
    /* Inner page headers (Book Trip / Payment / Track / Seat select) */
    .yb-page-head { padding: 2.2rem 0 3.6rem; }
    .yb-page-head h1 { font-size: 1.5rem; }
    .yb-page-head p { font-size: .9rem; }
    .yb-page-head .head-quote { font-size: .95rem; }

    /* Search / filter card */
    .yb-search-card { margin-top: -2.6rem; padding: 1rem; }
    .yb-search-card .row { --bs-gutter-y: .6rem; }
    .yb-search-card .form-label { font-size: .8rem; }
    .yb-search-card .form-control-lg,
    .yb-search-card .btn-lg {
        font-size: .92rem;
        padding: .5rem .85rem;
        min-height: auto;
        border-radius: 9px;
    }

    /* Section spacing + headings */
    .section-title { font-size: 1.35rem; }
    .py-5 { padding-top: 2.2rem !important; padding-bottom: 2.2rem !important; }

    /* Trip list */
    .trip-row { flex-direction: column; align-items: stretch; padding: .9rem 1rem; }
    .tr-route { font-size: 1.02rem; }
    .tr-side { width: 100%; justify-content: space-between; margin-top: .8rem; gap: .6rem; }
    .tr-side .btn { flex: 0 0 auto; }

    /* Seat selection */
    .booking-summary { position: static; }
    .deck-cabin { padding: 1rem 1rem 1.2rem; }
    .seat { max-width: 58px; height: 80px; font-size: .88rem; }
    .seat-map { gap: 14px 10px; }
    .seat-legend { gap: .65rem; justify-content: center; }

    /* Admin seat-pricing editor */
    .price-toolbar { gap: .5rem; padding-bottom: .85rem; margin-bottom: .85rem; }
    .price-toolbar .input-group { max-width: none !important; flex: 1 1 100%; }
    .price-toolbar .btn { flex: 1 1 auto; }
    .price-toolbar .ms-auto { margin-left: 0 !important; flex: 1 1 100%; text-align: left; }
    .price-deck-wrap { gap: 1.25rem; margin-top: .25rem; }
    .price-deck-wrap .deck { max-width: 100%; }
    .pseat { height: 74px; }
    .pseat-num { font-size: .9rem; }
    .pseat-price { font-size: .64rem; }

    /* Payment */
    .pay-wrap { margin-top: -2.5rem; }
    .pay-card { padding: 1.15rem; }
    .pay-amount-box { padding: 1.1rem; }
    .pay-amount-box .amt { font-size: 1.9rem; }
    .pay-qr { max-width: 200px; }

    /* Admin topbar + cards */
    .dash-topbar { padding: 0 .7rem; gap: .4rem; }
    .dash-brand { font-size: 1rem; }
    .dash-brand span:last-child { display: none; }
    .dash-topbar .btn-accent { padding: .4rem .7rem; }
    .dash-main .container-fluid { padding-top: 1.2rem !important; padding-bottom: 1.2rem !important; }
    .stat-card { padding: 1.1rem; gap: .8rem; }
    .stat-card .stat-icon { width: 46px; height: 46px; font-size: 1.25rem; }
    .stat-card .stat-num { font-size: 1.4rem; }
    .yb-card { border-radius: 14px; }

    /* Login */
    .login-card { padding: 1.6rem; border-radius: 16px; }
    .login-logo { width: 56px; height: 56px; font-size: 1.5rem; }
}

/* Phones: tighter stacked decks so the Upper Deck stays visible on scroll. */
@media (max-width: 575.98px) {
    .deck-wrap, .price-deck-wrap { gap: 1.25rem; margin-top: 1rem; }
    .deck-title { margin-bottom: .5rem; }
    .deck-cabin { padding: 1rem .75rem .85rem; }
    .seat-map { gap: 11px 9px; }
    .seat, .pseat { height: 78px; max-width: 60px; }
    .seat-no, .pseat-num { font-size: .9rem; }
    .seat-price, .pseat-price { font-size: .7rem; }
}
