/* ==========================================================================
   Accountic Smart Dashboard UI — Cohesive Pure Light Mode Edition
   Inspired by Dribbble #21637701 Smart Home Concept (Pearl, Soft Slate & Indigo)
   ========================================================================== */

body.ui-panel.smart-dashboard-v2 {
    --sd-bg: #f3f5f9;
    --sd-surface: #ffffff;
    --sd-surface-soft: #f8fafc;
    --sd-border: #e2e8f0;
    --sd-border-subtle: #edf2f7;
    --sd-text-main: #0f172a;
    --sd-text-body: #334155;
    --sd-text-muted: #64748b;
    --sd-primary: #4f46e5;
    --sd-primary-light: #eef2ff;
    --sd-accent-cyan: #06b6d4;
    --sd-accent-emerald: #10b981;
    --sd-accent-amber: #f59e0b;
    --sd-sidebar-w: 280px;

    background-color: var(--sd-bg) !important;
    background-image:
        radial-gradient(at 92% 4%, rgba(99, 102, 241, 0.06) 0px, transparent 45%),
        radial-gradient(at 8% 88%, rgba(14, 165, 233, 0.05) 0px, transparent 45%) !important;
    color: var(--sd-text-main) !important;
    font-family: 'IRANYekanX', 'Anjoman', Tahoma, system-ui, sans-serif !important;
}

/* ================= 1. FULL-HEIGHT PEARL-LIGHT SMART SIDEBAR ================= */
body.ui-panel.smart-dashboard-v2 .panel-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    width: var(--sd-sidebar-w) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-left: 1px solid #e2e8f0 !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    padding: 16px 14px 14px 14px !important;
    box-shadow: -4px 0 24px -8px rgba(15, 23, 42, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    z-index: 120 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

body.ui-panel.smart-dashboard-v2 .sidebar-brand-wrapper {
    flex-shrink: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 4px 6px 14px 6px !important;
    margin-bottom: 8px !important;
}

body.ui-panel.smart-dashboard-v2 .sidebar-nav-scroll-wrap {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0 !important;
    padding: 4px 2px 14px 2px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 transparent !important;
}

body.ui-panel.smart-dashboard-v2 .sidebar-nav-scroll-wrap::-webkit-scrollbar {
    width: 4px !important;
}

body.ui-panel.smart-dashboard-v2 .sidebar-nav-scroll-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 4px !important;
}

body.ui-panel.smart-dashboard-v2 .sidebar-nav-scroll-wrap::-webkit-scrollbar-track {
    background: transparent !important;
}

body.ui-panel.smart-dashboard-v2 .sidebar-brand .logo-text {
    color: #0f172a !important;
    font-size: 19px !important;
    font-weight: 900 !important;
    letter-spacing: -0.4px !important;
}

body.ui-panel.smart-dashboard-v2 .sidebar-brand .logo-badge {
    background: #eef2ff !important;
    color: #4f46e5 !important;
    border: 1px solid #c7d2fe !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

.sd-nav-group-label {
    font-size: 10.5px;
    font-weight: 800;
    color: #94a3b8;
    padding: 12px 10px 5px;
    letter-spacing: 0.1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

body.ui-panel.smart-dashboard-v2 .sidebar-nav {
    gap: 4px !important;
}

body.ui-panel.smart-dashboard-v2 .nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 9px 11px !important;
    border-radius: 15px !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
}

.sd-nav-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

body.ui-panel.smart-dashboard-v2 .nav-item svg {
    width: 17px !important;
    height: 17px !important;
    color: #64748b !important;
    stroke: currentColor !important;
    transition: all 0.2s ease !important;
}

body.ui-panel.smart-dashboard-v2 .nav-item:hover {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
    transform: translateX(-2px) !important;
}

body.ui-panel.smart-dashboard-v2 .nav-item:hover .sd-nav-icon-box {
    background: #eef2ff;
    border-color: #c7d2fe;
}

body.ui-panel.smart-dashboard-v2 .nav-item:hover svg {
    color: #4f46e5 !important;
}

body.ui-panel.smart-dashboard-v2 .nav-item.active {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(79, 70, 229, 0.2) !important;
    box-shadow: 0 10px 22px -6px rgba(79, 70, 229, 0.38) !important;
    transform: none !important;
}

body.ui-panel.smart-dashboard-v2 .nav-item.active .sd-nav-icon-box {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

body.ui-panel.smart-dashboard-v2 .nav-item.active svg {
    color: #ffffff !important;
}

.sd-nav-badge {
    margin-right: auto;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.sd-nav-badge.gold {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.sd-nav-badge.cyan {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

body.ui-panel.smart-dashboard-v2 .nav-item.active .sd-nav-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
}

/* Sidebar Bottom User Card */
body.ui-panel.smart-dashboard-v2 .sidebar-bottom-user {
    flex-shrink: 0 !important;
    margin-top: auto !important;
    padding: 11px 13px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    position: relative !important;
    z-index: 10 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}

body.ui-panel.smart-dashboard-v2 .user-mini-name {
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

body.ui-panel.smart-dashboard-v2 .user-mini-role {
    color: #059669 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

body.ui-panel.smart-dashboard-v2 .sidebar-logout-btn {
    width: 35px;
    height: 35px;
    border-radius: 11px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #e11d48;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.ui-panel.smart-dashboard-v2 .sidebar-logout-btn:hover {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
}

/* ================= 2. MAIN WORKSPACE & FLOATING SMART TOPBAR ================= */
body.ui-panel.smart-dashboard-v2 .panel-main {
    margin-right: calc(var(--sd-sidebar-w) + 24px) !important;
    padding: 14px 20px 36px 24px !important;
}

body.ui-panel.smart-dashboard-v2 .panel-topbar {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 22px !important;
    padding: 12px 22px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.05) !important;
}

.sd-topbar-search-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sd-topbar-search-pill:hover {
    background: #ffffff;
    border-color: #6366f1;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

/* Light-Mode Harmonious Wallet Capsule */
.sd-wallet-capsule {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%);
    color: #1e293b;
    border: 1px solid #c7d2fe;
    padding: 5px 6px 5px 14px;
    border-radius: 15px;
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: 0 4px 12px -4px rgba(79, 70, 229, 0.1);
}

.sd-wallet-capsule b {
    color: #4f46e5;
    font-weight: 900;
    font-size: 13.5px;
}

.sd-wallet-plus-btn {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    border: none;
    border-radius: 11px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px -2px rgba(79, 70, 229, 0.3);
}

.sd-wallet-plus-btn:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    transform: translateY(-1px);
}

/* ================= 3. SMART DASHBOARD TOP HERO + WALLET WIDGET GRID ================= */
.sd-hero-bento-grid {
    display: grid;
    grid-template-columns: 1.55fr 0.95fr;
    gap: 18px;
    margin-bottom: 20px;
}

@media (max-width: 1180px) {
    .sd-hero-bento-grid {
        grid-template-columns: 1fr;
    }
}

/* Main Smart Command Card — Cohesive Light Pastel-Indigo & Pearl Surface */
.sd-command-hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7ff 55%, #eef2ff 100%);
    border: 1.5px solid #dbe4ff;
    border-radius: 26px;
    padding: 24px 26px;
    color: #0f172a;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 34px -12px rgba(79, 70, 229, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.sd-command-hero-card::before {
    content: '';
    position: absolute;
    top: -90px;
    left: -70px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.sd-command-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.sd-live-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 11.5px;
    font-weight: 800;
    margin-bottom: 10px;
}

.sd-command-title {
    font-size: 21px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.sd-command-title .gradient-text {
    background: linear-gradient(135deg, #4f46e5, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sd-command-sub {
    font-size: 13px;
    color: #475569;
    line-height: 1.75;
    margin: 0;
}

/* Quick Smart-Device Style Service Tiles inside Hero (Crisp White Tactile Tiles) */
.sd-quick-devices-label {
    font-size: 12px;
    font-weight: 800;
    color: #475569;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.sd-quick-devices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11px;
    position: relative;
    z-index: 2;
}

@media (max-width: 720px) {
    .sd-quick-devices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sd-device-tile {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 13px 14px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: right;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.05);
}

.sd-device-tile:hover {
    background: #ffffff;
    border-color: #6366f1;
    transform: translateY(-3px);
    box-shadow: 0 14px 26px -8px rgba(79, 70, 229, 0.16);
}

.sd-device-tile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sd-device-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.sd-device-status {
    font-size: 10px;
    font-weight: 800;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    padding: 2px 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sd-device-status::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
}

.sd-device-name {
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 2px;
}

.sd-device-sub {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

/* Left Hero Widget: Smart Wallet & Telemetry Meter Card */
.sd-smart-wallet-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 12px 30px -12px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.sd-wallet-widget-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.sd-wallet-meter-box {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.sd-wallet-Quick-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.sd-wallet-chip-btn {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 6px;
    font-size: 11.5px;
    font-weight: 800;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.sd-wallet-chip-btn:hover {
    border-color: #4f46e5;
    background: #eef2ff;
    color: #4f46e5;
    transform: translateY(-1px);
}

/* ================= 4. 4 SMART TELEMETRY KPI CARDS ================= */
body.ui-panel.smart-dashboard-v2 .stats-grid-lux {
    gap: 16px !important;
    margin-bottom: 20px !important;
}

body.ui-panel.smart-dashboard-v2 .panel-stat-card-lux {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 22px !important;
    padding: 20px !important;
    box-shadow: 0 10px 26px -12px rgba(15, 23, 42, 0.04) !important;
    min-height: 150px !important;
    direction: rtl !important;
    text-align: right !important;
}

body.ui-panel.smart-dashboard-v2 .panel-stat-card-lux:hover {
    border-color: #818cf8 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 16px 32px -12px rgba(79, 70, 229, 0.12) !important;
}

.sd-kpi-progress-track {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 0 8px;
    direction: rtl;
}

.sd-kpi-progress-fill {
    height: 100%;
    border-radius: 999px;
    margin-right: 0;
    margin-left: auto;
    transition: width 0.5s ease;
}

/* ================= 5. SMART STORE DEVICE CARDS ================= */
body.ui-panel.smart-dashboard-v2 .store-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)) !important;
    gap: 16px !important;
}

body.ui-panel.smart-dashboard-v2 .store-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 22px !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.04) !important;
}

body.ui-panel.smart-dashboard-v2 .store-card:hover {
    border-color: #6366f1 !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 18px 34px -14px rgba(79, 70, 229, 0.14) !important;
}

body.ui-panel.smart-dashboard-v2 .store-card-icon {
    width: 50px !important;
    height: 50px !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ================= 6. BENTO LAYOUTS FOR WALLET, SETTINGS, SYNC, RULES ================= */
.sd-two-col-bento {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
    align-items: start;
}

.sd-two-col-equal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1024px) {
    .sd-two-col-bento,
    .sd-two-col-equal {
        grid-template-columns: 1fr;
    }
}

/* Virtual Bank Card in Wallet Tab (Vibrant Royal Indigo-to-Sky Fintech Gradient) */
.sd-virtual-bank-card {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 55%, #0ea5e9 100%);
    border-radius: 24px;
    padding: 26px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 38px -12px rgba(79, 70, 229, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    margin-bottom: 18px;
}

.sd-virtual-bank-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.sd-amount-presets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

@media (max-width: 520px) {
    .sd-amount-presets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sd-preset-tile {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.sd-preset-tile:hover,
.sd-preset-tile.active {
    background: #eef2ff;
    border-color: #4f46e5;
    color: #4f46e5;
    box-shadow: 0 6px 16px -4px rgba(79, 70, 229, 0.16);
    transform: translateY(-2px);
}

/* Profile Identity Banner in Settings & Sync Tabs (Luminous Light Mode) */
.sd-profile-identity-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7ff 55%, #eef2ff 100%) !important;
    border: 1.5px solid #dbe4ff !important;
    border-radius: 24px;
    padding: 24px 26px;
    color: #0f172a !important;
    margin-bottom: 20px;
    box-shadow: 0 12px 30px -12px rgba(79, 70, 229, 0.08);
}

.sd-profile-identity-card h3 {
    color: #0f172a !important;
}

.sd-profile-identity-card span {
    color: #475569 !important;
}

.sd-identity-pills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 768px) {
    .sd-identity-pills-grid {
        grid-template-columns: 1fr;
    }
}

.sd-identity-pill-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px -6px rgba(15, 23, 42, 0.04);
}

.sd-identity-pill-box b {
    color: #0f172a !important;
}

/* ================= 7. PANEL CARDS, TABLES & AVATAR REFINEMENTS ================= */
body.ui-panel.smart-dashboard-v2 .user-mini-avatar {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(79, 70, 229, 0.2) !important;
    box-shadow: 0 6px 14px -4px rgba(79, 70, 229, 0.35) !important;
}

body.ui-panel.smart-dashboard-v2 .mobile-sidebar-close {
    background: #fff1f2 !important;
    border: 1px solid #fecdd3 !important;
    color: #e11d48 !important;
}

body.ui-panel.smart-dashboard-v2 .panel-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    padding: 24px !important;
    box-shadow: 0 10px 28px -12px rgba(15, 23, 42, 0.05) !important;
}

body.ui-panel.smart-dashboard-v2 .dashboard-ticket-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 22px !important;
    padding: 16px 22px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 10px 26px -14px rgba(15, 23, 42, 0.05) !important;
}

body.ui-panel.smart-dashboard-v2 .dash-live-widget {
    border-radius: 24px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 28px -12px rgba(15, 23, 42, 0.05) !important;
}

/* Order & Ticket Search / Filter Strip */
.sd-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 18px;
}

.sd-filter-chip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sd-filter-chip:hover,
.sd-filter-chip.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 12px -2px rgba(79, 70, 229, 0.3);
}

/* Mobile Responsive Refinements */
@media (max-width: 960px) {
    body.ui-panel.smart-dashboard-v2 .panel-sidebar {
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        border-radius: 24px 0 0 24px !important;
        width: 292px !important;
    }
    body.ui-panel.smart-dashboard-v2 .panel-main {
        margin-right: 0 !important;
        padding: 12px 12px 28px 12px !important;
    }
    .sd-topbar-search-pill {
        display: none;
    }
}

/* ==========================================================================
   8. DIRECTFA.COM-INSPIRED BENTO STAGES, VECTOR ICONS & SMART ASSISTANT CARD
   ========================================================================== */

/* Hero Trust Strip (Directfa .hh-trust style) */
.dfa-trust-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.dfa-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 11.5px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.dfa-trust-pill svg {
    color: #4f46e5;
    flex-shrink: 0;
}

.dfa-hero-cta-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Directfa-Style Tinted Inner Stage inside Hero */
.dfa-hero-stage {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 14px 16px;
    position: relative;
    z-index: 2;
}

.dfa-stage-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dfa-stage-link svg {
    transition: transform 0.2s ease;
}

.dfa-stage-link:hover {
    color: #4338ca;
}

.dfa-stage-link:hover svg {
    transform: translateX(-3px);
}

.sd-device-icon svg {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
    flex-shrink: 0;
}

/* Wallet Header Vector Box & Badge */
.dfa-icon-box.indigo {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4f46e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dfa-badge-pill.emerald {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 4px 10px;
    border-radius: 999px;
}

/* ==========================================================================
   DIRECTFA-STYLE SMART ASSISTANT & WORKFLOW CARD (#dashLiveChatWidget)
   ========================================================================== */
body.ui-panel.smart-dashboard-v2 .dfa-assistant-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    padding: 22px !important;
    box-shadow: 0 10px 28px -12px rgba(15, 23, 42, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 14px !important;
}

/* Header */
.dfa-assist-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 14px;
}

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

.dfa-assist-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
    color: #4f46e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px -4px rgba(79, 70, 229, 0.18);
}

.dfa-assist-title {
    font-size: 15.5px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 3px 0;
    letter-spacing: -0.2px;
}

.dfa-assist-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    font-weight: 600;
}

.dfa-assist-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.dfa-assist-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

/* Signature Directfa Tinted Inner Stage */
.dfa-assist-stage {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 14px;
}

.dfa-assist-stage .dash-bubbles-stream {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 175px;
    max-height: 210px;
    overflow-y: auto;
    margin-bottom: 0 !important;
    padding-right: 2px;
}

.dfa-assist-stage .chat-msg-row.user,
.dfa-assist-stage .chat-msg-row.bot {
    align-items: stretch !important;
    width: 100%;
}

/* Customer Inquiry Card inside Stage */
.dfa-msg-user-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 13px;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
}

.dfa-msg-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 10.5px;
}

.dfa-msg-author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #475569;
    font-weight: 800;
}

.dfa-msg-author svg {
    color: #6366f1;
}

.dfa-msg-time {
    color: #94a3b8;
    font-weight: 700;
}

.dfa-msg-text {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.6;
}

/* Directfa Workflow Step Connector Pill */
.dfa-step-connector {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8px 6px 8px;
}

.dfa-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4338ca;
    font-size: 10.5px;
    font-weight: 800;
}

/* System / AI Response Card inside Stage */
.dfa-msg-bot-card {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 10px 22px -8px rgba(79, 70, 229, 0.4);
}

.dfa-msg-bot-text {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.7;
    color: #ffffff;
    margin-bottom: 8px;
}

.dfa-msg-bot-foot {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 10.5px;
    font-weight: 700;
    color: #e0e7ff;
}

/* 2x2 Interactive Quick Topics Grid (Sidebar-Style Vector Icons) */
.dfa-topics-section {
    margin-bottom: 12px;
}

.dfa-topics-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 7px;
}

.dfa-topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (max-width: 520px) {
    .dfa-topics-grid {
        grid-template-columns: 1fr;
    }
}

.dfa-topic-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 800;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: right;
}

.dfa-topic-btn:hover {
    background: #ffffff;
    border-color: #6366f1;
    color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px -4px rgba(79, 70, 229, 0.14);
}

.dfa-topic-ico {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dfa-topic-ico.indigo {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4f46e5;
}

.dfa-topic-ico.sky {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7;
}

.dfa-topic-ico.amber {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #d97706;
}

.dfa-topic-ico.emerald {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #059669;
}

/* Input Bar */
.dfa-chat-input-wrap {
    margin-bottom: 4px;
}

.dfa-chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 4px 6px 4px 6px;
    transition: all 0.2s ease;
}

.dfa-chat-form:focus-within {
    background: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.dfa-chat-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 7px 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    outline: none;
}

.dfa-chat-send-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px -2px rgba(79, 70, 229, 0.35);
}

.dfa-chat-send-btn:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    transform: translateY(-1px);
}

/* Card Footer */
.dfa-assist-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.dfa-assist-footer-trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 800;
    color: #047857;
}

