/* ==========================================================================
   DroidSend High-Performance Modern Design System (2026 Edition)
   Crafted with Google Fonts (Plus Jakarta Sans & Outfit),
   Hardware-Accelerated Translucency, Ultra-Smooth 60+ FPS Rendering,
   and Complete Dark Mode & Light Mode Theme Switcher.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ==========================================================================
   Theme Variables (Dark Mode Default & Light Mode)
   ========================================================================== */
:root,
[data-theme="dark"] {
    --ds-theme: dark;

    /* Brand & Accent Colors */
    --ds-primary: #6366f1;
    --ds-primary-hover: #4f46e5;
    --ds-primary-light: rgba(99, 102, 241, 0.12);
    --ds-primary-glow: rgba(99, 102, 241, 0.45);

    --ds-accent-cyan: #06b6d4;
    --ds-accent-emerald: #10b981;
    --ds-accent-amber: #f59e0b;
    --ds-accent-rose: #f43f5e;
    --ds-accent-purple: #8b5cf6;

    /* Vibrant Gradients */
    --ds-gradient-primary: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #06b6d4 100%);
    --ds-gradient-accent: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --ds-gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --ds-gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --ds-gradient-danger: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);

    /* Performance Optimized Background Mesh */
    --ds-body-bg: #030712;
    --ds-mesh-gradient: 
        radial-gradient(circle at 10% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 90% 12%, rgba(6, 182, 212, 0.06) 0%, transparent 42%),
        radial-gradient(circle at 80% 85%, rgba(139, 92, 246, 0.06) 0%, transparent 48%),
        radial-gradient(circle at 15% 85%, rgba(16, 185, 129, 0.04) 0%, transparent 42%),
        #030712;

    /* Translucent Card Surfaces (GPU-accelerated, zero scroll lag) */
    --ds-glass-card-bg: rgba(8, 12, 22, 0.90);
    --ds-glass-card-border: rgba(255, 255, 255, 0.10);
    --ds-glass-card-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.7);

    /* Sidebar */
    --ds-sidebar-bg: rgba(4, 7, 16, 0.94);
    --ds-sidebar-border: rgba(255, 255, 255, 0.08);
    --ds-sidebar-item-hover: rgba(255, 255, 255, 0.07);
    --ds-sidebar-text: #94a3b8;
    --ds-sidebar-text-active: #ffffff;

    /* Top Navbar */
    --ds-navbar-bg: rgba(4, 7, 16, 0.90);
    --ds-navbar-border: rgba(255, 255, 255, 0.08);
    --ds-navbar-text: #e2e8f0;
    --ds-nav-pill-bg: rgba(255, 255, 255, 0.06);

    /* Typography */
    --ds-text-heading: #f8fafc;
    --ds-text-body: #cbd5e1;
    --ds-text-muted: #94a3b8;

    /* Inputs & Selects */
    --ds-input-bg: rgba(255, 255, 255, 0.06);
    --ds-input-border: rgba(255, 255, 255, 0.16);
    --ds-input-text: #ffffff;
    --ds-input-placeholder: rgba(255, 255, 255, 0.4);
    --ds-select2-dropdown-bg: #090e1a;

    /* Boxes & Tables */
    --ds-box-bg: rgba(8, 12, 22, 0.88);
    --ds-box-border: rgba(255, 255, 255, 0.10);
    --ds-table-hover: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] {
    --ds-theme: light;

    /* Brand & Accent Colors */
    --ds-primary: #4f46e5;
    --ds-primary-hover: #4338ca;
    --ds-primary-light: rgba(79, 70, 229, 0.08);
    --ds-primary-glow: rgba(79, 70, 229, 0.25);

    --ds-accent-cyan: #0891b2;
    --ds-accent-emerald: #059669;
    --ds-accent-amber: #d97706;
    --ds-accent-rose: #e11d48;
    --ds-accent-purple: #7c3aed;

    /* Vibrant Gradients */
    --ds-gradient-primary: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --ds-gradient-accent: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --ds-gradient-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --ds-gradient-warning: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    --ds-gradient-danger: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);

    /* Performance Optimized Background Mesh */
    --ds-body-bg: #f8fafc;
    --ds-mesh-gradient: 
        radial-gradient(circle at 12% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 88% 10%, rgba(56, 189, 248, 0.12) 0%, transparent 42%),
        radial-gradient(circle at 75% 85%, rgba(236, 72, 153, 0.06) 0%, transparent 48%),
        radial-gradient(circle at 15% 85%, rgba(16, 185, 129, 0.06) 0%, transparent 42%),
        #f1f5f9;

    /* Translucent Card Surfaces */
    --ds-glass-card-bg: rgba(255, 255, 255, 0.92);
    --ds-glass-card-border: rgba(0, 0, 0, 0.08);
    --ds-glass-card-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.08);

    /* Sidebar */
    --ds-sidebar-bg: rgba(255, 255, 255, 0.92);
    --ds-sidebar-border: rgba(0, 0, 0, 0.07);
    --ds-sidebar-item-hover: rgba(79, 70, 229, 0.07);
    --ds-sidebar-text: #475569;
    --ds-sidebar-text-active: #ffffff;

    /* Top Navbar */
    --ds-navbar-bg: rgba(255, 255, 255, 0.90);
    --ds-navbar-border: rgba(0, 0, 0, 0.07);
    --ds-navbar-text: #1e293b;
    --ds-nav-pill-bg: rgba(0, 0, 0, 0.04);

    /* Typography */
    --ds-text-heading: #0f172a;
    --ds-text-body: #334155;
    --ds-text-muted: #64748b;

    /* Inputs & Selects */
    --ds-input-bg: rgba(255, 255, 255, 0.95);
    --ds-input-border: #cbd5e1;
    --ds-input-text: #0f172a;
    --ds-input-placeholder: #94a3b8;
    --ds-select2-dropdown-bg: #ffffff;

    /* Boxes & Tables */
    --ds-box-bg: rgba(255, 255, 255, 0.92);
    --ds-box-border: rgba(0, 0, 0, 0.07);
    --ds-table-hover: rgba(79, 70, 229, 0.04);
}

/* ==========================================================================
   Ultra-Smooth Hardware-Accelerated Canvas (Zero Scroll Lag)
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: var(--ds-text-body) !important;
    background-color: var(--ds-body-bg) !important;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.01em;
    position: relative;
}

/* Fixed GPU layer for canvas mesh - eliminates repaints on scroll */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ds-mesh-gradient);
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}

h1, h2, h3, h4, h5, h6,
.content-header h1,
.box-title,
.small-box h3,
.login-logo {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700;
    color: var(--ds-text-heading);
    letter-spacing: -0.02em;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.6);
}

/* ==========================================================================
   1. Authentication Pages (Login, Register, Reset Password)
   ========================================================================== */
body.login-page,
body.register-page,
body.hold-transition.login-page,
body.hold-transition.register-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px 0;
    overflow-x: hidden;
}

.login-box,
.register-box {
    width: 440px !important;
    max-width: 92vw !important;
    margin: 20px auto !important;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   Universal Text-Based Modern Brand Logo (Dashboard Header, Public & Auth Pages)
   ========================================================================== */
.home-brand-text,
.ds-dashboard-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    user-select: none;
    line-height: 1 !important;
}

.main-header .logo.ds-dashboard-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 16px !important;
    height: 60px !important;
    background: transparent !important;
    border: none !important;
}

.main-header .logo .logo-lg {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    height: 100% !important;
}

.main-header .logo .logo-mini {
    display: none;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
}

.sidebar-collapse .main-header .logo .logo-lg {
    display: none !important;
}

.sidebar-collapse .main-header .logo .logo-mini {
    display: flex !important;
}

.brand-glyph {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(236, 72, 153, 0.3) 50%, rgba(6, 182, 212, 0.3) 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.brand-glyph-mini {
    width: 38px;
    height: 38px;
    font-size: 16px !important;
}

.brand-name {
    font-family: 'Outfit', sans-serif !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    letter-spacing: -0.6px;
    line-height: 1 !important;
    display: inline-block;
}

[data-theme="light"] .brand-name {
    color: #0f172a !important;
}

.brand-highlight {
    background: linear-gradient(135deg, #38bdf8 0%, #c084fc 50%, #f472b6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.5));
}

.brand-badge-version {
    font-size: 9.5px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 2px 6px !important;
    border-radius: 7px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1 !important;
    display: inline-block;
}

[data-theme="light"] .brand-badge-version {
    color: #4f46e5 !important;
    background: rgba(79, 70, 229, 0.1) !important;
    border-color: rgba(79, 70, 229, 0.25) !important;
}

.home-brand-text:hover .brand-glyph,
.ds-dashboard-brand:hover .brand-glyph {
    transform: scale(1.08) rotate(4deg);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.6);
}

/* Transparent Blurred Glass Card for Login */
.login-box-body,
.register-box-body {
    background: var(--ds-glass-card-bg) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--ds-glass-card-border) !important;
    border-radius: 24px !important;
    box-shadow: var(--ds-glass-card-shadow) !important;
    padding: 36px 40px !important;
    color: var(--ds-text-heading) !important;
    position: relative;
}

.login-box-msg,
.register-box-msg {
    color: var(--ds-text-muted) !important;
    font-size: 15px !important;
    font-weight: 500;
    margin-bottom: 24px !important;
    padding: 0 !important;
    text-align: center;
}

/* Form Controls & General Input Theming (Overrides White AdminLTE) */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    color: var(--ds-text-heading) !important;
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 6px;
}

.form-control,
input.form-control,
select.form-control,
textarea.form-control,
.form-group input:not([type="checkbox"]):not([type="radio"]):not(.select2-search__field),
.form-group select:not(.leads-format-select-clean),
.form-group textarea {
    height: 46px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: 500;
    color: var(--ds-input-text) !important;
    background-color: var(--ds-input-bg) !important;
    background: var(--ds-input-bg) !important;
    border: 1.5px solid var(--ds-input-border) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

textarea.form-control {
    height: auto !important;
    min-height: 90px;
}

.form-control::placeholder {
    color: var(--ds-input-placeholder) !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: #f8fafc !important;
    box-shadow: 0 0 0 1000px #0f172a inset !important;
    -webkit-box-shadow: 0 0 0 1000px #0f172a inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
    caret-color: #f8fafc !important;
}

[data-theme="light"] input:-webkit-autofill,
[data-theme="light"] input:-webkit-autofill:hover, 
[data-theme="light"] input:-webkit-autofill:focus,
[data-theme="light"] input:-webkit-autofill:active {
    -webkit-text-fill-color: #0f172a !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    caret-color: #0f172a !important;
}

.form-control:focus,
input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    background-color: var(--ds-input-bg) !important;
    background: var(--ds-input-bg) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22) !important;
    outline: none !important;
    color: var(--ds-input-text) !important;
}

/* Disabled Form Controls */
.form-control:disabled,
.form-control[readonly],
input:disabled,
textarea:disabled,
select:disabled {
    background-color: rgba(255, 255, 255, 0.03) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--ds-text-muted) !important;
    cursor: not-allowed;
    opacity: 0.65;
}

[data-theme="light"] .form-control:disabled,
[data-theme="light"] .form-control[readonly],
[data-theme="light"] input:disabled,
[data-theme="light"] textarea:disabled,
[data-theme="light"] select:disabled {
    background-color: rgba(0, 0, 0, 0.04) !important;
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: var(--ds-text-muted) !important;
}

/* ==========================================================================
   Modern Unified Input Groups (Icon + Field Seamless Integration Across All Pages)
   ========================================================================== */
.input-group {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    position: relative !important;
}

/* Ensure inputs, selects, and textareas inside input-group fill space cleanly */
.input-group > .form-control,
.input-group > input.form-control,
.input-group > select.form-control,
.input-group > textarea.form-control {
    display: block !important;
    flex: 1 1 auto !important;
    width: 1% !important;
    min-width: 0 !important;
    height: 46px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.input-group > textarea.form-control {
    min-height: 46px !important;
    height: 46px !important;
    resize: none !important;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
    line-height: 22px !important;
}

/* Ensure Select2 containers fill the input-group flex container properly */
.input-group > .select2-container {
    display: block !important;
    flex: 1 1 auto !important;
    width: 1% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.input-group > .select2-container .select2-selection {
    height: 46px !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
}

/* Left Addon (The Icon container) */
.input-group > .input-group-addon:first-child:not(:last-child) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: var(--ds-input-bg) !important;
    background: var(--ds-input-bg) !important;
    border: 1.5px solid var(--ds-input-border) !important;
    border-right: none !important;
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    color: #38bdf8 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    transition: border-color 0.2s ease !important;
}

.input-group > .input-group-addon:first-child i,
.input-group > .input-group-addon:first-child .glyphicon,
.input-group > .input-group-addon:first-child .fa {
    font-size: 16px !important;
    color: #38bdf8 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Interactive focus glow for input-group */
.input-group:focus-within {
    border-radius: 12px !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22) !important;
}

.input-group:focus-within > .input-group-addon {
    border-color: #38bdf8 !important;
}

.input-group:focus-within > .input-group-addon i,
.input-group:focus-within > .input-group-addon .fa {
    transform: scale(1.12);
}

/* Seamless join: Form inputs adjacent to the left addon */
.input-group > .input-group-addon:first-child + .form-control,
.input-group > .input-group-addon:first-child + input,
.input-group > .input-group-addon:first-child + select,
.input-group > .input-group-addon:first-child + textarea,
.form-group .input-group > .input-group-addon:first-child + .form-control,
.form-group .input-group > .input-group-addon:first-child + input {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    border-left: none !important;
    padding-left: 10px !important;
}

/* Seamless join: Select2 adjacent to the left addon (supports hidden original select) */
.input-group > .input-group-addon:first-child + .select2-container .select2-selection,
.input-group > .input-group-addon:first-child ~ .select2-container .select2-selection {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    border-left: none !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    box-sizing: border-box !important;
    padding: 0 32px 0 2px !important;
    background-color: var(--ds-input-bg) !important;
    background: var(--ds-input-bg) !important;
    display: flex !important;
    align-items: center !important;
}

.input-group > .input-group-addon:first-child + .select2-container .select2-selection--single .select2-selection__rendered,
.input-group > .input-group-addon:first-child ~ .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: normal !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 0 !important;
    margin: 0 !important;
    color: var(--ds-input-text) !important;
}

.input-group > .input-group-addon:first-child + .select2-container .select2-selection--single .select2-selection__arrow,
.input-group > .input-group-addon:first-child ~ .select2-container .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Date input in dark/light mode */
input[type="date"].form-control,
input[type="datetime-local"].form-control {
    color-scheme: dark;
}

[data-theme="light"] input[type="date"].form-control,
[data-theme="light"] input[type="datetime-local"].form-control {
    color-scheme: light;
}

/* Right Addon (buttons, tags or units on the right) */
.input-group > .input-group-addon:last-child:not(:first-child) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 46px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    gap: 6px !important;
    white-space: nowrap !important;
    background-color: var(--ds-input-bg) !important;
    background: var(--ds-input-bg) !important;
    border: 1.5px solid var(--ds-input-border) !important;
    border-left: none !important;
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    color: #38bdf8 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

/* Input followed by right addon */
.input-group > .form-control:first-child:not(:last-child),
.input-group > input.form-control:first-child:not(:last-child),
.form-group .input-group > input:first-child:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    border-right: none !important;
}

/* Both Left and Right Addons (addon + input + addon) */
.input-group > .input-group-addon:first-child:not(:last-child) ~ .form-control:not(:last-child),
.input-group > .input-group-addon:first-child:not(:last-child) ~ input:not(:last-child),
.form-group .input-group > .input-group-addon:first-child:not(:last-child) ~ input:not(:last-child) {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
}

/* Button addons */
.input-group-btn {
    display: flex !important;
    align-items: stretch !important;
}

.input-group-btn > .btn {
    height: 46px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    margin: 0 !important;
}

/* Light mode adjustments for input-groups */
[data-theme="light"] .input-group > .input-group-addon:first-child {
    background-color: var(--ds-input-bg) !important;
    border-color: #cbd5e1 !important;
    color: #6366f1 !important;
}
[data-theme="light"] .input-group > .input-group-addon:first-child i,
[data-theme="light"] .input-group > .input-group-addon:first-child .glyphicon,
[data-theme="light"] .input-group > .input-group-addon:first-child .fa {
    color: #6366f1 !important;
}
[data-theme="light"] .input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22) !important;
}
[data-theme="light"] .input-group:focus-within > .input-group-addon:first-child {
    border-color: #6366f1 !important;
}

/* Native Select & Options */
select,
select.form-control,
#timeIntervalInput {
    background-color: var(--ds-input-bg) !important;
    background: var(--ds-input-bg) !important;
    border: 1.5px solid var(--ds-input-border) !important;
    color: var(--ds-input-text) !important;
}

select option,
select.form-control option,
#timeIntervalInput option {
    background: #0f172a !important;
    background-color: #0f172a !important;
    color: #ffffff !important;
    padding: 10px 14px !important;
}

[data-theme="light"] select option,
[data-theme="light"] select.form-control option,
[data-theme="light"] #timeIntervalInput option {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* ==========================================================================
   Select2 Dark/Light Mode Theming (Eliminates All White Dropdowns)
   ========================================================================== */
.select2-container--default .select2-selection--single {
    background-color: var(--ds-input-bg) !important;
    background: var(--ds-input-bg) !important;
    border: 1.5px solid var(--ds-input-border) !important;
    border-radius: 12px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 32px 0 14px !important;
    color: var(--ds-input-text) !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select2-container--default .select2-selection--multiple {
    background-color: var(--ds-input-bg) !important;
    background: var(--ds-input-bg) !important;
    border: 1.5px solid var(--ds-input-border) !important;
    border-radius: 12px !important;
    min-height: 48px !important;
    height: auto !important;
    padding: 6px 10px !important;
    color: var(--ds-input-text) !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    cursor: text !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    list-style: none !important;
    box-sizing: border-box !important;
}

/* Eliminate ugly dark/bordered empty capsule box on Select2 inline search input */
.select2-container--default .select2-selection--multiple .select2-search--inline,
.select2-search--inline {
    display: inline-flex !important;
    align-items: center !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    flex-grow: 1 !important;
}

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field,
.select2-search--inline .select2-search__field,
.select2-container .select2-search--inline .select2-search__field,
.form-group .select2-container .select2-search--inline .select2-search__field,
.form-group input.select2-search__field,
input.select2-search__field {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--ds-input-text) !important;
    font-size: 13px !important;
    font-family: inherit !important;
    margin: 0 !important;
    padding: 2px 6px !important;
    height: 30px !important;
    min-height: 0 !important;
    max-height: 30px !important;
    line-height: 26px !important;
    border-radius: 0 !important;
    width: auto !important;
    min-width: 80px !important;
}

.form-group .select2-container .select2-search--inline .select2-search__field:focus,
.select2-container .select2-search--inline .select2-search__field:focus,
input.select2-search__field:focus {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22) !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--ds-input-text) !important;
    line-height: normal !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    font-weight: 500;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--ds-input-placeholder) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--ds-text-muted) transparent transparent transparent !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--ds-text-muted) transparent !important;
}

/* Modern Glass Pill Device Selection Choice Chips */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    float: none !important;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.20) 0%, rgba(99, 102, 241, 0.24) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    padding: 4px 12px 4px 10px !important;
    margin: 2px 0 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    display: inline-flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: default !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice::after {
    content: "\f10b";
    font-family: FontAwesome;
    font-size: 15px;
    color: #38bdf8;
    line-height: 1;
    margin-right: 2px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice:hover {
    border-color: #38bdf8 !important;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.32) 0%, rgba(99, 102, 241, 0.36) 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    border-radius: 50% !important;
    background: rgba(244, 63, 94, 0.22) !important;
    margin: 0 0 0 6px !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    cursor: pointer !important;
    float: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

/* Pixel-perfect mathematically centered X lines */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove::before,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 8px !important;
    height: 1.5px !important;
    background-color: #fda4af !important;
    border-radius: 2px !important;
    pointer-events: none !important;
    transition: background-color 0.2s ease !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: #f43f5e !important;
    transform: scale(1.15) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover::before,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover::after {
    background-color: #ffffff !important;
}

[data-theme="light"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    background: rgba(244, 63, 94, 0.14) !important;
}

[data-theme="light"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove::before,
[data-theme="light"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove::after {
    background-color: #e11d48 !important;
}

[data-theme="light"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: #e11d48 !important;
}

[data-theme="light"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover::before,
[data-theme="light"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover::after {
    background-color: #ffffff !important;
}

.select2-container--open {
    z-index: 9999999 !important;
}

.select2-dropdown {
    background-color: var(--ds-select2-dropdown-bg) !important;
    background: var(--ds-select2-dropdown-bg) !important;
    border: 1.5px solid var(--ds-input-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65) !important;
    overflow: hidden !important;
    z-index: 9999999 !important;
    backdrop-filter: blur(16px);
}

.select2-search--dropdown {
    padding: 10px !important;
}

.select2-search--dropdown .select2-search__field {
    background-color: var(--ds-input-bg) !important;
    background: var(--ds-input-bg) !important;
    border: 1.5px solid var(--ds-input-border) !important;
    color: var(--ds-input-text) !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    outline: none !important;
}

.select2-results__options {
    max-height: 250px !important;
    padding: 6px !important;
}

.select2-container--default .select2-results__option {
    padding: 10px 16px !important;
    border-radius: 8px !important;
    color: var(--ds-text-heading) !important;
    background: transparent !important;
    margin-bottom: 2px !important;
    font-size: 13.5px !important;
    transition: background 0.15s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--ds-gradient-accent) !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: rgba(99, 102, 241, 0.3) !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* Fix Select2 multiple inline search input spot */
.select2-container--default .select2-search--inline .select2-search__field {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: 32px !important;
    padding: 0 4px !important;
    color: var(--ds-input-text) !important;
    outline: none !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
}

/* No Devices Linked Alert Box */
.no-devices-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 46px;
    padding: 8px 16px;
    background: rgba(244, 63, 94, 0.08);
    border: 1.5px dashed rgba(244, 63, 94, 0.35);
    border-radius: 12px;
    color: #fca5a5;
    font-size: 13.5px;
    font-weight: 600;
}

.no-devices-alert i.fa-mobile-phone {
    font-size: 24px;
    color: #f43f5e;
}

.no-devices-alert .link-add-device {
    margin-left: auto;
    background: rgba(244, 63, 94, 0.18);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #ffffff !important;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.no-devices-alert .link-add-device:hover {
    background: #f43f5e;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.4);
}

[data-theme="light"] .no-devices-alert {
    background: rgba(244, 63, 94, 0.06);
    border-color: rgba(244, 63, 94, 0.25);
    color: #e11d48;
}

[data-theme="light"] .no-devices-alert .link-add-device {
    background: #f43f5e;
    color: #ffffff !important;
}

/* ==========================================================================
   Modern Nav Tabs Custom (Settings & Multi-Tab Pages)
   ========================================================================== */
.nav-tabs-custom {
    background-color: var(--ds-box-bg) !important;
    background: var(--ds-box-bg) !important;
    border: 1px solid var(--ds-box-border) !important;
    border-radius: 18px !important;
    box-shadow: var(--ds-glass-card-shadow) !important;
    overflow: hidden;
    margin-bottom: 24px;
}

.nav-tabs-custom > .nav-tabs {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid var(--ds-box-border) !important;
    padding: 10px 14px 0 14px !important;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

[data-theme="light"] .nav-tabs-custom > .nav-tabs {
    background: rgba(0, 0, 0, 0.03) !important;
}

.nav-tabs-custom > .nav-tabs > li {
    border-top: none !important;
    margin-bottom: -1px !important;
    margin-right: 0 !important;
}

.nav-tabs-custom > .nav-tabs > li > a {
    color: var(--ds-text-muted) !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    border: 1px solid transparent !important;
    border-bottom: none !important;
    transition: all 0.2s ease !important;
}

.nav-tabs-custom > .nav-tabs > li > a:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #38bdf8 !important;
}

.nav-tabs-custom > .nav-tabs > li.active {
    border-top: none !important;
}

.nav-tabs-custom > .nav-tabs > li.active > a,
.nav-tabs-custom > .nav-tabs > li.active:hover > a {
    background-color: var(--ds-box-bg) !important;
    background: var(--ds-box-bg) !important;
    color: #38bdf8 !important;
    border: 1px solid var(--ds-box-border) !important;
    border-bottom-color: var(--ds-box-bg) !important;
    border-top: 3px solid #6366f1 !important;
    font-weight: 700 !important;
}

.nav-tabs-custom > .tab-content {
    background-color: transparent !important;
    background: transparent !important;
    padding: 24px !important;
    color: var(--ds-text-body) !important;
}

/* ==========================================================================
   Modern Dropzone File Upload
   ========================================================================== */
.dropzone {
    background-color: rgba(255, 255, 255, 0.03) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 2px dashed rgba(99, 102, 241, 0.45) !important;
    border-radius: 16px !important;
    padding: 32px 20px !important;
    text-align: center;
    color: var(--ds-text-heading) !important;
    cursor: pointer;
    transition: all 0.25s ease;
}

.dropzone:hover {
    border-color: #38bdf8 !important;
    background-color: rgba(56, 189, 248, 0.06) !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15) !important;
}

.dropzone .dz-message {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #38bdf8 !important;
    margin: 1em 0 !important;
}

[data-theme="light"] .dropzone {
    background-color: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
}

/* SMS Counter Pill Bar & Device Selection Links */
.sms-counter-pill {
    list-style: none;
    padding: 10px 18px;
    margin: 12px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ds-input-border);
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ds-text-muted);
}

.sms-counter-pill li span {
    color: #38bdf8;
    font-weight: 700;
}

/* ==========================================================================
   Modern Devices Field Group & Toolbars
   ========================================================================== */
.devices-field-group {
    margin-bottom: 20px;
}

.devices-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.devices-title-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.devices-main-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ds-text-heading);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.1px;
}

.devices-count-badge {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 11px;
    font-weight: 600;
    padding: 2.5px 9px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

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

.selectAllDevices, .clearAllDevices, .btn-devices-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background: rgba(56, 189, 248, 0.08) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-radius: 8px !important;
    padding: 3px 10px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #38bdf8 !important;
    text-decoration: none !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
}

.clearAllDevices {
    background: rgba(244, 63, 94, 0.08) !important;
    border-color: rgba(244, 63, 94, 0.25) !important;
    color: #fda4af !important;
}

.selectAllDevices:hover {
    background: rgba(56, 189, 248, 0.22) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.2) !important;
}

.clearAllDevices:hover {
    background: rgba(244, 63, 94, 0.22) !important;
    border-color: #f43f5e !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.2) !important;
}

.devices-status-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    font-size: 11.5px;
    color: var(--ds-text-muted);
    padding: 0 4px;
}

.devices-status-bar .status-icon {
    color: #38bdf8;
    font-size: 12px;
}

[data-theme="light"] .devices-count-badge {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #059669 !important;
}

[data-theme="light"] .selectAllDevices {
    background: rgba(79, 70, 229, 0.08) !important;
    border-color: rgba(79, 70, 229, 0.25) !important;
    color: #4f46e5 !important;
}

[data-theme="light"] .selectAllDevices:hover {
    background: #4f46e5 !important;
    color: #ffffff !important;
}

[data-theme="light"] .clearAllDevices {
    background: rgba(244, 63, 94, 0.08) !important;
    border-color: rgba(244, 63, 94, 0.25) !important;
    color: #e11d48 !important;
}

[data-theme="light"] .clearAllDevices:hover {
    background: #e11d48 !important;
    color: #ffffff !important;
}

[data-theme="light"] .devices-status-bar .status-icon {
    color: #4f46e5 !important;
}

/* ==========================================================================
   Bootstrap Panels & Containers (Overrides White Profile/Settings Panels)
   ========================================================================== */
.panel,
.panel-default {
    background-color: var(--ds-box-bg) !important;
    background: var(--ds-box-bg) !important;
    border: 1px solid var(--ds-box-border) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    margin-bottom: 22px !important;
    overflow: hidden;
}

.panel-default > .panel-heading,
.panel-heading {
    background-color: rgba(255, 255, 255, 0.04) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom: 1px solid var(--ds-box-border) !important;
    color: var(--ds-text-heading) !important;
    padding: 14px 20px !important;
}

.panel-default > .panel-heading .panel-title,
.panel-title {
    color: var(--ds-text-heading) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: 'Outfit', sans-serif !important;
}

.panel-body {
    padding: 22px !important;
    background: transparent !important;
    color: var(--ds-text-body) !important;
}

[data-theme="light"] .panel-default > .panel-heading,
[data-theme="light"] .panel-heading {
    background-color: rgba(0, 0, 0, 0.03) !important;
}

/* ==========================================================================
   Modern Checkbox & Toggle Styling (Manage Users & Global)
   ========================================================================== */
input[type="checkbox"],
.form-group input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex-shrink: 0 !important;
    border: 2px solid var(--ds-input-border) !important;
    border-radius: 6px !important;
    background-color: var(--ds-input-bg) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    margin: 0 8px 0 0 !important;
    position: relative !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

input[type="checkbox"]:hover {
    border-color: #38bdf8;
    transform: scale(1.08);
}

input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
    border-color: #06b6d4 !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.45);
}

input[type="checkbox"]:checked::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) translate(-1px, -1px);
    display: block;
}

label:has(input[type="checkbox"]) {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: var(--ds-text-heading) !important;
    font-weight: 600;
    font-size: 13.5px;
    user-select: none;
}

/* ==========================================================================
   2. Modern Fixed Header & Navbar (All Items Stuck in Top Right Corner)
   ========================================================================== */
.main-header {
    background: var(--ds-navbar-bg) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ds-navbar-border) !important;
    position: sticky;
    top: 0;
    z-index: 1030;
    height: 64px !important;
}

.main-header .logo {
    height: 64px !important;
    line-height: 64px !important;
    background: var(--ds-navbar-bg) !important;
    border-bottom: 1px solid var(--ds-navbar-border) !important;
    border-right: 1px solid var(--ds-navbar-border) !important;
    color: var(--ds-text-heading) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    display: flex !important;
    align-items: center;
    padding: 0 18px !important;
    gap: 12px;
}

.main-header .logo img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* Navbar Flexbox Right Aligned (Items stuck to Top-Right Corner) */
.main-header .navbar {
    margin-left: 230px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0 20px !important;
    border: none !important;
    background: transparent !important;
}

.sidebar-collapse .main-header .navbar {
    margin-left: 50px !important;
}

/* Top Right Action Pills */
.navbar-custom-menu {
    display: flex;
    align-items: center;
}

.navbar-custom-menu .ds-nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.navbar-custom-menu .ds-nav-actions > li {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Nav Action Pill Buttons */
.nav-pill-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    height: 40px !important;
    border-radius: 12px !important;
    background: var(--ds-nav-pill-bg) !important;
    border: 1px solid var(--ds-navbar-border) !important;
    color: var(--ds-text-heading) !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
}

.nav-pill-btn:hover {
    background: var(--ds-sidebar-item-hover) !important;
    color: #38bdf8 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.nav-pill-label {
    font-weight: 600;
    font-size: 13px;
}

/* Modern Sidebar Toggle Pill in Top Right */
.sidebar-toggle-pill {
    padding: 8px 14px !important;
}

.sidebar-toggle-pill:before {
    display: none !important;
}

/* User Profile Pill */
.user-profile-pill {
    padding: 6px 14px 6px 8px !important;
}

.user-profile-pill img.user-image {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    margin: 0 !important;
    border: 1.5px solid var(--ds-primary);
}

.user-profile-pill .user-name {
    font-weight: 700;
    color: var(--ds-text-heading);
    font-size: 13.5px;
}

/* Distinct Logout Pill with Label */
.logout-pill {
    background: rgba(244, 63, 94, 0.12) !important;
    border: 1px solid rgba(244, 63, 94, 0.3) !important;
    color: #f43f5e !important;
}

.logout-pill i {
    font-size: 15px;
}

.logout-pill:hover {
    background: #f43f5e !important;
    border-color: #f43f5e !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.45) !important;
}

/* ==========================================================================
   3. Modern Fixed Sidebar Navigation (Locked Height, Never Extends with Page)
   ========================================================================== */
body.sidebar-mini .main-sidebar {
    position: fixed !important;
    top: 64px !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 230px !important;
    height: calc(100vh - 64px) !important;
    max-height: calc(100vh - 64px) !important;
    min-height: calc(100vh - 64px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 1020 !important;
    padding-top: 0 !important;
    background: var(--ds-sidebar-bg) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-right: 1px solid var(--ds-sidebar-border) !important;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.sidebar-mini .main-sidebar::-webkit-scrollbar {
    width: 4px;
}
body.sidebar-mini .main-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
body.sidebar-mini .main-sidebar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 10px;
}

.sidebar {
    padding: 12px 10px 30px 10px !important;
}

/* User Profile Panel */
.user-panel {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--ds-sidebar-border) !important;
    border-radius: 16px !important;
    margin: 8px 4px 18px 4px !important;
    padding: 12px 14px !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-panel > .image > img {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    border: 2px solid #6366f1;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.user-panel > .info {
    padding: 0 !important;
    position: static !important;
}

.user-panel > .info > p {
    color: var(--ds-text-heading) !important;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px !important;
}

.user-panel > .info > a {
    color: var(--ds-text-muted) !important;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.user-panel .fa-circle.text-success {
    color: #10b981 !important;
}

/* Sidebar Menu Navigation */
.sidebar-menu {
    padding: 0 !important;
    white-space: normal;
}

.sidebar-menu > li {
    margin: 3px 0 !important;
}

.sidebar-menu > li > a {
    border-radius: 12px !important;
    margin: 2px 4px !important;
    padding: 11px 16px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    color: var(--ds-sidebar-text) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease !important;
    border-left: none !important;
}

.sidebar-menu > li > a i {
    font-size: 16px !important;
    width: 20px !important;
    text-align: center !important;
    color: inherit !important;
}

.sidebar-menu > li > a:hover {
    background: var(--ds-sidebar-item-hover) !important;
    color: #38bdf8 !important;
    transform: translateX(4px) !important;
}

.sidebar-menu > li.active > a {
    background: var(--ds-gradient-accent) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.45) !important;
    border-left: none !important;
}

.sidebar-menu > li.active > a i {
    color: #ffffff !important;
}

.sidebar-menu hr {
    border-color: var(--ds-sidebar-border) !important;
    margin: 10px 8px;
}

/* ==========================================================================
   4. Smooth Content Area & Full Webpage Scroll (Fixed Sidebar, Full Content Visible)
   ========================================================================== */
body.sidebar-mini {
    min-height: 100vh !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.sidebar-mini .wrapper {
    min-height: 100vh !important;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
    background: transparent !important;
    padding-top: 64px !important;
}

body.sidebar-mini .main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 64px !important;
    z-index: 1030 !important;
}

/* Sidebar stays fixed to the viewport with a CONSTANT size that never extends with the page */
body.sidebar-mini .main-sidebar {
    position: fixed !important;
    top: 64px !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 230px !important;
    height: calc(100vh - 64px) !important;
    max-height: calc(100vh - 64px) !important;
    min-height: calc(100vh - 64px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 1020 !important;
    padding-top: 0 !important;
    background: var(--ds-sidebar-bg) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-right: 1px solid var(--ds-sidebar-border) !important;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Full Content Area - Completely visible from top to bottom */
body.sidebar-mini .content-wrapper {
    margin-left: 230px !important;
    margin-top: 0 !important;
    position: relative !important;
    min-height: calc(100vh - 130px) !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 16px 24px 40px 24px !important;
    background: transparent !important;
    transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Fully visible Modern Footer */
body.sidebar-mini .main-footer {
    margin-left: 230px !important;
    display: block !important;
    position: relative !important;
    z-index: 1010 !important;
    background: var(--ds-navbar-bg) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--ds-navbar-border) !important;
    color: var(--ds-text-muted) !important;
    padding: 20px 28px !important;
    font-size: 13.5px !important;
    transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Sidebar Collapsed State */
body.sidebar-mini.sidebar-collapse .main-sidebar {
    -webkit-transform: translate(-230px, 0) !important;
    -ms-transform: translate(-230px, 0) !important;
    transform: translate(-230px, 0) !important;
}

body.sidebar-mini.sidebar-collapse .content-wrapper,
body.sidebar-mini.sidebar-collapse .main-footer {
    margin-left: 0 !important;
}

body.sidebar-mini.sidebar-collapse .main-header .navbar {
    margin-left: 0 !important;
}

.content-header {
    padding: 20px 16px 14px 16px !important;
}

.content-header h1 {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: var(--ds-text-heading) !important;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content h3.text-bold {
    color: var(--ds-text-heading) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 19px !important;
    letter-spacing: -0.02em;
    margin-top: 24px !important;
    margin-bottom: 14px !important;
}

/* Modern Card/Box (Replaces White Box on all pages) */
.box,
.box.box-primary,
.box.box-info,
.box.box-success,
.box.box-warning,
.box.box-danger {
    background-color: var(--ds-box-bg) !important;
    background: var(--ds-box-bg) !important;
    border: 1px solid var(--ds-box-border) !important;
    border-radius: 18px !important;
    box-shadow: var(--ds-glass-card-shadow) !important;
    color: var(--ds-text-body) !important;
    margin-bottom: 24px;
    overflow: hidden;
}

.box-header,
.box-header.with-border {
    background: transparent !important;
    border-bottom: 1px solid var(--ds-box-border) !important;
    color: var(--ds-text-heading) !important;
    padding: 18px 24px !important;
}

.box-title {
    color: var(--ds-text-heading) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

.box-body {
    padding: 24px !important;
}

.box-footer {
    background: transparent !important;
    border-top: 1px solid var(--ds-box-border) !important;
    padding: 16px 24px !important;
}

/* Modals */
.modal-content {
    background-color: var(--ds-box-bg) !important;
    background: var(--ds-box-bg) !important;
    border: 1px solid var(--ds-box-border) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7) !important;
    color: var(--ds-text-body) !important;
}

.modal-header {
    border-bottom: 1px solid var(--ds-box-border) !important;
    padding: 18px 24px !important;
    color: var(--ds-text-heading) !important;
}

.modal-footer {
    border-top: 1px solid var(--ds-box-border) !important;
    padding: 16px 24px !important;
}

/* DataTables Styling */
.dataTables_wrapper {
    color: var(--ds-text-body) !important;
    padding-top: 10px;
}

.dataTables_wrapper .dataTables_filter input {
    background-color: var(--ds-input-bg) !important;
    background: var(--ds-input-bg) !important;
    border: 1.5px solid var(--ds-input-border) !important;
    color: var(--ds-input-text) !important;
    border-radius: 10px !important;
    padding: 6px 14px !important;
    margin-left: 8px;
    outline: none;
}

.dataTables_wrapper .dataTables_length select {
    background-color: var(--ds-input-bg) !important;
    background: var(--ds-input-bg) !important;
    border: 1.5px solid var(--ds-input-border) !important;
    color: var(--ds-input-text) !important;
    border-radius: 10px !important;
    padding: 6px 12px !important;
    margin: 0 6px;
    outline: none;
}

.dataTables_wrapper .dataTables_info {
    color: var(--ds-text-muted) !important;
    font-size: 13px !important;
    padding-top: 14px !important;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 10px !important;
}

.dataTables_wrapper .pagination > li > a {
    background-color: var(--ds-input-bg) !important;
    background: var(--ds-input-bg) !important;
    border: 1px solid var(--ds-box-border) !important;
    color: var(--ds-text-heading) !important;
    border-radius: 8px !important;
    margin: 0 3px !important;
    padding: 6px 12px !important;
    transition: all 0.2s ease;
}

.dataTables_wrapper .pagination > li.active > a {
    background: var(--ds-gradient-accent) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.table > tbody > tr > td,
.table > thead > tr > th {
    border-color: var(--ds-box-border) !important;
    color: var(--ds-text-body);
    padding: 13px 16px !important;
    vertical-align: middle !important;
}

.table > thead > tr > th {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--ds-text-heading) !important;
    font-weight: 700;
}

[data-theme="light"] .table > thead > tr > th {
    background: rgba(0, 0, 0, 0.03) !important;
}

.table-hover > tbody > tr:hover {
    background: var(--ds-table-hover) !important;
}

/* ==========================================================================
   5. Butter-Smooth KPI Metric Cards (.small-box)
   ========================================================================== */
.small-box {
    background: var(--ds-glass-card-bg) !important;
    border: 1px solid var(--ds-glass-card-border) !important;
    border-radius: 18px !important;
    box-shadow: var(--ds-glass-card-shadow) !important;
    overflow: hidden;
    position: relative;
    margin-bottom: 22px;
    transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}

.small-box:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.small-box .inner {
    padding: 20px 22px 16px 22px !important;
}

.small-box h3 {
    font-size: 34px !important;
    font-weight: 800 !important;
    color: var(--ds-text-heading) !important;
    margin: 0 0 6px 0 !important;
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: -0.03em;
}

.small-box p {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: var(--ds-text-muted) !important;
    margin: 0 !important;
}

.small-box .icon {
    top: 16px !important;
    right: 18px !important;
    font-size: 22px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    transition: transform 0.22s ease !important;
}

.small-box:hover .icon {
    transform: scale(1.1) !important;
}

/* Metric Color Accents */
.small-box.bg-yellow-gradient,
.small-box.bg-yellow {
    border-top: 3.5px solid #f59e0b !important;
}
.small-box.bg-yellow-gradient .icon i,
.small-box.bg-yellow .icon i {
    color: #f59e0b !important;
}

.small-box.bg-blue-gradient,
.small-box.bg-blue {
    border-top: 3.5px solid #3b82f6 !important;
}
.small-box.bg-blue-gradient .icon i,
.small-box.bg-blue .icon i {
    color: #3b82f6 !important;
}

.small-box.bg-aqua-gradient,
.small-box.bg-aqua {
    border-top: 3.5px solid #06b6d4 !important;
}
.small-box.bg-aqua-gradient .icon i,
.small-box.bg-aqua .icon i {
    color: #06b6d4 !important;
}

.small-box.bg-green-gradient,
.small-box.bg-green {
    border-top: 3.5px solid #10b981 !important;
}
.small-box.bg-green-gradient .icon i,
.small-box.bg-green .icon i {
    color: #10b981 !important;
}

.small-box.bg-red-gradient,
.small-box.bg-red {
    border-top: 3.5px solid #f43f5e !important;
}
.small-box.bg-red-gradient .icon i,
.small-box.bg-red .icon i {
    color: #f43f5e !important;
}

.small-box.bg-gray {
    border-top: 3.5px solid #94a3b8 !important;
}
.small-box.bg-gray .icon i {
    color: #94a3b8 !important;
}

.small-box.bg-purple-gradient,
.small-box.bg-purple {
    border-top: 3.5px solid #8b5cf6 !important;
}
.small-box.bg-purple-gradient .icon i,
.small-box.bg-purple .icon i {
    color: #8b5cf6 !important;
}

/* ==========================================================================
   6. Buttons & Badges
   ========================================================================== */
.btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.btn-primary,
.btn-flat.btn-primary {
    background: var(--ds-gradient-accent) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4) !important;
}

.btn-primary:hover,
.btn-flat.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35) !important;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.45) !important;
}

/* Main Footer */
.main-footer {
    background: var(--ds-navbar-bg) !important;
    border-top: 1px solid var(--ds-navbar-border) !important;
    color: var(--ds-text-muted) !important;
    font-size: 13px !important;
    font-weight: 500;
    padding: 16px 20px !important;
}

.main-footer a {
    color: var(--ds-primary) !important;
    font-weight: 600;
}

/* ==========================================================================
   Modern DataTables & Table Styling (Full Visible 4-Sided Borders)
   ========================================================================== */
.dataTables_wrapper {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 6px 0 !important;
    overflow-x: auto !important;
}

.dataTables_wrapper > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.dataTables_wrapper > .row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.table-bordered,
table.table-bordered,
table.table-bordered.dataTable,
.dataTables_wrapper table.table-bordered {
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    width: 100% !important;
    margin-top: 14px !important;
    margin-bottom: 16px !important;
    box-sizing: border-box !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
}

/* Ensure right and left borders are never zeroed out */
table.dataTable.table-bordered th:last-child,
table.dataTable.table-bordered td:last-child,
.table-bordered > thead > tr > th:last-child,
.table-bordered > tbody > tr > td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
}

table.dataTable.table-bordered th:first-child,
table.dataTable.table-bordered td:first-child,
.table-bordered > thead > tr > th:first-child,
.table-bordered > tbody > tr > td:first-child {
    border-left: none !important;
}

/* Cell borders */
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td,
table.dataTable.table-bordered th,
table.dataTable.table-bordered td {
    border-color: rgba(255, 255, 255, 0.18) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
    padding: 12px 16px !important;
    vertical-align: middle !important;
    color: var(--ds-text-body) !important;
}

/* Table header styling */
.table-bordered > thead > tr > th,
table.dataTable.table-bordered thead th {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: var(--ds-text-heading) !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.22) !important;
}

/* DataTables pagination buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    border: 1px solid var(--ds-input-border) !important;
    background: var(--ds-input-bg) !important;
    color: var(--ds-text-heading) !important;
    padding: 6px 14px !important;
    margin: 0 3px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

/* Light mode table borders */
[data-theme="light"] .table-bordered,
[data-theme="light"] table.table-bordered,
[data-theme="light"] table.dataTable.table-bordered {
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .table-bordered > thead > tr > th,
[data-theme="light"] .table-bordered > tbody > tr > th,
[data-theme="light"] .table-bordered > thead > tr > td,
[data-theme="light"] .table-bordered > tbody > tr > td,
[data-theme="light"] table.dataTable.table-bordered th,
[data-theme="light"] table.dataTable.table-bordered td {
    border-color: #e2e8f0 !important;
}

/* ==========================================================================
   Modern Dashboard Analytics, Graphs & Circular Gauges
   ========================================================================== */
.ds-dashboard-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ds-text-heading);
    margin: 20px 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ds-dashboard-section-title i {
    color: var(--ds-accent-cyan);
    font-size: 16px;
}

/* Modern KPI Cards */
.ds-kpi-card {
    background: var(--ds-glass-card-bg);
    border: 1px solid var(--ds-glass-card-border);
    border-radius: 16px;
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ds-kpi-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.45);
}

.ds-kpi-card .ds-kpi-info {
    display: flex;
    flex-direction: column;
}

.ds-kpi-card .ds-kpi-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--ds-text-muted);
    margin-bottom: 6px;
}

.ds-kpi-card .ds-kpi-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--ds-text-heading);
    line-height: 1.1;
    font-family: 'Outfit', sans-serif;
}

.ds-kpi-card .ds-kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.ds-kpi-card:hover .ds-kpi-icon {
    transform: scale(1.1);
}

/* KPI Card Color Variants */
.ds-kpi-emerald .ds-kpi-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}
.ds-kpi-cyan .ds-kpi-icon {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}
.ds-kpi-amber .ds-kpi-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}
.ds-kpi-rose .ds-kpi-icon {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.25);
}
.ds-kpi-purple .ds-kpi-icon {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}
.ds-kpi-indigo .ds-kpi-icon {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}

/* Modern Analytics Chart Card */
.ds-analytics-card {
    background: var(--ds-glass-card-bg);
    border: 1px solid var(--ds-glass-card-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.35);
    position: relative;
    transition: all 0.3s ease;
}

.ds-analytics-card:hover {
    border-color: rgba(56, 189, 248, 0.25);
}

.ds-analytics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.ds-analytics-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ds-text-heading);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ds-analytics-title i {
    color: #38bdf8;
}

.ds-analytics-subtitle {
    font-size: 12.5px;
    color: var(--ds-text-muted);
    font-weight: 500;
}

.ds-chart-wrapper {
    position: relative;
    width: 100%;
    min-height: 280px;
}

/* Circular Progress Gauges ("Circles") */
.ds-circles-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ds-circle-gauge-card {
    background: var(--ds-glass-card-bg);
    border: 1px solid var(--ds-glass-card-border);
    border-radius: 18px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.3);
}

.ds-circle-gauge-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.3);
}

.ds-circle-svg-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 12px;
}

.ds-circle-svg-container svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ds-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 10;
}

[data-theme="light"] .ds-circle-bg {
    stroke: rgba(0, 0, 0, 0.06);
}

.ds-circle-progress {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ds-circle-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ds-circle-percent {
    font-size: 22px;
    font-weight: 800;
    color: var(--ds-text-heading);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.ds-circle-icon {
    font-size: 14px;
    margin-top: 4px;
}

.ds-circle-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ds-text-heading);
    margin-bottom: 2px;
}

.ds-circle-desc {
    font-size: 11.5px;
    color: var(--ds-text-muted);
}

/* Pulsating Online Indicator */
.ds-pulse-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.ds-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: dsPulse 2s infinite;
}

@keyframes dsPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Quick Action Bar on Dashboard */
.ds-quick-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ds-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    background: var(--ds-glass-card-bg);
    border: 1px solid var(--ds-glass-card-border);
    color: var(--ds-text-heading);
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.ds-quick-btn:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: #38bdf8;
    color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.2);
}

.ds-quick-btn i {
    font-size: 15px;
}

/* ==========================================================================
   Universal Page Hero Banners & Visual Cards Across All Pages
   ========================================================================== */
.ds-page-hero {
    background: var(--ds-glass-card-bg);
    border: 1px solid var(--ds-glass-card-border);
    border-radius: 20px;
    padding: 22px 26px;
    margin-bottom: 24px;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.ds-page-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ds-hero-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ds-hero-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.ds-hero-icon.icon-cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}
.ds-hero-icon.icon-emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}
.ds-hero-icon.icon-purple {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}
.ds-hero-icon.icon-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.ds-hero-text h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--ds-text-heading);
    margin: 0 0 4px 0;
    font-family: 'Outfit', sans-serif;
}

.ds-hero-text p {
    font-size: 13px;
    color: var(--ds-text-muted);
    margin: 0;
    line-height: 1.4;
}

.ds-hero-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ds-hero-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ds-glass-card-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--ds-text-heading);
}

.ds-hero-stat-pill strong {
    color: #38bdf8;
    font-size: 15px;
}

/* 3-Step Setup Guide (Devices Page) */
.ds-steps-card {
    background: var(--ds-glass-card-bg);
    border: 1px solid var(--ds-glass-card-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.35);
}

.ds-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.ds-step-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--ds-glass-card-border);
    border-radius: 16px;
    padding: 18px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.25s ease;
}

.ds-step-item:hover {
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.04);
}

.ds-step-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ds-gradient-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.ds-step-body h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ds-text-heading);
    margin: 0 0 4px 0;
}

.ds-step-body p {
    font-size: 12px;
    color: var(--ds-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Variable Cheat-Sheet Pills (Templates Page) */
.ds-variable-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    font-family: monospace;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    margin: 3px;
}

.ds-variable-pill:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

/* Workflow Flowchart Diagram (Auto Responder Page) */
.ds-workflow-container {
    background: var(--ds-glass-card-bg);
    border: 1px solid var(--ds-glass-card-border);
    border-radius: 20px;
    padding: 22px 24px;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.35);
}

.ds-workflow-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
}

.ds-workflow-step {
    flex: 1;
    min-width: 180px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ds-glass-card-border);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    position: relative;
    transition: all 0.25s ease;
}

.ds-workflow-step:hover {
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-2px);
}

.ds-workflow-step i {
    font-size: 24px;
    margin-bottom: 8px;
    display: inline-block;
}

.ds-workflow-step h5 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ds-text-heading);
    margin: 0 0 3px 0;
}

.ds-workflow-step p {
    font-size: 11.5px;
    color: var(--ds-text-muted);
    margin: 0;
}

.ds-workflow-arrow {
    font-size: 20px;
    color: var(--ds-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* USSD Quick Preset Pills */
.ds-preset-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ds-glass-card-border);
    color: var(--ds-text-heading);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 4px;
    font-family: monospace;
}

.ds-preset-pill:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: #38bdf8;
    color: #38bdf8;
    transform: translateY(-1px);
}

/* Security Protection Card (Blacklist Page) */
.ds-protection-card {
    background: var(--ds-glass-card-bg);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-left: 4px solid #38bdf8;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.3);
}

.ds-protection-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ds-protection-icon {
    font-size: 28px;
    color: #38bdf8;
}

.ds-protection-info h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--ds-text-heading);
}

.ds-protection-info p {
    margin: 0;
    font-size: 12.5px;
    color: var(--ds-text-muted);
}

/* ==========================================================================
   Modern SaaS Pricing Cards Overhaul (Subscribe Page)
   ========================================================================== */
.price {
    list-style-type: none !important;
    background: var(--ds-glass-card-bg) !important;
    border: 1px solid var(--ds-glass-card-border) !important;
    border-radius: 22px !important;
    padding: 0 !important;
    margin: 0 0 24px 0 !important;
    overflow: hidden !important;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
}

.price:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.55), 0 0 25px rgba(56, 189, 248, 0.15) !important;
}

.price .header {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--ds-text-heading) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    font-family: 'Outfit', sans-serif !important;
    padding: 22px 20px 14px 20px !important;
    text-align: center !important;
    border-bottom: 1px solid var(--ds-glass-card-border) !important;
}

.price .grey {
    background: transparent !important;
    padding: 20px !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    font-family: 'Outfit', sans-serif !important;
    color: #38bdf8 !important;
    text-align: center !important;
    border-bottom: 1px solid var(--ds-glass-card-border) !important;
}

.price li:not(.header):not(.grey) {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 14px 20px !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--ds-text-body) !important;
}

[data-theme="light"] .price li:not(.header):not(.grey) {
    border-bottom-color: rgba(0, 0, 0, 0.05) !important;
}

.price li:last-child {
    border-bottom: none !important;
    padding: 22px 20px !important;
}

.price button {
    width: 100% !important;
    height: 46px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* Modern Frosted Panels (Profile & Settings) */
.panel.panel-default {
    background: var(--ds-glass-card-bg) !important;
    border: 1px solid var(--ds-glass-card-border) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.3) !important;
}

.panel.panel-default > .panel-heading {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid var(--ds-glass-card-border) !important;
    color: var(--ds-text-heading) !important;
    padding: 14px 18px !important;
    font-weight: 700 !important;
}

[data-theme="light"] .panel.panel-default > .panel-heading {
    background: rgba(0, 0, 0, 0.02) !important;
}

.panel.panel-default > .panel-body {
    padding: 20px !important;
}

/* ==========================================================================
   Modern Leads Input & Format Selector (Spacious & Clean Layout)
   ========================================================================== */
.leads-field-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px !important;
}

.leads-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px !important;
    gap: 12px;
    flex-wrap: wrap;
}

.leads-title-area {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.leads-main-label {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--ds-text-heading) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.01em;
}

.leads-count-badge {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.22) 0%, rgba(99, 102, 241, 0.22) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    color: #38bdf8 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.2);
}

.leads-format-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.leads-format-label {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--ds-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    user-select: none;
}

.leads-format-wrapper select.leads-format-select-clean,
select.leads-format-select-clean,
#leadFormatSelect,
#blacklistFormatSelect {
    display: inline-block !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    line-height: normal !important;
    padding: 6px 32px 6px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    border-radius: 8px !important;
    background-color: var(--ds-input-bg) !important;
    background: var(--ds-input-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center / 12px !important;
    border: 1.5px solid var(--ds-input-border) !important;
    color: var(--ds-input-text) !important;
    cursor: pointer !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    min-width: 175px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    vertical-align: middle !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.leads-format-select-clean:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

.leads-format-select-clean option {
    background-color: #0f172a !important;
    color: #ffffff !important;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
}

[data-theme="light"] .leads-format-select-clean {
    background: var(--ds-input-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center / 12px !important;
}

[data-theme="light"] .leads-format-select-clean:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25) !important;
}

[data-theme="light"] .leads-format-select-clean option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

.leads-input-box {
    position: relative;
    width: 100%;
}

.leads-textarea-modern {
    width: 100% !important;
    height: 110px !important;
    min-height: 100px !important;
    padding: 14px 16px !important;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    border-radius: 14px !important;
    background-color: var(--ds-input-bg) !important;
    border: 1.5px solid var(--ds-input-border) !important;
    color: var(--ds-input-text) !important;
    resize: vertical !important;
    transition: all 0.25s ease !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.leads-textarea-modern:focus {
    border-color: #38bdf8 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(56, 189, 248, 0.22) !important;
    outline: none !important;
}

.leads-status-bar {
    margin-top: 10px !important;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ds-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.25s ease;
}

[data-theme="light"] .leads-status-bar {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

.leads-status-bar.detected-active {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #34d399 !important;
    box-shadow: 0 4px 16px -2px rgba(16, 185, 129, 0.2);
}

.leads-status-bar .status-icon {
    font-size: 14px;
}

/* ==========================================================================
   Pricing Free Trial Card & Badges
   ========================================================================== */
.pricing-icon-badge.emerald {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(6, 182, 212, 0.25) 100%) !important;
    color: #34d399 !important;
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
}

.pricing-price-text.emerald {
    background: linear-gradient(135deg, #ffffff 0%, #34d399 60%, #38bdf8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 18px rgba(52, 211, 153, 0.55)) !important;
}

.pricing-badge-trial {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 6px 18px !important;
    border-radius: 20px !important;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    white-space: nowrap !important;
    z-index: 10;
}

/* ==========================================================================
   Trial Status Banner & Upgrade Navigation Components
   ========================================================================== */
.upgrade-nav-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 40px !important;
    padding: 8px 16px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(236, 72, 153, 0.25) 100%) !important;
    border: 1px solid rgba(192, 132, 252, 0.6) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    animation: upgradePulse 3s infinite ease-in-out;
    transition: all 0.2s ease !important;
}

.upgrade-nav-pill:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.45) 0%, rgba(236, 72, 153, 0.45) 100%) !important;
    border-color: rgba(236, 72, 153, 0.8) !important;
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.5) !important;
    color: #ffffff !important;
}

@keyframes upgradePulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
    }
    50% {
        box-shadow: 0 0 22px rgba(236, 72, 153, 0.6);
    }
}

.sidebar-menu > li > a .pull-right-container {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Dashboard & Portal Free Trial Status Banner */
.ds-trial-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.12) 50%, rgba(139, 92, 246, 0.12) 100%) !important;
    border: 1.5px solid rgba(52, 211, 153, 0.35) !important;
    border-radius: 20px !important;
    padding: 22px 28px !important;
    margin-bottom: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
}

[data-theme="light"] .ds-trial-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.08) 50%, rgba(139, 92, 246, 0.08) 100%) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
}

.ds-trial-banner-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.ds-trial-banner-left {
    flex: 1;
    min-width: 280px;
}

.ds-trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.ds-trial-title {
    margin: 0 0 6px 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
}

[data-theme="light"] .ds-trial-title {
    color: #0f172a !important;
}

.ds-trial-desc {
    margin: 0 0 12px 0 !important;
    font-size: 13.5px !important;
    color: var(--ds-text-muted) !important;
    line-height: 1.55 !important;
}

.ds-trial-perks {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ds-text-heading);
    flex-wrap: wrap;
}

.ds-trial-banner-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 180px;
}

.btn-upgrade-glow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    padding: 12px 24px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.btn-upgrade-glow:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 0 35px rgba(236, 72, 153, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
}

.ds-trial-subtext {
    font-size: 11px;
    color: var(--ds-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* =========================================================================
   Universal Translucent & Glassmorphic Pricing Cards
   ========================================================================= */
.pricing-card-translucent {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(8, 10, 20, 0.70) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    border-radius: 30px !important;
    padding: 38px 32px !important;
    height: 100% !important;
    position: relative !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 25px 60px -15px rgba(0, 0, 0, 0.85) !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transform: translateZ(0) !important;
}

[data-theme="light"] .pricing-card-translucent {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1) !important;
}

.pricing-card-translucent:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.7), 0 30px 75px -10px rgba(0, 0, 0, 0.95), 0 0 40px rgba(168, 85, 247, 0.35) !important;
}

.pricing-card-pro {
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.14) 0%, rgba(12, 14, 28, 0.88) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.75), 0 30px 85px -10px rgba(168, 85, 247, 0.45), 0 0 45px rgba(236, 72, 153, 0.35) !important;
    transform: translateY(-8px) !important;
}

.pricing-card-pro:hover {
    transform: translateY(-12px) !important;
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.9), 0 40px 100px -10px rgba(168, 85, 247, 0.6), 0 0 60px rgba(236, 72, 153, 0.5) !important;
}

.pricing-badge-pro {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 6px 18px !important;
    border-radius: 20px !important;
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    white-space: nowrap !important;
    z-index: 10;
}

.pricing-icon-badge {
    width: 68px !important;
    height: 68px !important;
    border-radius: 22px !important;
    margin: 0 auto 20px auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 12px 30px rgba(0, 0, 0, 0.5) !important;
    transition: transform 0.25s ease !important;
}

.pricing-icon-badge.cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(59, 130, 246, 0.25) 100%) !important;
    color: #38bdf8 !important;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}

.pricing-icon-badge.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(236, 72, 153, 0.25) 100%) !important;
    color: #c084fc !important;
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
}

.pricing-icon-badge.gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(236, 72, 153, 0.25) 100%) !important;
    color: #fbbf24 !important;
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}

.pricing-card-translucent:hover .pricing-icon-badge {
    transform: scale(1.08) !important;
}

.pricing-title {
    font-size: 23px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    text-align: center !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.5px !important;
}

[data-theme="light"] .pricing-title {
    color: #0f172a !important;
}

.pricing-subtitle {
    font-size: 13.5px !important;
    color: #94a3b8 !important;
    text-align: center !important;
    margin: 0 0 18px 0 !important;
}

.pricing-price-box {
    text-align: center !important;
    padding: 16px 0 18px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
    margin-bottom: 24px !important;
}

.pricing-price-text {
    font-size: 44px !important;
    font-weight: 900 !important;
    font-family: 'Outfit', sans-serif !important;
    color: #ffffff !important;
    line-height: 1 !important;
    margin-bottom: 4px !important;
}

.pricing-price-text.cyan {
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.5)) !important;
}

.pricing-price-text.purple {
    background: linear-gradient(135deg, #ffffff 0%, #c084fc 50%, #f472b6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.6)) !important;
}

.pricing-price-text.gold {
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 60%, #ec4899 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5)) !important;
}

.pricing-cycle {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.pricing-features-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
}

.pricing-features-list li {
    font-size: 14px !important;
    color: #e2e8f0 !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

[data-theme="light"] .pricing-features-list li {
    color: #334155 !important;
}

.pricing-features-list li i.fa-check-circle {
    color: #10b981 !important;
    font-size: 16px !important;
    filter: drop-shadow(0 0 6px #10b981) !important;
    flex-shrink: 0 !important;
}

/* ==========================================================================
   MODERN HIGH-CONTRAST MODAL DESIGN SYSTEM (2026 EDITION)
   ========================================================================== */
.modal {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 10500 !important;
    text-align: center;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.modal::before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -4px;
}

.modal-dialog {
    display: inline-block !important;
    text-align: left !important;
    vertical-align: middle !important;
    margin: 40px auto !important;
    max-width: 580px !important;
    width: 92% !important;
    position: relative !important;
    z-index: 10510 !important;
}

.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    background-color: #000000 !important;
    z-index: 10400 !important;
}

.modal-backdrop.in {
    opacity: 0.75 !important;
}

.modal-content {
    background: #0b1120 !important;
    background-color: #0b1120 !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 24px !important;
    box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.95), 0 0 40px rgba(99, 102, 241, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    overflow: hidden !important;
    position: relative !important;
}

[data-theme="light"] .modal-content {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.25) !important;
}

.modal-header {
    padding: 22px 28px 18px 28px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

[data-theme="light"] .modal-header {
    border-bottom: 1px solid #f1f5f9 !important;
    background: #f8fafc !important;
}

.modal-header .close {
    color: #ffffff !important;
    opacity: 0.8 !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-shadow: none !important;
    padding: 6px 12px !important;
    border-radius: 10px !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.modal-header .close:hover {
    opacity: 1 !important;
    color: #f43f5e !important;
    background: rgba(244, 63, 94, 0.15) !important;
    border-color: rgba(244, 63, 94, 0.4) !important;
    transform: scale(1.05) !important;
}

[data-theme="light"] .modal-header .close {
    color: #64748b !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
}

.modal-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.4px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

[data-theme="light"] .modal-title {
    color: #0f172a !important;
}

.modal-body {
    padding: 26px 28px !important;
    color: #cbd5e1 !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
}

[data-theme="light"] .modal-body {
    color: #334155 !important;
}

.modal-body p {
    color: #cbd5e1 !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    margin-bottom: 16px !important;
}

[data-theme="light"] .modal-body p {
    color: #334155 !important;
}

.modal-body ol,
.modal-body ul {
    padding-left: 20px !important;
    margin-bottom: 16px !important;
}

.modal-body li {
    color: #cbd5e1 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin-bottom: 12px !important;
}

[data-theme="light"] .modal-body li {
    color: #334155 !important;
}

.modal-body a {
    color: #38bdf8 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

.modal-body a:hover {
    color: #7dd3fc !important;
}

.modal-footer {
    padding: 16px 28px 22px 28px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}

[data-theme="light"] .modal-footer {
    border-top: 1px solid #f1f5f9 !important;
    background: #f8fafc !important;
}

/* ==========================================================================
   Add Device / Pairing Modal (High-Impact 2-Column Compact Layout)
   Zero vertical scrolling, crystal sharp QR, radar line, live pulse status
   ========================================================================== */
.ds-modal-add-device-dialog {
    max-width: 680px !important;
    width: 95% !important;
    margin: 35px auto !important;
}

.ds-modal-add-device-content {
    background: #090e1a !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.85), 0 0 1px 1px rgba(255, 255, 255, 0.08) !important;
    overflow: hidden !important;
}

[data-theme="light"] .ds-modal-add-device-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.25) !important;
}

.ds-modal-header-compact {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 22px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="light"] .ds-modal-header-compact {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.ds-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ds-modal-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-size: 16px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    flex-shrink: 0;
}

.ds-modal-header-left .modal-title {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    line-height: 1.2 !important;
}

[data-theme="light"] .ds-modal-header-left .modal-title {
    color: #0f172a !important;
}

.ds-modal-subtitle {
    margin: 2px 0 0 0 !important;
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

.ds-modal-close {
    color: #94a3b8 !important;
    opacity: 0.7 !important;
    font-size: 22px !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    border: none !important;
    padding: 4px !important;
}

.ds-modal-close:hover {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Modal Body */
.ds-modal-body-compact {
    padding: 20px 22px !important;
}

.ds-pairing-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 620px) {
    .ds-pairing-grid {
        flex-direction: column-reverse;
        gap: 16px;
    }
}

/* Left Steps Column */
.ds-pairing-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ds-pairing-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ds-step-badge {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.35);
}

.ds-step-content {
    flex: 1;
}

.ds-step-title {
    font-size: 13.5px;
    color: #f1f5f9;
    line-height: 1.3;
}

[data-theme="light"] .ds-step-title {
    color: #1e293b;
}

.ds-step-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
    line-height: 1.4;
}

[data-theme="light"] .ds-step-desc {
    color: #64748b;
}

.ds-apk-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.ds-apk-btn:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Server Info Card in Modal */
.ds-server-info-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px 12px;
    margin-top: 2px;
}

[data-theme="light"] .ds-server-info-card {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.ds-server-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ds-server-label {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ds-server-pill {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 700;
    font-family: monospace;
    padding: 2px 8px;
    border-radius: 6px;
    word-break: break-all;
}

.ds-btn-edit-server {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 11px;
    transition: all 0.2s ease;
}

.ds-btn-edit-server:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

.ds-server-edit-box {
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

.ds-server-edit-box input {
    height: 28px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 6px;
}

.ds-server-note {
    font-size: 10.5px;
    color: #64748b;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Server Info Card in Modal */
.ds-server-info-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px 12px;
    margin-top: 2px;
}

[data-theme="light"] .ds-server-info-card {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.ds-server-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ds-server-label {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ds-server-pill {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 700;
    font-family: monospace;
    padding: 2px 8px;
    border-radius: 6px;
    word-break: break-all;
}

.ds-btn-edit-server {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 11px;
    transition: all 0.2s ease;
}

.ds-btn-edit-server:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

.ds-server-edit-box {
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

.ds-server-edit-box input {
    height: 28px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 6px;
}

.ds-server-note {
    font-size: 10.5px;
    color: #64748b;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Right QR Column */
.ds-pairing-qr-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 210px;
}

.ds-qr-card {
    position: relative;
    padding: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.15);
    overflow: hidden;
}

[data-theme="light"] .ds-qr-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.ds-qr-white-tile {
    background: #ffffff;
    padding: 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ds-qr-image {
    width: 146px !important;
    height: 146px !important;
    display: block !important;
    image-rendering: pixelated !important;
    image-rendering: -webkit-optimize-contrast !important;
}

/* Scanning Radar Line */
.ds-qr-radar-line {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, #818cf8, transparent);
    box-shadow: 0 0 8px #38bdf8;
    border-radius: 2px;
    z-index: 5;
    animation: dsRadarScan 2.4s infinite ease-in-out;
}

@keyframes dsRadarScan {
    0% { top: 12px; opacity: 0.1; }
    20% { opacity: 0.9; }
    80% { opacity: 0.9; }
    100% { top: 160px; opacity: 0.1; }
}

/* Success Overlay */
.ds-qr-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 29, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    z-index: 10;
}

.ds-success-icon-bounce {
    font-size: 42px;
    color: #10b981;
    animation: dsPopBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ds-success-text {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #34d399;
}

@keyframes dsPopBounce {
    0% { transform: scale(0.3); opacity: 0; }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* Status Pill */
.ds-pairing-status {
    margin-top: 10px;
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    text-align: center;
    justify-content: center;
    width: 100%;
}

.ds-pairing-status.waiting {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.ds-pairing-status.connected {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    animation: dsPulseGlow 1s infinite alternate;
}

@keyframes dsPulseGlow {
    from { box-shadow: 0 0 4px rgba(16, 185, 129, 0.2); }
    to { box-shadow: 0 0 14px rgba(16, 185, 129, 0.6); }
}

/* Modal Footer */
.ds-modal-footer-compact {
    padding: 10px 22px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

[data-theme="light"] .ds-modal-footer-compact {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

.ds-auto-close-hint {
    font-size: 11.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ds-btn-close-modal {
    padding: 5px 16px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
}

.ds-btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Modern Message Timeline Theming (Dark & Light Mode Glassmorphism)
   ========================================================================== */
.timeline {
    position: relative;
    margin: 20px 0 30px 0;
    padding: 0;
    list-style: none;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.12) !important;
    left: 31px;
    margin: 0;
    border-radius: 4px;
}

[data-theme="light"] .timeline:before {
    background: rgba(0, 0, 0, 0.08) !important;
}

.timeline > li {
    position: relative;
    margin-right: 10px;
    margin-bottom: 24px;
}

.timeline > li:before,
.timeline > li:after {
    content: " ";
    display: table;
}

.timeline > li:after {
    clear: both;
}

.timeline > li > .timeline-item {
    -webkit-box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5) !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5) !important;
    border-radius: 16px !important;
    margin-top: 0;
    background: var(--ds-glass-card-bg) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    color: var(--ds-text-body) !important;
    margin-left: 64px !important;
    margin-right: 0 !important;
    padding: 0 !important;
    position: relative;
    border: 1px solid var(--ds-glass-card-border) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.timeline > li > .timeline-item:hover {
    border-color: rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 14px 36px -4px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.1) !important;
}

[data-theme="light"] .timeline > li > .timeline-item {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.07) !important;
    color: #334155 !important;
}

[data-theme="light"] .timeline > li > .timeline-item:hover {
    border-color: rgba(79, 70, 229, 0.3) !important;
    box-shadow: 0 14px 36px -4px rgba(79, 70, 229, 0.12) !important;
}

.timeline > li > .timeline-item > .time {
    color: var(--ds-text-muted) !important;
    float: right;
    padding: 12px 16px;
    font-size: 12.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.timeline > li > .timeline-item > .timeline-header {
    margin: 0;
    color: var(--ds-text-heading) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 12px 18px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.5;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

[data-theme="light"] .timeline > li > .timeline-item > .timeline-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
}

.timeline-header label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
}

.timeline-header label input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    accent-color: #38bdf8;
}

.timeline-header a {
    color: #38bdf8 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    letter-spacing: 0.2px;
}

.timeline-header a:hover {
    color: #7dd3fc !important;
    text-decoration: underline !important;
}

[data-theme="light"] .timeline-header a {
    color: #2563eb !important;
}

[data-theme="light"] .timeline-header a:hover {
    color: #1d4ed8 !important;
}

.timeline-header .reply-message {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.25);
    margin-left: 6px;
    transition: all 0.2s ease;
}

.timeline-header .reply-message:hover {
    background: #38bdf8;
    color: #0f172a !important;
    transform: scale(1.08);
}

.timeline > li > .timeline-item > .timeline-body {
    padding: 14px 18px !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: var(--ds-text-body) !important;
    word-break: break-word;
}

[data-theme="light"] .timeline > li > .timeline-item > .timeline-body {
    color: #334155 !important;
}

.timeline > li > .timeline-item > .timeline-footer {
    padding: 10px 18px !important;
    background-color: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

[data-theme="light"] .timeline > li > .timeline-item > .timeline-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.timeline-footer .label {
    border-radius: 8px !important;
    padding: 4px 10px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.timeline-footer .label-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.timeline-footer .label-primary {
    background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.timeline-footer .label-warning {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.timeline-footer .label-info {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.timeline-footer .label-danger {
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.timeline-footer .label-default {
    background: rgba(255, 255, 255, 0.12) !important;
    color: var(--ds-text-heading) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Timeline date and user header pills */
.timeline > .time-label > span {
    font-weight: 700;
    padding: 6px 16px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--ds-glass-card-bg) !important;
    border-radius: 9999px !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    font-size: 13px !important;
}

.timeline > .time-label > span.bg-red {
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%) !important;
}

.timeline > .time-label > span.bg-blue {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
}

.timeline > .time-label > span a {
    color: #ffffff !important;
    text-decoration: none;
}

/* Timeline Node Icons */
.timeline > li > .fa,
.timeline > li > .glyphicon,
.timeline > li > .ion {
    width: 34px !important;
    height: 34px !important;
    font-size: 14px !important;
    line-height: 30px !important;
    position: absolute;
    color: #ffffff !important;
    background: #0f172a !important;
    border-radius: 50% !important;
    text-align: center;
    left: 15px !important;
    top: 0;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.timeline > li > .fa.bg-green {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.5) !important;
}

.timeline > li > .fa.bg-aqua {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%) !important;
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.5) !important;
}

.timeline > li > .fa.bg-yellow {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.5) !important;
}

.timeline > li > .fa.bg-light-blue {
    background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%) !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.5) !important;
}

.timeline > li > .fa.bg-red {
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%) !important;
    box-shadow: 0 0 16px rgba(244, 63, 94, 0.5) !important;
}

.timeline > li > .fa.bg-gray {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #94a3b8 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}






