/* ============================================================
   Cab Booking — Dashboard Styles  v1.2.0
   ============================================================ */

/* ── Dashboard wrapper ───────────────────────────────────── */
.tbs-cdash, .tbs-ddash {
    font-family: var(--tbs-font);
    color: var(--tbs-text);
    padding: 16px 14px 60px;
}

/* ── Top Bar ─────────────────────────────────────────────── */
.tbs-cdash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--tbs-border);
    border-radius: var(--tbs-radius-lg);
    padding: 14px 18px;
    margin-bottom: 14px;
    box-shadow: var(--tbs-shadow);
    flex-wrap: wrap;
    gap: 12px;
}
.tbs-cdash-user { display: flex; align-items: center; gap: 12px; }
.tbs-cdash-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--tbs-border);
}
.tbs-cdash-avatar img { width:100%; height:100%; object-fit:cover; }
.tbs-cdash-name { font-weight: 800; font-size: 1rem; color: var(--tbs-secondary); }
.tbs-cdash-loc  { font-size: 0.78rem; color: var(--tbs-text-light); margin-top: 2px; }
.tbs-cdash-topactions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── Notification button ─────────────────────────────────── */
.tbs-notif-btn {
    position: relative;
    background: #f8fafc;
    border: 1.5px solid var(--tbs-border);
    border-radius: var(--tbs-radius);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 5px;
    transition: border-color 0.2s;
}
.tbs-notif-btn:hover { border-color: var(--tbs-primary); }
.tbs-notif-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 6px;
    min-width: 18px;
    text-align: center;
}

/* ── Online toggle (driver) ──────────────────────────────── */
.tbs-online-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.tbs-online-toggle input { display: none; }
.tbs-toggle-track {
    width: 46px; height: 24px;
    background: #cbd5e1;
    border-radius: 12px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}
.tbs-online-toggle input:checked + .tbs-toggle-track { background: #22c55e; }
.tbs-toggle-thumb {
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.tbs-online-toggle input:checked + .tbs-toggle-track .tbs-toggle-thumb { left: 25px; }
.tbs-toggle-label { font-size: 0.82rem; font-weight: 700; color: var(--tbs-text-light); }
.tbs-online-toggle input:checked ~ .tbs-toggle-label { color: #15803d; }

.tbs-online-indicator { font-size: 0.82rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.tbs-online-indicator.online  { background: #dcfce7; color: #15803d; }
.tbs-online-indicator.offline { background: #f1f5f9; color: #64748b; }

/* ── Summary Cards ───────────────────────────────────────── */
.tbs-cdash-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
@media (min-width: 560px) {
    .tbs-cdash-cards { grid-template-columns: repeat(4, 1fr); }
}
.tbs-cdash-card {
    background: #fff;
    border: 1px solid var(--tbs-border);
    border-radius: var(--tbs-radius-lg);
    padding: 14px 16px;
    box-shadow: var(--tbs-shadow);
    display: flex; flex-direction: column; gap: 6px;
}
.tbs-card-wallet { border-top: 3px solid var(--tbs-primary); }
.tbs-card-label { font-size: 0.72rem; font-weight: 600; color: var(--tbs-text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.tbs-card-val   { font-size: 1rem; font-weight: 800; color: var(--tbs-secondary); word-break: break-word; }

/* ── Tabs ────────────────────────────────────────────────── */
.tbs-cdash-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: var(--tbs-radius-lg);
    padding: 5px;
    margin-bottom: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tbs-cdash-tabs::-webkit-scrollbar { display: none; }
.tbs-cdash-tab {
    flex-shrink: 0;
    padding: 9px 14px;
    border: none;
    background: none;
    border-radius: 10px;
    font-family: var(--tbs-font);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tbs-text-light);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.tbs-cdash-tab.active,
.tbs-cdash-tab:hover {
    background: #fff;
    color: var(--tbs-secondary);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.tbs-cdash-tab.active { color: var(--tbs-primary-dk); }

/* ── Panel ───────────────────────────────────────────────── */
.tbs-cdash-panel {
    background: #fff;
    border: 1px solid var(--tbs-border);
    border-radius: var(--tbs-radius-lg);
    padding: 20px 18px;
    box-shadow: var(--tbs-shadow);
}
.tbs-panel-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--tbs-secondary);
    margin: 0 0 16px;
}
.tbs-panel-desc { font-size: 0.85rem; color: var(--tbs-text-light); margin: -8px 0 14px; }

/* ── Booking layout ──────────────────────────────────────── */
.tbs-booking-layout {
    display: flex;
    gap: 16px;
    flex-direction: column;
}
@media (min-width: 700px) {
    .tbs-booking-layout { flex-direction: row; }
    .tbs-booking-controls { width: 280px; flex-shrink: 0; }
    .tbs-booking-map-wrap { flex: 1; }
}

.tbs-location-input-wrap { position: relative; display: flex; gap: 6px; }
.tbs-location-input-wrap .tbs-map-input { flex: 1; }
.tbs-locate-btn {
    background: var(--tbs-secondary);
    color: #fff;
    border: none;
    border-radius: var(--tbs-radius);
    width: 44px; height: 46px;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.tbs-locate-btn:hover { background: var(--tbs-primary); }

.tbs-map-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--tbs-border);
    border-radius: var(--tbs-radius);
    font-size: 0.9rem;
    font-family: var(--tbs-font);
    color: var(--tbs-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.tbs-map-input:focus {
    outline: none;
    border-color: var(--tbs-primary);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

/* ── Map containers ──────────────────────────────────────── */
#tbs-book-map,
#tbs-driver-map,
#tbs-ride-map,
#tbs-dride-map {
    width: 100%;
    height: 340px;
    border-radius: var(--tbs-radius-lg);
    border: 1px solid var(--tbs-border);
    background: #e8f4f8;
    z-index: 0;
}
@media (min-width: 700px) {
    #tbs-book-map { height: 420px; }
    #tbs-driver-map { height: 420px; }
}

.tbs-booking-map-wrap { position: relative; }
.tbs-map-tip {
    position: absolute;
    bottom: 10px; left: 50%;
    transform: translateX(-50%);
    background: rgba(30,41,59,0.82);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 900;
    transition: opacity 0.3s;
}

/* ── Fare box ────────────────────────────────────────────── */
.tbs-fare-box {
    background: #f8fafc;
    border: 1px solid var(--tbs-border);
    border-radius: var(--tbs-radius);
    padding: 12px 14px;
    margin-bottom: 12px;
}
.tbs-fare-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 4px 0;
    color: var(--tbs-text-light);
    border-bottom: 1px solid #f1f5f9;
}
.tbs-fare-row:last-child { border-bottom: none; }
.tbs-fare-total {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tbs-secondary);
    padding-top: 8px;
    margin-top: 4px;
}
.tbs-fare-info {
    font-size: 0.75rem;
    color: var(--tbs-text-light);
    margin-top: 10px;
    text-align: center;
}

/* ── Ride OTP box ────────────────────────────────────────── */
.tbs-ride-otp-box {
    background: #fffbeb;
    border: 2px solid var(--tbs-primary);
    border-radius: var(--tbs-radius-lg);
    padding: 20px;
    text-align: center;
    margin: 12px 0;
    animation: tbs-pulse-border 2s infinite;
}
@keyframes tbs-pulse-border {
    0%, 100% { border-color: var(--tbs-primary); }
    50%       { border-color: #fcd34d; }
}
.tbs-ride-otp-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tbs-text-light);
    margin-bottom: 8px;
}
.tbs-ride-otp-code {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 16px;
    color: var(--tbs-secondary);
    font-family: 'Courier New', monospace;
    line-height: 1;
    margin-bottom: 8px;
}
.tbs-ride-otp-box p {
    font-size: 0.82rem;
    color: var(--tbs-text-light);
    margin: 0 0 10px;
}

/* ── Ride status bar ─────────────────────────────────────── */
.tbs-ride-status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid var(--tbs-border);
    border-radius: var(--tbs-radius);
    padding: 12px 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.tbs-ride-badge {
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #fef9c3; color: #a16207;
    flex-shrink: 0;
}
.tbs-ride-badge.accepted    { background: #dbeafe; color: #1d4ed8; }
.tbs-ride-badge.in_progress { background: #dcfce7; color: #15803d; }
.tbs-ride-badge.completed   { background: #f0fdf4; color: #15803d; }
.tbs-ride-badge.cancelled   { background: #fee2e2; color: #b91c1c; }

/* ── Ride info cards ─────────────────────────────────────── */
.tbs-ride-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
@media (min-width: 560px) {
    .tbs-ride-cards { grid-template-columns: repeat(3, 1fr); }
}
.tbs-ride-card {
    background: #f8fafc;
    border: 1px solid var(--tbs-border);
    border-radius: var(--tbs-radius);
    padding: 12px;
    display: flex; align-items: flex-start; gap: 8px;
}
.tbs-ride-card-icon { font-size: 1.2rem; flex-shrink: 0; }
.tbs-ride-card-label { font-size: 0.7rem; color: var(--tbs-text-light); font-weight: 600; text-transform: uppercase; margin-bottom: 2px; }
.tbs-ride-card-val   { font-size: 0.88rem; font-weight: 700; color: var(--tbs-secondary); word-break: break-word; }

/* ── Driver map header ───────────────────────────────────── */
.tbs-driver-map-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 6px; flex-wrap: wrap; gap: 8px;
}
.tbs-location-status {
    font-size: 0.78rem;
    color: var(--tbs-text-light);
    margin-top: 8px;
    display: flex; align-items: center; gap: 6px;
}

/* ── Ride request cards ──────────────────────────────────── */
.tbs-ride-req-card {
    border: 1.5px solid var(--tbs-border);
    border-radius: var(--tbs-radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.tbs-ride-req-card:hover { border-color: var(--tbs-primary); box-shadow: var(--tbs-shadow-md); }
.tbs-ride-req-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 10px; flex-wrap: wrap; gap: 8px;
}
.tbs-ride-req-customer { font-weight: 700; font-size: 0.95rem; color: var(--tbs-secondary); }
.tbs-ride-req-fare {
    background: var(--tbs-primary-lt);
    color: var(--tbs-primary-dk);
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}
.tbs-ride-req-row {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 0.82rem; color: var(--tbs-text-light);
    margin-bottom: 5px;
}
.tbs-ride-req-row strong { color: var(--tbs-text); }

/* ── OTP 4-digit ─────────────────────────────────────────── */
.tbs-4digit { gap: 12px; justify-content: flex-start; }
.tbs-votp-digit {
    width: 52px !important; height: 58px;
    text-align: center;
    font-size: 1.6rem !important;
    font-weight: 800;
    border: 2px solid var(--tbs-border) !important;
    border-radius: var(--tbs-radius) !important;
    padding: 0 !important;
    min-height: unset !important;
    background: #f8fafc;
    font-family: monospace;
    transition: border-color 0.2s;
}
.tbs-votp-digit:focus {
    border-color: var(--tbs-primary) !important;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.18);
    outline: none;
}

/* ── Notifications list ──────────────────────────────────── */
.tbs-notif-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
    border-radius: var(--tbs-radius);
    margin-bottom: 2px;
}
.tbs-notif-item.unread { background: #fffbeb; }
.tbs-notif-item:last-child { border-bottom: none; }
.tbs-notif-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--tbs-primary); flex-shrink: 0; margin-top: 6px;
}
.tbs-notif-item.read .tbs-notif-dot { background: #e2e8f0; }
.tbs-notif-content {}
.tbs-notif-title { font-weight: 700; font-size: 0.88rem; color: var(--tbs-secondary); margin-bottom: 3px; }
.tbs-notif-msg   { font-size: 0.82rem; color: var(--tbs-text-light); line-height: 1.5; }
.tbs-notif-time  { font-size: 0.72rem; color: #94a3b8; margin-top: 4px; }

/* ── Profile ─────────────────────────────────────────────── */
.tbs-profile-card {
    display: flex; gap: 24px; flex-wrap: wrap;
}
.tbs-profile-photo {
    width: 100px; height: 100px; border-radius: 50%;
    overflow: hidden; border: 3px solid var(--tbs-border);
    flex-shrink: 0;
}
.tbs-profile-photo img { width:100%; height:100%; object-fit:cover; }
.tbs-profile-table { border-collapse: collapse; width: 100%; }
.tbs-profile-table th, .tbs-profile-table td { padding: 8px 12px; font-size: 0.88rem; border-bottom: 1px solid #f1f5f9; text-align: left; }
.tbs-profile-table th { width: 140px; color: var(--tbs-text-light); font-weight: 600; }
.tbs-profile-table td { color: var(--tbs-secondary); font-weight: 500; }

/* ── Empty state ─────────────────────────────────────────── */
.tbs-empty-state {
    text-align: center; padding: 36px 20px; color: var(--tbs-text-light);
}
.tbs-empty-icon { font-size: 2.5rem; margin-bottom: 10px; }
.tbs-empty-state p { font-size: 0.9rem; margin: 0 0 12px; }
.tbs-cdash-tab-link {
    background: none; border: none; color: var(--tbs-primary-dk); font-weight: 600;
    font-size: 0.88rem; cursor: pointer; text-decoration: underline;
    font-family: var(--tbs-font);
}

/* ── Small button ────────────────────────────────────────── */
.tbs-btn-sm { padding: 7px 14px; font-size: 0.82rem; min-height: unset; }

/* ── Slide-down notifications panel ─────────────────────── */
.tbs-notif-dropdown {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 100vw);
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    z-index: 99999;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    border-left: 1px solid var(--tbs-border);
}
.tbs-notif-dropdown.open { transform: translateX(0); }
.tbs-notif-dd-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--tbs-border);
    font-weight: 800; font-size: 1rem; color: var(--tbs-secondary);
    background: #f8fafc;
    flex-shrink: 0;
}
.tbs-notif-dd-close {
    background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--tbs-text-light);
    padding: 2px 6px; border-radius: 6px;
}
.tbs-notif-dd-body { flex: 1; overflow-y: auto; padding: 8px; }
.tbs-notif-dd-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 99998;
    display: none;
}
.tbs-notif-dd-overlay.open { display: block; }

/* ── Loading spinner on map ──────────────────────────────── */
.tbs-map-loading {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(248,250,252,0.85);
    border-radius: var(--tbs-radius-lg);
    font-size: 0.9rem; color: var(--tbs-text-light); z-index: 800;
}

/* responsive tweaks */
@media (max-width: 480px) {
    .tbs-ride-otp-code { font-size: 2.2rem; letter-spacing: 10px; }
    .tbs-cdash-tab { padding: 8px 10px; font-size: 0.78rem; }
    .tbs-profile-table th { width: 110px; }
}

/* ══════════════════════════════════════════════════════════
   DRIVER v2 — Online pill, Earnings, Ratings, Profile Edit
══════════════════════════════════════════════════════════ */

/* ── Online pill ─────────────────────────────────────────── */
.tbs-online-pill {
    display: flex; align-items: center; gap: 8px;
    background: #f8fafc; border: 1.5px solid var(--tbs-border);
    border-radius: 20px; padding: 6px 14px;
    font-size: 0.82rem; font-weight: 700;
    transition: border-color 0.2s, background 0.2s;
}
.tbs-online-pill.is-online  { border-color: #22c55e; background: #f0fdf4; color: #15803d; }
.tbs-online-pill.is-offline { border-color: var(--tbs-border); color: var(--tbs-text-light); }
.tbs-online-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #cbd5e1; flex-shrink: 0;
    transition: background 0.2s;
}
.tbs-online-pill.is-online .tbs-online-dot { background: #22c55e; animation: tbs-pulse-dot 2s infinite; }
@keyframes tbs-pulse-dot {
    0%,100%{ opacity:1; } 50%{ opacity:0.4; }
}
/* Mini toggle */
.tbs-mini-toggle { display:flex; align-items:center; cursor:pointer; }
.tbs-mini-toggle input { display:none; }
.tbs-mini-track {
    width:36px; height:20px; background:#cbd5e1;
    border-radius:10px; position:relative; transition:background 0.2s;
}
.tbs-mini-toggle input:checked + .tbs-mini-track { background:#22c55e; }
.tbs-mini-thumb {
    position:absolute; top:2px; left:2px; width:16px; height:16px;
    background:#fff; border-radius:50%; transition:left 0.2s;
    box-shadow:0 1px 3px rgba(0,0,0,0.2);
}
.tbs-mini-toggle input:checked + .tbs-mini-track .tbs-mini-thumb { left:18px; }

/* ── Earnings panel ──────────────────────────────────────── */
.tbs-earn-cards {
    display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 16px;
}
@media(min-width:560px){ .tbs-earn-cards { grid-template-columns: repeat(4,1fr); } }

.tbs-earn-card {
    border-radius: var(--tbs-radius-lg); padding: 16px 18px;
    border-top: 4px solid transparent;
    background: #fff; border: 1px solid var(--tbs-border);
    box-shadow: var(--tbs-shadow);
}
.tbs-earn-weekly  { border-top-color: #6366f1; }
.tbs-earn-monthly { border-top-color: #f59e0b; }
.tbs-earn-yearly  { border-top-color: #22c55e; }
.tbs-earn-total   { border-top-color: #1e293b; }
.tbs-earn-period  { font-size: 0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color: var(--tbs-text-light); margin-bottom:6px; }
.tbs-earn-amount  { font-size: 1.25rem; font-weight: 900; color: var(--tbs-secondary); }

.tbs-earn-stats-row {
    display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.tbs-earn-stat {
    flex: 1; min-width: 100px;
    background: #f8fafc; border: 1px solid var(--tbs-border);
    border-radius: var(--tbs-radius); padding: 12px 16px;
    display: flex; flex-direction: column; gap: 4px;
}
.tbs-earn-stat-num   { font-size: 1.4rem; font-weight: 900; color: var(--tbs-secondary); }
.tbs-earn-stat-label { font-size: 0.75rem; color: var(--tbs-text-light); font-weight: 600; }

.tbs-charts-grid {
    display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media(min-width:700px){
    .tbs-charts-grid { grid-template-columns: 1fr 1fr; }
    .tbs-chart-pie-wrap { grid-column: span 2; max-width: 360px; justify-self: center; width: 100%; }
}
.tbs-chart-card {
    background: #fff; border: 1px solid var(--tbs-border);
    border-radius: var(--tbs-radius-lg); padding: 18px;
    box-shadow: var(--tbs-shadow);
}
.tbs-chart-title { font-size: 0.83rem; font-weight: 700; color: var(--tbs-text-light); margin-bottom:12px; text-transform:uppercase; letter-spacing:.04em; }
.tbs-pie-container { max-width:260px; margin:0 auto; }

/* ── Ratings panel ───────────────────────────────────────── */
.tbs-rating-summary {
    display: flex; gap: 24px; align-items: flex-start;
    background: #f8fafc; border: 1px solid var(--tbs-border);
    border-radius: var(--tbs-radius-lg); padding: 20px;
    flex-wrap: wrap;
}
.tbs-rating-big { text-align: center; min-width: 100px; }
.tbs-rating-score {
    font-size: 3.5rem; font-weight: 900; color: var(--tbs-secondary);
    line-height: 1; display: block;
}
.tbs-rating-stars { font-size: 1.3rem; color: #f59e0b; letter-spacing: 2px; margin: 6px 0 4px; }
.tbs-rating-count { font-size: 0.78rem; color: var(--tbs-text-light); }

.tbs-rating-bars { flex: 1; min-width: 200px; }
.tbs-rating-bar-row {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 6px; font-size: 0.82rem;
}
.tbs-rating-bar-label { width: 28px; color: var(--tbs-text-light); font-weight: 600; flex-shrink:0; }
.tbs-rating-bar-bg {
    flex: 1; height: 8px; background: #e2e8f0;
    border-radius: 4px; overflow: hidden;
}
.tbs-rating-bar-fill { height: 100%; background: #f59e0b; border-radius: 4px; transition: width 0.6s ease; }
.tbs-rating-bar-count { width: 24px; text-align: right; color: var(--tbs-text-light); flex-shrink:0; }

.tbs-review-card {
    border: 1px solid var(--tbs-border); border-radius: var(--tbs-radius-lg);
    padding: 14px 16px; margin-bottom: 10px; background: #fff;
}
.tbs-review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-wrap:wrap; gap:6px; }
.tbs-review-customer { font-weight: 700; font-size: 0.9rem; color: var(--tbs-secondary); }
.tbs-review-stars { font-size: 1rem; color: #f59e0b; letter-spacing: 1px; }
.tbs-review-comment { font-size: 0.85rem; color: var(--tbs-text-light); line-height: 1.55; margin-top: 4px; }
.tbs-review-time { font-size: 0.72rem; color: #94a3b8; margin-top: 4px; }

/* ── Profile edit layout ─────────────────────────────────── */
.tbs-profile-edit-layout {
    display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start;
}
.tbs-profile-photo-col { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 120px; }
.tbs-profile-photo-wrap {
    width: 110px; height: 110px; border-radius: 50%;
    overflow: hidden; border: 3px solid var(--tbs-border);
    background: #f1f5f9; display: flex; align-items: center; justify-content: center;
}
.tbs-profile-photo-wrap img { width:100%; height:100%; object-fit:cover; display:block; }
.tbs-profile-no-photo { font-size: 2.5rem; }
.tbs-upload-photo-btn {
    display: inline-block;
    padding: 7px 14px; background: #f1f5f9;
    border: 1.5px solid var(--tbs-border); border-radius: var(--tbs-radius);
    font-size: 0.82rem; font-weight: 600; cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
}
.tbs-upload-photo-btn:hover { border-color: var(--tbs-primary); background: var(--tbs-primary-lt); }
.tbs-profile-fields-col { flex: 1; min-width: 260px; }

.tbs-profile-readonly {
    background: #f8fafc; border: 1px solid var(--tbs-border);
    border-radius: var(--tbs-radius); padding: 12px 14px; margin-top: 14px;
}
.tbs-profile-ro-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 5px 0; border-bottom: 1px solid #f1f5f9; gap: 12px;
    font-size: 0.84rem;
}
.tbs-profile-ro-row:last-child { border-bottom: none; }
.tbs-profile-ro-row span { color: var(--tbs-text-light); flex-shrink:0; }
.tbs-profile-ro-row strong { color: var(--tbs-secondary); text-align: right; word-break: break-word; }

.tbs-pin-change-section {
    margin-top: 16px; border: 1px solid var(--tbs-border);
    border-radius: var(--tbs-radius); padding: 0 14px;
}
.tbs-pin-change-section summary {
    padding: 12px 0; font-size: 0.88rem; font-weight: 600; cursor: pointer;
    color: var(--tbs-primary-dk);
}

/* ── Rating modal (customer) ─────────────────────────────── */
.tbs-star-picker { display: flex; gap: 6px; justify-content: center; margin: 12px 0; flex-wrap: nowrap; }
.tbs-star-btn {
    background: none; border: none; font-size: 1.6rem; cursor: pointer;
    color: #cbd5e1; transition: color 0.15s, transform 0.1s; padding: 0 2px;
    -webkit-tap-highlight-color: transparent; line-height: 1;
}
.tbs-star-btn.active, .tbs-star-btn:hover { color: #f59e0b; transform: scale(1.12); }
@media (max-width: 460px){
    .tbs-star-picker { gap: 4px; }
    .tbs-star-btn { font-size: 1.4rem; padding: 0 1px; }
}

/* ══════════════════════════════════════════════════════════
   DRIVER v3 — Status toggle, Earnings, Ratings, Profile
══════════════════════════════════════════════════════════ */

/* ── Unique code badge ───────────────────────────────────── */
.tbs-unique-code {
    font-family: monospace; font-size: .75rem; font-weight: 700;
    background: #1e293b; color: #f59e0b;
    padding: 2px 7px; border-radius: 4px; letter-spacing: .04em;
}
.tbs-unique-code-lg {
    font-family: monospace; font-size: 1rem; font-weight: 800;
    background: #1e293b; color: #f59e0b;
    padding: 3px 10px; border-radius: 6px; letter-spacing: .06em;
}

/* ── Status toggle (green=online / red=offline) ──────────── */
.tbs-status-toggle-wrap {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--tbs-border);
    background: #f8fafc;
    transition: border-color .2s, background .2s;
}
.tbs-status-toggle-wrap.is-online  { border-color: #22c55e; background: #f0fdf4; }
.tbs-status-toggle-wrap.is-offline { border-color: #fca5a5; background: #fff1f2; }

.tbs-status-lbl {
    font-size: .82rem; font-weight: 700;
    transition: color .2s;
}
.tbs-status-toggle-wrap.is-online  .tbs-status-lbl { color: #15803d; }
.tbs-status-toggle-wrap.is-offline .tbs-status-lbl { color: #dc2626; }

.tbs-status-toggle { display: flex; align-items: center; cursor: pointer; }
.tbs-status-toggle input { display: none; }
.tbs-status-track {
    width: 42px; height: 22px; border-radius: 11px;
    background: #ef4444; position: relative;
    transition: background .25s;
    flex-shrink: 0;
}
.tbs-status-toggle input:checked + .tbs-status-track { background: #22c55e; }
.tbs-status-thumb {
    position: absolute; top: 2px; left: 2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
    transition: left .22s;
}
.tbs-status-toggle input:checked + .tbs-status-track .tbs-status-thumb { left: 22px; }

/* ── Live indicator ──────────────────────────────────────── */
.tbs-live-indicator {
    font-size: .8rem; font-weight: 700;
    color: #15803d; background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 3px 10px; border-radius: 20px;
}

/* ── Earnings header row ─────────────────────────────────── */
.tbs-earn-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.tbs-earn-rides { font-size: .72rem; color: var(--tbs-text-light); margin-top: 4px; }
.tbs-charts-grid-2 {
    display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 4px;
}
@media(min-width:700px){ .tbs-charts-grid-2 { grid-template-columns: 1fr 1fr; } }

.tbs-subsection-title {
    font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--tbs-text-light); margin: 0 0 12px;
}

/* Withdrawal history table */
.tbs-withdraw-table {
    width: 100%; border-collapse: collapse; font-size: .84rem;
}
.tbs-withdraw-table th, .tbs-withdraw-table td {
    padding: 9px 12px; text-align: left;
    border-bottom: 1px solid #f1f5f9;
}
.tbs-withdraw-table th { font-weight: 700; color: var(--tbs-text-light); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.tbs-withdraw-status-pending   { color: #a16207; background: #fef9c3; padding: 2px 8px; border-radius: 12px; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.tbs-withdraw-status-completed { color: #15803d; background: #dcfce7; padding: 2px 8px; border-radius: 12px; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.tbs-withdraw-status-rejected  { color: #b91c1c; background: #fee2e2; padding: 2px 8px; border-radius: 12px; font-size: .72rem; font-weight: 700; text-transform: uppercase; }

/* ── Withdrawal modal ────────────────────────────────────── */
.tbs-withdraw-modal-inner { max-width: 460px; }
.tbs-withdraw-lock-box {
    background: #f8fafc; border: 1.5px solid var(--tbs-border);
    border-radius: var(--tbs-radius-lg); padding: 24px;
    text-align: center; margin: 8px 0;
}
.tbs-withdraw-lock-box p { font-size: .88rem; color: var(--tbs-text-light); margin: 4px 0; }
.tbs-withdraw-next-date {
    font-size: 1.1rem; font-weight: 800; color: var(--tbs-secondary);
    background: #fffbeb; border: 1.5px solid #fde68a;
    border-radius: var(--tbs-radius); padding: 10px 18px; margin: 10px 0;
}
.tbs-wd-calc {
    background: #f8fafc; border: 1px solid var(--tbs-border);
    border-radius: var(--tbs-radius); padding: 10px 14px; margin-top: 8px;
}
.tbs-wd-calc-row {
    display: flex; justify-content: space-between; font-size: .84rem;
    padding: 3px 0; border-bottom: 1px solid #f1f5f9;
    color: var(--tbs-text-light);
}
.tbs-wd-calc-row:last-child { border-bottom: none; }
.tbs-wd-net { font-weight: 700; color: #15803d !important; font-size: .92rem !important; padding-top: 6px; }

/* ── Ratings hero ────────────────────────────────────────── */
.tbs-rating-hero {
    display: flex; gap: 24px; align-items: flex-start;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: var(--tbs-radius-lg); padding: 24px;
    flex-wrap: wrap; margin-bottom: 20px;
}
.tbs-rating-hero-score { text-align: center; min-width: 110px; }
.tbs-rating-score-num {
    font-size: 4rem; font-weight: 900; color: #f59e0b;
    line-height: 1; display: block;
}
.tbs-rating-hero-stars { font-size: 1.4rem; color: #f59e0b; letter-spacing: 3px; margin: 8px 0 4px; }
.tbs-rating-hero-label { font-size: .8rem; color: #94a3b8; }
.tbs-rating-hero .tbs-rating-bars { flex: 1; min-width: 200px; }
.tbs-rating-hero .tbs-rating-bar-label { color: #94a3b8; }
.tbs-rating-hero .tbs-rating-bar-bg   { background: rgba(255,255,255,.15); }
.tbs-rating-hero .tbs-rating-bar-count{ color: #94a3b8; }

/* ── Profile view layout ─────────────────────────────────── */
.tbs-profile-view-layout {
    display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start;
}
.tbs-profile-ro-table { border-collapse: collapse; width: 100%; }
.tbs-profile-ro-table th, .tbs-profile-ro-table td {
    padding: 9px 12px; font-size: .87rem; border-bottom: 1px solid #f1f5f9; text-align: left;
}
.tbs-profile-ro-table th { width: 150px; color: var(--tbs-text-light); font-weight: 600; }
.tbs-profile-ro-table td { color: var(--tbs-secondary); font-weight: 500; }
.tbs-profile-note {
    font-size: .78rem; color: #94a3b8;
    margin-top: 12px; padding: 8px 12px;
    background: #f8fafc; border-radius: var(--tbs-radius);
    border-left: 3px solid var(--tbs-border);
}

/* ══════════════════════════════════════════════════════════
   IMPROVED EARNINGS & RATINGS  v5.1
══════════════════════════════════════════════════════════ */

/* Earnings cards — bigger numbers, cleaner */
.tbs-earn-card {
    position: relative; overflow: hidden;
}
.tbs-earn-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: inherit;
}
.tbs-earn-amount {
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em;
    color: var(--tbs-secondary);
    margin-bottom: 2px;
}
.tbs-earn-rides {
    font-size: 0.72rem;
    color: var(--tbs-text-light);
    display: flex; align-items: center; gap: 4px;
    margin-top: 4px;
}
.tbs-earn-rides::before { content: '🏁'; font-size: 0.7rem; }

/* Stats row — icon + number */
.tbs-earn-stats-row {
    display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.tbs-earn-stat {
    flex: 1; min-width: 110px;
    background: #fff; border: 1px solid var(--tbs-border);
    border-radius: var(--tbs-radius-lg); padding: 16px;
    display: flex; flex-direction: column; gap: 4px;
    box-shadow: var(--tbs-shadow); position: relative;
}
.tbs-earn-stat-icon {
    font-size: 1.6rem; margin-bottom: 4px; display: block;
}
.tbs-earn-stat-num   { font-size: 1.6rem; font-weight: 900; color: var(--tbs-secondary); letter-spacing: -0.02em; }
.tbs-earn-stat-label { font-size: 0.72rem; color: var(--tbs-text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* Charts — proper 2-col, no pie */
.tbs-charts-grid-2 {
    display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px;
}
@media(min-width:700px){ .tbs-charts-grid-2 { grid-template-columns: 1fr 1fr; } }

.tbs-chart-card {
    background: #fff; border: 1px solid var(--tbs-border);
    border-radius: var(--tbs-radius-lg); padding: 20px;
    box-shadow: var(--tbs-shadow);
}
.tbs-chart-title {
    font-size: 0.78rem; font-weight: 700; color: var(--tbs-text-light);
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px;
}

/* Withdrawal history table */
.tbs-withdraw-history-wrap { margin-top: 20px; }
.tbs-subsection-title {
    font-size: 0.88rem; font-weight: 700; color: var(--tbs-secondary);
    text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 12px;
    border-bottom: 2px solid var(--tbs-border); padding-bottom: 8px;
}
.tbs-withdraw-table {
    width: 100%; border-collapse: collapse; font-size: 0.84rem;
}
.tbs-withdraw-table th {
    background: #f8fafc; padding: 8px 12px; text-align: left;
    font-weight: 600; color: var(--tbs-text-light); font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid var(--tbs-border);
}
.tbs-withdraw-table td {
    padding: 10px 12px; border-bottom: 1px solid #f1f5f9; color: var(--tbs-text);
}
.tbs-withdraw-table tr:last-child td { border-bottom: none; }
.tbs-withdraw-table tr:hover td { background: #fafcff; }
.tbs-ws-pending   { color: #a16207; background: #fef9c3; padding: 2px 8px; border-radius: 12px; font-size: .72rem; font-weight: 700; }
.tbs-ws-completed { color: #15803d; background: #dcfce7; padding: 2px 8px; border-radius: 12px; font-size: .72rem; font-weight: 700; }
.tbs-ws-rejected  { color: #b91c1c; background: #fee2e2; padding: 2px 8px; border-radius: 12px; font-size: .72rem; font-weight: 700; }

/* Withdrawal modal */
.tbs-withdraw-modal-inner { max-width: 460px; max-height: 90vh; overflow-y: auto; }
.tbs-wd-calc {
    background: #f8fafc; border: 1px solid var(--tbs-border);
    border-radius: var(--tbs-radius); padding: 10px 14px; margin-top: 8px;
}
.tbs-wd-calc-row {
    display: flex; justify-content: space-between;
    font-size: 0.84rem; padding: 4px 0;
    color: var(--tbs-text-light); border-bottom: 1px solid #f1f5f9;
}
.tbs-wd-calc-row:last-child { border-bottom: none; }
.tbs-wd-net {
    font-size: 0.95rem !important; font-weight: 800 !important;
    color: var(--tbs-secondary) !important; padding-top: 8px !important;
    margin-top: 4px;
}
.tbs-wd-net strong { color: #15803d !important; font-size: 1rem; }
.tbs-withdraw-lock-box {
    background: #fff8f0; border: 1.5px solid #fde68a;
    border-radius: var(--tbs-radius-lg); padding: 20px; text-align: center;
    margin-bottom: 8px;
}
.tbs-withdraw-next-date {
    font-size: 1.1rem; font-weight: 800; color: var(--tbs-secondary);
    background: #fff; border: 2px solid var(--tbs-primary);
    border-radius: var(--tbs-radius); padding: 8px 16px;
    display: inline-block; margin: 8px 0;
}

/* ── Ratings hero — improved ─────────────────────────────── */
.tbs-rating-hero {
    display: flex; gap: 28px; align-items: flex-start;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: var(--tbs-radius-lg); padding: 24px;
    margin-bottom: 20px; flex-wrap: wrap; color: #fff;
}
.tbs-rating-hero-score { text-align: center; min-width: 110px; }
.tbs-rating-score-num {
    font-size: 4rem; font-weight: 900; color: #fff;
    line-height: 1; display: block; letter-spacing: -0.03em;
}
.tbs-rating-hero-stars { font-size: 1.5rem; color: #f59e0b; letter-spacing: 4px; margin: 8px 0 6px; }
.tbs-rating-hero-label { font-size: .82rem; color: rgba(255,255,255,0.6); }
.tbs-rating-hero .tbs-rating-bars { flex: 1; min-width: 200px; }
.tbs-rating-hero .tbs-rating-bar-label { color: rgba(255,255,255,0.7); font-weight: 600; }
.tbs-rating-hero .tbs-rating-bar-bg   { background: rgba(255,255,255,0.15); }
.tbs-rating-hero .tbs-rating-bar-fill { background: #f59e0b; }
.tbs-rating-hero .tbs-rating-bar-count{ color: rgba(255,255,255,0.6); }

/* Reviews list */
.tbs-review-card {
    background: #fff; border: 1px solid var(--tbs-border);
    border-radius: var(--tbs-radius-lg); padding: 16px;
    margin-bottom: 10px; transition: box-shadow 0.2s;
}
.tbs-review-card:hover { box-shadow: var(--tbs-shadow-md); }
.tbs-review-header { display: flex; justify-content: space-between; align-items: center; flex-wrap:wrap; gap:8px; margin-bottom: 6px; }
.tbs-review-customer { font-weight: 700; font-size: 0.9rem; color: var(--tbs-secondary); }
.tbs-review-stars { font-size: 1.1rem; color: #f59e0b; letter-spacing: 2px; }
.tbs-review-comment {
    font-size: 0.86rem; color: var(--tbs-text); line-height: 1.6; margin-top: 6px;
    background: #f8fafc; border-left: 3px solid #f59e0b;
    padding: 8px 12px; border-radius: 0 6px 6px 0;
}
.tbs-review-time { font-size: 0.72rem; color: #94a3b8; margin-top: 6px; }

/* Unique code badge */
.tbs-unique-code {
    font-family: 'Courier New', monospace; font-size: 0.82rem; font-weight: 700;
    background: #f1f5f9; color: var(--tbs-secondary);
    padding: 2px 8px; border-radius: 6px; letter-spacing: 0.05em;
}
.tbs-unique-code-lg {
    font-family: 'Courier New', monospace; font-size: 1rem; font-weight: 800;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #f59e0b; padding: 6px 14px; border-radius: 8px;
    letter-spacing: 0.1em; display: inline-block;
}

/* Profile view layout */
.tbs-profile-view-layout { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.tbs-profile-view-col { flex: 1; min-width: 260px; }
.tbs-profile-ro-table { border-collapse: collapse; width: 100%; }
.tbs-profile-ro-table th, .tbs-profile-ro-table td {
    padding: 9px 12px; font-size: 0.86rem;
    border-bottom: 1px solid #f1f5f9; text-align: left;
}
.tbs-profile-ro-table th { width: 140px; color: var(--tbs-text-light); font-weight: 600; }
.tbs-profile-ro-table td { color: var(--tbs-secondary); font-weight: 500; }
.tbs-profile-ro-table tr:last-child th,
.tbs-profile-ro-table tr:last-child td { border-bottom: none; }
.tbs-profile-note {
    font-size: 0.78rem; color: var(--tbs-text-light);
    margin-top: 12px; background: #f8fafc;
    border: 1px solid var(--tbs-border); border-radius: 6px; padding: 8px 12px;
}

/* ── Status toggle — explicit red=offline, green=online ──── */
.tbs-status-toggle-wrap {
    display: flex; align-items: center; gap: 8px;
    border: 1.5px solid var(--tbs-border); border-radius: 20px;
    padding: 6px 12px; background: #fff1f2; /* default red-tinted bg */
    transition: all 0.25s;
}
.tbs-status-toggle-wrap.is-online  { border-color: #22c55e; background: #f0fdf4; }
.tbs-status-toggle-wrap.is-offline { border-color: #ef4444; background: #fff1f2; }
.tbs-status-lbl { font-size: 0.82rem; font-weight: 700; }
.tbs-status-toggle-wrap.is-online  .tbs-status-lbl { color: #15803d; }
.tbs-status-toggle-wrap.is-offline .tbs-status-lbl { color: #dc2626; }
.tbs-status-toggle { display: flex; align-items: center; cursor: pointer; }
.tbs-status-toggle input { display: none; }
.tbs-status-track {
    width: 40px; height: 22px; background: #ef4444; /* default RED */
    border-radius: 11px; position: relative; transition: background 0.2s;
}
.tbs-status-toggle input:checked + .tbs-status-track { background: #22c55e; }
.tbs-status-thumb {
    position: absolute; top: 3px; left: 3px;
    width: 16px; height: 16px; background: #fff;
    border-radius: 50%; transition: left 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.tbs-status-toggle input:checked + .tbs-status-track .tbs-status-thumb { left: 21px; }

/* ── Earn header row ─────────────────────────────────────── */
.tbs-earn-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}

/* ── Fund modal ──────────────────────────────────────────── */
.tbs-funds-modal-inner { max-width: 460px; max-height: 90vh; overflow-y: auto; }

.tbs-fund-account-box {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff; border-radius: var(--tbs-radius-lg); padding: 18px 20px;
    margin-bottom: 4px;
}
.tbs-fund-account-loading { color: rgba(255,255,255,0.6); font-size: .88rem; }
.tbs-fund-account-title {
    font-size: .72rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: #f59e0b; margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px;
}
.tbs-fund-qr-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; }
.tbs-fund-qr-img {
    width: 90px; height: 90px; border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.2); object-fit: contain;
    background: #fff; padding: 4px; flex-shrink: 0;
}
.tbs-fund-qr-placeholder {
    width: 90px; height: 90px; border-radius: 8px;
    border: 2px dashed rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; flex-shrink: 0;
}
.tbs-fund-detail-rows { flex: 1; }
.tbs-fund-detail-row {
    display: flex; flex-direction: column; gap: 1px; margin-bottom: 8px;
}
.tbs-fund-detail-label { font-size: .68rem; color: rgba(255,255,255,0.5); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tbs-fund-detail-val   { font-size: .95rem; font-weight: 700; color: #fff; }
.tbs-fund-note {
    background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3);
    border-radius: 6px; padding: 8px 12px; font-size: .78rem;
    color: rgba(255,255,255,0.8); line-height: 1.5;
}

/* Transaction list */
.tbs-subsection-title-sm {
    font-size: .82rem; font-weight: 700; color: var(--tbs-secondary);
    text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px;
}
.tbs-txn-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
}
.tbs-txn-item:last-child { border-bottom: none; }
.tbs-txn-item:hover { background: #fafcff; }
.tbs-txn-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.tbs-txn-icon.credit { background: #dcfce7; color: #15803d; }
.tbs-txn-icon.debit  { background: #fee2e2; color: #b91c1c; }
.tbs-txn-body { flex: 1; min-width: 0; }
.tbs-txn-desc { font-size: .85rem; font-weight: 600; color: var(--tbs-secondary); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbs-txn-date { font-size: .72rem; color: #94a3b8; }
.tbs-txn-amount { font-size: .95rem; font-weight: 800; flex-shrink: 0; }
.tbs-txn-amount.credit { color: #15803d; }
.tbs-txn-amount.debit  { color: #b91c1c; }
.tbs-txn-balance { font-size: .72rem; color: #94a3b8; text-align: right; flex-shrink: 0; }

.tbs-fund-req-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: #fffbeb;
    border: 1px solid #fde68a; border-radius: var(--tbs-radius); margin-bottom: 8px;
    font-size: .84rem; flex-wrap: wrap; gap: 6px;
}
.tbs-fund-req-amount  { font-weight: 800; color: var(--tbs-secondary); }
.tbs-fund-req-status  { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 12px; text-transform: uppercase; }
.tbs-fund-req-pending  { background: #fef9c3; color: #a16207; }
.tbs-fund-req-approved { background: #dcfce7; color: #15803d; }
.tbs-fund-req-rejected { background: #fee2e2; color: #b91c1c; }

/* Withdrawal balance display */
.tbs-wd-balance-row {
    display: flex; justify-content: space-between; align-items: center;
    background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: var(--tbs-radius); padding: 10px 14px;
    margin-bottom: 14px; font-size: 0.88rem;
}
.tbs-wd-balance-row span   { color: var(--tbs-text-light); font-weight: 600; }
.tbs-wd-balance-row strong { color: #15803d; font-size: 1.1rem; font-weight: 800; }

/* ══════════════════════════════════════════════════════════
   FUND MODAL — v2 complete redesign
══════════════════════════════════════════════════════════ */

/* Modal container */
.tbs-funds-modal-inner {
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--tbs-radius-xl) !important;
    padding: 28px 24px !important;
}
@media (min-width: 480px) {
    .tbs-funds-modal-inner { padding: 32px 32px !important; }
}

/* Account card */
.tbs-fund-account-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--tbs-radius-lg);
    padding: 20px;
    margin-bottom: 4px;
    border: 1px solid rgba(255,255,255,0.08);
}
.tbs-fund-account-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f59e0b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tbs-fund-qr-wrap {
    text-align: center;
    margin-bottom: 16px;
}
.tbs-fund-qr-img {
    max-width: 160px;
    height: auto;
    border-radius: 10px;
    background: #fff;
    padding: 8px;
    display: block;
    margin: 0 auto 6px;
}
.tbs-fund-qr-caption {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
}
.tbs-fund-detail-rows { display: flex; flex-direction: column; gap: 10px; }
.tbs-fund-detail-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tbs-fund-copyable {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
}
.tbs-fund-detail-label {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.tbs-fund-detail-val {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
    word-break: break-all;
}
.tbs-fund-copyable .tbs-fund-detail-label { flex-basis: 100%; }
.tbs-fund-copyable .tbs-fund-detail-val { flex: 1; }
.tbs-copy-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 0.82rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}
.tbs-copy-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
.tbs-fund-note {
    margin-top: 14px;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: 8px;
    padding: 10px 13px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.55;
}

/* Step 2 form fields */
.tbs-fund-form-fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.tbs-fund-form-field { display: flex; flex-direction: column; gap: 5px; }
.tbs-fund-form-field label {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--tbs-secondary);
}
.tbs-fund-form-field label .req { color: var(--tbs-error); }
.tbs-fund-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--tbs-border);
    border-radius: var(--tbs-radius);
    font-size: 0.95rem;
    font-family: var(--tbs-font);
    color: var(--tbs-text);
    background: #fff;
    -webkit-appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.tbs-fund-input:focus {
    outline: none;
    border-color: var(--tbs-primary);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}
.tbs-fund-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
.tbs-fund-hint {
    font-size: 0.76rem;
    color: var(--tbs-text-light);
    line-height: 1.4;
}

/* Step 3 success */
.tbs-fund-success-info {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--tbs-radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    margin-top: 6px;
}
.tbs-fund-success-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: #166534;
    line-height: 1.55;
}
.tbs-fund-success-row span:first-child { flex-shrink: 0; font-size: 1rem; }

/* Back button */
.tbs-fund-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--tbs-text-light);
    font-size: 1rem;
    transition: background 0.15s;
}
.tbs-fund-back-btn:hover { background: #e2e8f0; color: var(--tbs-secondary); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE HARDENING — v14 (mobile-first overrides)
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Dashboard wrapper padding */
    .tbs-cdash, .tbs-ddash { padding: 12px 10px 40px; }

    /* Top bar stacks neatly */
    .tbs-cdash-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .tbs-cdash-topactions { justify-content: space-between; }

    /* Booking layout: map on top, controls below */
    .tbs-booking-layout { flex-direction: column; }
    .tbs-booking-controls { width: 100% !important; }
    #tbs-book-map, #tbs-ride-map, #tbs-driver-map, #tbs-dride-map {
        height: 280px !important;
    }

    /* Cards: 2 per row on tablet, 1 on phone */
    .tbs-cdash-cards { grid-template-columns: repeat(2, 1fr); }

    /* Tabs scroll horizontally */
    .tbs-cdash-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    .tbs-cdash-tabs::-webkit-scrollbar { display: none; }
    .tbs-cdash-tab { white-space: nowrap; flex: 0 0 auto; }

    /* Ride info cards single column */
    .tbs-ride-cards { grid-template-columns: 1fr 1fr; }

    /* Modals fit screen */
    .tbs-modal {
        width: calc(100% - 24px) !important;
        max-width: 460px;
        margin: 12px;
        max-height: 88vh;
        overflow-y: auto;
    }

    /* Earnings cards 2 per row */
    .tbs-earn-cards { grid-template-columns: repeat(2, 1fr) !important; }
    .tbs-charts-grid-2 { grid-template-columns: 1fr !important; }

    /* Tables scroll */
    .tbs-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table.tbs-data-table { min-width: 520px; }

    /* Profile edit layout stacks */
    .tbs-profile-edit-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 460px) {
    /* Single column cards on small phones */
    .tbs-cdash-cards { grid-template-columns: 1fr 1fr; }
    .tbs-ride-cards { grid-template-columns: 1fr; }
    .tbs-earn-cards { grid-template-columns: 1fr 1fr !important; }

    /* Fund modal fields stack */
    #tbs-fund-step1 > div[style*="display:flex"] {
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* Smaller headings */
    .tbs-panel-title { font-size: 1.05rem; }
    .tbs-cdash-name { font-size: 1rem; }

    /* OTP digit inputs shrink */
    .tbs-otp-digit, .tbs-fp-digit {
        width: 38px !important;
        height: 46px !important;
        font-size: 1.2rem !important;
    }

    /* Buttons full width feel */
    .tbs-btn-sm { padding: 8px 12px; }
}

/* Make any wide admin-style data tables scrollable on mobile */
@media (max-width: 600px) {
    .tbs-txn-item {
        flex-wrap: wrap;
        gap: 6px;
    }
    .tbs-fund-req-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ══════════════════════════════════════════════════════════
   DRIVER ONLINE/OFFLINE RADIO SELECTOR — v15
══════════════════════════════════════════════════════════ */
.tbs-status-radio-wrap {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}
.tbs-status-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tbs-text-light, #64748b);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    white-space: nowrap;
}
.tbs-status-radio input { display: none; }
.tbs-status-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: background 0.15s;
}
/* Active online = green */
.tbs-status-radio-online.is-active {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 1px 4px rgba(22,163,74,0.4);
}
.tbs-status-radio-online.is-active .tbs-status-dot { background: #fff; }
/* Active offline = red */
.tbs-status-radio-offline.is-active {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 1px 4px rgba(220,38,38,0.4);
}
.tbs-status-radio-offline.is-active .tbs-status-dot { background: #fff; }

@media (max-width: 460px) {
    .tbs-status-radio { padding: 6px 10px; font-size: 0.8rem; }
}

/* ══════════════════════════════════════════════════════════
   PAYMENT FLOW — v20
══════════════════════════════════════════════════════════ */
/* Pay prompt in active ride */
.tbs-pay-prompt {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #6ee7b7; border-radius: 14px; padding: 16px;
}
.tbs-pay-prompt-icon { font-size: 2rem; }
.tbs-pay-prompt-title { font-weight: 700; color: #065f46; font-size: 1rem; }
.tbs-pay-prompt-sub { color: #047857; font-size: 0.9rem; margin-top: 2px; }

/* Payment detail card */
.tbs-pay-detail-card {
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 16px; text-align: left;
}
.tbs-pay-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid #eef2f7;
    font-size: 0.9rem; color: #475569; gap: 14px;
}
.tbs-pay-row:last-child { border-bottom: none; }
.tbs-pay-row strong { color: #1e293b; font-weight: 600; text-align: right; }
.tbs-pay-total { margin-top: 4px; padding-top: 12px; border-top: 2px solid #e2e8f0; }
.tbs-pay-total span { font-weight: 700; color: #1e293b; }
.tbs-pay-total strong { font-size: 1.25rem; color: #16a34a; }

/* Invoice */
.tbs-invoice-head {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px dashed #cbd5e1; padding-bottom: 14px; margin-bottom: 14px;
}
.tbs-invoice-logo { font-weight: 800; font-size: 1.1rem; color: #1e293b; }
.tbs-invoice-tag {
    background: #1e293b; color: #fff; font-size: 0.7rem; font-weight: 700;
    letter-spacing: 2px; padding: 4px 10px; border-radius: 6px;
}
.tbs-invoice-rows { text-align: left; }

/* Driver payment toast */
.tbs-payment-toast {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-120px);
    background: linear-gradient(135deg, #16a34a, #15803d); color: #fff;
    font-weight: 700; font-size: 1.05rem; padding: 16px 28px;
    border-radius: 14px; box-shadow: 0 10px 30px rgba(22,163,74,0.4);
    z-index: 99999; opacity: 0; transition: all 0.4s cubic-bezier(0.18,0.89,0.32,1.28);
}
.tbs-payment-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ══════════════════════════════════════════════════════════
   CLICKABLE RIDE-REQUEST NOTIFICATION — v21
══════════════════════════════════════════════════════════ */
.tbs-notif-clickable { cursor: pointer; transition: background 0.15s; }
.tbs-notif-clickable:hover { background: #f0f9ff; }
.tbs-notif-cta {
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #2563eb;
}

/* ══════════════════════════════════════════════════════════
   INVOICE PARTY SECTIONS + TICK + CONTACT FORM — v25
══════════════════════════════════════════════════════════ */
.tbs-invoice-party {
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 10px 0;
}
.tbs-invoice-party-label {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
}
.tbs-invoice-party .tbs-pay-row { padding: 4px 0; border-bottom: none; }
.tbs-invoice-party .tbs-pay-row strong { font-weight: 700; color: #1e293b; }

/* Animated success tick */
.tbs-pay-tick {
    width: 72px; height: 72px; margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg,#16a34a,#15803d);
    color: #fff; font-size: 2.4rem; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(22,163,74,.4);
    animation: tbs-tick-pop .45s cubic-bezier(.18,.89,.32,1.28);
}
@keyframes tbs-tick-pop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Contact form */
.tbs-contact-form { max-width: 560px; }
.tbs-contact-form input:focus,
.tbs-contact-form textarea:focus {
    outline: none; border-color: var(--tbs-primary,#f59e0b);
    box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}

/* ══════════════════════════════════════════════════════════
   ACCEPTED DRIVER PROFILE CARD — v26
══════════════════════════════════════════════════════════ */
.tbs-driver-profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg,#1e293b,#0f172a);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    color: #fff;
}
.tbs-dpc-photo {
    width: 72px; height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(245,158,11,.6);
    background: #334155;
    position: relative;
}
.tbs-dpc-photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.tbs-dpc-photo-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}
.tbs-dpc-info { flex: 1; min-width: 0; }
.tbs-dpc-name {
    font-size: 1.15rem; font-weight: 800; color: #fff; line-height: 1.2;
}
.tbs-dpc-code {
    font-family: 'Courier New', monospace;
    font-size: .8rem; font-weight: 700; color: #f59e0b;
    letter-spacing: 1px; margin-top: 2px;
}
.tbs-dpc-rating {
    font-size: .85rem; color: #fbbf24; font-weight: 600; margin-top: 4px;
}
.tbs-dpc-meta {
    font-size: .82rem; color: rgba(255,255,255,.65); margin-top: 4px;
}
@media (max-width: 460px){
    .tbs-driver-profile-card { padding: 14px; gap: 12px; }
    .tbs-dpc-photo { width: 58px; height: 58px; }
    .tbs-dpc-name { font-size: 1rem; }
}

/* ══════════════════════════════════════════════════════════
   PAYMENT SUCCESS RECEIPT — v27
══════════════════════════════════════════════════════════ */
.tbs-invoice-receipt {
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
}
.tbs-receipt-amount {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; padding-bottom: 14px; margin-bottom: 8px;
    border-bottom: 2px dashed #cbd5e1;
}
.tbs-receipt-amount-label {
    font-size: .72rem; text-transform: uppercase; letter-spacing: 1px;
    color: #94a3b8; font-weight: 700;
}
.tbs-receipt-amount-val {
    font-size: 2rem; font-weight: 900; color: #16a34a; letter-spacing: -1px;
}
.tbs-invoice-receipt .tbs-pay-row { padding: 7px 0; border-bottom: 1px solid #eef2f7; }
.tbs-invoice-receipt .tbs-pay-row:last-child { border-bottom: none; }
.tbs-invoice-receipt .tbs-pay-row strong { font-weight: 800; color: #1e293b; }

/* Withdrawal status: approved (admin) shown green */
.tbs-withdraw-status-approved { color: #15803d; background: #dcfce7; padding: 2px 8px; border-radius: 12px; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.tbs-ws-approved { color: #15803d; background: #dcfce7; padding: 2px 8px; border-radius: 12px; font-size: .72rem; font-weight: 700; }

/* ══════════════════════════════════════════════════════════
   BANK / PAYMENT-APP SELECT — clearly visible — v27
══════════════════════════════════════════════════════════ */
.tbs-bank-select {
    width: 100%;
    padding: 12px 36px 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: .95rem;
    font-family: inherit;
    color: #1e293b;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    line-height: 1.3;
}
.tbs-bank-select:focus {
    outline: none;
    border-color: var(--tbs-primary,#f59e0b);
    box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.tbs-bank-select option { color: #1e293b; background: #fff; }

/* ══════════════════════════════════════════════════════════
   TRANSFER FUND MODAL — v31
══════════════════════════════════════════════════════════ */
.tbs-tf-label {
    font-size: .82rem; font-weight: 600; color: #1e293b;
    display: block; margin-bottom: 5px;
}
.tbs-tf-input {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: .95rem;
    font-family: inherit;
    color: #1e293b;
    background: #fff;
}
.tbs-tf-input:focus {
    outline: none; border-color: var(--tbs-primary,#f59e0b);
    box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}

/* ══════════════════════════════════════════════════════════
   LOCATION SEARCH HINTS — v32
══════════════════════════════════════════════════════════ */
.tbs-hints {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15,23,42,.14);
    z-index: 1200;
    overflow: hidden;
}
.tbs-hint-item {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 13px;
    cursor: pointer;
    font-size: .88rem;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    transition: background .12s;
}
.tbs-hint-item:last-child { border-bottom: none; }
.tbs-hint-item:hover { background: #fff7ed; }
.tbs-hint-pin { flex-shrink: 0; }
.tbs-hint-text { line-height: 1.3; }
.tbs-hint-empty { padding: 12px 13px; font-size: .84rem; color: #94a3b8; }

/* ══════════════════════════════════════════════════════════
   DRIVER AWAITING-PAYMENT BANNER — v33
══════════════════════════════════════════════════════════ */
.tbs-await-pay-banner {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg,#fffbeb,#fef3c7);
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 14px 16px;
}
.tbs-ride-badge.awaiting { background: #fef3c7; color: #92400e; }

/* ══════════════════════════════════════════════════════════
   CHANGE PIN CARD — v34
══════════════════════════════════════════════════════════ */
.tbs-changepin-card {
    margin-top: 22px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    max-width: 420px;
}
.tbs-changepin-title {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}
.tbs-changepin-card .tbs-field label {
    display: block; font-size: .84rem; font-weight: 600;
    color: #475569; margin-bottom: 5px;
}

/* ══════════════════════════════════════════════════════════
   IN-RIDE CHAT — v36 (improved)
══════════════════════════════════════════════════════════ */
.tbs-chat-wrap {
    margin-top: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15,23,42,.06);
}
.tbs-chat-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 16px;
    background: linear-gradient(135deg,#1e293b,#0f172a);
    color: #fff; font-weight: 700; font-size: .94rem;
}
.tbs-chat-status { font-size: .68rem; font-weight: 800; padding: 3px 11px; border-radius: 20px; letter-spacing: .4px; text-transform: uppercase; }
.tbs-chat-status.open   { background: #16a34a; color: #fff; }
.tbs-chat-status.closed { background: #94a3b8; color: #fff; }

.tbs-chat-messages {
    height: 300px; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 14px;
    background: #f1f5f9;
    background-image: radial-gradient(#e2e8f0 0.5px, transparent 0.5px);
    background-size: 16px 16px;
}
/* Each message is a column: bubble on top, time below (no overlap) */
.tbs-msg { display: flex; flex-direction: column; max-width: 78%; }
.tbs-msg-them { align-self: flex-start; align-items: flex-start; }
.tbs-msg-me   { align-self: flex-end; align-items: flex-end; }
.tbs-msg-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: .92rem; line-height: 1.4;
    word-wrap: break-word; overflow-wrap: anywhere;
    box-shadow: 0 1px 2px rgba(15,23,42,.08);
}
.tbs-msg-them .tbs-msg-bubble { background: #fff; border: 1px solid #e2e8f0; color: #1e293b; border-bottom-left-radius: 5px; }
.tbs-msg-me   .tbs-msg-bubble { background: linear-gradient(135deg,#f59e0b,#f97316); color: #fff; border-bottom-right-radius: 5px; }
/* Time sits BELOW the bubble */
.tbs-msg-time { font-size: .66rem; color: #94a3b8; margin: 3px 6px 0; }

/* Voice messages */
.tbs-msg-voice { display: flex; align-items: center; gap: 8px; }
.tbs-msg-voice-ic { font-size: 1.05rem; }
.tbs-msg-me .tbs-msg-voice-ic { filter: brightness(0) invert(1); }
.tbs-msg-audio { height: 36px; max-width: 190px; }

.tbs-chat-closed { padding: 16px; text-align: center; color: #64748b; font-size: .85rem; background: #f8fafc; font-style: italic; }

.tbs-chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e2e8f0; align-items: center; background: #fff; }
.tbs-chat-text {
    flex: 1; padding: 11px 16px; border: 1.5px solid #e2e8f0; border-radius: 24px;
    font-size: .92rem; font-family: inherit; outline: none; transition: border-color .15s;
}
.tbs-chat-text:focus { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.12); }
.tbs-chat-mic, .tbs-chat-send {
    border: none; cursor: pointer; border-radius: 50%; font-weight: 700;
    -webkit-tap-highlight-color: transparent; transition: transform .1s, background .15s;
}
.tbs-chat-mic { background: #f1f5f9; width: 44px; height: 44px; font-size: 1.15rem; flex-shrink: 0; }
.tbs-chat-mic:hover { background: #fde68a; transform: scale(1.05); }
.tbs-chat-send { background: linear-gradient(135deg,#f59e0b,#f97316); color: #fff; padding: 0 20px; height: 44px; border-radius: 24px; flex-shrink: 0; font-size: .92rem; }
.tbs-chat-send:hover { transform: translateY(-1px); }

.tbs-chat-recording {
    display: flex; align-items: center; gap: 9px; padding: 13px 16px;
    border-top: 1px solid #e2e8f0; font-size: .88rem; color: #b91c1c; font-weight: 600;
    background: #fef2f2;
}
.tbs-rec-mic { font-size: 1.1rem; }
.tbs-rec-dot { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; animation: tbs-pulse 1s infinite; }
@keyframes tbs-pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.35;transform:scale(.8);} }
.tbs-rec-time { font-variant-numeric: tabular-nums; }
.tbs-rec-stop, .tbs-rec-cancel { border: none; cursor: pointer; border-radius: 18px; padding: 7px 15px; font-weight: 700; font-size: .8rem; }
.tbs-rec-stop { background: #16a34a; color: #fff; margin-left: auto; }
.tbs-rec-cancel { background: #fff; color: #64748b; border: 1px solid #e2e8f0; margin-left: 6px; }

/* ══════════════════════════════════════════════════════════
   NEWS / ADVERTISING FEED — v40
══════════════════════════════════════════════════════════ */
.tbs-news-list { display: flex; flex-direction: column; gap: 16px; }
.tbs-news-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15,23,42,.05);
    transition: transform .15s, box-shadow .15s;
}
.tbs-news-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15,23,42,.1); }
.tbs-news-img { width: 100%; max-height: 240px; object-fit: cover; display: block; background: #f1f5f9; }
.tbs-news-body { padding: 16px 18px; }
.tbs-news-title { font-size: 1.08rem; font-weight: 800; color: #1e293b; line-height: 1.3; }
.tbs-news-date { font-size: .74rem; color: #94a3b8; margin: 4px 0 10px; }
.tbs-news-desc { font-size: .92rem; color: #475569; line-height: 1.55; }
.tbs-news-link {
    display: inline-block; margin-top: 12px;
    color: #f59e0b; font-weight: 700; font-size: .9rem; text-decoration: none;
}
.tbs-news-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   NEWS — featured strip, search, detail — v41
══════════════════════════════════════════════════════════ */
.tbs-featured-label { font-size: .82rem; font-weight: 800; color: #b45309; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.tbs-featured-strip {
    display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px;
    -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;
}
.tbs-featured-strip::-webkit-scrollbar { height: 6px; }
.tbs-featured-strip::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.tbs-feat-card {
    flex: 0 0 150px; scroll-snap-align: start; cursor: pointer;
    border: 1px solid #fcd34d; border-radius: 12px; overflow: hidden;
    background: #fffbeb; transition: transform .15s, box-shadow .15s;
}
.tbs-feat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(245,158,11,.25); }
.tbs-feat-img { width: 100%; height: 90px; background-size: cover; background-position: center; background-color: #fef3c7; }
.tbs-feat-noimg { display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.tbs-feat-title { padding: 8px 10px; font-size: .82rem; font-weight: 700; color: #1e293b; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.tbs-news-advert-note {
    background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px;
    padding: 10px 14px; margin: 14px 0; font-size: .86rem; color: #065f46;
}
.tbs-news-advert-note a { color: #047857; text-decoration: none; }
.tbs-news-advert-note a:hover { text-decoration: underline; }

.tbs-news-search {
    width: 100%; padding: 11px 14px; border: 1.5px solid #e2e8f0; border-radius: 24px;
    font-size: .92rem; font-family: inherit; outline: none; margin-bottom: 16px;
}
.tbs-news-search:focus { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.12); }

.tbs-news-card { cursor: pointer; }
.tbs-news-imgcount {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(15,23,42,.75); color: #fff; font-size: .72rem; font-weight: 700;
    padding: 2px 8px; border-radius: 12px;
}
.tbs-news-readmore { display: inline-block; margin-top: 10px; color: #f59e0b; font-weight: 700; font-size: .86rem; }

/* Detail view */
.tbs-detail-title { font-size: 1.4rem; font-weight: 800; color: #1e293b; margin: 0 0 4px; }
.tbs-detail-date { font-size: .8rem; color: #94a3b8; margin-bottom: 14px; }
.tbs-detail-feat { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px; padding: 10px 14px; font-size: .84rem; color: #92400e; margin-bottom: 16px; }
.tbs-detail-feat a { color: #b45309; font-weight: 700; }
.tbs-detail-gallery {
    display: flex; flex-direction: row; gap: 12px; margin-bottom: 18px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; padding-bottom: 8px;
}
.tbs-detail-gallery::-webkit-scrollbar { height: 6px; }
.tbs-detail-gallery::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.tbs-detail-img {
    flex: 0 0 auto; width: 85%; max-width: 360px; scroll-snap-align: center;
    border-radius: 12px; border: 1px solid #e2e8f0; object-fit: cover;
}
.tbs-detail-desc { font-size: .98rem; color: #334155; line-height: 1.65; }

/* ══════════════════════════════════════════════════════════
   WITHDRAWAL HISTORY — horizontal scroll (v43)
══════════════════════════════════════════════════════════ */
.tbs-withdraw-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e8edf3;
    border-radius: 12px;
}
.tbs-withdraw-scroll::-webkit-scrollbar { height: 7px; }
.tbs-withdraw-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.tbs-withdraw-scroll::-webkit-scrollbar-track { background: #f1f5f9; }
.tbs-withdraw-scroll .tbs-withdraw-table {
    min-width: 640px;   /* forces horizontal scroll on narrow screens so Status stays visible */
    margin: 0;
}
.tbs-withdraw-scroll .tbs-withdraw-table th,
.tbs-withdraw-scroll .tbs-withdraw-table td {
    white-space: nowrap;
}
/* Status column emphasised so the approve/pending state is clearly seen */
.tbs-withdraw-scroll .tbs-withdraw-table td:last-child,
.tbs-withdraw-scroll .tbs-withdraw-table th:last-child {
    position: sticky; right: 0;
    background: #fff;
    box-shadow: -6px 0 8px -6px rgba(15,23,42,.12);
    text-align: center;
}
.tbs-withdraw-scroll .tbs-withdraw-table th:last-child { background: #f8fafc; }
