/* Tafuta — Styles principaux (inspiré Yango) */
:root {
    --tafuta-red: #E53935;
    --tafuta-red-dark: #C62828;
    --tafuta-bg: #F5F5F5;
    --tafuta-card: #FFFFFF;
    --tafuta-text: #212121;
    --tafuta-muted: #757575;
    --tafuta-border: #E0E0E0;
    --tafuta-salmon: #FF8A80;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--tafuta-bg); color: var(--tafuta-text); }

/* Auth flow (style Yango) */
#auth-flow { position: fixed; inset: 0; z-index: 2000; background: #fff; }
#auth-flow.hidden { display: none; }
.auth-screen { display: none; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.auth-screen.active { display: flex; }
#auth-splash { background: var(--tafuta-red); color: #fff; align-items: center; justify-content: center; }
.splash-logo { font-size: 3rem; font-weight: 900; font-style: italic; }
.splash-loading { margin-top: 16px; opacity: 0.9; font-size: 0.95rem; }
.auth-header { display: flex; align-items: center; padding: 16px; min-height: 56px; }
.auth-logo { flex: 1; text-align: center; font-size: 1.4rem; font-weight: 900; color: var(--tafuta-red); font-style: italic; }
.auth-back { background: none; border: none; font-size: 1.4rem; cursor: pointer; padding: 8px; color: var(--tafuta-text); }
.auth-body { flex: 1; padding: 24px 20px; }
.auth-body-center { display: flex; flex-direction: column; justify-content: center; }
.auth-title { font-size: 1.6rem; font-weight: 800; line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.02em; }
.auth-sub { color: var(--tafuta-muted); font-size: 0.95rem; margin: 0 0 28px; line-height: 1.4; }
.auth-footer { padding: 16px 20px 32px; }
.btn-primary-full { width: 100%; padding: 16px; border: none; border-radius: 12px; background: #FF5722; color: #fff; font-size: 1rem; font-weight: 600; cursor: pointer; }
.btn-primary-full:active { opacity: 0.9; }
.btn-link { display: block; width: 100%; margin-top: 16px; padding: 12px; border: none; background: none; color: var(--tafuta-muted); font-size: 0.95rem; cursor: pointer; text-align: center; }
.auth-legal { font-size: 0.75rem; color: var(--tafuta-muted); text-align: center; margin-top: 16px; line-height: 1.5; }
.auth-legal a { color: #00897B; text-decoration: none; }
.welcome-hero { flex: 1; display: flex; align-items: center; padding: 24px 20px; }
.welcome-hero h1 { font-size: 2rem; font-weight: 800; line-height: 1.15; margin: 0; }
.text-red { color: var(--tafuta-red); }
.phone-input-wrap, .email-input-wrap { display: flex; align-items: center; background: #F5F5F5; border-radius: 12px; padding: 4px 12px; gap: 8px; }
.phone-input-wrap .tafuta-phone-row { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.phone-input-wrap .tafuta-phone-dial { flex: 0 0 auto; max-width: 42%; min-width: 108px; border: none; background: transparent; font-weight: 600; font-size: .95rem; padding: 12px 4px; outline: none; color: var(--tafuta-text); }
.phone-input-wrap .tafuta-phone-national { flex: 1; min-width: 0; border: none; background: transparent; padding: 16px 8px; font-size: 1.1rem; outline: none; }
.phone-input, .email-input { flex: 1; border: none; background: transparent; padding: 16px 8px; font-size: 1.1rem; outline: none; }
.phone-clear { background: none; border: none; color: var(--tafuta-muted); cursor: pointer; font-size: 1rem; padding: 8px; }
.email-icon { font-size: 1.2rem; }
.otp-inputs { display: flex; gap: 8px; justify-content: center; margin: 24px 0; }
.otp-digit { width: 48px; height: 56px; border: 2px solid var(--tafuta-border); border-radius: 10px; text-align: center; font-size: 1.5rem; font-weight: 700; outline: none; }
.otp-digit:focus { border-color: var(--tafuta-red); }
.otp-paste-hint { text-align: center; color: var(--tafuta-muted, #888); font-size: .85rem; margin: -8px 0 12px; }
.location-status { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding: 16px; background: #F5F5F5; border-radius: 12px; }
.empty-state .icon ons-icon { font-size: 64px; color: #BDBDBD; }
.ride-status .icon-big ons-icon { font-size: 72px; color: var(--tafuta-red); }
.search-bar ons-icon { font-size: 22px; color: var(--tafuta-muted); flex-shrink: 0; }
.profile-avatar ons-icon { font-size: 42px; }
.menu-card-item .icon ons-icon { font-size: 22px; color: var(--tafuta-muted); }
.menu-card-dark .menu-card-item .icon ons-icon { color: #FFC107; }
.section-title-dark { color: var(--tafuta-muted); padding: 16px 16px 8px; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; }
.location-icon ons-icon { font-size: 28px; color: var(--tafuta-muted); }
.splash-loading ons-icon { vertical-align: middle; margin-right: 6px; }
.auth-back ons-icon { font-size: 24px; }
.phone-flag-icon { font-weight: 700; font-size: 0.85rem; color: var(--tafuta-muted); background: #eee; padding: 4px 8px; border-radius: 4px; }
.email-input-wrap ons-icon, .phone-input-wrap ons-icon { font-size: 22px; color: var(--tafuta-muted); }
.phone-clear ons-icon { font-size: 18px; }
.chat-btn ons-icon { font-size: 22px; }
.notif-alert ons-icon { font-size: 20px; flex-shrink: 0; }
.welcome-taxi-icon { display: inline-block; vertical-align: middle; margin-left: 8px; }
.welcome-taxi-icon ons-icon { font-size: 36px; color: var(--tafuta-red); }
.menu-chevron ons-icon { font-size: 20px; color: #BDBDBD; }
.card-star ons-icon { font-size: 14px; color: #FFC107; vertical-align: middle; }
.location-label { font-size: 0.8rem; color: var(--tafuta-muted); }
.location-value { font-weight: 600; margin-top: 2px; }
.btn-tafuta { background: var(--tafuta-red) !important; color: #fff !important; border-radius: 12px !important; width: 100%; margin-top: 8px; }
.btn-tafuta-outline { background: transparent !important; color: var(--tafuta-red) !important; border: 2px solid var(--tafuta-red) !important; border-radius: 12px !important; width: 100%; margin-top: 8px; }

/* App shell */
html, body { height: 100%; }
#app-main { display: none; }
#app-main.visible {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}
ons-splitter { height: 100%; display: block; }
ons-splitter-content { height: 100%; display: block; position: relative; z-index: 2; }
.app-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    background: var(--tafuta-bg);
}
#tab-content,
.app-shell-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
}

/* Header */
.tafuta-header { display: flex; align-items: center; padding: 12px 16px; background: #fff; position: relative; z-index: 5; }
.tafuta-header .logo { flex: 1; text-align: center; font-size: 1.5rem; font-weight: 900; color: var(--tafuta-red); font-style: italic; }
.tafuta-header .menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    -webkit-tap-highlight-color: transparent;
}
.tafuta-header .menu-btn ons-icon { font-size: 24px; color: var(--tafuta-text); pointer-events: none; }
.tafuta-header-actions { display: flex; align-items: center; gap: 2px; }
.header-settings-btn ons-icon { color: var(--tafuta-muted); }
.header-settings-btn:active ons-icon { color: var(--tafuta-red); }
.header-icon-btn {
    width: 36px;
    height: 36px;
    padding: 6px !important;
    opacity: 0.85;
}
.header-icon-btn ons-icon { font-size: 20px !important; color: var(--tafuta-muted) !important; }
.header-icon-btn.hidden { display: none !important; }
.header-icon-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    background: var(--tafuta-red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}
.header-icon-badge.hidden { display: none; }

/* Search bar */
.search-bar { margin: 12px 16px; background: #EEEEEE; border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.search-bar input { border: none; background: transparent; flex: 1; font-size: 1rem; outline: none; }
.search-placeholder { color: var(--tafuta-muted); }

/* Cards */
.card-list { padding: 0 16px 88px; }
.card-item { background: var(--tafuta-card); border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); cursor: pointer; }
.card-item:active { opacity: 0.85; }
.card-title { font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.card-sub { color: var(--tafuta-muted); font-size: 0.85rem; }
.card-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.85rem; }
.card-price { color: var(--tafuta-red); font-weight: 700; }
.card-distance { color: var(--tafuta-muted); }

/* Bottom navigation */
.tafuta-tabbar {
    display: flex;
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid var(--tafuta-border);
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom, 0px));
    position: relative;
    z-index: 10;
}
.tafuta-tabbar .tafuta-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--tafuta-muted);
    cursor: pointer;
    padding: 6px 0 2px;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.tafuta-tabbar .tafuta-tab ons-icon { font-size: 24px; line-height: 1; pointer-events: none; transition: color 0.2s ease; }
.tafuta-tabbar .tafuta-tab span { font-size: 11px; line-height: 1.2; pointer-events: none; transition: color 0.2s ease, font-weight 0.2s ease; }
.tafuta-tabbar .tafuta-tab.active {
    color: var(--tafuta-red);
}
.tafuta-tabbar .tafuta-tab.active ons-icon { color: var(--tafuta-red); }
.tafuta-tabbar .tafuta-tab.active span { font-weight: 700; }
.tafuta-tabbar .tafuta-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--tafuta-red);
}
.tafuta-tabbar .tafuta-tab { position: relative; }
.tafuta-tabbar .tafuta-tab:active { opacity: 0.75; }

/* Transition swipe entre onglets */
#tab-content.tab-slide-in-left { animation: tabSlideInLeft 0.28s ease; }
#tab-content.tab-slide-in-right { animation: tabSlideInRight 0.28s ease; }
@keyframes tabSlideInLeft {
    from { transform: translateX(28px); opacity: 0.55; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes tabSlideInRight {
    from { transform: translateX(-28px); opacity: 0.55; }
    to { transform: translateX(0); opacity: 1; }
}

/* Profil plein écran */
#profil-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: #fff;
    overflow-y: auto;
}

/* Menu latéral — icônes */
ons-list-item .left ons-icon { font-size: 22px; color: var(--tafuta-muted); vertical-align: middle; }
ons-list-item .left { min-width: 36px; display: flex; align-items: center; }

/* Profile menu */
.profile-header { text-align: center; padding: 24px 16px; background: #fff; }
.profile-header-editable { cursor: pointer; }
.profile-header-editable:active { opacity: 0.92; }
.profile-edit-hint { display: block; font-size: 0.8rem; color: var(--tafuta-muted); margin-top: 8px; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; background: #E0E0E0; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #9E9E9E; overflow: hidden; position: relative; }
.profile-avatar-lg { width: 88px; height: 88px; }
.profile-avatar-xl { width: 110px; height: 110px; margin-bottom: 8px; }
.profile-avatar-clickable { cursor: pointer; border: 3px solid #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.12); }
.profile-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.profile-avatar-wrap { text-align: center; padding: 24px 16px 8px; position: relative; }
.profile-avatar-badge { position: absolute; right: calc(50% - 55px); bottom: 52px; width: 32px; height: 32px; border-radius: 50%; background: var(--tafuta-red); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.2); pointer-events: none; }
.profile-change-photo { font-size: 0.85rem; color: var(--tafuta-red); font-weight: 500; margin-top: 4px; }
.profile-edit-form { padding: 8px 16px 24px; }
.profile-field { margin-bottom: 16px; }
.profile-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--tafuta-muted); margin-bottom: 6px; }
.profile-input { width: 100%; padding: 14px 16px; border: 1px solid var(--tafuta-border); border-radius: 12px; font-size: 1rem; box-sizing: border-box; }
.profile-readonly { padding: 14px 16px; background: #F5F5F5; border-radius: 12px; color: #616161; font-weight: 500; }
.profile-field-hint { font-size: 0.78rem; color: var(--tafuta-muted); margin-top: 6px; }
#menu-profile-header.profile-header-editable { cursor: pointer; }
#menu-user-avatar .profile-avatar-img { border-radius: 50%; }
.btn-connect { background: var(--tafuta-salmon) !important; color: #fff !important; border-radius: 12px !important; width: 100%; max-width: 300px; margin: 0 auto; }
.menu-card { background: #fff; border-radius: 12px; margin: 8px 16px; overflow: hidden; }
.menu-card-item { display: flex; align-items: center; padding: 16px; border-bottom: 1px solid var(--tafuta-border); cursor: pointer; }
.menu-card-item:last-child { border-bottom: none; }
.menu-card-item .icon { width: 40px; font-size: 1.3rem; color: var(--tafuta-muted); }
.menu-card-item .text { flex: 1; }
.menu-card-item .title { font-weight: 500; }
.menu-card-item .sub { font-size: 0.8rem; color: var(--tafuta-muted); }
.menu-card-item .chevron { color: #BDBDBD; }
.menu-card-dark { background: #212121; color: #fff; }
.menu-card-dark .title { color: #fff; }
.menu-card-dark .sub { color: #BDBDBD; }

/* Settings */
.settings-section { background: #fff; border-radius: 12px; margin: 8px 16px; overflow: hidden; }
.settings-item { display: flex; align-items: center; padding: 16px; border-bottom: 1px solid var(--tafuta-border); }
.settings-item:last-child { border-bottom: none; }
.settings-label { flex: 1; }
.settings-sub { font-size: 0.8rem; color: var(--tafuta-muted); margin-top: 2px; }
.settings-item.lang-option,
.settings-item.lang-picker-row { cursor: pointer; }
.settings-item.lang-option.active .settings-label { color: var(--tafuta-red); font-weight: 600; }
.settings-item .lang-check { display: flex; align-items: center; margin-left: 8px; }
.settings-item-locked { background: #F1F8E9; }
.settings-always-on { color: #558B2F; font-weight: 500; }
.settings-badge-active { font-size: 0.75rem; font-weight: 600; color: #2E7D32; background: #C8E6C9; padding: 4px 10px; border-radius: 12px; white-space: nowrap; margin-left: 8px; }
.section-title { padding: 16px 16px 8px; font-weight: 600; color: var(--tafuta-muted); font-size: 0.85rem; text-transform: uppercase; }

/* Chat */
.chat-container { display: flex; flex-direction: column; flex: 1; min-height: 0; height: auto; }
.chat-page { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #ECE5DD; }
.chat-toolbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    padding: 8px 10px;
    background: #fff;
    border-bottom: 1px solid var(--tafuta-border);
}
.chat-toolbar .chat-back,
.chat-toolbar .chat-call {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
}
.chat-toolbar .chat-title {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; background: #ECE5DD; }
.chat-bubble {
    max-width: 78%;
    padding: 8px 10px 6px;
    border-radius: 14px;
    margin-bottom: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
    position: relative;
}
.chat-bubble.sent {
    background: #DCF8C6;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.chat-bubble.received {
    background: #fff;
    margin-right: auto;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.08);
}
.chat-bubble-body { min-width: 0; }
.chat-bubble-text { white-space: pre-wrap; }
.chat-bubble-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    margin-top: 2px;
    min-height: 18px;
}
.chat-time {
    font-size: 0.68rem;
    color: #667781;
    line-height: 1;
    padding: 0 2px;
}
.chat-input-bar {
    display: flex;
    align-items: center;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--tafuta-border);
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}
.chat-input-bar input[type="text"] { flex: 1; border: none; background: #F5F5F5; border-radius: 20px; padding: 10px 16px; outline: none; min-width: 0; }
.chat-btn { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--tafuta-muted); padding: 6px; }
.chat-btn.send { color: var(--tafuta-red); }
.chat-file-input,
#chat-file-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.chat-input-bar { position: relative; }
.chat-list-page { background: #fff; }
.chat-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
}
.chat-list-loading,
.chat-list-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--tafuta-muted);
}
.chat-list-empty-icon { margin-bottom: 12px; opacity: 0.7; }
.chat-list-item {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border: none;
    border-bottom: 1px solid var(--tafuta-border);
    background: #fff;
    text-align: left;
}
.chat-list-item:active,
.chat-list-open:active { background: #f5f5f5; }
.chat-list-item.unread .chat-list-preview { color: #222; font-weight: 600; }
.chat-list-open {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px 12px 14px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    min-width: 0;
}
.chat-list-delete {
    border: none;
    background: transparent;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.75;
}
.chat-list-delete:active { opacity: 1; background: #FFEBEE; }
.chat-list-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #eee;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chat-list-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-list-main { flex: 1; min-width: 0; }
.chat-list-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}
.chat-list-top strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-list-time { font-size: 0.72rem; color: var(--tafuta-muted); flex-shrink: 0; }
.chat-list-preview {
    font-size: 0.86rem;
    color: var(--tafuta-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-list-meta {
    font-size: 0.72rem;
    color: #9E9E9E;
    margin-top: 2px;
}
.chat-list-badge {
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: var(--tafuta-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    flex-shrink: 0;
}
.chat-media-image { max-width: 220px; border-radius: 12px; display: block; }
.chat-media-audio { width: 220px; max-width: 100%; }
.chat-file-link { color: #1565C0; text-decoration: none; font-weight: 600; }
.app-shell.chat-mode .tafuta-tabbar { display: none; }
.app-shell.chat-mode .app-shell-content { overflow: hidden; }
.app-shell.chat-mode .tafuta-fab,
.app-shell.chat-mode .tafuta-notif-panel { display: none !important; }

/* Anciens gros FABs désactivés — icônes compactes dans le header */
.tafuta-fab { display: none !important; }

.tafuta-notif-panel {
    position: fixed;
    right: 10px;
    top: 58px;
    width: min(300px, calc(100vw - 20px));
    max-height: 45vh;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
    z-index: 1300;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tafuta-notif-panel.hidden { display: none; }
.tafuta-notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--tafuta-border);
    font-weight: 700;
    font-size: 0.92rem;
}
.tafuta-notif-list { overflow-y: auto; max-height: 38vh; }
.tafuta-notif-item {
    padding: 10px 12px;
    border-bottom: 1px solid var(--tafuta-border);
    cursor: pointer;
}
.tafuta-notif-item:last-child { border-bottom: none; }
.tafuta-notif-item.unread { background: #FFF8E1; }
.tafuta-notif-title { font-weight: 700; font-size: 0.86rem; margin-bottom: 2px; }
.tafuta-notif-msg { color: var(--tafuta-muted); font-size: 0.8rem; }
.tafuta-notif-empty { padding: 16px; text-align: center; color: var(--tafuta-muted); font-size: 0.86rem; }

.chat-bubble.deleted {
    background: transparent !important;
    box-shadow: none !important;
    font-style: italic;
    color: var(--tafuta-muted);
    border: 1px dashed #ccc;
}
.chat-deleted-text { font-size: 0.88rem; }
.chat-msg-menu-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.chat-bubble.sent .chat-bubble-meta { justify-content: space-between; }
.chat-msg-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 22px;
    border: none;
    background: transparent;
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    opacity: 0.4;
    color: #667781;
    -webkit-tap-highlight-color: transparent;
}
.chat-bubble.sent:active .chat-msg-menu-btn,
.chat-bubble.menu-open .chat-msg-menu-btn,
.chat-msg-menu-btn:active {
    opacity: 1;
    background: rgba(0,0,0,0.06);
}
.chat-msg-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 40;
    min-width: 148px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    padding: 4px;
    overflow: hidden;
}
.chat-bubble.menu-open .chat-msg-dropdown { display: block; }
.chat-msg-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    color: #222;
}
.chat-msg-dropdown-item.danger { color: #d32f2f; }
.chat-msg-dropdown-item:active { background: #f5f5f5; }
.chat-bubble.selected {
    outline: 2px solid rgba(211, 47, 47, 0.35);
    outline-offset: 1px;
}
.chat-delete-sheet {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 6000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.chat-delete-sheet.hidden { display: none; }
.chat-delete-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 8px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px rgba(0,0,0,0.12);
}
.chat-delete-title {
    padding: 14px 16px 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
    text-align: center;
}
.chat-delete-action {
    width: 100%;
    border: none;
    background: #fff;
    padding: 14px 16px;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    color: #222;
}
.chat-delete-action.danger { color: #d32f2f; font-weight: 600; }
.chat-delete-action:active { background: #f5f5f5; }
.chat-delete-cancel {
    width: calc(100% - 24px);
    margin: 8px 12px 0;
    border: none;
    border-radius: 12px;
    background: #f0f0f0;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
}

.tafuta-call-overlay.hidden { display: none; }
.tafuta-call-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.tafuta-call-card {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 18px;
    padding: 22px 18px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    text-align: center;
}
.tafuta-call-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.tafuta-call-status { color: var(--tafuta-muted); margin-bottom: 16px; }
.tafuta-call-actions { display: flex; gap: 10px; }

/* Dashboard */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
.dash-card { background: #fff; border-radius: 12px; padding: 16px; text-align: center; }
.dash-value { font-size: 1.8rem; font-weight: 700; color: var(--tafuta-red); }
.dash-label { font-size: 0.8rem; color: var(--tafuta-muted); margin-top: 4px; }

/* Taxi ride */
.ride-status { text-align: center; padding: 32px 16px; }
.ride-status .icon-big { font-size: 4rem; margin-bottom: 16px; }
.ride-info { background: #fff; border-radius: 12px; margin: 16px; padding: 16px; }
.ride-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.ride-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.ride-dot.green { background: #4CAF50; }
.ride-dot.red { background: var(--tafuta-red); }

#tab-content.tab-taxi-active {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
#tab-content.tab-taxi-active .taxi-layout {
    flex: 1;
    min-height: 0;
    height: auto;
}
.taxi-layout {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #e8eef3;
}
#tab-content.tab-taxi-active {
    overflow: hidden;
    touch-action: manipulation;
}
.taxi-map-stage {
    flex: 1;
    position: relative;
    min-height: 0;
    width: 100%;
    touch-action: none;
}
.taxi-map-layer,
.taxi-streetview-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.taxi-map-layer.leaflet-container,
#taxi-map.leaflet-container {
    height: 100% !important;
    width: 100% !important;
    background: #d6e4ef;
}
/* Empêche les tuiles floues / fragmentées (img globales, retina) */
.leaflet-container img.leaflet-tile {
    max-width: none !important;
    max-height: none !important;
    width: 256px !important;
    height: 256px !important;
    image-rendering: auto;
}
.leaflet-container .leaflet-marker-icon,
.leaflet-container .leaflet-marker-shadow {
    max-width: none !important;
}
.taxi-streetview-layer iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.taxi-view-hidden { display: none !important; }
.taxi-map-toolbar {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}
.taxi-map-tool {
    pointer-events: auto;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 999px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.12);
    cursor: pointer;
    font-size: 0;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.taxi-map-tool ons-icon,
.taxi-map-tool .ons-icon {
    font-size: 18px !important;
}
.taxi-map-tool.active {
    background: var(--tafuta-red);
    color: #fff;
}
.taxi-map-tool:active { transform: scale(0.94); opacity: 0.9; }
.taxi-map-tool.taxi-start-btn {
    background: rgba(27, 122, 74, 0.95) !important;
    color: #fff !important;
    font-size: 0.95rem;
}
.taxi-map-tool.taxi-start-btn.is-online {
    background: rgba(198, 40, 40, 0.95) !important;
}
@media (max-width: 420px) {
    .taxi-map-toolbar {
        top: 8px;
        right: 8px;
        gap: 5px;
    }
    .taxi-map-tool {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
}
@media (min-width: 768px) {
    .taxi-map-toolbar {
        top: 14px;
        right: 14px;
        gap: 8px;
    }
    .taxi-map-tool {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
}
/* Ancienne barre position — masquée si encore présente */
.taxi-city-label { display: none !important; }
.taxi-bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1300;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.14);
    max-height: 38%;
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height 0.25s ease;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    touch-action: pan-y;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}
.taxi-bottom-sheet.expanded { max-height: min(68%, calc(100% - 120px)); }
.taxi-bottom-sheet.sheet-list { max-height: min(72%, calc(100% - 100px)); }
.taxi-bottom-sheet.sheet-map-only {
    max-height: min(58%, calc(100% - 120px));
    height: min(58%, calc(100% - 120px));
    overflow: hidden;
}
.taxi-bottom-sheet.sheet-map-only.expanded,
.taxi-bottom-sheet.sheet-map-only.fullscreen {
    max-height: calc(100% - 8px) !important;
    height: calc(100% - 8px);
}
.taxi-bottom-sheet.sheet-map-only #taxi-content,
.taxi-bottom-sheet.sheet-map-only .taxi-sheet-drivers {
    display: none !important;
    flex: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}
.taxi-bottom-sheet.sheet-map-only > .taxi-sheet-handle,
.taxi-bottom-sheet.sheet-map-only > .taxi-panel-tabs {
    flex-shrink: 0;
}
.taxi-bottom-sheet.sheet-map-only > .taxi-search-wrap {
    flex: 1 1 auto !important;
    flex-shrink: 1 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column;
    padding: 4px 12px 8px;
    overflow: hidden;
}
.taxi-bottom-sheet.sheet-map-only .taxi-search-bar,
.taxi-bottom-sheet.sheet-map-only .taxi-places-label {
    flex-shrink: 0;
}
.taxi-bottom-sheet.sheet-map-only .taxi-places-list,
.taxi-bottom-sheet.sheet-map-only .taxi-places-chips {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow-y: auto !important;
}
.taxi-sheet-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 0 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.taxi-sheet-handle::before {
    content: '';
    width: 44px;
    height: 5px;
    background: #cfcfcf;
    border-radius: 999px;
    transition: background 0.2s ease, width 0.2s ease;
}
.taxi-sheet-handle:active::before,
.taxi-bottom-sheet.fullscreen .taxi-sheet-handle::before {
    background: var(--tafuta-red);
    width: 56px;
}
.taxi-bottom-sheet.fullscreen {
    max-height: calc(100% - 8px) !important;
    height: calc(100% - 8px);
    border-radius: 14px 14px 0 0;
    z-index: 1400;
}
.taxi-bottom-sheet.fullscreen .taxi-places-list,
.taxi-bottom-sheet.fullscreen .taxi-places-chips {
    max-height: none;
}
.taxi-bottom-sheet.fullscreen.sheet-map-only .taxi-places-list,
.taxi-bottom-sheet.fullscreen.sheet-map-only .taxi-places-chips {
    max-height: none;
}
.taxi-panel-tabs {
    flex-shrink: 0;
}
.taxi-search-wrap { padding: 4px 12px 8px; flex-shrink: 0; }
.taxi-search-bar { margin: 0; cursor: default; }
.taxi-search-bar input { border: none; background: transparent; flex: 1; font-size: 1rem; outline: none; min-width: 0; }
.taxi-places-label { font-size: 0.75rem; font-weight: 600; color: var(--tafuta-muted); margin: 4px 0 6px; text-transform: uppercase; }
.taxi-places-list,
.taxi-places-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(160px, 28vh);
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 4px;
    touch-action: pan-y;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.taxi-place-chip {
    width: 100%;
    border: 1px solid var(--tafuta-border);
    background: #FAFAFA;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--tafuta-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    flex-shrink: 0;
}
.taxi-place-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.taxi-place-chip:active { background: #FFEBEE; border-color: var(--tafuta-red); }
.taxi-place-dist { font-size: 0.72rem; color: var(--tafuta-muted); background: #EEE; padding: 2px 6px; border-radius: 8px; }
.taxi-place-empty, .taxi-place-loading { font-size: 0.85rem; color: var(--tafuta-muted); }
.taxi-sheet-drivers { padding: 0 0 4px; }
.taxi-city-fallback { margin: 8px 12px; padding: 10px; background: #FFF8E1; border-radius: 10px; font-size: 0.85rem; }
.taxi-city-fallback p { margin: 0 0 8px; color: #795548; }
.taxi-city-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.taxi-city-picks button { border: 1px solid var(--tafuta-border); background: #fff; border-radius: 16px; padding: 6px 14px; font-size: 0.82rem; cursor: pointer; }
.taxi-city-picks button:active { background: #FFEBEE; border-color: var(--tafuta-red); }
.taxi-dest-summary { background: #F9F9F9; margin: 8px 12px 0; padding: 12px 14px; border-radius: 12px; }
.taxi-estimate { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--tafuta-border); font-size: 0.9rem; }
.taxi-estimate strong { color: var(--tafuta-red); font-size: 1rem; }
.taxi-filter-bar {
    display: flex;
    gap: 8px;
    padding: 8px 12px 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.taxi-filter-bar::-webkit-scrollbar { display: none; }
.taxi-drivers-title { padding: 6px 12px 4px; font-size: 0.85rem; }
.taxi-drivers-list { padding: 0 12px 8px; }
.taxi-drivers-list-compact { padding: 0 12px 8px; }

@media (max-width: 380px) {
    .taxi-panel-tab span { font-size: 0.72rem; }
    .taxi-filter { padding: 6px 10px; font-size: 0.75rem; }
    .taxi-driver-contact-btn { min-width: 0; font-size: 0.72rem; padding: 7px 8px; }
    .taxi-bottom-sheet.sheet-no-search { max-height: min(82%, calc(100% - 72px)); }
}
@media (min-width: 600px) {
    .taxi-bottom-sheet { max-width: 480px; left: 50%; right: auto; transform: translateX(-50%); width: 100%; }
    .taxi-bottom-sheet.sheet-list,
    .taxi-bottom-sheet.sheet-no-search { max-height: min(70%, 560px); }
}
.taxi-panel-tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0 4px 0 8px;
    border-bottom: 1px solid var(--tafuta-border);
    background: #fff;
}
.taxi-panel-tab {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 10px 4px;
    font-weight: 600;
    font-size: .82rem;
    color: var(--tafuta-muted, #888);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
}
.taxi-panel-tab span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.taxi-panel-tab.active { color: var(--tafuta-red); border-bottom-color: var(--tafuta-red); }
.taxi-panel-refresh {
    flex: 0 0 auto;
    width: 36px;
    border: 0;
    background: transparent;
    color: #9aa0a6;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 4px 4px 4px 0;
}
.taxi-panel-refresh:active { background: #f3f4f6; color: var(--tafuta-red); }
.taxi-filter {
    flex-shrink: 0;
    border: 1px solid var(--tafuta-border);
    background: #fff;
    border-radius: 20px;
    padding: 7px 12px;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.taxi-ride-card .taxi-status-pill { margin-left: 4px; }
.taxi-start-btn { font-size: 0.95rem !important; }
.taxi-status-pill {
    display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
    padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
}
.taxi-status-pill.free { background: #e7f6ee; color: #1b7a4a; }
.taxi-status-pill.busy { background: #fff4d6; color: #9a6b00; }
.taxi-driver-card.is-free { border-color: #a8d8ba; }
.taxi-driver-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
    text-align: left; border: 1px solid var(--tafuta-border); background: #fff; border-radius: 10px;
    padding: 12px; margin-bottom: 8px; cursor: pointer;
}
.taxi-driver-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.taxi-driver-row-main small { color: var(--tafuta-muted, #888); }
.taxi-filter.active { background: var(--tafuta-red); color: #fff; border-color: var(--tafuta-red); }
.taxi-drivers-title { padding: 10px 16px 6px; font-weight: 600; font-size: 0.9rem; }
.taxi-drivers-list { padding: 0 16px 12px; }
.taxi-driver-card { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1px solid var(--tafuta-border); }
.taxi-driver-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.3rem; }
.taxi-driver-icon.car { background: #E3F2FD; color: #1565C0; }
.taxi-driver-icon.moto { background: #FFF3E0; }
.taxi-driver-info { flex: 1; min-width: 0; }
.taxi-driver-name { font-weight: 600; margin-bottom: 2px; font-size: 0.92rem; }
.taxi-driver-meta { font-size: 0.76rem; color: var(--tafuta-muted); }
.taxi-driver-btn { width: auto !important; min-width: 76px; padding: 0 10px !important; font-size: 0.78rem !important; margin: 0 !important; }
.taxi-loading-drivers, .taxi-no-drivers { text-align: center; padding: 16px; color: var(--tafuta-muted); font-size: 0.9rem; }
.taxi-assigned { font-size: 0.9rem; color: #2E7D32; margin-top: 8px; }
.taxi-pending-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 2px;
    border-radius: 999px;
    background: var(--tafuta-red);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
}
.taxi-pending-badge.hidden { display: none; }
.taxi-ride-card {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    cursor: default;
}
.taxi-ride-card.is-pending {
    border-color: #f0b429;
    background: #fffbeb;
}
.taxi-ride-main {
    display: flex;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}
.taxi-ride-actions {
    display: flex;
    gap: 8px;
    padding-top: 4px;
}
.taxi-accept-btn,
.taxi-refuse-btn {
    flex: 1;
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}
.taxi-accept-btn { background: #1b7a4a; color: #fff; }
.taxi-refuse-btn { background: #eee; color: #444; }
.taxi-price-btn {
    flex: 1;
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    background: #1565C0;
    color: #fff;
}
.taxi-driver-contact {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.taxi-driver-contact-btn {
    flex: 1;
    min-width: 90px;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.taxi-driver-contact-btn.call { background: #E8F5E9; color: #1B7A4A; }
.taxi-driver-contact-btn.chat { background: #E3F2FD; color: #1565C0; }
.taxi-driver-row-wrap {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--tafuta-border);
    overflow: hidden;
}
.taxi-driver-row-wrap .taxi-driver-row {
    width: 100%;
    border: none;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
}
.taxi-driver-row-wrap .taxi-driver-contact {
    padding: 0 10px 10px;
    margin-top: 0;
}
.taxi-route-card { margin: 8px 16px 12px; }
.taxi-places-hint {
    font-weight: 400;
    color: var(--tafuta-muted, #888);
    font-size: 0.78rem;
}
.taxi-save-place-btn {
    width: 100%;
    border: 1px dashed #1565C0;
    background: #E3F2FD;
    color: #1565C0;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.taxi-pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--tafuta-red);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.taxi-map-pin { background: transparent; border: none; }
.taxi-pin-dot { width: 16px; height: 16px; background: var(--tafuta-red); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.taxi-driver-pin { font-size: 16px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); }
.leaflet-container { font-family: inherit; z-index: 1; }
.leaflet-top, .leaflet-bottom { z-index: 900; }
.leaflet-control-zoom { border: none !important; box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important; }

/* Cart */
.cart-bar { position: fixed; bottom: 68px; left: 0; right: 0; background: var(--tafuta-red); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; z-index: 100; }
.cart-bar.hidden { display: none; }

/* Notification badge */
.notif-alert { background: #FFEBEE; color: var(--tafuta-red); padding: 12px 16px; margin: 8px 16px; border-radius: 8px; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }

/* Quantity selector */
.qty-control { display: flex; align-items: center; gap: 12px; }
.qty-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--tafuta-border); background: #fff; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-value { font-weight: 600; min-width: 24px; text-align: center; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 24px; color: var(--tafuta-muted); }
.empty-state .icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.3; }

/* Loading */
.loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.8); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.loading-overlay.hidden { display: none; }

/* Mode toggle */
.mode-toggle { display: flex; gap: 8px; padding: 12px 16px; }
.mode-btn { flex: 1; padding: 10px; border-radius: 8px; border: 2px solid var(--tafuta-border); background: #fff; text-align: center; cursor: pointer; font-weight: 500; }
.mode-btn.active { border-color: var(--tafuta-red); color: var(--tafuta-red); background: #FFEBEE; }
