:root {
    --bg-navy: #0F172A;
    --card-dark: #1E293B;
    --card-border: #334155;
    --primary-blue: #0284C7;
    --accent-cyan: #06B6D4;
    --emerald-green: #10B981;
    --alert-red: #EF4444;
    --warning-amber: #F59E0B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: #0F172A;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Responsive Web Application Container (Phone Frame Removed) */
.mobile-container {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background-color: var(--bg-navy);
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 500px) {
    .mobile-container {
        border-radius: 0;
        border: none;
        height: 100vh;
        max-height: 100%;
    }
}

.screen {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    flex-direction: column;
    overflow-y: auto;
    background-color: var(--bg-navy);
}

.screen.active {
    display: flex;
}

/* 1. SPLASH SCREEN (WHITE & BLUE BUBBLES BACKGROUND + CENTERED LOGO) */
#splashScreen {
    position: relative;
    background: linear-gradient(135deg, #FFFFFF 0%, #E0F2FE 40%, #EFF6FF 100%);
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
    overflow: hidden;
}

/* Floating Blue Bubbles */
.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.35) 0%, rgba(6, 182, 212, 0.15) 70%, rgba(255, 255, 255, 0) 100%);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.6), 0 8px 20px rgba(2, 132, 199, 0.15);
    animation: floatBubble 8s infinite ease-in-out;
}

.bubble.b1 { width: 120px; height: 120px; top: -30px; left: -20px; animation-duration: 9s; }
.bubble.b2 { width: 180px; height: 180px; bottom: 40px; right: -50px; animation-duration: 11s; animation-delay: 1s; }
.bubble.b3 { width: 90px; height: 90px; top: 25%; right: 10%; animation-duration: 7s; animation-delay: 0.5s; }
.bubble.b4 { width: 140px; height: 140px; bottom: 20%; left: -30px; animation-duration: 10s; animation-delay: 2s; }
.bubble.b5 { width: 70px; height: 70px; top: 15%; left: 15%; animation-duration: 6s; animation-delay: 1.5s; }
.bubble.b6 { width: 110px; height: 110px; top: 55%; right: 15%; animation-duration: 8.5s; animation-delay: 2.5s; }
.bubble.b7 { width: 85px; height: 85px; bottom: 5%; left: 30%; animation-duration: 7.5s; animation-delay: 3s; }
.bubble.b8 { width: 160px; height: 160px; top: 40%; left: -40px; animation-duration: 12s; animation-delay: 0.8s; }

@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-25px) scale(1.08);
    }
}

.splash-content.logo-centered {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-logo-card.standalone {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 20px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 20px 45px rgba(2, 132, 199, 0.22);
    border: 2px solid #BAE6FD;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-logo-card.standalone:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 50px rgba(2, 132, 199, 0.3);
}

.header-logo-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.splash-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #0284C7;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 18px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-primary:hover {
    background-color: #0369a1;
    transform: translateY(-2px);
}

.start-btn {
    margin-top: 10px;
    max-width: 240px;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.4);
}

/* 2. ONBOARDING STYLES (ATTRACTIVE MEDICAL TECH PRESENTATION) */
#onboardingScreen {
    padding: 24px;
    justify-content: space-between;
    background: linear-gradient(180deg, #0F172A 0%, #090D16 100%);
}

.onboarding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.network-status-chip {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--emerald-green);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--emerald-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald-green);
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.skip-btn {
    background: none;
    border: none;
    color: var(--accent-cyan);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.onboarding-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-radius: 28px;
    padding: 28px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin: 16px 0;
}

.onboarding-step-indicator {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    background: rgba(6, 182, 212, 0.12);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.onboarding-icon-circle {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(2, 132, 199, 0.1) 70%);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 38px;
    color: var(--accent-cyan);
    margin-bottom: 18px;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.3);
}

.onboarding-badge {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--emerald-green);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.onboarding-title {
    font-size: 21px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.onboarding-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 18px;
}

.ob-features-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    background: rgba(15, 23, 42, 0.6);
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.ob-feature-item {
    font-size: 12px;
    color: #E2E8F0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ob-feature-item i {
    color: var(--emerald-green);
    font-size: 14px;
}
    color: var(--accent-cyan);
    margin-bottom: 24px;
}

.onboarding-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.onboarding-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.onboarding-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.dots-container {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background-color: var(--card-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 24px;
    background-color: var(--primary-blue);
}

.ob-next-btn {
    height: 52px;
    border-radius: 26px;
}

/* 3. AUTH STYLES */
#authScreen {
    padding: 24px;
    justify-content: center;
}

.auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-icon-box {
    width: 58px;
    height: 58px;
    background-color: var(--primary-blue);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: white;
    margin: 0 auto 12px;
}

.auth-header h2 {
    font-size: 26px;
    font-weight: 800;
}

.auth-header p {
    font-size: 13px;
    color: var(--accent-cyan);
    margin-top: 4px;
}

.auth-tabs {
    display: flex;
    background-color: var(--card-dark);
    padding: 4px;
    border-radius: 16px;
    margin-bottom: 18px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
}

.tab-btn.active {
    background-color: var(--primary-blue);
    color: white;
}

.auth-card {
    background-color: var(--card-dark);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
}

.input-group {
    display: flex;
    align-items: center;
    background-color: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 0 14px;
    height: 46px;
}

.input-group i {
    color: var(--accent-cyan);
    margin-right: 10px;
}

.input-group input {
    background: none;
    border: none;
    outline: none;
    color: white;
    width: 100%;
    font-size: 14px;
}

.btn-secondary {
    background-color: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.alert-banner {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-banner.success {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--emerald-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-banner.danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--alert-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.hidden {
    display: none !important;
}

/* 4. MAIN APP CONTAINER & TOGGLE DISPLAY */
#mainScreen {
    padding-bottom: 70px;
}

.tab-content {
    display: none;
    padding: 16px;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    overflow-y: auto;
}

.tab-content.active {
    display: flex;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tab-header h2 {
    font-size: 22px;
    font-weight: 800;
}

.sub-text {
    font-size: 12px;
    color: var(--accent-cyan);
}

/* Client Header Card */
.client-header-card {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.4) 0%, var(--card-dark) 100%);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
}

.client-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.verified-badge {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--emerald-green);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.client-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--primary-blue);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    color: white;
}

.client-avatar.lg {
    width: 56px;
    height: 56px;
    font-size: 26px;
}

.welcome-label {
    font-size: 13px;
    color: var(--text-muted);
}

.client-name {
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.client-email {
    font-size: 12px;
    color: var(--accent-cyan);
}

/* Collapsible / Toggle Card for About Us */
.card-info {
    background-color: var(--card-dark);
    border-radius: 20px;
    padding: 18px;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clickable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;

}

.title-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-arrow {
    font-size: 16px;
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
}

.toggle-arrow.open {
    transform: rotate(180deg);
}

.toggle-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}

.toggle-content.collapsed {
    display: none;
}

.accent-icon {
    font-size: 20px;
    color: var(--accent-cyan);
}

.card-title-row h3 {
    font-size: 16px;
    font-weight: 700;
}

.card-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-top: 4px;
}

.link-btn {
    background: none;
    border: none;
    color: var(--emerald-green);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Quick Actions */
.section-heading {
    font-size: 17px;
    font-weight: 700;
    margin-top: 4px;
}

.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-card {
    border-radius: 18px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.2s;
}

.quick-card:hover {
    transform: translateY(-2px);
}

.quick-card.scan-quick {
    background-color: rgba(2, 132, 199, 0.25);
    border: 1px solid rgba(2, 132, 199, 0.4);
}

.quick-card.scan-quick i {
    font-size: 28px;
    color: var(--accent-cyan);
}

.quick-card.chat-quick {
    background-color: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.quick-card.chat-quick i {
    font-size: 28px;
    color: var(--emerald-green);
}

.quick-card h4 {
    font-size: 15px;
    font-weight: 700;
}

.quick-card span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Section Title Row */
.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.section-title-row h3 {
    font-size: 17px;
    font-weight: 700;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-item {
    background-color: var(--card-dark);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--card-border);
    cursor: pointer;
}

.recent-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.recent-icon.verified {
    background-color: rgba(16, 185, 129, 0.18);
    color: var(--emerald-green);
}

.recent-icon.fake {
    background-color: rgba(239, 68, 68, 0.18);
    color: var(--alert-red);
}

.recent-info {
    flex: 1;
}

.recent-info h5 {
    font-size: 14px;
    font-weight: 700;
}

.recent-info p {
    font-size: 11px;
    color: var(--text-muted);
}

.badge-status {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
}

.badge-status.verified {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--emerald-green);
}

.badge-status.fake {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--alert-red);
}

/* SCAN TAB & GALLERY FIX STYLES */
.lang-chip-btn {
    background-color: var(--card-dark);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 6px 12px;
    color: white;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.segmented-control {
    display: flex;
    background-color: var(--card-dark);
    padding: 4px;
    border-radius: 14px;
}

.seg-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.seg-btn.active {
    background-color: var(--primary-blue);
    color: white;
}

.scanner-card {
    background-color: var(--card-dark);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.camera-viewport {
    width: 100%;
    height: 200px;
    background-color: #000;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(6, 182, 212, 0.6);
}

#webcam {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-frame {
    width: 180px;
    height: 100px;
    border: 2px solid var(--emerald-green);
    border-radius: 12px;
    position: absolute;
    overflow: hidden;
}

.scan-line {
    width: 100%;
    height: 2px;
    background-color: var(--emerald-green);
    box-shadow: 0 0 8px var(--emerald-green);
    animation: scanAnimation 2s infinite ease-in-out;
}

@keyframes scanAnimation {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

.scanner-overlay-text {
    position: absolute;
    bottom: 10px;
    font-size: 11px;
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: 10px;
}

.gallery-drop-box {
    min-height: 210px;
    border: 2px dashed rgba(6, 182, 212, 0.5);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, rgba(15, 23, 42, 0.4) 100%);
    padding: 20px 16px;
    position: relative;
    transition: all 0.3s ease;
}

.gallery-drop-box:hover {
    border-color: var(--accent-cyan);
    background-color: rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}

.gallery-preview-img {
    max-width: 100%;
    max-height: 190px;
    border-radius: 14px;
    object-fit: contain;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.gallery-placeholder-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.gallery-icon-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.15);
    border: 1.5px solid var(--accent-cyan);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.gallery-icon {
    font-size: 28px;
    color: var(--accent-cyan);
}

.gallery-placeholder-box h4 {
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.gallery-placeholder-box p {
    font-size: 12px;
    color: var(--text-muted);
}

.upload-badge {
    font-size: 11px;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 4px 10px;
    border-radius: 12px;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gallery-icon {
    font-size: 40px;
    color: var(--accent-cyan);
}

.gallery-drop-box p {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 0 16px;
}

.scan-act-btn {
    height: 48px;
    font-size: 15px;
    font-weight: 700;
}

/* Result Card */
.result-card {
    background-color: var(--card-dark);
    border-radius: 20px;
    padding: 18px;
    border: 1.5px solid var(--emerald-green);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-card.verified {
    border: 1.5px solid var(--emerald-green);
}

.result-card.fake {
    border: 1.5px solid var(--alert-red);
    background-color: #450A0A;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-header i {
    font-size: 26px;
}

.result-header.verified i { color: var(--emerald-green); }
.result-header.fake i { color: var(--alert-red); }

.result-title-box h4 {
    font-size: 15px;
    font-weight: 800;
}

.result-title-box.verified h4 { color: var(--emerald-green); }
.result-title-box.fake h4 { color: var(--alert-red); }

.result-title-box span {
    font-size: 11px;
    color: var(--text-muted);
}

.med-name {
    font-size: 18px;
    font-weight: 800;
    color: white;
}

.med-brand {
    font-size: 12px;
    color: var(--accent-cyan);
}

.detail-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 10px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
}

.detail-row span:first-child { color: var(--text-muted); }
.detail-row span:last-child { color: white; font-weight: 600; }

.provenance-note {
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(0,0,0,0.3);
    padding: 8px;
    border-radius: 8px;
}

/* DOCTOR CHAT & TELECONSULTATION */
.doctor-section {
    display: none;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.doctor-section.active {
    display: flex;
}

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: 480px;
    padding-right: 4px;
}

.chat-bubble {
    display: flex;
    gap: 10px;
    max-width: 88%;
}

.chat-bubble.bot {
    align-self: flex-start;
}

.chat-bubble.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.bubble-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: white;
}

.bubble-content {
    background-color: var(--card-dark);
    padding: 12px;
    border-radius: 16px;
    border-top-left-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid var(--card-border);
}

.chat-bubble.user .bubble-content {
    background-color: var(--primary-blue);
    border-top-left-radius: 16px;
    border-top-right-radius: 4px;
    border: none;
}

.prompt-chips {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.chip {
    background-color: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.chat-input-row {
    display: flex;
    gap: 8px;
}

.chat-input-row input {
    flex: 1;
    background-color: var(--card-dark);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 0 16px;
    height: 44px;
    color: white;
    font-size: 13px;
    outline: none;
}

.send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Doctor List */
.doctor-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doctor-card {
    background-color: var(--card-dark);
    border-radius: 18px;
    padding: 14px;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doctor-top {
    display: flex;
    gap: 12px;
    align-items: center;
}

.doc-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: white;
}

.doc-info {
    flex: 1;
}

.doc-info h4 { font-size: 15px; font-weight: 700; }
.doc-info p { font-size: 11px; color: var(--accent-cyan); }
.doc-info span { font-size: 10px; color: var(--text-muted); }

.doc-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--warning-amber);
}

.doctor-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.avail-text {
    font-size: 11px;
    color: var(--emerald-green);
    font-weight: 600;
}

.btn-sm {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* SETTINGS & LANGUAGE OPTIONS */
.profile-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.verified-badge.sm {
    font-size: 10px;
    padding: 2px 6px;
    margin-top: 4px;
    display: inline-block;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

.lang-item {
    background-color: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    border: 1px solid transparent;
}

.lang-item.active {
    background-color: rgba(2, 132, 199, 0.2);
    border-color: var(--primary-blue);
    font-weight: 700;
}

.check-icon {
    color: var(--emerald-green);
    display: none;
}

.lang-item.active .check-icon {
    display: block;
}

.specs-list {
    list-style: none;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--alert-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* BOTTOM NAV BAR */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: var(--card-dark);
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10;
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.nav-item i {
    font-size: 18px;
}

.nav-item.active {
    color: var(--accent-cyan);
}
