/* ═══════════════════════════════════════════════════════════
   ChatBot Gold — Dashboard Redesign
   High-end Glassmorphic Overrides & UI Polish
   ═══════════════════════════════════════════════════════════ */

/* ── Custom Animations ───────────────────────────────────── */
@keyframes float-slow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, 15px) scale(1.08); }
    100% { transform: translate(-10px, -20px) scale(0.95); }
}
@keyframes pulse-soft {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.03); }
}
@keyframes card-hover-glow {
    0%, 100% { box-shadow: 0 8px 30px rgba(0,0,0,0.02); }
    50% { box-shadow: 0 15px 35px rgba(0,0,0,0.06), 0 0 15px rgba(16, 185, 129, 0.08); }
}
@keyframes notifSlideIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ring-pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ── Custom Scrollbars ───────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
    border: 2px solid transparent;
    background-clip: padding-box;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border: 2px solid transparent;
    background-clip: padding-box;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* ── Background Ambient Blobs ────────────────────────────── */
.ambient-blob {
    display: block !important;
    position: fixed;
    border-radius: 50%;
    z-index: -10;
    filter: blur(140px);
    -webkit-filter: blur(140px);
    opacity: 0.65;
    pointer-events: none;
}
.ambient-blob-1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.28) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite alternate;
}
.ambient-blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: float-slow 25s ease-in-out infinite alternate-reverse;
}

/* ── Body Overrides ──────────────────────────────────────── */
.dashboard-body {
    background-color: #f6f8fa !important;
    background-image: radial-gradient(circle at 10% 20%, rgba(201, 169, 110, 0.14) 0%, transparent 40%),
                      radial-gradient(circle at 90% 15%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
                      radial-gradient(circle at 80% 85%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
                      radial-gradient(circle at 15% 85%, rgba(6, 182, 212, 0.08) 0%, transparent 40%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Floating Header ─────────────────────────────────────── */
.top-header {
    position: sticky !important;
    top: 16px;
    margin: 16px 24px;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(24px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.8) !important;
    border: none !important;
    border-radius: 36px !important;
    padding: 0 24px !important;
    height: 74px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 32px -6px rgba(0, 0, 0, 0.04) !important;
}
.top-header.scrolled {
    top: 8px;
    margin: 8px 16px;
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(226, 232, 240, 0.9) !important;
}

/* ── Logo ────────────────────────────────────────────────── */
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.header-logo:hover {
    transform: scale(1.02);
    text-decoration: none;
}
.header-logo-icon {
    width: 38px !important;
    height: 38px !important;
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900)) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}
.header-logo:hover .header-logo-icon {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800)) !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25) !important;
}
.header-brand {
    font-size: 19px !important;
    font-weight: 900 !important;
    color: var(--gray-800) !important;
    letter-spacing: -0.3px !important;
}
.header-brand em {
    font-style: normal;
    background: linear-gradient(135deg, #d97706, #c9a96e, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

/* ── Tab Switcher ────────────────────────────────────────── */
.header-center {
    background: rgba(241, 245, 249, 0.7) !important;
    padding: 4px !important;
    border-radius: 14px !important;
    border: 1.5px solid rgba(226, 232, 240, 0.5) !important;
    gap: 2px !important;
}
.tab-btn {
    padding: 8px 24px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--gray-500) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.tab-btn:hover {
    color: var(--gray-800) !important;
}
.tab-btn.active {
    background: var(--white) !important;
    color: var(--primary-700) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    font-weight: 800 !important;
}

/* ── Header Controls ─────────────────────────────────────── */
    width: 38px !important;
    height: 38px !important;
    border-radius: 16px !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
    color: var(--gray-500) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.lang-switch-btn {
    width: auto !important;
    height: auto !important;
    padding: 7px 14px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}
#darkModeToggle:hover, #notifBtn:hover, .lang-switch-btn:hover {
    transform: translateY(-2px);
    background: var(--white) !important;
    border-color: var(--primary-300) !important;
    color: var(--primary-600) !important;
    box-shadow: 0 6px 16px -4px rgba(5, 150, 105, 0.15) !important;
}
.logout-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
    background: rgba(254, 242, 242, 0.7) !important;
    border: 1.5px solid rgba(254, 226, 226, 0.8) !important;
    color: #ef4444 !important;
    transition: all 0.25s ease !important;
}
.logout-btn:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(239, 68, 68, 0.25) !important;
}

/* ── User Profile Menu ───────────────────────────────────── */
.user-menu-simple {
    padding: 4px 8px !important;
    border-radius: 14px;
    background: rgba(241, 245, 249, 0.4);
    border: 1px solid rgba(226, 232, 240, 0.4);
    transition: all 0.25s ease;
}
.user-menu-simple:hover {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(226, 232, 240, 0.8);
}
.user-avatar {
    border: 2px solid var(--white) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 10px !important;
}
.user-avatar.green {
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200)) !important;
    color: var(--primary-800) !important;
    font-weight: 850 !important;
}

/* ── Welcome Dashboard Panel ────────────────────────────── */
.welcome-section {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: none !important;
    border-radius: 36px !important;
    padding: 40px 36px !important;
    margin-bottom: 32px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04) !important;
    position: relative;
    overflow: hidden;
}
.welcome-section::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    top: -80px;
    left: -80px;
    pointer-events: none;
}
.welcome-greeting {
    font-size: 32px !important;
    font-weight: 900 !important;
    color: var(--gray-900) !important;
    letter-spacing: -0.8px;
    margin-bottom: 8px !important;
}
.welcome-greeting .user-highlight {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}
.welcome-desc {
    font-size: 14.5px !important;
    color: var(--gray-500) !important;
    font-weight: 600;
}

/* Clock Widget styling */
.dashboard-clock {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-400);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Stats Cards Redesign ────────────────────────────────── */
.stats-cards {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin-bottom: 32px !important;
}
.s-card {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 24px !important;
    padding: 24px !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.02) !important;
}
.s-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all 0.4s ease;
}
.s-card:nth-child(1)::before { background: linear-gradient(90deg, #10b981, #059669); }
.s-card:nth-child(2)::before { background: linear-gradient(90deg, #a855f7, #7c3aed); }
.s-card:nth-child(3)::before { background: linear-gradient(90deg, #f59e0b, #d97706); }
.s-card:nth-child(4)::before { background: linear-gradient(90deg, #ef4444, #dc2626); }

.s-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    background: rgba(255, 255, 255, 0.9) !important;
}
.s-card:nth-child(1):hover {
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}
.s-card:nth-child(2):hover {
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
}
.s-card:nth-child(3):hover {
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
}
.s-card:nth-child(4):hover {
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

/* Inline stats sparkline elements */
.s-card-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 44px;
    opacity: 0.1;
    pointer-events: none;
    transition: all 0.3s ease;
}
.s-card:hover .s-card-wave {
    opacity: 0.22;
    transform: scaleY(1.15);
}

.s-card-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.s-card:hover .s-card-icon-box {
    transform: scale(1.08) rotate(4deg);
}

/* ── Promotional Action Banners ──────────────────────────── */
.cloud-quick-card {
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.04) 0%, rgba(201, 169, 110, 0.12) 100%) !important;
    border: 1.5px solid rgba(201, 169, 110, 0.35) !important;
    border-radius: 22px !important;
    padding: 20px 28px !important;
    margin-bottom: 24px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.cloud-quick-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.cloud-quick-card:hover::after {
    transform: translateX(100%);
}
.cloud-quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -6px rgba(201, 169, 110, 0.15) !important;
    border-color: rgba(201, 169, 110, 0.6) !important;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.08) 0%, rgba(201, 169, 110, 0.18) 100%) !important;
}

/* Specific styling for Google Play Quick Card */
a.cloud-quick-card[style*="10b981"] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(16, 185, 129, 0.12) 100%) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.3) !important;
}
a.cloud-quick-card[style*="10b981"]:hover {
    box-shadow: 0 12px 28px -6px rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.18) 100%) !important;
}

.cloud-quick-card h3 {
    font-size: 16px !important;
    font-weight: 850 !important;
}
.cloud-quick-card p {
    font-size: 12.5px !important;
    font-weight: 600;
}
.cloud-quick-card .btn-primary {
    border-radius: 12px !important;
    padding: 11px 24px !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
}
.cloud-quick-card:hover .btn-primary {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.2) !important;
}

/* ── Section Header Accent Lines ─────────────────────────── */
.section-header {
    margin-top: 16px !important;
    margin-bottom: 22px !important;
    position: relative;
    padding-right: 14px !important;
}
.section-header::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 4px;
}
.section-header svg {
    display: none; /* replaced by vertical accent bar */
}
.section-title {
    font-size: 17.5px !important;
    font-weight: 900 !important;
    color: var(--gray-800) !important;
}
.section-badge {
    background: var(--primary-100) !important;
    color: var(--primary-800) !important;
    padding: 3px 10px !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
}

/* ── Search & Filter Elements ────────────────────────────── */
#appSearch {
    height: 44px !important;
    border-radius: 14px !important;
    border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.01) !important;
}
#appSearch:focus {
    border-color: var(--primary-400) !important;
    background: var(--white) !important;
    box-shadow: 0 8px 24px -6px rgba(5, 150, 105, 0.12) !important;
}

.cat-filter-btn {
    padding: 8px 20px !important;
    border-radius: 20px !important;
    border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--gray-500) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.cat-filter-btn:hover {
    border-color: var(--primary-300) !important;
    color: var(--primary-600) !important;
    background: var(--white) !important;
    transform: translateY(-1px);
}
.cat-filter-btn.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    box-shadow: 0 6px 18px -4px rgba(5, 150, 105, 0.3) !important;
    font-weight: 800 !important;
}

/* ── App Card Elements ───────────────────────────────────── */
.apps-grid {
    gap: 20px !important;
    margin-bottom: 40px !important;
}
.app-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    border-radius: 26px !important;
    padding: 26px 20px !important;
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(20px) saturate(1.7) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.7) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.65) !important;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02) !important;
    text-decoration: none !important;
    overflow: hidden;
}
.app-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% -20%, var(--hover-glow-soft), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}
.app-card:hover::before {
    opacity: 1;
}
.app-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: var(--app-color) !important;
    box-shadow: 0 24px 48px -12px var(--hover-glow, rgba(15, 23, 42, 0.12)), 0 0 20px -2px var(--hover-glow-soft, rgba(15, 23, 42, 0.05)) !important;
}
.app-icon-wrap {
    width: 60px !important;
    height: 60px !important;
    border-radius: 20px !important;
    margin-bottom: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--app-color), var(--hover-glow-soft)) !important;
    color: white !important;
    box-shadow: 0 8px 16px -4px var(--hover-glow) !important;
    transition: all 0.4s ease !important;
    z-index: 2;
}
.app-card:hover .app-icon-wrap {
    transform: scale(1.1) rotate(6deg) !important;
    box-shadow: 0 12px 24px -6px var(--app-color) !important;
}
.app-name {
    font-size: 15.5px !important;
    font-weight: 850 !important;
    color: var(--gray-800) !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
    transition: color 0.3s ease;
    z-index: 2;
}
.app-card:hover .app-name {
    color: var(--app-color) !important;
}
.app-desc {
    font-size: 11.5px !important;
    color: var(--gray-500) !important;
    line-height: 1.5 !important;
    margin-bottom: 18px !important;
    z-index: 2;
}
.app-btn {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1.5px solid var(--app-color) !important;
    color: var(--app-color) !important;
    padding: 7px 22px !important;
    border-radius: 9999px !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    margin-top: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02) !important;
}
.app-card:hover .app-btn {
    background: var(--app-color) !important;
    color: white !important;
    box-shadow: 0 8px 20px -4px var(--app-color) !important;
    transform: translateY(-2px);
}
.app-btn i {
    width: 13px !important;
    height: 13px !important;
    transition: transform 0.3s ease;
}
.app-card:hover .app-btn i {
    transform: translateX(-4px); /* Moves icon leftward in RTL */
}

/* Sleek Pin Badge styling */
.pin-btn {
    top: 12px !important;
    left: 12px !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.pin-btn:hover {
    background: var(--white) !important;
    border-color: var(--primary-300) !important;
    transform: scale(1.1) rotate(-8deg);
}

/* ── Recent Activity Log Redesign ────────────────────────── */
#activitySection {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1.5px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 24px !important;
    padding: 24px !important;
    margin-top: 32px !important;
    margin-bottom: 32px !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.01) !important;
}
#activitySection:hover {
    border-color: rgba(226, 232, 240, 1) !important;
}
#activityLog {
    position: relative;
    padding-right: 12px;
}
#activityLog::before {
    content: '';
    position: absolute;
    right: 4px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(226, 232, 240, 0.8);
}
#activityLog > div {
    position: relative;
    padding: 12px 24px 12px 12px !important;
    border-bottom: none !important;
    transition: all 0.2s ease;
}
#activityLog > div::before {
    content: '';
    position: absolute;
    right: 1px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--gray-300);
    border: 2px solid var(--white);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.25s ease;
}
#activityLog > div:hover::before {
    background: var(--primary);
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 8px var(--primary);
}
#activityLog > div:hover {
    background: rgba(241, 245, 249, 0.5) !important;
}

/* ── App Store Redesign ──────────────────────────────────── */
.store-banner {
    background: linear-gradient(135deg, var(--primary-800), var(--primary-900)) !important;
    border-radius: 24px !important;
    padding: 40px !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(5, 150, 105, 0.3) !important;
}
.store-banner::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%) !important;
    width: 400px !important;
    height: 400px !important;
}
.store-title {
    font-size: 28px !important;
    font-weight: 900 !important;
}
.store-desc {
    font-size: 15px !important;
    font-weight: 500;
}

.store-grid {
    gap: 24px !important;
}
.store-card-v2 {
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}
.store-card-v2:hover {
    border-color: var(--primary-300) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05) !important;
}
.store-card-img {
    height: 170px !important;
}
.store-card-body {
    padding: 20px !important;
}
.store-card-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}
.store-card-name {
    font-size: 15px !important;
    font-weight: 900 !important;
}
.store-card-desc {
    font-size: 12.5px !important;
    font-weight: 600;
    color: var(--gray-500) !important;
}

/* Coming Soon store item redesign */
#comingSoonSection div[style*="dashed"] {
    background: rgba(255, 255, 255, 0.4) !important;
    border: 1.5px dashed rgba(226, 232, 240, 1) !important;
    border-radius: 18px !important;
    padding: 20px !important;
    transition: all 0.25s ease;
}
#comingSoonSection div[style*="dashed"]:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: var(--primary-300) !important;
    transform: scale(1.01);
}

/* ── Footer Redesign ─────────────────────────────────────── */
.dashboard-footer {
    border-top: 1px solid rgba(226, 232, 240, 0.6) !important;
    padding: 28px 24px !important;
    margin-top: 48px !important;
    font-size: 12.5px !important;
    font-weight: 600;
    color: var(--gray-400) !important;
}

/* ── Dark Mode Overrides ─────────────────────────────────── */
[data-theme="dark"] .dashboard-body {
    background-color: #07090f !important;
    background-image: radial-gradient(circle at 10% 20%, rgba(201, 169, 110, 0.08) 0%, transparent 40%),
                      radial-gradient(circle at 90% 15%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
                      radial-gradient(circle at 80% 85%, rgba(139, 92, 246, 0.06) 0%, transparent 40%),
                      radial-gradient(circle at 15% 85%, rgba(6, 182, 212, 0.06) 0%, transparent 40%) !important;
    background-attachment: fixed !important;
}
[data-theme="dark"] .ambient-blob-1 {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.07) 0%, transparent 70%);
}
[data-theme="dark"] .ambient-blob-2 {
    background: radial-gradient(circle, rgba(201, 169, 110, 0.05) 0%, transparent 70%);
}

/* Header */
[data-theme="dark"] .top-header {
    background: rgba(12, 14, 23, 0.65) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}
[data-theme="dark"] .top-header.scrolled {
    background: rgba(12, 14, 23, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .header-logo-icon {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.15)) !important;
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .header-brand {
    color: var(--white) !important;
}

/* Tab Switcher */
[data-theme="dark"] .header-center {
    background: rgba(30, 41, 59, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}
[data-theme="dark"] .tab-btn.active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--white) !important;
}

/* Actions */
[data-theme="dark"] #darkModeToggle, 
[data-theme="dark"] #notifBtn, 
[data-theme="dark"] .lang-switch-btn {
    border-color: rgba(255, 255, 255, 0.06) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--gray-400) !important;
}
[data-theme="dark"] #darkModeToggle:hover, 
[data-theme="dark"] #notifBtn:hover, 
[data-theme="dark"] .lang-switch-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary-500) !important;
    color: var(--primary-400) !important;
}
[data-theme="dark"] .user-menu-simple {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}
[data-theme="dark"] .user-menu-simple:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .user-avatar {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .user-avatar.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.3)) !important;
    color: var(--primary-300) !important;
}

/* Welcome Card */
[data-theme="dark"] .welcome-section {
    background: linear-gradient(135deg, rgba(21, 29, 47, 0.45) 0%, rgba(12, 14, 23, 0.25) 100%) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
}
[data-theme="dark"] .welcome-greeting {
    color: var(--white) !important;
}
[data-theme="dark"] .welcome-greeting .user-highlight {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .welcome-desc {
    color: var(--gray-400) !important;
}

/* Stats */
[data-theme="dark"] .s-card {
    background: rgba(21, 29, 47, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}
[data-theme="dark"] .s-card:hover {
    background: rgba(21, 29, 47, 0.7) !important;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.3) !important;
}
[data-theme="dark"] .s-card div[style*="color:var(--gray-800)"] {
    color: var(--white) !important;
}
[data-theme="dark"] .s-card:nth-child(1):hover { border-color: rgba(16, 185, 129, 0.3) !important; }
[data-theme="dark"] .s-card:nth-child(2):hover { border-color: rgba(139, 92, 246, 0.3) !important; }
[data-theme="dark"] .s-card:nth-child(3):hover { border-color: rgba(245, 158, 11, 0.3) !important; }
[data-theme="dark"] .s-card:nth-child(4):hover { border-color: rgba(239, 68, 68, 0.3) !important; }

/* Promotional Cards */
[data-theme="dark"] .cloud-quick-card {
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.02) 0%, rgba(201, 169, 110, 0.06) 100%) !important;
    border-color: rgba(201, 169, 110, 0.22) !important;
}
[data-theme="dark"] .cloud-quick-card:hover {
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.05) 0%, rgba(201, 169, 110, 0.12) 100%) !important;
    border-color: rgba(201, 169, 110, 0.35) !important;
}
[data-theme="dark"] a.cloud-quick-card[style*="10b981"] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, rgba(16, 185, 129, 0.06) 100%) !important;
    border-color: rgba(16, 185, 129, 0.22) !important;
}
[data-theme="dark"] a.cloud-quick-card[style*="10b981"]:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.12) 100%) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}
[data-theme="dark"] .cloud-quick-card h3 {
    color: var(--white) !important;
}

/* App Search and category buttons */
[data-theme="dark"] #appSearch {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--white) !important;
}
[data-theme="dark"] #appSearch:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--primary-500) !important;
}
[data-theme="dark"] .cat-filter-btn {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--gray-400) !important;
}
[data-theme="dark"] .cat-filter-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--primary-400) !important;
    color: var(--primary-300) !important;
}
[data-theme="dark"] .cat-filter-btn.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

/* App Cards */
[data-theme="dark"] .app-card {
    background: rgba(21, 29, 47, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
}
[data-theme="dark"] .app-card:hover {
    background: rgba(21, 29, 47, 0.6) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.25) !important;
}
[data-theme="dark"] .app-name {
    color: var(--gray-300) !important;
}
[data-theme="dark"] .pin-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}
[data-theme="dark"] .pin-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Activity Feed */
[data-theme="dark"] #activitySection {
    background: rgba(21, 29, 47, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
}
[data-theme="dark"] #activitySection h3 {
    color: var(--white) !important;
}
[data-theme="dark"] #activityLog::before {
    background: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] #activityLog > div::before {
    border-color: #0c0e17 !important;
}
[data-theme="dark"] #activityLog > div:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}
[data-theme="dark"] #activityLog > div span[style*="color:var(--gray-700)"] {
    color: var(--gray-300) !important;
}

/* App Store */
[data-theme="dark"] .store-banner {
    background: linear-gradient(135deg, #064e3b, #0c2d24) !important;
}
[data-theme="dark"] .store-card-v2 {
    background: rgba(21, 29, 47, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
}
[data-theme="dark"] .store-card-v2:hover {
    background: rgba(21, 29, 47, 0.6) !important;
    border-color: var(--primary-500) !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3) !important;
}
[data-theme="dark"] .store-card-name {
    color: var(--white) !important;
}
[data-theme="dark"] .store-card-desc {
    color: var(--gray-400) !important;
}
[data-theme="dark"] #comingSoonSection h3 {
    color: var(--white) !important;
}
[data-theme="dark"] #comingSoonSection div[style*="dashed"] {
    background: rgba(255, 255, 255, 0.01) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] #comingSoonSection div[style*="dashed"]:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}
[data-theme="dark"] #comingSoonSection div[style*="dashed"] div[style*="color:var(--gray-800)"] {
    color: var(--white) !important;
}

/* Footer & Notifications */
[data-theme="dark"] .dashboard-footer {
    border-color: rgba(255, 255, 255, 0.05) !important;
}
[data-theme="dark"] #notifDropdown {
    background: #0f1422 !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4) !important;
}
[data-theme="dark"] #notifDropdown span[style*="color:var(--gray-800)"] {
    color: var(--white) !important;
}
[data-theme="dark"] #notifDropdown div[style*="border-bottom"] {
    border-color: rgba(255,255,255,0.06) !important;
}
[data-theme="dark"] #notifDropdown div[style*="background"] {
    background: rgba(255,255,255,0.02) !important;
    border-color: rgba(255,255,255,0.04) !important;
}

/* ── Responsive Polish ───────────────────────────────────── */
@media (max-width: 1024px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .top-header {
        height: auto !important;
        padding: 12px 16px !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin: 10px 10px !important;
    }
    .top-header.scrolled {
        margin: 6px 6px !important;
    }
    .header-center {
        width: 100% !important;
        justify-content: center !important;
    }
    .tab-btn {
        flex: 1 !important;
        justify-content: center !important;
    }
    .header-left {
        width: 100% !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }
    .welcome-section {
        padding: 24px 20px !important;
        text-align: center !important;
    }
    .welcome-greeting {
        font-size: 26px !important;
    }
    .welcome-section::after {
        display: none;
    }
    .dashboard-clock {
        justify-content: center;
    }
    #activityLog::before {
        right: 4px;
    }
    #activityLog > div {
        padding-right: 18px !important;
    }
    #activityLog > div::before {
        right: 1px;
    }
}

@media (max-width: 480px) {
    .stats-cards {
        grid-template-columns: 1fr !important;
    }
    .store-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Live status and Stagger Animations ── */
@keyframes pingGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.stagger-in {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeInUpStagger 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUpStagger {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════
   ULTIMATE DASHBOARD CSS OVERRIDES (V2)
   ═══════════════════════════════════════════════════════════ */

/* ── Spotlight Search ────────────────────────────────────── */
.spotlight-search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 20;
}
.spotlight-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}
#appSearch {
    width: 100%;
    height: 60px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(226, 232, 240, 0.4) !important;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    padding: 0 54px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--gray-800) !important;
    box-shadow: 0 12px 35px rgba(0,0,0,0.04) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#appSearch:focus {
    background: var(--white) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 15px 45px rgba(16, 185, 129, 0.12), 0 0 0 4px rgba(16, 185, 129, 0.05) !important;
    transform: translateY(-2px);
}
.spotlight-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    transition: color 0.3s;
    z-index: 2;
}
[dir="rtl"] .spotlight-icon { right: 20px; }
[dir="ltr"] .spotlight-icon { left: 20px; }
#appSearch:focus + .spotlight-icon { color: var(--primary); }

.spotlight-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 60%);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}
#appSearch:focus ~ .spotlight-glow { opacity: 1; }

/* ── Split Layout ────────────────────────────────────────── */
.dashboard-split-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 32px;
    align-items: start;
}
@media (max-width: 1100px) {
    .dashboard-split-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Bento Grid (Stats) ──────────────────────────────────── */
.dashboard-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}
@media (max-width: 992px) {
    .dashboard-bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .dashboard-bento-grid { grid-template-columns: 1fr; }
}
.bento-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px !important;
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(20px) saturate(1.7) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.7) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: 26px !important;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease, border-color 0.45s ease !important;
    transform-style: preserve-3d;
}
.bento-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    transform: translateZ(20px);
}
.bento-badge {
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(226, 232, 240, 0.6);
    color: var(--gray-500);
}
.bento-badge.live-badge { color: #059669; background: #dcfce7; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15); animation: pulse-soft 2s infinite alternate; }
.bento-badge.online-badge { color: #ef4444; background: #fee2e2; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15); }

.bento-card-value {
    font-size: 32px;
    font-weight: 900;
    color: var(--gray-800);
    line-height: 1;
    margin-bottom: 6px;
    transform: translateZ(35px);
    letter-spacing: -0.5px;
}
.bento-card-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--gray-400);
    transform: translateZ(15px);
}

/* ── Dynamic Brand-Colored Card Hover Glow ── */
.app-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.app-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 38px -8px var(--hover-glow, rgba(5, 150, 105, 0.15)),
                0 0 22px 0 var(--hover-glow-soft, rgba(5, 150, 105, 0.05)) !important;
    border-color: var(--hover-glow, var(--primary-300)) !important;
}

/* ── Cyber Tech Background & Shapes ── */
.cyber-grid {
    position: fixed;
    inset: 0;
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(201, 169, 110, 0.025) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(201, 169, 110, 0.025) 1px, transparent 1px);
    z-index: -5;
    pointer-events: none;
}
.tech-shape {
    position: fixed;
    pointer-events: none;
    z-index: -8;
}
.shape-1 {
    top: 15%;
    left: 4%;
    animation: float-rotate 25s linear infinite;
}
.shape-2 {
    top: 60%;
    right: 5%;
    animation: float-rotate-reverse 35s linear infinite;
}
.shape-3 {
    bottom: 8%;
    left: 10%;
    animation: float-rotate 30s linear infinite;
}

@keyframes float-rotate {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-24px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}
@keyframes float-rotate-reverse {
    0% { transform: translateY(0) rotate(360deg); }
    50% { transform: translateY(24px) rotate(180deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

    background: rgba(226, 232, 240, 0.5);
    color: var(--gray-500);
}
.bento-badge.live-badge { color: #059669; background: #dcfce7; }
.bento-badge.online-badge { color: #ef4444; background: #fee2e2; }

.bento-card-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--gray-800);
    line-height: 1;
    margin-bottom: 4px;
    transform: translateZ(30px);
}
.bento-card-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    transform: translateZ(15px);
}

/* ── Gamified Progress Widget ────────────────────────────── */
.progress-widget {
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(248,250,252,0.9) 100%) !important;
}
.progress-circle-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    transform: translateZ(25px);
    flex-shrink: 0;
}
.progress-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.circle-bg {
    fill: none;
    stroke: rgba(226, 232, 240, 0.6);
    stroke-width: 3;
}
.circle-bar {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease-out;
}
.progress-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 900;
    color: var(--primary-700);
}
.progress-tasks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    transform: translateZ(10px);
}
.task {
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
}
.task.done {
    background: #dcfce7;
    color: #059669;
}
.task.done i { width: 14px; height: 14px; }
.task.pending {
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-400);
}
.task.pending i { width: 14px; height: 14px; }

/* ── Apps Horizontal Carousel ────────────────────────────── */
.apps-carousel-container {
    margin-top: 16px;
    margin-bottom: 24px;
    position: relative;
}
.apps-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 16px; /* space for scrollbar */
    padding-top: 8px;
    -webkit-overflow-scrolling: touch;
}
.apps-carousel::-webkit-scrollbar {
    height: 6px;
}
.apps-carousel .app-card {
    min-width: 170px;
    scroll-snap-align: start;
    flex-shrink: 0;
    /* ensure proper padding and height for carousel view */
    padding: 24px 12px !important;
}

/* ── Sidebar (Timeline & Guides) ─────────────────────────── */
.activity-timeline-box {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 24px !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.02) !important;
    overflow: hidden;
}
.timeline-header {
    padding: 20px 20px 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}
.clear-timeline-btn {
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-400);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}
.clear-timeline-btn:hover { color: #ef4444; }
.timeline-feed {
    max-height: 400px;
    overflow-y: auto;
    padding: 12px;
}
.timeline-feed::-webkit-scrollbar { width: 4px; }

/* Guides Sidebar Links */
.guide-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}
.guide-sidebar-link:hover {
    background: var(--white);
    border-color: var(--primary-200);
    box-shadow: 0 8px 25px rgba(0,0,0,0.03);
    text-decoration: none;
}
.g-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transform: translateZ(10px);
}
.g-icon i { width: 20px; height: 20px; }
.g-text { transform: translateZ(5px); }
.g-text h4 {
    margin: 0 0 2px 0;
    font-size: 13px;
    font-weight: 800;
    color: var(--gray-800);
}
.g-text span {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
}

/* ── Dark Mode Tweaks for New Components ─────────────────── */
[data-theme="dark"] #appSearch {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(255,255,255,0.05) !important;
    color: var(--white) !important;
}
[data-theme="dark"] .activity-timeline-box {
    background: rgba(15, 23, 42, 0.4) !important;
    border-color: rgba(255,255,255,0.05) !important;
}
[data-theme="dark"] .guide-sidebar-link {
    background: rgba(15, 23, 42, 0.3);
    border-color: rgba(255,255,255,0.05);
}
[data-theme="dark"] .progress-widget {
    background: rgba(15, 23, 42, 0.4) !important;
}
[data-theme="dark"] .bento-badge {
    background: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .bento-card-value {
    color: var(--white);
}

/* ── Ultimate Dashboard Layout Patch ─────────────────────── */
/* Fix CSS Grid blowout caused by flex carousels */
.dashboard-split-layout, .dashboard-main-panel, .dashboard-sidebar {
    min-width: 0;
    max-width: 100%;
}

/* Fix Welcome Network Illustration Positioning */
.welcome-network-illustration {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.15 !important; /* Make it subtle */
    pointer-events: none;
    z-index: 0;
}
[dir="rtl"] .welcome-network-illustration { left: 5%; right: auto; }
[dir="ltr"] .welcome-network-illustration { right: 5%; left: auto; }

.welcome-section > * {
    position: relative;
    z-index: 2;
}
.welcome-network-illustration {
    z-index: 1 !important;
}

/* ── Ultimate Dashboard Layout Patch 2: Cards & Scroll ─────────────────────── */

/* Force fixed width on carousel cards so long text doesn't stretch them */
.apps-carousel .app-card {
    min-width: 240px !important;
    max-width: 240px !important;
    flex-basis: 240px !important;
    flex-shrink: 0 !important;
    /* allow long text to wrap naturally */
    white-space: normal !important;
    padding: 24px 16px !important;
}

/* Make horizontal scrollbar highly visible and attractive */
.apps-carousel {
    padding-bottom: 20px !important; /* Extra room for scrollbar */
}
.apps-carousel::-webkit-scrollbar {
    height: 8px !important;
    background: rgba(0, 0, 0, 0.04) !important;
    border-radius: 8px !important;
}
.apps-carousel::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.4) !important;
    border-radius: 8px !important;
}
.apps-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.7) !important;
}

/* Dark mode scrollbar */
[data-theme="dark"] .apps-carousel::-webkit-scrollbar {
    background: rgba(255, 255, 255, 0.03) !important;
}
[data-theme="dark"] .apps-carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* ── Ultimate Dashboard Layout Patch 3: Stack Cards Instead of Carousel ─────────────────────── */

/* Override carousel to be a responsive wrapping grid */
.apps-carousel {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 24px !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    padding-bottom: 0 !important;
}
.apps-carousel::-webkit-scrollbar {
    display: none !important; /* Hide the scrollbar since it's no longer scrolling */
}

/* Let the cards fill their grid tracks naturally */
.apps-carousel .app-card {
    min-width: 100% !important;
    max-width: 100% !important;
    flex-basis: auto !important;
    width: 100% !important;
    margin: 0 !important;
}

/* ── Ultimate Dashboard Layout Patch 4: Smaller Cards, 3 Columns ─────────────────────── */

/* Force exactly 3 columns on desktop */
.apps-carousel {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important; /* Reduced gap */
}

@media (max-width: 992px) {
    .apps-carousel {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 576px) {
    .apps-carousel {
        grid-template-columns: 1fr !important;
    }
}

/* Make the cards themselves smaller and more compact */
.apps-carousel .app-card {
    padding: 16px 12px !important;
}

.apps-carousel .app-icon-wrap {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 10px !important;
    border-radius: 12px !important;
}

.apps-carousel .app-icon-wrap svg {
    width: 20px !important;
    height: 20px !important;
}

.apps-carousel .app-name {
    font-size: 13.5px !important;
    margin-bottom: 4px !important;
}

.apps-carousel .app-desc {
    font-size: 10.5px !important;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
}

.apps-carousel .app-btn {
    padding: 5px 16px !important;
    font-size: 11px !important;
}

/* ── Ultimate Dashboard Layout Patch 5: Fix Gaps and Card Width ─────────────────────── */

/* 1. Remove the huge vertical margins */
.category-section {
    margin-bottom: 24px !important;
}
.apps-carousel-container {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}
.section-header {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

/* 2. Fix the grid and card sizes to prevent weird horizontal centering and vertical gaps */
.apps-carousel {
    gap: 16px !important;
}
.apps-carousel .app-card {
    max-width: 100% !important; /* Override the old 240px */
    min-width: 0 !important;
    width: 100% !important;
    margin-bottom: 0 !important; /* Override the old 40px margin! This caused the huge vertical gap */
}

/* ── Ultimate Dashboard Layout Patch 6: SVG Animations ────────────────────── */
@keyframes welcome-dash {
    to {
        stroke-dashoffset: -40;
    }
}
@keyframes welcome-pulse-node {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.25); opacity: 1; }
}
@keyframes welcome-float-animation {
    0%, 100% { transform: translateY(-50%) translateY(0px) rotate(0deg); }
    50% { transform: translateY(-50%) translateY(-8px) rotate(2deg); }
}

.animate-float {
    animation: welcome-float-animation 6s ease-in-out infinite !important;
}

.welcome-network-illustration svg path {
    stroke-dasharray: 6;
    animation: welcome-dash 6s linear infinite !important;
}

.neural-node {
    transform-origin: center;
    animation: welcome-pulse-node 4s ease-in-out infinite !important;
}
.neural-node:nth-child(even) {
    animation-delay: 2s !important;
}
.neural-node:nth-child(3n) {
    animation-delay: 1s !important;
}

/* ═══════════════════════════════════════════════════════════
   Premium Dashboard Effects — App Cards & Welcome
   ═══════════════════════════════════════════════════════════ */

/* Staggered app card entrance */
@keyframes dashCardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.app-card {
    animation: dashCardIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Enhanced hover shimmer line */
.app-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
    z-index: 3;
    pointer-events: none;
}
.app-card:hover::after {
    left: 150%;
}

/* Welcome section enhanced entrance */
.welcome-section {
    animation: dashCardIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.welcome-section:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06) !important;
}

/* Welcome greeting gradient text */
.welcome-greeting {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-800) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Enhanced stat card glow on dashboard */
.dashboard-body .s-card {
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.dashboard-body .s-card:hover {
    transform: translateY(-8px) scale(1.03) !important;
}

/* Enhanced search bar animation */
#appSearch {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#appSearch:focus {
    transform: scale(1.01);
    box-shadow: 0 10px 30px -6px rgba(5, 150, 105, 0.15), 0 0 0 3px rgba(5, 150, 105, 0.08) !important;
}

/* Category filter button ripple */
.cat-filter-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
}
.cat-filter-btn:active {
    transform: scale(0.95) !important;
}

/* Section header reveal */
.section-header {
    animation: dashCardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Floating header glassmorphism enhancement */
.top-header {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    animation: dashCardIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Premium notification dropdown */
#notifPanel {
    animation: notifSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Activity log enhanced timeline */
#activityLog > div {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#activityLog > div:hover {
    padding-right: 28px !important;
    background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.03)) !important;
}

/* Dark mode welcome text */
[data-theme="dark"] .welcome-greeting {
    background: linear-gradient(135deg, #f8fafc 0%, var(--primary-300) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
