:root {
    --tbb-primary: #062267;
    --tbb-primary-alt: #01295f;
    --tbb-bg: #f3f7fe;
    --tbb-surface: #ffffff;
    --tbb-muted: #475569;
    --tbb-text: #10233f;
    --tbb-border: #e6edf7;
    --tbb-danger: #c53045;
    --tbb-radius: 16px;
    --tbb-shadow: 0 10px 30px rgba(6, 34, 103, 0.13);
    --tbb-shadow-soft: 0 4px 16px rgba(6, 34, 103, 0.09);
    --tbb-navbar-height: 68px;
    --tbb-map-peek: clamp(88px, 17dvh, 128px);
    --tbb-sheet-peek: clamp(240px, 42dvh, 320px);
    --tbb-sheet-expanded: calc(100dvh - var(--tbb-navbar-height, 68px) - var(--tbb-map-peek));
    --tbb-font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --tbb-text-xs: 0.8125rem;
    --tbb-text-sm: 0.875rem;
    --tbb-text-base: 1rem;
    --tbb-text-lg: 1.125rem;
    --tbb-text-xl: 1.25rem;
    --tbb-line-height: 1.45;
    --tbb-font-normal: 500;
    --tbb-font-semibold: 600;
    --tbb-font-bold: 700;
    --tbb-font-extrabold: 800;
}

body {
    background: var(--tbb-bg);
}

@media (max-height: 700px), (max-width: 400px) {
    :root {
        --tbb-map-peek: clamp(72px, 15dvh, 108px);
        --tbb-sheet-peek: clamp(275px, 42dvh, 340px);
    }
}

body.tbb-mobile-page,
body.tbb-mobile-map {
    font-family: var(--tbb-font-family);
    font-size: var(--tbb-text-base);
    font-weight: var(--tbb-font-normal);
    line-height: var(--tbb-line-height);
    color: var(--tbb-text);
    -webkit-font-smoothing: antialiased;
}

body.tbb-mobile-page footer,
body.tbb-mobile-map footer {
    display: none;
}

body.tbb-mobile-page main.pb-3,
body.tbb-mobile-map main.pb-3 {
    padding-bottom: 0 !important;
}

.tbb-app-shell {
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    padding: 18px 16px 24px;
    background: linear-gradient(180deg, #f7fbff 0%, var(--tbb-bg) 100%);
}

.tbb-header {
   /* ı */
    padding: 8px 12px 10px;
}

.tbb-navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--tbb-navbar-height, 68px);
    min-width: 0;
}

.tbb-navbar-side {
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    min-height: 44px;
    z-index: 2;
}

.tbb-navbar-side--end {
    flex: 0 0 auto;
    justify-content: flex-end;
    max-width: 32%;
    min-width: 44px;
}

.tbb-navbar-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 100px);
    pointer-events: none;
    z-index: 1;
}

.tbb-navbar-center .tbb-brand {
    pointer-events: auto;
}

.tbb-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.tbb-brand-logo {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.tbb-brand-banner {
    flex: 0 0 auto;
    height: 50px;
    width: auto;
    max-width: min(260px, 58vw);
    object-fit: contain;
}

.tbb-navbar-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--tbb-text-sm);
    font-weight: 700;
    line-height: 1.2;
}

.tbb-back-button,
.tbb-header .tbb-back-button,
.tbb-map-header .tbb-back-button {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: var(--tbb-primary) !important;
    text-decoration: none;
    line-height: 0;
    font-size: 1.15rem;
}

@media (max-width: 380px) {
    :root {
        --tbb-navbar-height: 62px;
    }

    .tbb-brand-logo {
        width: 50px;
        height: 50px;
    }

    .tbb-brand-banner {
        height: 44px;
        max-width: 54vw;
    }
}

.tbb-icon-button {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tbb-surface);
    color: var(--tbb-primary);
    box-shadow: var(--tbb-shadow-soft);
    text-decoration: none;
}

.tbb-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.mobil-quick-icon.tbb-quick-card {
    display: flex;
    min-height: 82px;
    padding: 8px 4px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    background: var(--tbb-primary);
    color: #fff;
    box-shadow: var(--tbb-shadow-soft);
}

.mobil-quick-icon.tbb-quick-card svg {
    width: 46px;
    height: 37px;
    flex-shrink: 0;
}

.tbb-quick-label {
    color: #fff;
    font-size: var(--tbb-text-sm);
    font-weight: var(--tbb-font-semibold);
    line-height: 1.15;
    text-align: center;
    white-space: normal;
}

.tbb-segmented-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 4px;
    margin: 0 0 12px;
    background: #fff;
    border: 1px solid var(--tbb-border);
    border-radius: 14px;
    box-shadow: var(--tbb-shadow-soft);
}

.tbb-segmented-tabs .nav-item {
    margin: 0;
    font-size: var(--tbb-text-base);
}

.tbb-segmented-tabs .nav-link {
    width: 100%;
    border: 0 !important;
    border-radius: 11px !important;
    padding: 12px 12px !important;
    color: var(--tbb-primary) !important;
    font-size: var(--tbb-text-base);
    font-weight: var(--tbb-font-extrabold);
}

.tbb-segmented-tabs .nav-link.active {
    background: var(--tbb-primary) !important;
    color: #fff !important;
}

.tbb-search-wrap {
    position: relative;
    margin: 8px 0 14px;
}

.tbb-search-wrap::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tbb-primary);
    opacity: 0.72;
    z-index: 1;
}

.tbb-search-wrap::after {
    content: "\f1de";
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tbb-primary);
    opacity: 0.72;
}

.tbb-search-wrap .form-control {
    height: 48px;
    padding: 10px 46px;
    border: 1px solid var(--tbb-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--tbb-shadow-soft);
    font-size: var(--tbb-text-base) !important;
    font-weight: var(--tbb-font-semibold);
}

.tbb-section-title,
.tbb-app-shell h2 {
    margin: 16px 2px 10px;
    color: var(--tbb-primary);
    font-size: var(--tbb-text-sm);
    font-weight: var(--tbb-font-extrabold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tbb-list-row,
.tbb-app-shell .list-group-item {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: auto;
    margin: 8px 0;
    padding: 13px 38px 13px 14px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--tbb-shadow-soft);
    color: var(--tbb-text);
    min-height: 56px;
}

.tbb-list-row::after,
.tbb-app-shell .list-group-item::after {
    content: "\f105";
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tbb-primary);
    opacity: 0.75;
}

.tbb-list-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.btnFavoriEkleKaldir.tbb-favorite,
.tbb-app-shell .btnFavoriEkleKaldir {
    flex: 0 0 auto;
    color: var(--tbb-danger) !important;
    font-size: 1.32rem !important;
    opacity: 1 !important;
    margin-right: 0 !important;
}

.tbb-hat-link,
.tbb-stop-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--tbb-text) !important;
    font-size: var(--tbb-text-base);
    font-weight: var(--tbb-font-extrabold) !important;
    line-height: var(--tbb-line-height);
    text-decoration: none;
}

.tbb-hat-badge {
    --badge-color: #0b5aa8;
    flex: 0 0 auto;
    min-width: 44px;
    padding: 7px 9px;
    border-radius: 10px;
    background: var(--badge-color);
    color: #fff !important;
    font-size: var(--tbb-text-base);
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.tbb-stop-code {
    --badge-color: #0b5aa8;
    flex: 0 0 auto;
    min-width: 52px;
    padding: 5px 8px;
    border-radius: 8px;
    background: var(--badge-color);
    color: #fff;
    font-weight: 900;
    text-align: center;
}

.tbb-hat-name,
.tbb-stop-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbb-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    width: min(480px, 100%);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--tbb-border);
    box-shadow: 0 -6px 24px rgba(6, 34, 103, 0.09);
}

.tbb-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #334155;
    font-size: var(--tbb-text-xs);
    font-weight: 700;
    text-decoration: none;
}

.tbb-bottom-nav a.active {
    color: var(--tbb-primary);
}

.tbb-map-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 20;
    --tbb-navbar-height: 68px;
    min-height: var(--tbb-navbar-height);
    padding: 8px 12px;
    background: #fff !important;
    color: var(--tbb-primary);
    border-bottom: 1px solid var(--tbb-border);
    box-shadow: 0 4px 14px rgba(6, 34, 103, 0.08);
}

.tbb-map-header .tbb-navbar-title {
    color: var(--tbb-primary);
}

.tbb-map-header ~ #map,
body.tbb-mobile-map #map {
    position: fixed;
    top: var(--tbb-navbar-height, 68px);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    margin-top: 0;
    z-index: 1;
}

body.tbb-mobile-map #map .ol-zoom {
    position: fixed;
    top: calc(var(--tbb-navbar-height, 68px) + 12px);
    left: 12px;
    z-index: 25;
    margin: 0;
}

.tbb-map-actions {
    position: fixed;
    right: 12px;
    top: calc(var(--tbb-navbar-height, 68px) + 12px);
    z-index: 25;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tbb-fab,
.tbb-map-actions .mavi,
.tbb-map-actions .btn {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    border: 0;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    color: var(--tbb-primary) !important;
    box-shadow: var(--tbb-shadow);
}

.tbb-back-button,
.bordo {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    text-decoration: none;
}

.tbb-sheet-modal .modal-dialog {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    transform: translateY(100%);
}

.tbb-sheet-modal.show .modal-dialog {
    transform: none;
}

.tbb-sheet-modal .modal-content {
    border: 0;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -12px 32px rgba(6, 34, 103, 0.18);
    max-height: 84vh;
    overflow: hidden;
}

.tbb-sheet-modal .modal-header {
    position: relative;
    padding: 26px 18px 10px;
    border: 0;
}

.tbb-sheet-modal .modal-header::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: #c7d2e2;
}

.tbb-sheet-modal .modal-title {
    color: var(--tbb-primary);
    font-size: 1rem;
    font-weight: 800;
}

.tbb-sheet-modal .modal-body {
    padding: 0 16px 18px;
    overflow-y: auto;
}

.tbb-sheet-modal .modal-footer {
    display: none;
}

.tbb-sheet-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 14px;
    background: #eef4ff;
    border: 1px solid #dbe7f8;
    color: #10233f;
}

.tbb-sheet-header i {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tbb-primary);
    color: #fff !important;
    font-size: 1.1rem;
}

.tbb-sheet-title {
    display: block;
    color: #0f172a;
    font-size: var(--tbb-text-base);
    font-weight: 800;
    line-height: 1.25;
}

.tbb-sheet-subtitle {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: var(--tbb-text-sm);
    font-weight: 600;
    line-height: 1.3;
}

.tbb-empty-arrival {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 22px 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.tbb-empty-arrival i {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: var(--tbb-primary);
    font-size: 1.35rem;
}

.tbb-empty-arrival-title {
    margin: 0;
    color: #0f172a;
    font-size: var(--tbb-text-base);
    font-weight: 700;
    line-height: 1.4;
}

.tbb-empty-arrival-hint {
    margin: 0;
    color: #64748b;
    font-size: var(--tbb-text-sm);
    font-weight: 500;
    line-height: 1.35;
}

.ol-popup.tbb-vehicle-popup-shell {
    position: absolute;
    bottom: 12px;
    left: -50%;
    padding: 0;
    border: none;
    border-radius: 12px;
    width: min(228px, calc(100vw - 48px));
    min-width: 0;
    max-width: 228px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.tbb-vehicle-popup-shell #popup-content {
    padding: 10px 12px;
}

.tbb-vehicle-popup-shell.tbb-vehicle-popup-active #popup-content {
    padding: 0;
}

.tbb-vehicle-popup-shell .tbb-vehicle-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230f172a'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/12px 12px no-repeat;
    opacity: 0.85;
    cursor: pointer;
}

.tbb-vehicle-popup-shell .tbb-vehicle-popup-close:hover {
    opacity: 1;
    background-color: #fff;
}

.tbb-vehicle-popup {
    color: #0f172a;
}

.tbb-vehicle-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 38px 10px 12px;
    background: #eef4ff;
    border-bottom: 1px solid #dbe7f8;
}

.tbb-vehicle-popup-badge {
    min-width: 42px;
    padding: 6px 9px;
    border-radius: 9px;
    font-size: 0.95rem;
}

.tbb-vehicle-popup-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #334155;
}

.tbb-vehicle-popup-body {
    padding: 10px 12px 12px;
}

.tbb-vehicle-popup-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.tbb-vehicle-popup-stat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: #334155;
    white-space: nowrap;
}

.tbb-vehicle-popup-stat i {
    color: var(--tbb-primary);
    font-size: 0.9rem;
}

.tbb-vehicle-popup-plate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e8eef5;
}

.tbb-vehicle-popup-plate-label {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;
    color: #64748b;
}

.tbb-vehicle-popup-plate-value {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.tbb-vehicle-popup-sofor {
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.25;
    color: #64748b;
}

.tbb-btn-primary {
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--tbb-primary);
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
}

.tbb-btn-outline {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--tbb-border);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: var(--tbb-primary) !important;
    font-weight: 800;
    text-decoration: none;
}

#modalDurakIcerik .tbb-arrival-link,
#modalDurakIcerik .modalDurakListele {
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
}

#modalDurakIcerik .tbb-arrival-card,
#modalDurakIcerik .bus-container {
    margin: 0 0 10px;
    padding: 0;
    border: 1px solid var(--tbb-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
}

#modalDurakIcerik .tbb-arrival-route {
    padding: 12px 14px 6px;
    color: #1e293b;
    font-size: var(--tbb-text-base);
    font-weight: 800;
    line-height: 1.35;
}

#modalDurakIcerik .tbb-arrival-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 14px 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#modalDurakIcerik .tbb-arrival-stops {
    color: #64748b;
    font-size: var(--tbb-text-sm);
    font-weight: 600;
    line-height: 1.2;
}

#modalDurakIcerik .time-badge {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0;
    padding: 6px 11px;
    font-size: var(--tbb-text-sm);
    font-weight: 800;
    white-space: nowrap;
}

.bus-container,
.tbb-arrival-card {
    margin: 8px 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--tbb-shadow-soft);
    overflow: hidden;
    text-decoration: none;
}

.bus-container h5 {
    margin: 0;
    padding: 10px 12px 0;
    color: #10233f;
    font-size: var(--tbb-text-sm);
    font-weight: 900;
}

.bus-item,
.tbb-arrival-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 10px 12px 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.bus-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.bus-info i {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tbb-primary);
    color: #fff !important;
    font-size: 1rem !important;
}

.bus-info h3 {
    margin: 0;
    color: var(--tbb-primary);
    font-size: var(--tbb-text-lg);
    font-weight: var(--tbb-font-extrabold);
    line-height: 1.3;
}

.bus-info span {
    color: var(--tbb-muted);
    font-size: var(--tbb-text-sm);
    font-weight: var(--tbb-font-bold);
}

.time-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #e9f8ec !important;
    color: #15803d !important;
    padding: 6px 12px;
    font-size: var(--tbb-text-sm);
    font-weight: var(--tbb-font-extrabold);
    animation: none !important;
}

.tbb-qr-modal .modal-dialog {
    max-width: 480px;
}

.tbb-qr-modal .modal-content {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    background: #0d1424;
    color: #fff;
}

.tbb-qr-modal .modal-header {
    border: 0;
    background: var(--tbb-primary);
    color: #fff;
}

.tbb-qr-modal .modal-title {
    font-size: var(--tbb-text-base);
    font-weight: 800;
}

.tbb-qr-body {
    display: flex;
    min-height: calc(100vh - 58px);
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
}

.tbb-qr-step[hidden] {
    display: none !important;
}

.tbb-qr-help {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
    font-size: var(--tbb-text-sm);
}

.tbb-qr-feedback {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: rgba(220, 53, 69, 0.92);
    color: #fff;
    text-align: center;
    font-size: var(--tbb-text-sm);
    font-weight: 600;
    line-height: 1.4;
}

.tbb-qr-frame {
    position: relative;
    width: min(280px, 78vw);
    height: min(280px, 78vw);
    margin: 24px auto;
    overflow: hidden;
}

.tbb-qr-frame::before,
.tbb-qr-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 4px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    clip-path: polygon(0 0, 34% 0, 34% 8px, 8px 8px, 8px 34%, 0 34%, 0 0, 66% 0, 100% 0, 100% 34%, calc(100% - 8px) 34%, calc(100% - 8px) 8px, 66% 8px, 66% 0, 100% 66%, 100% 100%, 66% 100%, 66% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 66%, 100% 66%, 34% 100%, 0 100%, 0 66%, 8px 66%, 8px calc(100% - 8px), 34% calc(100% - 8px), 34% 100%);
    pointer-events: none;
}

.tbb-qr-frame::after {
    inset: 50% 8%;
    height: 2px;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.75);
    clip-path: none;
}

#qr-reader {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    border-radius: 16px;
}

#qr-reader__scan_region,
#qr-reader__scan_region video,
#qr-reader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 16px;
}

#qr-reader__dashboard,
#qr-reader__header_message {
    display: none !important;
}

.tbb-qr-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
    max-width: 180px;
    margin: 0 auto;
}

.tbb-qr-actions .tbb-icon-button {
    margin: 0 auto;
    background: #fff;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.tbb-qr-actions .tbb-icon-button:active {
    transform: scale(0.92);
    background: #dbeafe;
    color: var(--tbb-primary);
}

.tbb-qr-actions .tbb-icon-button.is-pressed {
    background: var(--tbb-primary);
    color: #fff;
    transform: scale(0.95);
}

@media (hover: hover) {
    .tbb-qr-actions .tbb-icon-button:hover {
        background: #eef4ff;
    }

    .tbb-qr-actions .tbb-icon-button.active:hover {
        background: var(--tbb-primary);
        color: #fff;
    }
}

#qrTorchBtn.active,
#qrFlipCameraBtn.active {
    background: var(--tbb-primary);
    color: #fff;
}

.tbb-qr-manual {
    color: #10233f;
    background: #fff;
}

.tbb-qr-manual .modal-content,
.tbb-manual-card {
    color: #10233f;
}

.tbb-manual-card {
    margin: auto 0;
    padding: 24px 18px;
    border-radius: 22px;
    background: #fff;
    text-align: center;
}

.tbb-manual-illustration {
    width: 86px;
    height: 86px;
    margin: 0 auto 14px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: var(--tbb-primary);
    font-size: 2rem;
}

.tbb-manual-card h3 {
    color: var(--tbb-primary);
    font-size: 1.04rem;
    font-weight: 900;
}

.tbb-manual-card p {
    color: var(--tbb-muted);
    font-size: var(--tbb-text-base);
}

.tbb-manual-card .form-control {
    height: 48px;
    border-radius: 12px;
    text-align: center;
}

#listContainer {
    border: 0 !important;
    border-radius: 26px 26px 0 0 !important;
    background: #fff !important;
    box-shadow: 0 -12px 32px rgba(6, 34, 103, 0.18) !important;
    height: var(--tbb-sheet-peek);
}

#listContainer.expanded,
#listContainer.sheet-minimized {
    z-index: 30;
}

#listContainer.expanded {
    height: var(--tbb-sheet-expanded) !important;
}

#listHeader {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 36px;
    padding: 10px 16px 4px !important;
    background: #fff !important;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.tbb-line-sheet__grab {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #c7d2e2;
    flex: 0 0 auto;
}

.tbb-line-sheet__expand-icon {
    color: var(--tbb-primary);
    font-size: 0.9rem;
    line-height: 1;
    opacity: 0.72;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#listContainer.expanded .tbb-line-sheet__expand-icon {
    transform: rotate(180deg);
    opacity: 0.9;
}

#listContainer.sheet-minimized {
    height: auto;
    min-height: var(--tbb-sheet-peek);
}

#listContainer.sheet-minimized #listContent {
    height: auto !important;
    overflow: visible;
    flex: 0 0 auto;
}

#listContainer.sheet-minimized .tbb-line-sheet__hero {
    flex-shrink: 0;
}

#listContainer.sheet-minimized .tbb-line-sheet__stops-scroll {
    display: none;
}

#listContent {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 0;
    overflow: hidden;
    height: calc(100% - 36px);
}

.tbb-line-sheet__hero {
    flex: 0 0 auto;
    margin: 8px 16px 12px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid #dbe7f8;
    box-shadow: var(--tbb-shadow-soft);
}

.tbb-line-sheet__identity {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin-bottom: 12px;
}

.tbb-line-sheet__titles {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tbb-line-sheet__badge {
    flex: 0 0 auto;
    min-width: 52px;
    padding: 10px 12px !important;
    font-size: var(--tbb-text-lg) !important;
    border-radius: 12px !important;
}

.tbb-line-sheet__hat-name {
    color: var(--tbb-primary);
    font-size: var(--tbb-text-lg);
    font-weight: var(--tbb-font-extrabold);
    line-height: 1.25;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tbb-line-sheet__direction-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    max-width: 100%;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #c7d9f5;
    color: var(--tbb-primary);
    font-size: var(--tbb-text-sm);
    font-weight: var(--tbb-font-bold);
    line-height: 1.25;
}

.tbb-line-sheet__direction-chip .tbb-direction-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbb-line-sheet__direction-chip .tbb-direction-icon {
    flex: 0 0 auto;
    font-size: 0.75rem;
}

.tbb-line-sheet__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid #dbe7f8;
}

.tbb-line-fares {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tbb-line-fares.is-empty {
    display: none;
}

.tbb-fare-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
}

.tbb-fare-label {
    flex: 0 0 auto;
    min-width: 4.5rem;
    color: var(--tbb-text);
    font-size: var(--tbb-text-sm);
    font-weight: var(--tbb-font-semibold);
}

.tbb-fare-price {
    flex: 0 0 auto;
    color: #15803d;
    font-size: var(--tbb-text-base);
    font-weight: var(--tbb-font-extrabold);
    white-space: nowrap;
}

.tbb-line-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.tbb-line-pill-btn {
    min-height: 40px;
    padding: 8px 12px;
    border: 1.5px solid var(--tbb-primary);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff !important;
    color: var(--tbb-primary) !important;
    font-size: var(--tbb-text-sm);
    font-weight: var(--tbb-font-bold);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
    line-height: 1.2;
    cursor: pointer;
}

.tbb-line-pill-btn:hover,
.tbb-line-pill-btn:active,
.tbb-line-pill-btn:focus {
    background: var(--tbb-primary) !important;
    color: #fff !important;
}

.tbb-line-pill-btn i {
    font-size: 0.9rem;
    line-height: 1;
}

.tbb-line-sheet__stops-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 16px 48px;
    -webkit-overflow-scrolling: touch;
}

.tbb-line-stops-title {
    margin: 0 0 12px;
    padding-bottom: 10px;
    color: var(--tbb-primary);
    font-size: var(--tbb-text-lg);
    font-weight: var(--tbb-font-extrabold);
    border-bottom: 1px solid var(--tbb-border);
}

.tbb-line-sheet .tbb-line-action-btn,
.tbb-line-sheet .cevirBtn,
.tbb-line-sheet #saatGor {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

#durakListG,
#durakList {
    list-style: none;
    padding: 4px 0 4px 24px;
    margin: 0;
    border-left: 3px solid var(--tbb-primary);
    position: relative;
}

.gidis,
.donus {
    position: relative;
    min-height: 52px;
    padding: 10px 0 12px;
    margin: 0;
    display: flex;
    align-items: flex-start;
    font-size: var(--tbb-text-base);
    color: var(--tbb-text);
    line-height: var(--tbb-line-height);
}

.tbb-route-stop__marker {
    position: absolute;
    top: 16px;
    left: -31px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--tbb-primary);
    border-radius: 50%;
    background: #fff;
    z-index: 1;
}

.tbb-route-stop__marker i {
    display: none;
}

.tbb-route-stop__body {
    flex: 1 1 auto;
    min-width: 0;
}

.tbb-route-stop__simple {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 0;
    width: 100%;
}

.tbb-route-stop__name {
    color: var(--tbb-primary);
    font-size: var(--tbb-text-base);
    font-weight: var(--tbb-font-bold);
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.tbb-route-stop__arrival {
    display: none;
    color: #64748b;
    font-size: var(--tbb-text-sm);
    font-weight: var(--tbb-font-semibold);
    line-height: 1.2;
}

.tbb-route-stop.is-terminal .tbb-route-stop__arrival {
    display: block;
}

.tbb-route-stop__active-card {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cfe0ff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
    box-shadow: 0 8px 24px rgba(6, 34, 103, 0.10);
}

.tbb-route-stop__active-card[hidden] {
    display: none !important;
}

.tbb-route-stop__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tbb-route-stop__badges:empty {
    display: none;
}

.tbb-route-stop__name-active {
    color: var(--tbb-primary);
    font-size: var(--tbb-text-lg);
    font-weight: var(--tbb-font-extrabold);
    line-height: 1.35;
}

.tbb-route-stop__status {
    color: #64748b;
    font-size: var(--tbb-text-sm);
    font-weight: var(--tbb-font-semibold);
    line-height: 1.3;
}

.tbb-route-stop .tbb-stop-bus-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: #4fb44f;
    color: #fff;
    font-size: var(--tbb-text-sm);
    font-weight: var(--tbb-font-bold);
    line-height: 1.2;
    letter-spacing: 0.02em;
    box-shadow: none;
    cursor: pointer;
}

.tbb-route-stop .tbb-stop-bus-badge i {
    font-size: 0.85rem;
}

.gidis.is-active,
.donus.is-active {
    cursor: pointer;
}

.gidis.is-active .tbb-route-stop__simple,
.donus.is-active .tbb-route-stop__simple {
    display: none;
}

.gidis.is-active .tbb-route-stop__marker,
.donus.is-active .tbb-route-stop__marker {
    top: 12px;
    left: -40px;
    width: 34px;
    height: 34px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tbb-primary);
    box-shadow: 0 6px 16px rgba(6, 34, 103, 0.22);
}

.gidis.is-active .tbb-route-stop__marker i,
.donus.is-active .tbb-route-stop__marker i {
    display: inline-block;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1;
}

.gidis.has-bus:active,
.donus.has-bus:active {
    transform: scale(0.99);
}

.tbb-line-sheet__stops-scroll #durakListG,
.tbb-line-sheet__stops-scroll #durakList {
    padding-right: 4px;
}

@media (max-height: 700px), (max-width: 400px) {
    .tbb-line-sheet__hero {
        margin: 6px 12px 8px;
        padding: 10px;
    }

    .tbb-line-sheet__identity {
        gap: 8px;
        margin-bottom: 8px;
    }

    .tbb-line-sheet__badge {
        min-width: 44px;
        padding: 8px 10px !important;
        font-size: var(--tbb-text-base) !important;
    }

    .tbb-line-sheet__hat-name {
        font-size: var(--tbb-text-base);
        line-clamp: 1;
        -webkit-line-clamp: 1;
    }

    .tbb-line-sheet__direction-chip {
        padding: 4px 10px;
        font-size: var(--tbb-text-xs);
    }

    .tbb-line-sheet__meta {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding-top: 8px;
    }

    .tbb-line-fares {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 8px;
        width: auto;
    }

    .tbb-fare-row {
        gap: 4px;
    }

    .tbb-fare-label {
        min-width: 0;
        font-size: var(--tbb-text-xs);
    }

    .tbb-fare-label::after {
        content: ":";
    }

    .tbb-fare-price {
        font-size: var(--tbb-text-xs);
    }

    .tbb-line-actions {
        flex-direction: column;
        gap: 6px;
    }

    .tbb-line-pill-btn {
        min-height: 36px;
        padding: 6px 10px;
        font-size: var(--tbb-text-xs);
    }
}

@media (max-width: 380px) {
    .tbb-app-shell {
        padding-inline: 12px;
    }

    .tbb-quick-grid {
        gap: 8px;
    }

    .tbb-quick-label {
        font-size: var(--tbb-text-sm);
    }
}

@media (min-width: 640px) {
    .tbb-app-shell {
        border-left: 1px solid var(--tbb-border);
        border-right: 1px solid var(--tbb-border);
    }
}

.tbb-hat-saat-page {
    padding-top: 8px;
}

.tbb-schedule-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 18px;
    padding: 14px;
    border-radius: 16px;
    background: #eef4ff;
    border: 1px solid #dbe7f8;
}

.tbb-schedule-hero-badge {
    min-width: 48px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 1rem;
}

.tbb-schedule-hero-title {
    margin: 0;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
}

.tbb-schedule-yon-switch {
    margin-bottom: 14px;
    grid-template-columns: repeat(var(--yon-count, 2), minmax(0, 1fr));
}

.tbb-schedule-yon-btn {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 11px;
    padding: 12px 10px;
    color: var(--tbb-primary);
    font-size: 0.88rem;
    font-weight: var(--tbb-font-extrabold);
    line-height: 1.25;
    cursor: pointer;
}

.tbb-schedule-yon-btn.is-active {
    background: var(--tbb-primary);
    color: #fff;
}

.tbb-schedule-yon-btn-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbb-schedule-section {
    margin-bottom: 18px;
}

.tbb-schedule-section:not(.is-active) {
    display: none;
}

.tbb-schedule-direction {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--tbb-border);
    color: #334155;
    font-size: 0.92rem;
    font-weight: 700;
}

.tbb-schedule-direction i {
    color: var(--tbb-primary);
    font-size: 0.82rem;
}

.tbb-schedule-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--tbb-border);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    -webkit-overflow-scrolling: touch;
}

.tbb-schedule-table {
    width: 100%;
    min-width: 280px;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.tbb-schedule-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 12px 10px;
    background: #f8fafc;
    border-bottom: 1px solid var(--tbb-border);
    color: #334155;
    font-size: 0.88rem;
    font-weight: 800;
    text-align: center;
}

.tbb-schedule-table tbody td {
    padding: 14px 10px;
    border-bottom: 1px solid #eef2f7;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.tbb-schedule-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.tbb-schedule-table tbody tr:last-child td {
    border-bottom: 0;
}

.tbb-schedule-table tbody td:empty {
    background: #fcfdfe;
}

.tbb-schedule-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 28px 18px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.tbb-schedule-empty i {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: var(--tbb-primary);
    font-size: 1.35rem;
}

.tbb-schedule-empty-title {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.tbb-schedule-empty-hint {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 500;
}
