#modalAuth {
    position: fixed;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 18%, rgba(34, 211, 238, 0.16), transparent 38%),
        radial-gradient(circle at 84% 82%, rgba(99, 102, 241, 0.2), transparent 42%),
        rgba(2, 6, 23, 0.82);
}

#modalAuth::before {
    content: '';
    position: absolute;
    inset: -6%;
    background-image:
        linear-gradient(140deg, rgba(3, 7, 18, 0.72), rgba(15, 23, 42, 0.35)),
        var(--auth-hero-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.32;
    filter: saturate(1.18) contrast(1.06);
    transform: scale(1.04);
    pointer-events: none;
    z-index: 0;
}

#modalAuth::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(120deg, rgba(148, 163, 184, 0.03) 0 12px, rgba(15, 23, 42, 0.05) 12px 24px);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
}

.auth-card {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(8px);
    background: linear-gradient(160deg, rgba(31, 41, 55, 0.88), rgba(17, 24, 39, 0.82));
}

.brand-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 1rem;
    overflow: hidden;
    isolation: isolate;
    background: rgba(15, 23, 42, 0.45);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24);
}

.brand-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(15, 23, 42, 0.68) 42%, rgba(30, 41, 59, 0.36) 100%), var(--brand-header-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -2;
}

.brand-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(6, 182, 212, 0.08)),
        repeating-linear-gradient(120deg, rgba(148, 163, 184, 0.06) 0 10px, rgba(15, 23, 42, 0.02) 10px 20px);
    z-index: -1;
}

.brand-hero__emblem {
    margin-left: 0.25rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #dbeafe;
    border: 1px solid rgba(147, 197, 253, 0.48);
    background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.34), rgba(30, 64, 175, 0.42));
    box-shadow: inset 0 0 12px rgba(219, 234, 254, 0.18), 0 8px 18px rgba(2, 6, 23, 0.38);
    flex-shrink: 0;
}

.brand-hero__title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.brand-hero__subtitle {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.route-visual-icon {
    width: 18px;
    height: 18px;
    border-radius: 0.35rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.65);
    object-fit: contain;
    flex-shrink: 0;
}

.route-type-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.1rem 0.4rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-left: 0.35rem;
    white-space: nowrap;
}

.otogar-stop-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.08rem 0.35rem 0.08rem 0.2rem;
    border-radius: 999px;
    border: 1px solid rgba(100, 116, 139, 0.35);
    background: rgba(15, 23, 42, 0.55);
    color: #d1d5db;
    line-height: 1.2;
}

.otogar-stop-chip img {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.4);
    flex-shrink: 0;
}

.otogar-route-line {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.mission-tier-badge {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    object-fit: contain;
    flex-shrink: 0;
}

.bus-detail-metrics {
    margin-top: 0.6rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.bus-detail-metric {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.4rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(100, 116, 139, 0.35);
    background: rgba(15, 23, 42, 0.5);
}

.bus-detail-metric img {
    width: 18px;
    height: 18px;
    border-radius: 0.25rem;
    object-fit: contain;
}

.bus-detail-metric .metric-label {
    font-size: 10px;
    color: #94a3b8;
    line-height: 1.2;
}

.bus-detail-metric .metric-value {
    font-size: 11px;
    color: #e2e8f0;
    font-weight: 600;
    line-height: 1.2;
}

.bus-tech-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
}

.bus-tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 11px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(100, 116, 139, 0.35);
    border-radius: 0.45rem;
    padding: 0.25rem 0.4rem;
    line-height: 1.2;
}

.bus-tech-chip strong {
    color: #f1f5f9;
    font-weight: 700;
}

.info-balloon {
    position: fixed;
    left: 50%;
    top: max(18px, env(safe-area-inset-top));
    transform: translateX(-50%) translateY(-10px);
    z-index: 10050;
    max-width: min(92vw, 680px);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.95rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 10px 35px rgba(2, 6, 23, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(6px);
}

.info-balloon.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.info-balloon__icon {
    font-size: 0.95rem;
    line-height: 1;
    flex-shrink: 0;
}

.info-balloon__text {
    font-size: 0.86rem;
    line-height: 1.35;
    color: #f8fafc;
}

.info-balloon--warning {
    background: rgba(120, 53, 15, 0.88);
    border-color: rgba(251, 191, 36, 0.45);
}

.info-balloon--error {
    background: rgba(127, 29, 29, 0.9);
    border-color: rgba(248, 113, 113, 0.55);
}

.info-balloon--success {
    background: rgba(20, 83, 45, 0.88);
    border-color: rgba(74, 222, 128, 0.45);
}

@media (max-width: 640px) {
    .brand-hero {
        padding: 0.3rem 0.5rem;
        gap: 0.45rem;
    }

    .brand-hero__emblem {
        display: none;
    }

    .brand-hero__title {
        font-size: 0.85rem !important;
        line-height: 1.2;
    }

    .brand-hero__subtitle {
        display: none;
    }

    .bus-detail-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bus-tech-grid {
        grid-template-columns: 1fr;
    }

    /* Header butonlar çok küçük ekranlarda ── */
    header .flex.items-center.gap-2 > button,
    header .flex.items-center.gap-1 > button {
        padding: 0.25rem 0.4rem !important;
        font-size: 0.6rem !important;
    }

    /* Harita — mobil tam ekran varken layout.css override eder */
    #liveTripMap {
        height: 180px;
    }

    /* Footer 3 kolon yerine 3 ama daha küçük ── */
    #mobilAltHizliAksiyonlar button {
        min-height: 48px !important;
        padding: 0.4rem 0.15rem !important;
    }

    #mobilAltHizliAksiyonlar button span.text-xs {
        font-size: 0.55rem !important;
    }

    /* Şirket paneli tek sütun ── */
    .panel-2 .grid.grid-cols-2.gap-4.mb-4.text-sm {
        grid-template-columns: 1fr !important;
        gap: 0.3rem !important;
        font-size: 0.7rem !important;
    }
}
