.seat-mini-section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.7rem;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.seat-mini-section__header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #dbeafe;
}

.seat-mini-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.22rem;
}

.seat-mini-empty {
    font-size: 0.68rem;
    color: #64748b;
}

.seat-mini-badge {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}

.seat-mini-badge--economy,
.seat-mini-icon--economy {
    background: linear-gradient(180deg, #38bdf8, #0284c7);
}

.seat-mini-badge--flex,
.seat-mini-icon--flex {
    background: linear-gradient(180deg, #34d399, #059669);
}

.seat-mini-badge--business,
.seat-mini-icon--business {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.seat-mini-icon {
    width: 0.7rem;
    height: 0.9rem;
    border-radius: 0.2rem 0.2rem 0.28rem 0.28rem;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 0 1px 2px rgba(2,6,23,0.5);
}

.seat-mini-icon::before {
    content: '';
    position: absolute;
    top: -0.16rem;
    left: 0.12rem;
    right: 0.12rem;
    height: 0.18rem;
    border-radius: 999px 999px 0 0;
    background: rgba(255,255,255,0.35);
}

.seat-visual-stack {
    display: grid;
    gap: 0.65rem;
}

.seat-visual-stack__title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

/* ====== BUS MODIFY MODAL ====== */
.bus-modify-shell {
    background: linear-gradient(160deg, rgba(17,24,39,0.98), rgba(15,23,42,0.97));
    border: 1px solid rgba(100,116,139,0.3);
    border-radius: 1.25rem;
    padding: 1.2rem 1.2rem 1rem;
    width: 100%;
    max-width: 580px;
    max-height: 92dvh;
    overflow-y: auto;
}

.bus-modify-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 480px) {
    .bus-modify-grid { grid-template-columns: 1fr; }
    .bus-modify-topdown { order: -1; }
}

/* Capacity bar */
.bus-cap-bar {
    width: 100%;
    height: 7px;
    background: rgba(30,41,59,0.8);
    border-radius: 999px;
    overflow: hidden;
    display: flex;
}
.bus-cap-seg {
    height: 100%;
    transition: width 0.2s ease;
    min-width: 0;
}
.bus-cap-seg--economy  { background: linear-gradient(90deg, #38bdf8, #0284c7); }
.bus-cap-seg--flex     { background: linear-gradient(90deg, #34d399, #059669); }
.bus-cap-seg--business { background: linear-gradient(90deg, #fbbf24, #d97706); }

/* ====== TOP-DOWN BUS VIEW ====== */
.tdbus-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.tdbus-body {
    background: rgba(15,23,42,0.75);
    border: 1.5px solid rgba(100,116,139,0.3);
    border-radius: 1.7rem 1.7rem 0.9rem 0.9rem;
    padding: 0.55rem 0.6rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.22rem;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(100,116,139,0.3) transparent;
}

.tdbus-windshield {
    width: 62%;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(99,102,241,0.55), rgba(34,211,238,0.55));
    margin-bottom: 3px;
}

.tdbus-driver-row {
    font-size: 0.6rem;
    color: #64748b;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.tdbus-separator {
    width: 88%;
    height: 1px;
    background: rgba(100,116,139,0.3);
    margin: 3px 0 5px;
}

.tdbus-seats-area {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    align-items: center;
    width: 100%;
}

.tdbus-row {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.tdbus-row--2plus1 .tdbus-aisle {
    width: 0.95rem;
}

.tdbus-rownum {
    width: 1rem;
    font-size: 0.5rem;
    color: #475569;
    text-align: right;
    flex-shrink: 0;
    font-family: monospace;
}

.tdbus-aisle { width: 0.6rem; flex-shrink: 0; }

.tdbus-seat {
    width: 1.2rem;
    height: 1.45rem;
    border-radius: 0.22rem 0.22rem 0.4rem 0.4rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.2), 0 1px 3px rgba(0,0,0,0.5);
    position: relative;
    flex-shrink: 0;
    display: inline-block;
    transition: transform 0.1s;
}

.tdbus-seat:hover { transform: scale(1.15); z-index: 1; }

.tdbus-seat::before {
    content: '';
    position: absolute;
    top: -0.22rem;
    left: 0.18rem;
    right: 0.18rem;
    height: 0.22rem;
    border-radius: 999px 999px 0 0;
    background: inherit;
    filter: brightness(1.3);
}

.tdbus-seat--economy  { background: linear-gradient(180deg, #38bdf8, #0284c7); }
.tdbus-seat--flex     { background: linear-gradient(180deg, #34d399, #059669); }
.tdbus-seat--business { background: linear-gradient(180deg, #fbbf24, #d97706); }
.tdbus-seat--empty {
    background: rgba(30,41,59,0.5);
    border-color: rgba(100,116,139,0.18);
    box-shadow: none;
}
.tdbus-seat--empty::before { display: none; }

/* Legend */
.tdbus-legend {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: center;
}
.tdbus-legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    color: #94a3b8;
}

/* ====== SEAT STEPPER ====== */
.bus-modify-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.seat-stepper {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(100,116,139,0.22);
    background: rgba(15,23,42,0.5);
    transition: border-color 0.2s;
}
.seat-stepper:focus-within { border-color: rgba(99,102,241,0.5); }

.seat-stepper--economy  { border-color: rgba(56,189,248,0.28); }
.seat-stepper--flex     { border-color: rgba(52,211,153,0.28); }
.seat-stepper--business { border-color: rgba(251,191,36,0.28); }

.seat-stepper--economy:focus-within  { border-color: rgba(56,189,248,0.7); box-shadow: 0 0 0 2px rgba(56,189,248,0.1); }
.seat-stepper--flex:focus-within     { border-color: rgba(52,211,153,0.7); box-shadow: 0 0 0 2px rgba(52,211,153,0.1); }
.seat-stepper--business:focus-within { border-color: rgba(251,191,36,0.7);  box-shadow: 0 0 0 2px rgba(251,191,36,0.1); }

.seat-stepper__label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.73rem;
    font-weight: 600;
    color: #e2e8f0;
}

.seat-stepper__controls {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stepper-btn {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.4rem;
    background: rgba(51,65,85,0.7);
    border: 1px solid rgba(100,116,139,0.38);
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
    user-select: none;
}
.stepper-btn:hover { background: rgba(99,102,241,0.4); border-color: rgba(99,102,241,0.7); }
.stepper-btn:active { transform: scale(0.93); }

.stepper-input {
    flex: 1;
    min-width: 0;
    background: rgba(15,23,42,0.75);
    border: 1px solid rgba(100,116,139,0.35);
    border-radius: 0.45rem;
    color: white;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    padding: 0.22rem 0.2rem;
    appearance: textfield;
    -moz-appearance: textfield;
}
.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-input:focus {
    outline: none;
    border-color: rgba(99,102,241,0.6);
    box-shadow: 0 0 0 2px rgba(99,102,241,0.18);
}
/* ====== BUS MODIFY MODAL END ====== */
