/**
 * UXTI Mail & 5GB Members Drive Suite — Master Stylesheet
 * UnExplores Premium Cyber-Enterprise Dark Aesthetic
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --bg-navy-950: #04081e;
    --bg-navy-900: #060d2e;
    --bg-navy-800: #0b153f;
    --bg-surface: rgba(14, 25, 66, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(6, 182, 212, 0.35);
    --color-cyan: #06b6d4;
    --color-cyan-glow: rgba(6, 182, 212, 0.25);
    --color-emerald: #10b981;
    --color-amber: #f59e0b;
    --color-rose: #f43f5e;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-navy-900);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    margin: 0;
    padding: 0;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Contrast & Theme utilities */
.text-navy, [data-theme-text="navy"], .btn-contrast-dark {
    color: #030a1c !important;
    font-weight: 800 !important;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
    letter-spacing: -0.015em;
}

.font-mono, code, pre {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, Menlo, monospace !important;
    letter-spacing: -0.01em;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.4);
}

/* Glassmorphic Surfaces */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
}

.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    border-color: var(--border-glass-hover);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px -3px var(--color-cyan-glow);
}

/* Mail Navigation Items */
.nav-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.9rem;
    border-radius: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.825rem;
    font-weight: 500;
    transition: all 0.18s ease;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}
.nav-link-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}
.nav-link-item.active {
    color: var(--color-cyan);
    background: rgba(6, 182, 212, 0.12);
    border-left: 3px solid var(--color-cyan);
    font-weight: 600;
}
.nav-link-item .badge {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}
.nav-link-item.active .badge {
    background: var(--color-cyan);
    color: #060d2e;
}

/* Email Row item */
.email-row {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}
.email-row:hover {
    background: rgba(255, 255, 255, 0.035);
}
.email-row.selected {
    background: rgba(6, 182, 212, 0.1);
    border-left: 3px solid var(--color-cyan);
}
.email-row.unread {
    background: rgba(6, 182, 212, 0.04);
}
.email-row.unread .email-sender,
.email-row.unread .email-subject {
    font-weight: 700;
    color: #ffffff;
}

/* Star Icon */
.star-btn {
    color: var(--text-muted);
    transition: transform 0.15s ease, color 0.15s ease;
}
.star-btn:hover {
    transform: scale(1.2);
    color: var(--color-amber);
}
.star-btn.starred {
    color: var(--color-amber) !important;
}

/* Storage Quota Meter */
.quota-meter {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}
.quota-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #06b6d4, #10b981);
    transition: width 0.4s ease;
}
.quota-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

/* Drive Grid & List Elements */
.drive-item-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1rem;
    padding: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}
.drive-item-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Upload Dropzone */
.drive-dropzone {
    border: 2px dashed rgba(6, 182, 212, 0.35);
    border-radius: 1.25rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: rgba(6, 182, 212, 0.02);
    transition: all 0.2s ease;
    cursor: pointer;
}
.drive-dropzone.drag-active,
.drive-dropzone:hover {
    border-color: var(--color-cyan);
    background: rgba(6, 182, 212, 0.08);
    box-shadow: 0 0 20px -3px var(--color-cyan-glow);
}

/* Modals */
.uxti-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 30, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.uxti-modal-backdrop.active {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}
.uxti-modal-box {
    background: #091238;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 35px -5px rgba(6, 182, 212, 0.2);
    border-radius: 1.25rem;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}
.uxti-modal-backdrop.active .uxti-modal-box {
    transform: scale(1);
}

/* Toast Notifications */
#uxtiToast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    padding: 0.85rem 1.4rem;
    background: #0b153f;
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 1rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(120%);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
#uxtiToast.show {
    transform: translateY(0);
    pointer-events: auto;
}

/* ══════════════════ PRO MOBILE RESPONSIVENESS & INTERACTIVE SCROLL ARROWS ══════════════════ */
/* Universal interactive horizontal scroll strips with moving arrows */
.uxti-scroll-arrow-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
}

.uxti-scroll-strip {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
}
.uxti-scroll-strip::-webkit-scrollbar {
    display: none;
}

.uxti-scroll-arrow {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.6);
    border-radius: 9px;
    color: #22d3ee;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    z-index: 15;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 0 10px rgba(6, 182, 212, 0.35);
    padding: 0;
    user-select: none;
}
.uxti-scroll-arrow:hover {
    background: rgba(6, 182, 212, 0.35);
    border-color: #22d3ee;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.6);
}
.uxti-scroll-arrow:active {
    transform: scale(0.92);
    background: rgba(6, 182, 212, 0.45);
}
.uxti-scroll-arrow.disabled {
    opacity: 0.3;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.12);
    color: #64748b;
    box-shadow: none;
    transform: none;
    animation: none;
}

/* Subtle attention pulse when right content is waiting to be explored */
.uxti-scroll-arrow.pulse-cue,
.uxti-scroll-arrow-wrapper .uxti-scroll-right:not(.disabled) {
    animation: uxtiScrollPulse 2s infinite ease-in-out;
}
@keyframes uxtiScrollPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 4px rgba(6, 182, 212, 0.2);
        border-color: rgba(6, 182, 212, 0.4);
    }
    50% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 12px rgba(6, 182, 212, 0.6);
        border-color: rgba(6, 182, 212, 0.9);
        color: #ffffff;
    }
}

/* Gradient edge cues for scrollable content */
.uxti-scroll-fade-left {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 16px;
    background: linear-gradient(to right, #060c2b, transparent);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.uxti-scroll-fade-right {
    position: absolute;
    right: 28px;
    top: 0;
    bottom: 0;
    width: 16px;
    background: linear-gradient(to left, #060c2b, transparent);
    pointer-events: none;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* Universal Anti-Scrollbar & Desktop Navigation Strip */
.scrollbar-none {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.scrollbar-none::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.uxti-desktop-nav {
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.uxti-desktop-nav::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Bulletproof Header Isolation & Anti-Overflow */
@media (max-width: 860px) {
    .uxti-desktop-header {
        display: none !important;
    }
    .uxti-mobile-header {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
}
@media (min-width: 861px) {
    .uxti-desktop-header {
        display: flex !important;
    }
    .uxti-mobile-header {
        display: none !important;
    }
}

.uxti-mobile-compose-fab {
    bottom: max(20px, calc(16px + env(safe-area-inset-bottom, 0px))) !important;
    right: max(16px, calc(16px + env(safe-area-inset-right, 0px))) !important;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.45), 0 2px 10px rgba(0, 0, 0, 0.7) !important;
    z-index: 45 !important;
}

@media (max-width: 1024px) {
    .hide-on-mobile {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Strict Viewport Lock: Zero horizontal overflow or page sliding */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
        position: relative !important;
        touch-action: pan-y !important;
    }

    header, main, section, aside, div, nav {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    /* Responsive Pane Switching: List vs Reader */
    #emailListPane {
        width: 100vw !important;
        max-width: 100vw !important;
        flex: 1 1 100% !important;
        box-sizing: border-box !important;
    }
    #emailListPane.mobile-hidden {
        display: none !important;
    }
    #readingPane.mobile-active {
        display: flex !important;
        flex: 1 1 100% !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100% !important;
        z-index: 25;
        background: #04081e;
        box-sizing: border-box !important;
    }

    /* Mobile Email Row Touch-Friendliness */
    .email-row {
        padding: 0.75rem 0.85rem !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    /* Mobile Folder Pills */
    .mobile-folder-pill {
        padding: 0.35rem 0.75rem;
        border-radius: 999px;
        font-size: 0.72rem;
        font-weight: 600;
        color: #94a3b8;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.15s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        flex-shrink: 0;
    }
    .mobile-folder-pill:hover,
    .mobile-folder-pill.active {
        color: #22d3ee;
        background: rgba(6, 182, 212, 0.15);
        border-color: rgba(6, 182, 212, 0.4);
    }

    /* Settings Navigation Buttons */
    .settings-nav-btn {
        padding: 0.35rem 0.75rem;
        border-radius: 0.65rem;
        font-size: 0.72rem;
        font-weight: 600;
        color: #94a3b8;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.15s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        flex-shrink: 0;
    }
    .settings-nav-btn:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
    }
    .settings-nav-btn.active {
        color: #22d3ee;
        background: rgba(6, 182, 212, 0.15);
        border-color: rgba(6, 182, 212, 0.4);
    }

    /* Drive subheader & filters */
    .drive-filter-pill {
        padding: 0.25rem 0.5rem !important;
        font-size: 10px !important;
    }
}

@media (max-width: 640px) {
    /* Full-Screen Native-feel Compose on Mobile */
    #composeModal {
        padding: 0 !important;
    }
    #composeModal .uxti-modal-box {
        width: 100vw !important;
        height: 100% !important;
        max-width: 100vw !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        transform: none !important;
    }

    /* Single-row Touch-Scrollable Formatting Toolbar */
    .toolbar-container {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.45rem !important;
        gap: 0.2rem !important;
    }
    .toolbar-container::-webkit-scrollbar {
        display: none;
    }
    .toolbar-btn {
        flex-shrink: 0;
        min-width: 32px;
        height: 32px;
    }

    /* Modals padding on small screens */
    .uxti-modal-box {
        max-height: 94vh;
        border-radius: 1rem;
    }
}

/* ── Executive Compose Toolbar & Palettes ── */
.toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    font-size: 0.8rem;
}
.toolbar-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}
.toolbar-btn:active {
    background: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
}
.toolbar-divider {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 3px;
}

#colorPaletteDropdown,
#emojiPickerDropdown {
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.85), 0 0 25px rgba(6, 182, 212, 0.25);
    animation: uxtiDropdownPop 0.15s ease-out;
}

@keyframes uxtiDropdownPop {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

#recipientAutocompleteBox {
    animation: uxtiDropdownPop 0.15s ease-out;
}

/* Contact Filter Buttons */
.contact-filter-btn.active {
    background: rgba(6, 182, 212, 0.2) !important;
    color: #22d3ee !important;
    border: 1px solid rgba(6, 182, 212, 0.4) !important;
    font-weight: 600 !important;
}

/* ── Draggable Pane Resizers (Adjustable 3-Pane Borders) ── */
.pane-resizer {
    width: 6px;
    background: rgba(255, 255, 255, 0.04);
    cursor: col-resize;
    position: relative;
    z-index: 25;
    transition: background 0.15s ease, width 0.15s ease;
    user-select: none;
    flex-shrink: 0;
}
.pane-resizer:hover,
.pane-resizer.is-dragging {
    background: #06b6d4;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.7);
}
.pane-resizer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 32px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease;
}
.pane-resizer:hover::after,
.pane-resizer.is-dragging::after {
    background: #ffffff;
    height: 48px;
}

/* ── Premium Two-Tier Composer Toolbar ── */
.composer-toolbar-box {
    background: #081130;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 0.5rem 0.65rem;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.5);
}
.composer-toolbar-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.composer-toolbar-row:not(:last-child) {
    padding-bottom: 0.4rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.composer-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.5rem;
    padding: 0.3rem 0.5rem;
    outline: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.composer-select:hover,
.composer-select:focus {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.08);
    color: #ffffff;
}
.composer-select option {
    background: #081130;
    color: #f8fafc;
}

/* ── Calendar Side Tabs ── */
.cal-tab-btn {
    padding: 0.4rem 0.75rem;
    border-radius: 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}
.cal-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}
.cal-tab-btn.active {
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.1);
}

/* ── Premium Custom Scrollbars ── */
.custom-scrollbar::-webkit-scrollbar,
#mailSidebarScroll::-webkit-scrollbar,
#emailList::-webkit-scrollbar,
#readingPaneContent::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track,
#mailSidebarScroll::-webkit-scrollbar-track,
#emailList::-webkit-scrollbar-track,
#readingPaneContent::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb,
#mailSidebarScroll::-webkit-scrollbar-thumb,
#emailList::-webkit-scrollbar-thumb,
#readingPaneContent::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    transition: background 0.2s ease;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover,
#mailSidebarScroll::-webkit-scrollbar-thumb:hover,
#emailList::-webkit-scrollbar-thumb:hover,
#readingPaneContent::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.5);
}

.custom-scrollbar,
#mailSidebarScroll,
#emailList {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* ══════════════════════════════════════════════════════════════════════════════
   UNIVERSAL FORM DROPDOWNS & OPTION CONTRAST STANDARDS (IMAGE 1 & IMAGE 3)
   ══════════════════════════════════════════════════════════════════════════════ */
select, 
select.uxti-select,
.composer-select {
    background-color: #081130 !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 0.75rem !important;
}

select option,
.composer-select option {
    background-color: #081130 !important;
    color: #f8fafc !important;
    padding: 8px 12px !important;
    font-weight: 500 !important;
}

select option:checked, 
select option:hover, 
select option:focus {
    background-color: #0284c7 !important;
    color: #ffffff !important;
}

/* Fallback for light mode or full white backgrounds */
.bg-white select option,
[data-theme="light"] select option,
.light-dropdown select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   PREMIUM HIGH-CONTRAST EMAIL BODY CANVAS (IMAGE 5)
   Vibrant Typography on Deep Dark Background
   ══════════════════════════════════════════════════════════════════════════════ */
.mail-body-content {
    color: #f1f5f9 !important;
    font-size: 0.935rem !important;
    line-height: 1.75 !important;
    word-break: break-word !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.45) !important;
}

/* Email Body Typography — Preserves authentic sender formatting while maintaining dark-mode readability */
.mail-body-content {
    color: #e2e8f0;
}

.mail-body-content:not(:has(table)):not(:has([bgcolor])):not(:has([style*="background"])) p,
.mail-body-content:not(:has(table)):not(:has([bgcolor])):not(:has([style*="background"])) span,
.mail-body-content:not(:has(table)):not(:has([bgcolor])):not(:has([style*="background"])) div {
    color: #e2e8f0;
}

/* Vibrant Headings & Accents */
.mail-body-content h1, 
.mail-body-content h2, 
.mail-body-content h3, 
.mail-body-content h4 {
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: -0.015em !important;
    margin-top: 1.25rem !important;
    margin-bottom: 0.65rem !important;
}

.mail-body-content strong,
.mail-body-content b {
    color: #38bdf8 !important; /* Vibrant Cyan-Blue Accent */
    font-weight: 700 !important;
}

.mail-body-content a {
    color: #22d3ee !important; /* Vibrant Cyan */
    text-decoration: underline !important;
    font-weight: 600 !important;
    transition: color 0.15s ease !important;
}
.mail-body-content a:hover {
    color: #67e8f9 !important;
}

.mail-body-content blockquote {
    border-left: 3px solid #06b6d4 !important;
    padding: 0.65rem 1rem !important;
    margin: 1rem 0 !important;
    background: rgba(6, 182, 212, 0.06) !important;
    border-radius: 0 0.75rem 0.75rem 0 !important;
    color: #cbd5e1 !important;
}

.mail-body-content hr {
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 1.5rem 0 !important;
}

.mail-body-content table {
    border-collapse: collapse !important;
    max-width: 100% !important;
    margin: 1.25rem 0 !important;
}

.mail-body-content th, 
.mail-body-content td {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0.65rem 0.85rem !important;
    color: #f1f5f9 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

.mail-body-content pre, 
.mail-body-content code {
    background: rgba(0, 0, 0, 0.6) !important;
    color: #34d399 !important; /* Vibrant Emerald for code/pre */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.5rem !important;
    padding: 0.2rem 0.45rem !important;
    font-family: 'JetBrains Mono', monospace !important;
}

.mail-body-content pre {
    padding: 1rem !important;
    overflow-x: auto !important;
    white-space: pre-wrap !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   MODAL SCROLLABILITY & FOOTER VISIBILITY GUARANTEE (IMAGE 2)
   ══════════════════════════════════════════════════════════════════════════════ */
.uxti-modal-box {
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.uxti-modal-box form {
    max-height: calc(90vh - 75px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SLEEK CYBER-ENTERPRISE CURSOR & ANIMATIONS SUITE
   ══════════════════════════════════════════════════════════════════════════════ */

/* Custom Cyber Glow Cursor (Desktop / Fine Pointer only) */
@media (hover: hover) and (pointer: fine) {
    .uxti-cursor-dot {
        position: fixed;
        top: -4px;
        left: -4px;
        width: 8px;
        height: 8px;
        background: #22d3ee;
        border-radius: 50%;
        pointer-events: none;
        z-index: 99999;
        box-shadow: 0 0 10px #22d3ee, 0 0 20px rgba(6, 182, 212, 0.6);
        transition: transform 0.05s ease-out, width 0.15s ease, height 0.15s ease, background 0.15s ease;
        will-change: transform;
    }

    .uxti-cursor-ring {
        position: fixed;
        top: -16px;
        left: -16px;
        width: 32px;
        height: 32px;
        border: 1.5px solid rgba(6, 182, 212, 0.45);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99998;
        background: rgba(6, 182, 212, 0.03);
        box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
        transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
                    height 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
                    border-color 0.22s ease, 
                    background-color 0.22s ease;
        will-change: transform;
    }

    /* Hover reaction on interactive elements */
    .uxti-cursor-ring.hovering {
        width: 44px;
        height: 44px;
        top: -22px;
        left: -22px;
        border-color: rgba(34, 211, 238, 0.85);
        background: rgba(6, 182, 212, 0.12);
        box-shadow: 0 0 25px rgba(6, 182, 212, 0.4), inset 0 0 10px rgba(6, 182, 212, 0.2);
        backdrop-filter: blur(2px);
    }

    .uxti-cursor-dot.hovering {
        transform: scale(0.6) !important;
        background: #ffffff;
        box-shadow: 0 0 14px #ffffff;
    }

    .uxti-cursor-ring.clicking {
        width: 24px !important;
        height: 24px !important;
        top: -12px !important;
        left: -12px !important;
        border-color: #22d3ee !important;
        background: rgba(34, 211, 238, 0.35) !important;
        box-shadow: 0 0 20px #22d3ee !important;
    }

    /* Smooth cursor feedback on all interactive elements */
    a, button, [onclick], .email-row, .nav-link-item, .mobile-folder-pill, input, select, textarea {
        cursor: pointer !important;
    }
}

/* Email Body Links — Sleek Cyber Hover & Target Safety */
.uxti-email-link,
.mail-body-content a {
    color: #22d3ee !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    font-weight: 500 !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    display: inline !important;
    word-break: break-word !important;
}

.uxti-email-link:hover,
.mail-body-content a:hover {
    color: #67e8f9 !important;
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.6) !important;
    text-decoration-color: #67e8f9 !important;
}

/* Fluid Entrance Animations */
@keyframes uxtiFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes uxtiReadingPaneReveal {
    0% {
        opacity: 0.2;
        transform: scale(0.992) translateY(4px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.uxti-reading-pane-content {
    animation: uxtiReadingPaneReveal 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Email Row Item Micro-Interactions */
.email-row {
    animation: uxtiFadeInUp 0.18s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.email-row:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.045) !important;
    border-left: 2px solid rgba(6, 182, 212, 0.6);
}

.email-row.selected {
    transform: translateX(4px);
    border-left: 3px solid #22d3ee !important;
    background: rgba(6, 182, 212, 0.12) !important;
    box-shadow: inset 0 0 20px rgba(6, 182, 212, 0.05);
}

/* Compose & Action Buttons Glow */
button:active {
    transform: scale(0.97);
}

/* Shimmer Skeletal Loader */
@keyframes uxtiShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.uxti-shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(6,182,212,0.08) 50%, rgba(255,255,255,0.02) 75%);
    background-size: 200% 100%;
    animation: uxtiShimmer 1.8s infinite;
}

/* ══════════════════════════════════════════════════════════════════════════════
   UNEXPLORES CLOUD DRIVE — SLEEK & LIGHTWEIGHT CYBER STYLING
   ══════════════════════════════════════════════════════════════════════════════ */
.drive-item-card {
    background: rgba(11, 21, 63, 0.45) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 1rem !important;
    padding: 1.1rem !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    animation: uxtiFadeInUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    cursor: pointer !important;
    position: relative;
    overflow: hidden;
}

.drive-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.drive-item-card:hover {
    transform: translateY(-4px) scale(1.015);
    background: rgba(14, 28, 80, 0.6) !important;
    border-color: rgba(6, 182, 212, 0.5) !important;
    box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(6, 182, 212, 0.25) !important;
}

.drive-item-card:hover::before {
    opacity: 1;
}

.drive-filter-pill {
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer !important;
}

.drive-filter-pill.active {
    background: rgba(6, 182, 212, 0.2) !important;
    color: #22d3ee !important;
    border: 1px solid rgba(6, 182, 212, 0.4) !important;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.drive-list-row {
    transition: all 0.15s ease;
    cursor: pointer !important;
}

.drive-list-row:hover {
    background: rgba(6, 182, 212, 0.08) !important;
    border-left: 3px solid #22d3ee;
}

/* ══════════════════════════════════════════════════════════════════════════════
   UNEXPLORES ADDRESS BOOK & CONTACTS — MODERN & SLEEK
   ══════════════════════════════════════════════════════════════════════════════ */
#personalContactsList > div,
#corporateContactsList > div {
    animation: uxtiFadeInUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer !important;
}

#personalContactsList > div:hover,
#corporateContactsList > div:hover {
    transform: translateY(-3px);
    border-color: rgba(6, 182, 212, 0.45) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.15) !important;
}

.contact-filter-btn {
    transition: all 0.15s ease;
    cursor: pointer !important;
}

.contact-filter-btn.active {
    background: rgba(6, 182, 212, 0.2) !important;
    color: #22d3ee !important;
    border: 1px solid rgba(6, 182, 212, 0.35);
}

/* ══════════════════════════════════════════════════════════════════════════════
   UNEXPLORES CALENDAR & VIDEO MEETINGS — PREMIUM & LIGHTWEIGHT
   ══════════════════════════════════════════════════════════════════════════════ */
#calendarDaysGrid > div {
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

#calendarDaysGrid > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.4);
}

.cal-tab-btn {
    padding: 0.45rem 0.9rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.18s ease;
    cursor: pointer !important;
}

.cal-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.cal-tab-btn.active {
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* Custom Cursor Reaction for all Interactive Items across the Suite */
@media (hover: hover) and (pointer: fine) {
    .drive-item-card, .drive-list-row, .contact-filter-btn, .drive-filter-pill, .cal-tab-btn, #calendarDaysGrid > div, .drive-picker-card {
        cursor: pointer !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PERMANENT EMAIL CONTRAST & ACCESSIBILITY ENGINE
   Rule: Deep color backgrounds -> Brighter text colors (#f8fafc / #e2e8f0)
         Bright color backgrounds -> Deep dark text colors (#0f172a / #1e293b)
   ═══════════════════════════════════════════════════════════════════════════ */
.mail-body-content,
[data-uxti-email-body] {
    isolation: isolate;
    color: #e2e8f0;
}

/* Any element with explicit white, off-white, or bright background */
.mail-body-content [bgcolor="#ffffff" i],
.mail-body-content [bgcolor="#fff" i],
.mail-body-content [bgcolor="#fafafa" i],
.mail-body-content [bgcolor="#f8f9fa" i],
.mail-body-content [bgcolor="#f1f5f9" i],
.mail-body-content [bgcolor="#f3f4f6" i],
.mail-body-content [bgcolor="#e2e8f0" i],
.mail-body-content [bgcolor="white" i],
.mail-body-content [style*="background-color: #fff" i],
.mail-body-content [style*="background-color:#fff" i],
.mail-body-content [style*="background-color: white" i],
.mail-body-content [style*="background-color:white" i],
.mail-body-content [style*="background: #fff" i],
.mail-body-content [style*="background:#fff" i],
.mail-body-content [style*="background: white" i],
.mail-body-content [style*="background:white" i],
.mail-body-content [style*="background-color: rgb(25" i],
.mail-body-content [style*="background-color: rgb(24" i],
.mail-body-content [style*="background: rgb(25" i],
.mail-body-content [style*="background: rgb(24" i],
.mail-body-content .uxti-light-canvas {
    color: #0f172a !important;
}

/* Force deep dark color on all child text containers inside bright backgrounds */
.mail-body-content [bgcolor="#ffffff" i] p,
.mail-body-content [bgcolor="#ffffff" i] td,
.mail-body-content [bgcolor="#ffffff" i] th,
.mail-body-content [bgcolor="#ffffff" i] span,
.mail-body-content [bgcolor="#ffffff" i] div,
.mail-body-content [bgcolor="#ffffff" i] li,
.mail-body-content [bgcolor="#ffffff" i] h1,
.mail-body-content [bgcolor="#ffffff" i] h2,
.mail-body-content [bgcolor="#ffffff" i] h3,
.mail-body-content [bgcolor="#ffffff" i] h4,
.mail-body-content [bgcolor="#ffffff" i] h5,
.mail-body-content [bgcolor="#ffffff" i] h6,
.mail-body-content [bgcolor="white" i] p,
.mail-body-content [bgcolor="white" i] td,
.mail-body-content [bgcolor="white" i] span,
.mail-body-content [bgcolor="white" i] div,
.mail-body-content [bgcolor="white" i] li,
.mail-body-content [style*="background-color: #fff" i] p,
.mail-body-content [style*="background-color: #fff" i] td,
.mail-body-content [style*="background-color: #fff" i] span,
.mail-body-content [style*="background-color: #fff" i] div,
.mail-body-content [style*="background-color: #fff" i] li,
.mail-body-content [style*="background-color: white" i] p,
.mail-body-content [style*="background-color: white" i] td,
.mail-body-content [style*="background-color: white" i] span,
.mail-body-content [style*="background-color: white" i] div,
.mail-body-content [style*="background: #fff" i] p,
.mail-body-content [style*="background: #fff" i] td,
.mail-body-content [style*="background: #fff" i] span,
.mail-body-content [style*="background: #fff" i] div,
.mail-body-content [style*="background: white" i] p,
.mail-body-content [style*="background: white" i] td,
.mail-body-content [style*="background: white" i] span,
.mail-body-content [style*="background: white" i] div,
.mail-body-content .uxti-light-canvas p,
.mail-body-content .uxti-light-canvas td,
.mail-body-content .uxti-light-canvas th,
.mail-body-content .uxti-light-canvas span,
.mail-body-content .uxti-light-canvas div,
.mail-body-content .uxti-light-canvas li {
    color: #1e293b !important;
}

/* Force links in bright areas to accessible, high-contrast cyan-blue */
.mail-body-content [bgcolor="#ffffff" i] a,
.mail-body-content [bgcolor="white" i] a,
.mail-body-content [style*="background-color: #fff" i] a,
.mail-body-content [style*="background: #fff" i] a,
.mail-body-content .uxti-light-canvas a {
    color: #0284c7 !important;
    text-decoration: underline !important;
}

/* Overwrite accidental white/light text on light backgrounds */
.mail-body-content [bgcolor="#ffffff" i] [style*="color: #fff" i],
.mail-body-content [bgcolor="#ffffff" i] [style*="color: rgb(25" i],
.mail-body-content [bgcolor="#ffffff" i] [style*="color: rgb(24" i],
.mail-body-content [bgcolor="white" i] [style*="color: #fff" i],
.mail-body-content [style*="background-color: #fff" i] [style*="color: #fff" i],
.mail-body-content [style*="background-color: #fff" i] [style*="color: rgb(25" i],
.mail-body-content .uxti-light-canvas [style*="color: #fff" i],
.mail-body-content .uxti-light-canvas [style*="color: rgb(25" i] {
    color: #0f172a !important;
}

/* Deep color backgrounds -> Brighter text enforcement */
.mail-body-content [bgcolor="#000000"],
.mail-body-content [bgcolor="#000"],
.mail-body-content [bgcolor="#050a1e"],
.mail-body-content [bgcolor="#070f35"],
.mail-body-content [style*="background-color: #000" i],
.mail-body-content [style*="background-color: black" i],
.mail-body-content [style*="background-color: rgb(0" i],
.mail-body-content [style*="background-color: rgb(7" i] {
    color: #f8fafc !important;
}
.mail-body-content [bgcolor="#000000"] p,
.mail-body-content [bgcolor="#000000"] td,
.mail-body-content [bgcolor="#000000"] span,
.mail-body-content [bgcolor="#000000"] div,
.mail-body-content [style*="background-color: #000" i] p,
.mail-body-content [style*="background-color: #000" i] td,
.mail-body-content [style*="background-color: #000" i] span,
.mail-body-content [style*="background-color: #000" i] div {
    color: #f8fafc !important;
}

/* Drive Picker Custom UI Styles */
.drive-picker-filter-btn.active {
    background: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}
.drive-picker-card {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.drive-picker-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM DUAL-CANVAS EMAIL READING ENGINE (PAPER VIEW & DARK CANVAS)
   ═══════════════════════════════════════════════════════════════════════════ */
.uxti-email-paper-card {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    transition: all 0.25s ease-in-out !important;
    box-sizing: border-box !important;
}

.uxti-email-autofit-wrapper {
    width: 100% !important;
    box-sizing: border-box !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.uxti-email-paper-card.uxti-light-canvas-mode {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

.uxti-email-paper-card.uxti-light-canvas-mode .mail-body-content {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

.uxti-email-paper-card.uxti-light-canvas-mode .mail-body-content p,
.uxti-email-paper-card.uxti-light-canvas-mode .mail-body-content td,
.uxti-email-paper-card.uxti-light-canvas-mode .mail-body-content th,
.uxti-email-paper-card.uxti-light-canvas-mode .mail-body-content span,
.uxti-email-paper-card.uxti-light-canvas-mode .mail-body-content div,
.uxti-email-paper-card.uxti-light-canvas-mode .mail-body-content li,
.uxti-email-paper-card.uxti-light-canvas-mode .mail-body-content b,
.uxti-email-paper-card.uxti-light-canvas-mode .mail-body-content strong {
    color: #1e293b !important;
}

.uxti-email-paper-card.uxti-light-canvas-mode .mail-body-content h1,
.uxti-email-paper-card.uxti-light-canvas-mode .mail-body-content h2,
.uxti-email-paper-card.uxti-light-canvas-mode .mail-body-content h3,
.uxti-email-paper-card.uxti-light-canvas-mode .mail-body-content h4 {
    color: #0f172a !important;
}

.uxti-email-paper-card.uxti-light-canvas-mode .mail-body-content a {
    color: #0284c7 !important;
    text-decoration: underline !important;
}

.uxti-email-paper-card.uxti-light-canvas-mode .mail-body-content table {
    background-color: transparent !important;
    border-color: #e2e8f0 !important;
}

/* Dark Canvas Mode */
.uxti-email-paper-card.uxti-dark-canvas {
    background-color: #081232 !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.uxti-email-paper-card.uxti-dark-canvas .mail-body-content {
    background-color: transparent !important;
    color: #e2e8f0 !important;
}

.uxti-email-paper-card.uxti-dark-canvas .mail-body-content p,
.uxti-email-paper-card.uxti-dark-canvas .mail-body-content td,
.uxti-email-paper-card.uxti-dark-canvas .mail-body-content th,
.uxti-email-paper-card.uxti-dark-canvas .mail-body-content span,
.uxti-email-paper-card.uxti-dark-canvas .mail-body-content div,
.uxti-email-paper-card.uxti-dark-canvas .mail-body-content li {
    color: #e2e8f0 !important;
}

.uxti-email-paper-card.uxti-dark-canvas .mail-body-content a {
    color: #38bdf8 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM MODERN DROPDOWNS & DATE-TIME CONTROLS
   ═══════════════════════════════════════════════════════════════════════════ */
.uxti-modern-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2306b6d4'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.85rem center !important;
    background-size: 1.15rem !important;
    background-color: #081232 !important;
    color: #ffffff !important;
    border: 1px solid rgba(6, 182, 212, 0.25) !important;
    border-radius: 0.85rem !important;
    padding: 0.65rem 2.4rem 0.65rem 1rem !important;
    font-size: 0.815rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    cursor: pointer !important;
}
.uxti-modern-select:hover {
    border-color: rgba(6, 182, 212, 0.55) !important;
    background-color: #0c1840 !important;
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px);
}
.uxti-modern-select:focus {
    outline: none !important;
    border-color: #06b6d4 !important;
    background-color: #0c1840 !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.28), 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}
.uxti-modern-select option {
    background-color: #070e28 !important;
    color: #ffffff !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.825rem !important;
}

.uxti-modern-datetime {
    color-scheme: dark !important;
    background-color: #081232 !important;
    color: #ffffff !important;
    border: 1px solid rgba(6, 182, 212, 0.25) !important;
    border-radius: 0.85rem !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.815rem !important;
    font-weight: 500 !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    cursor: pointer !important;
}
.uxti-modern-datetime:hover {
    border-color: rgba(6, 182, 212, 0.55) !important;
    background-color: #0c1840 !important;
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.18) !important;
    transform: translateY(-1px);
}
.uxti-modern-datetime:focus {
    outline: none !important;
    border-color: #06b6d4 !important;
    background-color: #0c1840 !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.28), 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM ISOLATED EMAIL PAPER CANVAS & IFRAME SUITE
   ═══════════════════════════════════════════════════════════════════════════ */
.uxti-email-paper-card {
    background: #ffffff !important;
    border-radius: 1rem !important;
    box-shadow: 0 18px 45px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 960px !important;
    margin: 0 auto !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.uxti-email-paper-card.uxti-dark-canvas {
    filter: invert(0.92) hue-rotate(180deg) !important;
    background: #0f172a !important;
}
.uxti-email-iframe {
    width: 100% !important;
    border: none !important;
    display: block !important;
    min-height: 480px;
    background: transparent;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM TOKENIZED RECIPIENT CHIPS & DROPDOWN ENGINE (To, Cc, Bcc)
   ═══════════════════════════════════════════════════════════════════════════ */
.uxti-recipient-row {
    transition: border-color 0.2s ease;
}
.uxti-recipient-row:focus-within {
    border-color: rgba(6, 182, 212, 0.4) !important;
}

.uxti-recipient-chip-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    min-height: 32px;
}

.uxti-recipient-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.5rem;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f1f5f9;
    user-select: none;
    max-width: 100%;
    animation: uxtiChipPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.uxti-recipient-chip.corporate {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(59, 130, 246, 0.18));
    border-color: rgba(6, 182, 212, 0.4);
    color: #e0f2fe;
    box-shadow: 0 2px 6px -1px rgba(6, 182, 212, 0.2);
}

.uxti-recipient-chip.invalid {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

.uxti-recipient-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    flex-shrink: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.uxti-recipient-avatar.personal {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}
.uxti-recipient-avatar.invalid {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.uxti-chip-name {
    font-weight: 600;
    color: #ffffff;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uxti-chip-email {
    font-size: 10px;
    color: #94a3b8;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uxti-chip-badge {
    font-size: 8.5px;
    padding: 0.1rem 0.35rem;
    border-radius: 9999px;
    background: rgba(6, 182, 212, 0.2);
    color: #38bdf8;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.uxti-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-left: 2px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 10px;
}
.uxti-chip-remove:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.1);
}

/* Floating Autocomplete Dropdown */
.uxti-recipient-dropdown {
    position: absolute;
    z-index: 1000;
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(6, 182, 212, 0.35) transparent;
    animation: uxtiDropdownFadeIn 0.15s ease-out;
}
.uxti-recipient-dropdown::-webkit-scrollbar {
    width: 6px;
}
.uxti-recipient-dropdown::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.35);
    border-radius: 9999px;
}

.uxti-dropdown-header {
    padding: 0.45rem 0.75rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #38bdf8;
    background: rgba(6, 182, 212, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.uxti-dropdown-item {
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    transition: all 0.12s ease;
    border-left: 3px solid transparent;
}
.uxti-dropdown-item:hover,
.uxti-dropdown-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #06b6d4;
}

@keyframes uxtiChipPop {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes uxtiDropdownFadeIn {
    0% { opacity: 0; transform: translateY(-4px); }
    100% { opacity: 1; transform: translateY(0); }
}



