@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* === Dark Mode (Default) === */
    --bg-primary: #060c14;
    --bg-secondary: #0d1b2e;
    --bg-card: rgba(13, 27, 46, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-input: rgba(5, 12, 24, 0.8);
    --border-color: rgba(255, 255, 255, 0.10);
    --border-hover: rgba(29, 169, 255, 0.45);
    --text-primary: #f0f6ff;
    --text-secondary: #8aa6c5;
    --text-muted: #526a86;

    /* === Brand Accent â€” CamCard Sky Blue === */
    --accent-color: #1DA9FF;
    --accent-secondary: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #1DA9FF 0%, #06b6d4 100%);
    --accent-glow: 0 8px 28px rgba(29, 169, 255, 0.40);
    --accent-subtle: rgba(29, 169, 255, 0.12);

    /* === Status Colors === */
    --success-color: #10b981;
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --success-subtle: rgba(16, 185, 129, 0.12);
    --danger-color: #f43f5e;
    --danger-gradient: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
    --warning-color: #f59e0b;
    --warning-subtle: rgba(245, 158, 11, 0.12);

    /* === Quick Action Colors === */
    --whatsapp-color: #25D366;
    --whatsapp-gradient: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    --maps-color: #3b82f6;
    --maps-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);

    /* === OptiBiz Pastel Badge System === */
    --badge-mint-bg: rgba(16, 185, 129, 0.18);
    --badge-mint-text: #34d399;
    --badge-mint-border: rgba(16, 185, 129, 0.35);
    --badge-peach-bg: rgba(251, 146, 60, 0.18);
    --badge-peach-text: #fb923c;
    --badge-peach-border: rgba(251, 146, 60, 0.35);
    --badge-lavender-bg: rgba(167, 139, 250, 0.18);
    --badge-lavender-text: #a78bfa;
    --badge-lavender-border: rgba(167, 139, 250, 0.35);
    --badge-rose-bg: rgba(251, 113, 133, 0.18);
    --badge-rose-text: #fb7185;
    --badge-rose-border: rgba(251, 113, 133, 0.35);
    --badge-sky-bg: rgba(29, 169, 255, 0.18);
    --badge-sky-text: #38bdf8;
    --badge-sky-border: rgba(29, 169, 255, 0.35);

    /* === Layout === */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    /* === CamCard-style Light Mode === */
    --bg-primary: #f0f4f8;
    --bg-secondary: #e8edf3;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --bg-input: #ffffff;
    --border-color: rgba(0, 0, 0, 0.10);
    --border-hover: rgba(29, 169, 255, 0.40);
    --text-primary: #0d1b2e;
    --text-secondary: #4a6282;
    --text-muted: #8aa6c5;
    --accent-subtle: rgba(29, 169, 255, 0.10);
    --success-subtle: rgba(16, 185, 129, 0.10);
    --warning-subtle: rgba(245, 158, 11, 0.10);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Inter', Roboto, sans-serif;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(29, 169, 255, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 16px;
    transition: var(--transition);
}

.app-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 80px; /* Space for mobile bottom dock */
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.app-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

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

.brand-icon {
    font-size: 1.8rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(29, 169, 255, 0.45));
}

.brand-text h1 {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    font-size: 0.68rem;
    padding: 2px 9px;
    background: var(--accent-subtle);
    color: var(--accent-color);
    border: 1px solid rgba(29, 169, 255, 0.3);
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.badge-success {
    background: var(--success-subtle);
    color: var(--success-color);
    border-color: rgba(16, 185, 129, 0.3);
}
.badge-accent {
    background: var(--badge-lavender-bg);
    color: var(--badge-lavender-text);
    border-color: var(--badge-lavender-border);
}
/* OptiBiz Pastel Stage Badges */
.badge-mint {
    background: var(--badge-mint-bg);
    color: var(--badge-mint-text);
    border: 1px solid var(--badge-mint-border);
}
.badge-peach {
    background: var(--badge-peach-bg);
    color: var(--badge-peach-text);
    border: 1px solid var(--badge-peach-border);
}
.badge-lavender {
    background: var(--badge-lavender-bg);
    color: var(--badge-lavender-text);
    border: 1px solid var(--badge-lavender-border);
}
.badge-rose {
    background: var(--badge-rose-bg);
    color: var(--badge-rose-text);
    border: 1px solid var(--badge-rose-border);
}
.badge-sky {
    background: var(--badge-sky-bg);
    color: var(--badge-sky-text);
    border: 1px solid var(--badge-sky-border);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Language Selector Dropdown */
.lang-selector-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0 10px;
}
.lang-icon {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-right: 6px;
}
.lang-select-dropdown {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 4px;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    user-select: none;
}
.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: var(--accent-glow);
}
.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.btn-accent {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-success {
    background: var(--success-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

/* Tabs Navigation Bar (Desktop) */
.tab-nav {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}
.tab-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: var(--accent-glow);
}

/* SLEEK MOBILE FLOATING BOTTOM DOCK */
.mobile-bottom-dock {
    display: none; /* Shown on mobile screens */
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    height: 64px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 999;
    padding: 0 12px;
    justify-content: space-around;
    align-items: center;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 16px;
    transition: var(--transition);
}
.dock-item i {
    font-size: 1.2rem;
}
.dock-item.active {
    color: var(--accent-color);
}
.dock-item.active i {
    filter: drop-shadow(0 2px 6px rgba(99, 102, 241, 0.6));
}

/* Floating Action Center (FAB) */
.dock-fab {
    padding: 0;
    margin-top: -24px;
}
.fab-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    border: 3px solid var(--bg-secondary);
    transition: var(--transition);
}
.fab-circle i {
    font-size: 1.4rem;
}
.dock-fab:active .fab-circle {
    transform: scale(0.92);
}

/* Cards & Layout */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow);
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* KPI Analytics Dashboard Grid */
.kpi-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}
.kpi-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
}
.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
}
.bg-indigo { background: var(--accent-gradient); }
.bg-emerald { background: var(--success-gradient); }
.bg-purple { background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%); }
.bg-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

.kpi-info {
    display: flex;
    flex-direction: column;
}
.kpi-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.kpi-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
}

/* Camera Viewport Box */
.scanner-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.camera-viewport-wrapper {
    position: relative;
    width: 100%;
    max-width: 680px;
    height: 380px;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
}

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

.camera-guide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.card-frame {
    width: 80%;
    height: 65%;
    border: 2px dashed rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
    position: relative;
}

.card-frame::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: #6366f1;
    box-shadow: 0 0 15px #6366f1;
    animation: scanLine 2.5s infinite linear;
}

@keyframes scanLine {
    0% { top: 0%; }
    50% { top: 96%; }
    100% { top: 0%; }
}

.guide-text {
    margin-top: 14px;
    color: #fff;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    padding: 4px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.camera-notice {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px 20px;
}

/* Upload Dropzone */
.upload-box {
    padding: 12px;
}
.drop-zone {
    border: 1.5px dashed var(--accent-color);
    border-radius: var(--radius-md);
    padding: 18px 14px;
    text-align: center;
    background: rgba(99, 102, 241, 0.04);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.drop-zone:hover, .drop-zone.dragover {
    background: rgba(99, 102, 241, 0.09);
    border-color: #818cf8;
}
.drop-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 8px;
}
.upload-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

/* Upload Features Grid */
.upload-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.feature-tile {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}
.feature-tile i {
    font-size: 1.1rem;
}
.feature-tile h4 {
    font-size: 0.74rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}
.feature-tile p {
    font-size: 0.62rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.2;
}

/* Contacts Tab & Grid */
.contacts-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.search-bar {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-glass);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}
.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.filter-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-dropdown {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.contact-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition);
}
.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-hover);
}
/* Color-coded avatars per stage */
.contact-card[data-stage="Lead"] .contact-avatar { background: linear-gradient(135deg, #3b82f6, #1DA9FF); }
.contact-card[data-stage="Hot Lead"] .contact-avatar { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.contact-card[data-stage="Client"] .contact-avatar { background: var(--success-gradient); }
.contact-card[data-stage="VIP"] .contact-avatar { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.contact-card[data-stage="Cold"] .contact-avatar { background: linear-gradient(135deg, #64748b, #475569); }

.contact-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-avatar {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--accent-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: var(--accent-glow);
    flex-shrink: 0;
}

.contact-info h3 {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.contact-info .contact-title {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 2px;
}
.contact-info .contact-company {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.contact-meta div {
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-meta i {
    width: 16px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* 1-TAP QUICK ACTION PILLS (CALL, WHATSAPP, MAPS, EMAIL) */
.action-buttons-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 6px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}
.btn-action:active {
    transform: scale(0.94);
}

.btn-action-phone {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.btn-action-phone:hover {
    background: var(--success-gradient);
    color: #fff;
}

.btn-action-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #4ade80;
    border: 1px solid rgba(37, 211, 102, 0.3);
}
.btn-action-whatsapp:hover {
    background: var(--whatsapp-gradient);
    color: #fff;
}

.btn-action-maps {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.btn-action-maps:hover {
    background: var(--maps-gradient);
    color: #fff;
}

.btn-action-email {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}
.btn-action-email:hover {
    background: var(--accent-gradient);
    color: #fff;
}

/* Modals */
.modal {
    margin: auto;
    border: none;
    background: transparent;
    max-width: 90vw;
    padding: 0;
    color: var(--text-primary);
}
.modal::backdrop {
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    color: var(--text-primary);
    position: relative;
}
.modal-content::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.modal-body {
    padding: 24px;
    max-height: calc(90vh - 3px);
    overflow-y: auto;
}
.modal-footer {
    padding: 12px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-glass);
}
.modal-sm { max-width: 460px; }
.modal-lg { max-width: 950px; }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.modal-header h2 {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}
.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.modal-close:hover {
    color: var(--text-primary);
}

/* Form Inputs inside Modals */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
}
.form-control {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    outline: none;
    width: 100%;
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: var(--bg-input);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    font-size: 0.9rem;
    font-weight: 600;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE MOBILE BREAKPOINTS & OVERHAUL */
/* RESPONSIVE MOBILE BREAKPOINTS & MICRO-TYPOGRAPHY OVERHAUL */
.brand-logo-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.live-pulse-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    border: 1.5px solid var(--bg-primary);
    box-shadow: 0 0 6px #10b981;
    animation: livePulse 2s infinite ease-in-out;
}
@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.75; }
}
.sub-brand-badge {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--accent-color);
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 1px 5px;
    border-radius: 6px;
    margin-left: 4px;
    letter-spacing: 0.02em;
}

/* NATIVE CAMERA VIEWPORT & GUIDE */
.mobile-camera-card {
    padding: 2px 2px 6px 2px;
    background: transparent;
    border: none;
    box-shadow: none;
}
.camera-viewport-wrapper {
    position: relative;
    width: 100%;
    height: 290px;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.85);
}
#camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Real-time Holographic Framing Guide */
.camera-guide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 16px 12px;
    pointer-events: none;
    z-index: 5;
}
.holo-card-frame {
    position: relative;
    width: 88%;
    height: 74%;
    border: 1px dashed rgba(99, 102, 241, 0.55);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2), inset 0 0 10px rgba(99, 102, 241, 0.1);
}
.holo-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: #38bdf8;
    border-style: solid;
}
.holo-corner.top-left { top: -1px; left: -1px; border-width: 2.5px 0 0 2.5px; border-top-left-radius: 8px; }
.holo-corner.top-right { top: -1px; right: -1px; border-width: 2.5px 2.5px 0 0; border-top-right-radius: 8px; }
.holo-corner.bottom-left { bottom: -1px; left: -1px; border-width: 0 0 2.5px 2.5px; border-bottom-left-radius: 8px; }
.holo-corner.bottom-right { bottom: -1px; right: -1px; border-width: 0 2.5px 2.5px 0; border-bottom-right-radius: 8px; }

.scan-laser-line {
    position: absolute;
    left: 2px;
    right: 2px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, #818cf8, transparent);
    box-shadow: 0 0 8px #38bdf8;
    animation: laserScan 2.4s ease-in-out infinite alternate;
}
@keyframes laserScan {
    0% { top: 6%; opacity: 0.2; }
    50% { opacity: 1; }
    100% { top: 90%; opacity: 0.2; }
}
.guide-pill {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3px 10px;
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 0.68rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Dual-Shot Side Switcher Pill */
.dual-side-pill-bar {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 8px 0 4px 0;
}
.side-pill {
    padding: 4px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.side-pill.active {
    background: var(--accent-gradient);
    color: var(--text-primary);
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

/* Ergonomic Native Shutter Bar */
.native-shutter-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px 8px 0 8px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}
.shutter-btn-large {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: transparent;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease;
}
.shutter-btn-large:active {
    transform: scale(0.92);
}
.shutter-inner-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}
.shutter-inner-ring.back-ring {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}
.shutter-center-core {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
}
.shutter-side-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.shutter-side-btn:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.18);
}
.shutter-side-label {
    font-size: 0.55rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 1px;
}
.shutter-actions-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Camera Footer Tips Ribbon */
.camera-footer-tips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 6px 12px;
    margin: 10px auto 4px auto;
    max-width: 360px;
    font-size: 0.68rem;
    color: var(--text-secondary);
    text-align: center;
}
.camera-footer-tips i {
    font-size: 0.75rem;
}

/* Dual-Shot Staging Tray */
.dual-shot-tray {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    margin-top: 8px;
}
.dual-tray-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.dual-tray-content {
    display: flex;
    gap: 8px;
    align-items: center;
}
.tray-slot {
    flex: 1;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 4px;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}
.slot-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 700;
}
.tray-slot img {
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    margin-top: 2px;
}
.btn-merge-scan {
    height: 52px;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    font-size: 0.75rem;
    font-weight: 800;
}

/* MINI CRM METRICS & FILTER CHIPS */
.mini-crm-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}
.mini-kpi-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 4px 2px;
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.mini-kpi-item strong {
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 800;
}
.mini-kpi-item i {
    font-size: 0.72rem;
}
.chip-scroll-bar {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.chip-scroll-bar::-webkit-scrollbar {
    display: none;
}
.chip-pill {
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.chip-pill.active {
    background: var(--accent-gradient);
    color: var(--text-primary);
    border-color: transparent;
}
.search-bar-wrapper {
    margin-bottom: 6px;
}
.mobile-search-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px 3px 10px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 38px;
    transition: var(--transition);
}
.mobile-search-bar:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}
.search-leading-icon {
    color: var(--text-muted);
    font-size: 0.82rem;
}
.mobile-search-bar input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.82rem;
}
.mobile-search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.78rem;
}
.search-clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.search-clear-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}
.search-submit-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    height: 28px;
}
.filter-toggle-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    height: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.filter-toggle-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.search-parameters-drawer {
    background: var(--bg-input);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeIn 0.2s ease;
}
.drawer-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.params-scope-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.param-scope-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 20px;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}
.param-scope-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}
.param-scope-pill.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}
.drawer-filters-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.filter-dropdown-mini {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 0.7rem;
    padding: 2px 6px;
    outline: none;
    cursor: pointer;
    height: 26px;
}

/* CRM COMMAND & MULTI-SELECT STRIP */
.crm-command-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 6px;
}
.crm-command-left {
    display: flex;
    align-items: center;
    gap: 6px;
}
.select-all-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    color: var(--text-secondary);
}
.select-all-toggle input {
    accent-color: var(--accent-color);
}
.select-count-pill {
    font-size: 0.65rem;
    padding: 2px 6px;
}
.crm-command-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.view-mode-pill-group {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}
.view-pill {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}
.view-pill:hover {
    color: var(--text-primary);
}
.view-pill.active {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}
.view-pill i {
    font-size: 0.72rem;
}

/* FLOATING BATCH ACTION BAR */
.bulk-actions-floating-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 10px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    margin-bottom: 6px;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.3);
    animation: fadeIn 0.2s ease;
}
.bulk-bar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}
.bulk-bar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}
.bulk-select-dropdown {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 6px;
    outline: none;
    height: 28px;
    cursor: pointer;
}

/* COMPACT HIGH-DENSITY CONTACT CARD IN FEED */
.contact-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.contact-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.contact-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
}
.contact-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.contact-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.78rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
    flex-shrink: 0;
}
.contact-info {
    min-width: 0;
    flex: 1;
}
.contact-info h3 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}
.contact-subline {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.contact-title {
    color: #818cf8;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.subline-dot {
    color: var(--text-muted);
    font-size: 0.55rem;
}
.contact-company {
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.contact-card-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.contact-card-actions .btn-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.inline-stage-select {
    background: rgba(30, 41, 59, 0.9);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    height: 28px;
}
.contact-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    min-width: 0;
    width: 100%;
}
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.68rem;
    color: var(--text-secondary);
    text-decoration: none;
    max-width: 100%;
}
.meta-pill i {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.meta-pill.meta-address {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 100%;
    min-width: 0;
}
.meta-pill.meta-address span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.action-buttons-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-top: 2px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    min-width: 0;
}
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 2px;
    border-radius: 6px;
    font-size: 0.64rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
}
.btn-action:active {
    transform: scale(0.95);
}
.btn-action i {
    font-size: 0.72rem;
}

/* SLIDE-UP BOTTOM SHEET CONTACT MODAL */
.bottom-sheet-modal .bottom-sheet-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px 18px 0 0;
    padding: 12px 14px 10px 14px;
    height: 88vh;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

.bottom-sheet-modal .modal-header,
.bottom-sheet-modal .quick-actions-bar {
    flex-shrink: 0;
}

.bottom-sheet-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior-y: contain;
    padding-right: 4px;
    margin-bottom: 6px;
}

.bottom-sheet-modal .modal-body::-webkit-scrollbar {
    width: 5px;
}
.bottom-sheet-modal .modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.bottom-sheet-modal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.45);
    border-radius: 10px;
}

/* CROPPER MODAL CONSTRAINED SIZING */
#crop-modal.crop-dialog {
    max-width: 95vw;
    width: 620px;
    max-height: 90vh;
    max-height: 90dvh;
    padding: 0;
    border: none;
    background: transparent;
    margin: auto;
    overflow: hidden;
}

#crop-modal.crop-dialog[open] {
    display: flex;
    flex-direction: column;
}

.crop-modal-card {
    background: var(--bg-secondary) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 12px 14px;
    max-height: 88vh;
    max-height: 88dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden !important;
}

.crop-modal-header {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.crop-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crop-header-left h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.crop-badge-side {
    background: rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #a5b4fc;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
}

.crop-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.cropper-container-box {
    width: 100%;
    height: 100%;
    max-height: 48vh;
    max-height: 48dvh;
    min-height: 180px;
    background: #020617;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cropper-container-box img#crop-image-target {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.cropper-container-box .cropper-container {
    width: 100% !important;
    height: 100% !important;
    max-height: 48vh !important;
    max-height: 48dvh !important;
}

.cropper-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 20;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.crop-dialog .cropper-toolbar {
    flex: 0 0 auto;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.crop-action-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-direct-scan {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-direct-scan:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.btn-crop-scan {
    background: var(--accent-gradient, linear-gradient(135deg, #6366f1, #8b5cf6));
    color: #fff;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}
.modal-title-wrap h2 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0;
}
.modal-title-wrap span {
    font-size: 0.68rem;
}

/* 1-Tap Quick Action Buttons Bar */
.quick-actions-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 6px 0 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
}
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 2px;
    border-radius: 10px;
    font-size: 0.62rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.15s ease;
}
.action-btn:active {
    transform: scale(0.92);
}
.action-btn i {
    font-size: 0.95rem;
}
.action-btn.action-whatsapp { background: rgba(37, 211, 102, 0.15); border-color: rgba(37, 211, 102, 0.35); color: #4ade80; }
.action-btn.action-call { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.35); color: #60a5fa; }
.action-btn.action-email { background: rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.35); color: #a78bfa; }
.action-btn.action-website { background: rgba(6, 182, 212, 0.15); border-color: rgba(6, 182, 212, 0.35); color: #22d3ee; }
.action-btn.action-maps { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.35); color: #fbbf24; }

/* Contact Form Input Contrast & Legibility */
.contact-form .form-group {
    margin-bottom: 6px;
}
.contact-form label,
.form-group label {
    color: #e2e8f0 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    background: var(--bg-card) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    height: 32px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}
.contact-form textarea {
    height: auto;
    min-height: 48px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #818cf8 !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}
.highlight-box-handwriting {
    background: rgba(168, 85, 247, 0.08);
    border: 1px dashed rgba(168, 85, 247, 0.4);
    border-radius: 8px;
    padding: 6px 8px;
    margin-bottom: 6px;
}
.highlight-box-handwriting .highlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}
.highlight-box-handwriting label {
    color: #c084fc !important;
    font-weight: 700;
    margin: 0;
}
.btn-copy-mini {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.65rem;
    cursor: pointer;
}
.highlight-box-backside {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    padding: 6px 8px;
    margin-bottom: 6px;
}
.highlight-box-backside label {
    color: #60a5fa !important;
    font-weight: 700;
}
.sticky-modal-footer {
    position: sticky;
    bottom: 0;
    background: rgba(11, 17, 32, 0.98);
    backdrop-filter: blur(12px);
    padding: 8px 0 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 8px;
    z-index: 10;
    margin-top: auto;
}
.sticky-modal-footer .btn {
    height: 36px;
    padding: 0 12px;
    font-size: 0.78rem;
    border-radius: 8px;
}

/* SETTINGS DRAWER MODAL */
.drawer-content {
    max-width: 420px;
    background: var(--bg-secondary);
    border-radius: 18px;
    padding: 16px;
}
.drawer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.drawer-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

/* Mobile Bottom Navigation Dock */
.mobile-bottom-dock {
    display: none;
    position: fixed;
    bottom: 8px;
    left: 10px;
    right: 10px;
    height: 50px;
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
    z-index: 999;
    padding: 0 6px;
    justify-content: space-around;
    align-items: center;
}
.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.64rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 16px;
    transition: var(--transition);
}
.dock-item i,
.dock-item span {
    pointer-events: none;
}

body.modal-open .mobile-bottom-dock,
dialog[open] ~ .mobile-bottom-dock,
body:has(dialog[open]) .mobile-bottom-dock {
    display: none !important;
    pointer-events: none !important;
}

.visually-hidden-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.001 !important;
    pointer-events: none !important;
    left: -9999px !important;
}

.camera-footer-tips {
    pointer-events: none;
}


@media (max-width: 768px) {
    body {
        padding: 4px 6px 65px 6px;
    }
    .app-container {
        gap: 6px;
        padding-bottom: 65px;
        max-width: 100vw;
    }
    .app-header {
        height: 42px;
        padding: 3px 10px;
        border-radius: 10px;
    }
    .brand-logo-badge {
        width: 26px;
        height: 26px;
    }
    .brand-icon {
        font-size: 1.05rem;
    }
    .brand-text h1 {
        font-size: 0.82rem;
        font-weight: 800;
    }
    .sub-brand-badge {
        font-size: 0.54rem;
        padding: 1px 4px;
    }
    .lang-selector-wrapper {
        padding: 0 6px;
        height: 28px;
    }
    .lang-select-dropdown {
        font-size: 0.75rem;
        padding: 4px 2px;
    }
    .hide-mobile-tabs {
        display: none !important;
    }
    .mobile-bottom-dock {
        display: flex;
    }
    .bottom-sheet-modal {
        position: fixed;
        margin: 0;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
    }
    .bottom-sheet-modal .bottom-sheet-content {
        border-radius: 18px 18px 0 0;
        height: 88vh;
        max-height: 88vh;
        width: 100%;
        padding: 10px 12px 8px 12px;
        display: flex;
        flex-direction: column;
        overflow: hidden !important;
    }
    .bottom-sheet-modal .modal-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        overscroll-behavior-y: contain;
    }
    .sheet-drag-handle {
        display: block;
    }
    .form-row {
        display: flex;
        flex-direction: row;
        gap: 6px;
    }
    .form-group.col-4 {
        flex: 1 1 30%;
        width: auto !important;
    }
    .form-group.col-6 {
        flex: 1 1 48%;
        width: auto !important;
    }
    .form-group.col-8 {
        flex: 1 1 65%;
        width: auto !important;
    }
    .form-group.col-12 {
        flex: 1 1 100%;
        width: 100% !important;
    }
    .camera-viewport-wrapper {
        height: 310px;
    }
    .holo-card-frame {
        width: 90%;
        height: 76%;
    }
    .contacts-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 6px;
        width: 100%;
        min-width: 0;
    }
    .mini-crm-summary {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
    .chip-scroll-bar {
        gap: 4px;
    }
    .mobile-search-bar {
        height: 32px;
        padding: 4px 8px;
    }

    /* Mobile Crop Modal Optimization */
    #crop-modal.crop-dialog {
        width: 95vw !important;
        max-width: 95vw !important;
        max-height: 94vh !important;
        max-height: 94dvh !important;
        margin: auto !important;
        inset: 0 !important;
        position: fixed !important;
    }
    
    .crop-modal-card {
        padding: 10px 12px !important;
        max-height: 92vh !important;
        max-height: 92dvh !important;
        border-radius: 14px !important;
    }
    
    .crop-header-left h2 {
        font-size: 0.88rem !important;
    }

    .crop-badge-side {
        font-size: 0.65rem !important;
        padding: 1px 6px !important;
    }
    
    .cropper-container-box {
        max-height: 42vh !important;
        max-height: 42dvh !important;
        min-height: 160px !important;
        height: 40vh !important;
    }
    
    .cropper-container-box .cropper-container {
        max-height: 42vh !important;
        max-height: 42dvh !important;
    }
    
    .crop-dialog .cropper-toolbar {
        margin-top: 8px !important;
        padding-top: 6px !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
    }
    
    .tool-btn-group {
        display: flex !important;
        gap: 4px !important;
    }

    .tool-btn-group .btn-icon {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        font-size: 0.78rem !important;
    }
    
    .btn-direct-scan {
        padding: 6px 10px !important;
        font-size: 0.76rem !important;
    }
    
    .btn-crop-scan {
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
    }
}

/* ====================================================
   GLASSMORPHIC HERO CAMERA HUB & CRM STYLING
   ==================================================== */
.glass-hero-hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    text-align: center;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    margin: 10px 0;
}

.hero-icon-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--text-primary);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    margin-bottom: 16px;
    animation: pulseGlow 2.5s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4); }
    100% { transform: scale(1.05); box-shadow: 0 12px 35px rgba(139, 92, 246, 0.7); }
}

.hero-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.hero-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 340px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.hero-action-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 340px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: var(--text-primary);
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-hero-primary:active {
    transform: scale(0.97);
}

.btn-hero-secondary {
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-primary);
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-hero-secondary:active {
    transform: scale(0.97);
    background: rgba(47, 63, 86, 0.9);
}

/* ====================================================
   ONE-PAGE CRM PIPELINE STAGE BAR STYLING
   ==================================================== */
.crm-pipeline-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.crm-pipeline-bar::-webkit-scrollbar {
    display: none;
}

.crm-stage-pill {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.crm-stage-pill:hover,
.crm-stage-pill.active {
    background: linear-gradient(135deg, var(--accent-color), #4f46e5);
    color: var(--text-primary);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

/* CRM Stage Badges on Contact Cards */
.badge-stage {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-stage-lead { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-stage-hot { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-stage-meeting { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-stage-proposal { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-stage-closed { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

/* Quick Action WhatsApp & Call Pills */
.action-pill-whatsapp {
    background: #25D366 !important;
    color: #ffffff !important;
}

.action-pill-vcard {
    background: #10b981 !important;
    color: #ffffff !important;
}

/* Status Bullet Signs */
.status-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-bullet-all { background: #94a3b8; }
.status-bullet-hot { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.status-bullet-meeting { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.status-bullet-proposal { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.status-bullet-closed { background: #10b981; box-shadow: 0 0 8px #10b981; }

/* 5-Node Visual Pipeline Stepper Bar on Contact Cards */
.crm-stepper-container {
    margin: 10px 0 6px 0;
    padding: 8px 10px;
    background: var(--bg-glass);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.crm-stepper-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.crm-stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.crm-stepper-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #334155;
    border: 2px solid #1e293b;
    transition: all 0.25s ease;
}

.crm-stepper-step.completed .crm-stepper-dot {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

.crm-stepper-step.active .crm-stepper-dot {
    background: #ef4444;
    border-color: var(--text-primary);
    box-shadow: 0 0 10px #ef4444;
    transform: scale(1.25);
}

.crm-stepper-label {
    font-size: 0.62rem;
    color: var(--text-muted);
    margin-top: 4px;
    white-space: nowrap;
}

.crm-stepper-step.active .crm-stepper-label {
    color: var(--text-primary);
    font-weight: 700;
}

/* Inline Quick Stage Selector Dropdown on Card Header */
.inline-stage-select {
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 3px 6px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.inline-stage-select:hover {
    border-color: var(--accent-color);
}

/* Custom Checkbox Styling */
.custom-checkbox, .contact-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

/* View Mode Switcher Active Styling */
.view-mode-switcher .btn {
    padding: 6px 12px;
    border-radius: 8px;
}
.view-mode-switcher .btn.active {
    background: var(--accent-color);
    color: var(--text-primary);
}

/* COMPACT LIST VIEW STYLING */
.contacts-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-list-item {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease;
}

.contact-list-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.contact-list-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.contact-list-info {
    min-width: 0;
}
.contact-list-info h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.contact-list-info p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.contact-list-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* DATA TABLE VIEW STYLING */
.contacts-table-container {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
}

.crm-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.crm-data-table th {
    background: rgba(30, 41, 59, 0.9);
    color: var(--text-muted);
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.crm-data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    white-space: nowrap;
}

.crm-data-table tr:hover {
    background: rgba(30, 41, 59, 0.5);
}

/* ====================================================
   BULK PICTURE SCAN QUEUE & THUMBNAILS FIX
   ==================================================== */
.bulk-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(16px);
    overflow: hidden;
    transition: var(--transition);
}

.bulk-item-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.bulk-thumbs-pair {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.bulk-thumb {
    width: 80px;
    height: 58px;
    max-width: 80px;
    max-height: 58px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #020617;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.bulk-info {
    flex: 1;
    min-width: 0;
}

.bulk-info h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bulk-info .status-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ====================================================
   IN-APP TRIAL REVIEW & COMMENT MODE STYLES
   ==================================================== */
.trial-review-bar {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: var(--bg-secondary);
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 15px rgba(245, 158, 11, 0.2);
    border-radius: 30px;
    padding: 6px 14px;
    animation: slideDownReview 0.25s ease-out;
}

@keyframes slideDownReview {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.review-bar-content {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

#review-view-notes-btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.review-bar-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.review-bar-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .review-bar-hint { display: none; }
    .trial-review-bar { width: 92vw; justify-content: space-between; }
    .review-bar-content { width: 100%; justify-content: space-between; }
}

/* Review Highlight Mode on elements */
body.trial-review-active * {
    cursor: crosshair !important;
}

.review-hover-highlight {
    outline: 2px dashed #f59e0b !important;
    outline-offset: 2px !important;
}

.review-pinned-highlight {
    outline: 2px solid #ef4444 !important;
    outline-offset: 2px !important;
    position: relative;
}

.trial-note-item {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
}

.trial-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.trial-note-category {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.cat-bug { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.cat-layout { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.cat-text { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.cat-feature { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }

/* ====================================================
   MOBILE HTTPS LIVE CAMERA SWITCH BANNER
   ==================================================== */
.https-switch-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
    animation: fadeIn 0.3s ease;
}

.https-switch-banner .banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.https-switch-banner .banner-left i {
    font-size: 1.25rem;
}

.https-switch-banner .banner-text {
    display: flex;
    flex-direction: column;
    font-size: 0.76rem;
    color: #fef3c7;
    line-height: 1.35;
}

.https-switch-banner .banner-text strong {
    color: #fbbf24;
    font-weight: 700;
}

/* ====================================================
   BATCH MULTI-CARD SCANNING PROGRESS QUEUE
   ==================================================== */
.batch-queue-card {
    background: var(--bg-card);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    padding: 14px;
    animation: fadeIn 0.25s ease;
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.queue-title-wrap h4 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.queue-progress-bar-wrap {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 6px;
}

.queue-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #10b981);
    border-radius: 20px;
    transition: width 0.35s ease-in-out;
}

.queue-status-subline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.batch-queue-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
}

.queue-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 10px;
    transition: var(--transition);
}

.queue-item-row.done {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.06);
}

.queue-item-row.processing {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.queue-item-thumb {
    width: 44px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.queue-item-info {
    flex: 1;
    min-width: 0;
}

.queue-item-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item-status {
    flex-shrink: 0;
}

/* ====================================================
   DUPLICATE DETECTION & SMART MERGE MODAL STYLES
   ==================================================== */
.duplicate-diff-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .duplicate-diff-container {
        grid-template-columns: 1fr;
    }
}

.diff-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.diff-card.existing-record-card {
    border-color: rgba(148, 163, 184, 0.3);
}

.diff-card.new-scanned-card {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.diff-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.diff-header h3 {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.diff-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.diff-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.78rem;
}

.diff-row.highlight-new {
    background: rgba(16, 185, 129, 0.12);
    border-left: 3px solid #10b981;
}

.diff-row-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.diff-row-value {
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
}

.dup-match-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    font-size: 0.82rem;
    color: #e0e7ff;
    font-weight: 600;
}

.dup-match-banner i {
    font-size: 1.1rem;
    color: #818cf8;
}

/* QR Code Pairing Styles */
#qr-modal .modal-content {
    max-width: 420px;
    padding: 16px 20px;
    overflow-y: hidden;
}

.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px;
    margin: 8px auto;
    width: fit-content;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

#qr-code-img {
    max-width: 170px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.ip-select-dropdown {
    width: 100%;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

.ip-select-dropdown option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.lan-url-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 10px;
}

#lan-url-text {
    flex: 1;
    font-family: var(--font-mono, monospace);
    font-size: 0.76rem;
    color: #38bdf8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

/* ================================================================
   UI/UX OVERHAUL v2.0 — CamCard + OptiBiz Inspired Upgrades
   ================================================================ */

/* Tab Bar — Upgraded */
.tab-nav {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 5px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}
.tab-nav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.tab-btn {
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    transition: var(--transition);
    letter-spacing: 0.01em;
}
.tab-btn.active {
    background: var(--accent-gradient);
    box-shadow: var(--accent-glow);
}

/* Mobile Bottom Dock — OptiBiz style with labels */
.mobile-bottom-dock {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}
.dock-item {
    padding: 8px 14px;
    border-radius: 14px;
    gap: 3px;
    font-size: 0.65rem;
    min-width: 56px;
}
.dock-item i {
    font-size: 1.25rem;
}
.dock-item.active {
    color: var(--accent-color);
    background: var(--accent-subtle);
}
.fab-circle {
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 8px 25px rgba(29, 169, 255, 0.5);
}

/* Feature Tiles — OptiBiz Pastel Style */
.feature-tile {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 8px;
    gap: 5px;
    transition: var(--transition);
}
.feature-tile:hover {
    background: var(--accent-subtle);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.feature-tile i {
    font-size: 1.15rem;
}
.feature-tile h4 {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-primary);
}
.feature-tile p {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* KPI Cards — Upgraded */
.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--border-hover);
}
.kpi-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Sub-brand badge fix */
.sub-brand-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-color);
    background: var(--accent-subtle);
    border: 1px solid rgba(29, 169, 255, 0.3);
    padding: 1px 6px;
    border-radius: 6px;
    margin-left: 4px;
    letter-spacing: 0.03em;
}

/* Scan line — updated to accent blue */
.card-frame::after {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

/* Contacts section heading improvements */
.contacts-header {
    padding: 12px 16px;
}

/* CamCard-style action bar in contacts */
.crm-action-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

/* Stage pill filter chips */
.stage-filter-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.stage-chip {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.stage-chip:hover,
.stage-chip.active {
    background: var(--accent-subtle);
    color: var(--accent-color);
    border-color: var(--border-hover);
}
.stage-chip.active-lead { background: var(--badge-sky-bg); color: var(--badge-sky-text); border-color: var(--badge-sky-border); }
.stage-chip.active-hot { background: var(--badge-peach-bg); color: var(--badge-peach-text); border-color: var(--badge-peach-border); }
.stage-chip.active-client { background: var(--badge-mint-bg); color: var(--badge-mint-text); border-color: var(--badge-mint-border); }
.stage-chip.active-vip { background: var(--badge-lavender-bg); color: var(--badge-lavender-text); border-color: var(--badge-lavender-border); }

/* LIGHT MODE fixes for previously broken elements */
[data-theme="light"] .mobile-bottom-dock {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .feature-tile {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .feature-tile:hover {
    background: var(--accent-subtle);
}
[data-theme="light"] .filter-dropdown,
[data-theme="light"] .lang-select-dropdown {
    color: var(--text-primary);
    background: var(--bg-card);
}
[data-theme="light"] .modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
}
[data-theme="light"] .toast {
    background: #ffffff;
    color: #0d1b2e;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .contact-card {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}
[data-theme="light"] .contact-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--border-hover);
}
[data-theme="light"] .tab-btn {
    color: var(--text-secondary);
}
[data-theme="light"] .tab-btn:hover {
    background: rgba(29, 169, 255, 0.06);
    color: var(--text-primary);
}
[data-theme="light"] .app-header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .search-bar {
    background: #f4f7fb;
    border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .search-bar input {
    color: var(--text-primary);
}
[data-theme="light"] .search-bar input::placeholder {
    color: var(--text-muted);
}

/* Responsive: larger minimum font sizes */
@media (max-width: 768px) {
    .feature-tile h4 { font-size: 0.78rem; }
    .feature-tile p { font-size: 0.7rem; }
    .contact-info h3 { font-size: 1rem; }
    .kpi-label { font-size: 0.75rem; }
    .badge { font-size: 0.68rem; }
    .sub-brand-badge { font-size: 0.66rem; }
}

/* ===== UX UPGRADE v2.0 — Sticky Save Dock ===== */
.sticky-save-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 20, 40, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1.5px solid rgba(29, 169, 255, 0.35);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  animation: slideDockUp 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideDockUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.sticky-dock-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.dock-contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(29, 169, 255, 0.25), rgba(99, 102, 241, 0.2));
  border: 1.5px solid rgba(29, 169, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1DA9FF;
  font-size: 16px;
  flex-shrink: 0;
}
.dock-contact-name {
  font-weight: 800;
  font-size: 14px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dock-contact-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dock-quick-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.dock-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  min-height: 34px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.dock-chip:hover {
  background: rgba(29, 169, 255, 0.15);
  border-color: rgba(29, 169, 255, 0.45);
  color: #ffffff;
}
.dock-chip:active {
  transform: scale(0.94);
}
.dock-save-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  min-height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1DA9FF, #6366f1);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 16px rgba(29, 169, 255, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}
.dock-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29, 169, 255, 0.5);
}
.dock-save-btn:active {
  transform: scale(0.96);
}

/* ===== UX UPGRADE: Tab height to 48px for thumb zone ===== */
.tab-btn {
  min-height: 48px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ===== UX UPGRADE: Touch-safe all buttons ===== */
.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-sm {
  min-height: 36px;
}

/* ===== UX UPGRADE: CRM KPI tiles — larger bold numbers ===== */
.mini-kpi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  flex: 1;
  min-width: 70px;
}
.mini-kpi-item i {
  font-size: 18px;
  margin-bottom: 2px;
}
.mini-kpi-item strong {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}
.mini-kpi-item span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== UX UPGRADE: Goal Gradient batch queue progress (starts at 8%) ===== */
.queue-progress-bar {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #1DA9FF, #6366f1);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 8%;
}

/* ===== UX UPGRADE: One Free Scan Banner (reciprocity) ===== */
#free-scan-banner {
  background: linear-gradient(135deg, rgba(29, 169, 255, 0.12), rgba(99, 102, 241, 0.1));
  border: 1.5px solid rgba(29, 169, 255, 0.3);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeSlideIn 0.4s ease;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
#free-scan-banner .banner-icon {
  font-size: 22px;
  flex-shrink: 0;
}
#free-scan-banner .banner-text {
  flex: 1;
}
#free-scan-banner .banner-text strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #1DA9FF;
  margin-bottom: 2px;
}
#free-scan-banner .banner-text span {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

/* Active scale feedback on ALL interactive elements */
button:not(:disabled):active,
a[href]:active,
label[for]:active {
  transform: scale(0.95);
  transition: transform 0.07s ease;
}
