/* High-Performance Font Display & Layout Stability Rules */
@font-face {
    font-display: swap;
}

:root {
    font-display: swap;
    --primary-color: #2563EB;
    --primary-color: #2563EB;
    --primary-hover: #1D4ED8;
    --secondary-color: #0EA5E9;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --bg-color: #F6F8FC;
    --card-bg: #FFFFFF;
    --dark-color: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;

    /* Design Specifications */
    --max-width: 1400px;
    --container-max: 1320px;
    --border-radius-card: 22px;
    --border-radius-hero: 25px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 15px 35px rgba(37, 99, 235, 0.12);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
    --gradient-hero: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #3B82F6 100%);
    --gradient-orange: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    --gradient-purple: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* KEYFRAME ANIMATIONS & MASTER ANIMATION SUITE */
@keyframes floatIcon {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-7px) rotate(3deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes alertPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes livePulseHalo {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes shimmerGlow {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes flashGreen {
    0% {
        border-color: #10B981 !important;
        box-shadow: 0 0 18px rgba(16, 185, 129, 0.45) !important;
        transform: translateY(-3px) scale(1.02);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes flashRed {
    0% {
        border-color: #EF4444 !important;
        box-shadow: 0 0 18px rgba(239, 68, 68, 0.45) !important;
        transform: translateY(-3px) scale(1.02);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* INTERACTIVE ANIMATION CLASSES */
.price-pulse-up,
.flash-green {
    animation: flashGreen 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    color: #10B981 !important;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.price-pulse-down,
.flash-red {
    animation: flashRed 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    color: #EF4444 !important;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.animate-bounce {
    animation: alertPulse 0.5s ease-in-out 2;
}

.live-pulse-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.live-pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10B981;
    animation: livePulseHalo 1.8s infinite;
    margin-right: 6px;
}

/* Card Hover Micro-Animations */
.card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12) !important;
}

/* Button Active Feedback & Ripple */
.btn {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}

.btn:active {
    transform: scale(0.96);
}

.btn-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

/* Shimmer Loading Skeleton */
.placeholder-glow .placeholder {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 37%, #e2e8f0 63%);
    background-size: 400% 100%;
    animation: shimmerGlow 1.4s ease infinite;
}

.quick-card-icon i,
.sun-time-box i,
.brand-logo i {
    animation: floatIcon 3.5s ease-in-out infinite;
}

.quick-card,
.category-card,
.panchangam-card,
.calendar-card {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.quick-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.15) !important;
}

.main-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
}

.custom-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 15px;
}

/* Utility Classes */
.rounded-card {
    border-radius: var(--border-radius-card) !important;
}

.shadow-custom {
    box-shadow: var(--card-shadow) !important;
}

.gradient-btn {
    background: var(--gradient-primary);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.38);
    color: #ffffff !important;
}

/* TOP BAR TICKER */
.top-bar-ticker {
    height: 40px;
    background-color: #0F172A;
    color: #CBD5E1;
    font-size: 13px;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker-label {
    background: var(--gradient-primary);
    color: #ffffff;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 35s linear infinite;
}

.ticker-wrap:hover .ticker-move {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
}

.ticker-item .badge-up {
    color: #10B981;
    font-weight: 600;
}

.ticker-item .badge-down {
    color: #EF4444;
    font-weight: 600;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* HEADER NAVBAR */
.header-nav {
    background-color: #ffffff;
    position: sticky;
    top: 40px;
    z-index: 1030;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.header-nav.scrolled {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   BEST ANIMATED BRAND LOGO & NEWZEEFY TEXT SYSTEM
   ========================================== */
.brand-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 2px 4px;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: logoFloatGlow 3.5s ease-in-out infinite;
}

.brand-logo-img {
    height: 40px !important;
    width: 40px !important;
    max-height: 42px !important;
    object-fit: contain;
    filter: drop-shadow(0 3px 10px rgba(37, 99, 235, 0.4));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.12) rotate(-3deg);
    filter: drop-shadow(0 6px 18px rgba(56, 189, 248, 0.8));
}

.brand-name-text {
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    transition: transform 0.3s ease, letter-spacing 0.3s ease;
}

/* Premium Animated Fluid Metallic Gradient Text */
.brand-text-prefix {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 30%, #7c3aed 65%, #f43f5e 100%) !important;
    background-size: 300% 300% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #2563eb;
    animation: brandGradientFlow 4s ease infinite !important;
    font-weight: 900 !important;
}

.brand-text-suffix {
    background: linear-gradient(135deg, #0f172a 0%, #334155 45%, #2563eb 85%, #06b6d4 100%) !important;
    background-size: 300% 300% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #0f172a;
    animation: brandGradientFlow 4s ease infinite !important;
    font-weight: 900 !important;
    margin-left: 2px;
}

/* Dark Mode Neon Animated Text */
body.dark-mode .brand-text-suffix,
[data-theme="dark"] .brand-text-suffix,
.footer-section .brand-text-suffix {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 40%, #38bdf8 80%, #a855f7 100%) !important;
    background-size: 300% 300% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #ffffff;
}

body.dark-mode .brand-text-prefix,
[data-theme="dark"] .brand-text-prefix {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 35%, #c084fc 70%, #fb7185 100%) !important;
    background-size: 300% 300% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #38bdf8;
}

/* Hover Scaling & Wide Lettering */
.brand-logo:hover .brand-name-text {
    letter-spacing: 2px !important;
    transform: scale(1.04);
}

@keyframes brandGradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes logoFloatGlow {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-4px);
    }
}

.search-box-wrap {
    position: relative;
    max-width: 520px;
    width: 100%;
}

.search-box-wrap input {
    width: 100%;
    height: 46px;
    background: #F1F5F9;
    border: 1.5px solid transparent;
    border-radius: 23px;
    padding: 0 50px 0 22px;
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition-smooth);
}

.search-box-wrap input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-box-wrap .search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
}

.nav-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #F1F5F9;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    transition: var(--transition-smooth);
    border: none;
}

.nav-icon-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* NOTIFICATION SYSTEM HIGH-CONTRAST STYLING */
.notif-dropdown-title {
    color: #1e293b;
}

body.dark-mode .notif-dropdown-title,
[data-theme="dark"] .notif-dropdown-title {
    color: #F8FAFC !important;
}

.notif-item-title {
    color: #1e293b;
}

body.dark-mode .notif-item-title,
[data-theme="dark"] .notif-item-title {
    color: #60A5FA !important;
}

.notif-item-desc {
    color: #64748B;
}

body.dark-mode .notif-item-desc,
[data-theme="dark"] .notif-item-desc {
    color: #94A3B8 !important;
}

.nav-icon-btn .badge-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ef4444;
    border: 2px solid #F1F5F9;
    box-sizing: content-box;
}

body.dark-mode .nav-icon-btn .badge-dot,
[data-theme="dark"] .nav-icon-btn .badge-dot {
    border: 2px solid #334155 !important;
}

.nav-icon-btn .badge-dot.d-none,
.nav-icon-btn .badge-dot.is-read {
    display: none !important;
    visibility: hidden !important;
}

/* SUB-NAVIGATION BAR & MARQUEE TICKER PILLS */
.sub-nav-bar {
    position: sticky;
    top: 40px;
    z-index: 1020;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.nav-ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2px 0;
}

.nav-ticker-move {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: navTickerMarquee 35s linear infinite;
    will-change: transform;
}

.hero-translucent-pill {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
}

.sub-nav-bar:hover .nav-ticker-move,
.nav-ticker-wrap:hover .nav-ticker-move {
    animation-play-state: paused;
}

@keyframes navTickerMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.sub-nav-pill,
.sub-nav-bar .menu-item a {
    color: #334155 !important;
    padding: 6px 13px !important;
    border-radius: 20px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
    display: inline-flex !important;
    align-items: center !important;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.sub-nav-pill i,
.sub-nav-bar .menu-item a i {
    font-size: 14px;
}

.sub-nav-pill:hover,
.sub-nav-bar .menu-item a:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.sub-nav-pill:hover i,
.sub-nav-bar .menu-item a:hover i {
    color: #ffffff !important;
}

.sub-nav-pill.active,
.sub-nav-bar .menu-item.current-menu-item a,
.sub-nav-bar .menu-item.active a {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.sub-nav-pill.active i,
.sub-nav-bar .menu-item.current-menu-item a i,
.sub-nav-bar .menu-item.active a i {
    color: #ffffff !important;
}

.sub-nav-bar .menu-item {
    display: inline-block;
    list-style: none;
}

/* Mobile Drawer Nav Styling */
.mobile-drawer-nav {
    list-style: none;
    padding-left: 0;
}

.mobile-drawer-nav .menu-item a {
    display: flex !important;
    align-items: center !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    margin-bottom: 6px;
}

.mobile-drawer-nav .menu-item a:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
}

/* Dark Mode Overrides for Sub Nav Bar */
body.dark-mode .sub-nav-bar,
[data-theme="dark"] .sub-nav-bar {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
}

body.dark-mode .sub-nav-arrow,
[data-theme="dark"] .sub-nav-arrow {
    background-color: #1e293b !important;
    color: #38bdf8 !important;
    border-color: #334155 !important;
}

body.dark-mode .sub-nav-arrow:hover,
[data-theme="dark"] .sub-nav-arrow:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

body.dark-mode .sub-nav-pill,
body.dark-mode .sub-nav-bar .menu-item a,
[data-theme="dark"] .sub-nav-pill,
[data-theme="dark"] .sub-nav-bar .menu-item a {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

body.dark-mode .sub-nav-pill:hover,
body.dark-mode .sub-nav-bar .menu-item a:hover,
[data-theme="dark"] .sub-nav-pill:hover,
[data-theme="dark"] .sub-nav-bar .menu-item a:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
}


.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 12px 4px 4px;
    background: #F1F5F9;
    border-radius: 30px;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition-smooth);
    border: none;
}

.user-profile-btn:hover {
    background: #E2E8F0;
}

.user-profile-btn img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile-btn .user-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.user-profile-btn .user-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* HERO DASHBOARD CARD */
.hero-dashboard-card {
    background: var(--gradient-hero);
    border-radius: var(--border-radius-hero);
    color: #ffffff;
    padding: 35px 40px;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.22);
    position: relative;
    overflow: hidden;
}

.hero-dashboard-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.clock-display {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.clock-period {
    font-size: 22px;
    font-weight: 600;
    margin-left: 6px;
    opacity: 0.9;
}

.hero-date-badge {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sun-time-box {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sun-time-box>div {
    min-width: 0;
    flex: 1;
}

.sun-time-box i {
    font-size: 24px;
    color: #FBBF24;
    flex-shrink: 0;
}

.sun-time-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.85;
}

.sun-time-val {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* FEATURE CARDS (Panchangam & Calendar) */
.panchangam-card {
    background: var(--gradient-orange);
    border-radius: var(--border-radius-card);
    color: #ffffff;
    padding: 26px 30px;
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.22);
    position: relative;
    overflow: hidden;
    min-height: 155px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calendar-card {
    background: var(--gradient-purple);
    border-radius: var(--border-radius-card);
    color: #ffffff;
    padding: 26px 30px;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.22);
    position: relative;
    overflow: hidden;
    min-height: 155px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.feature-card-content {
    flex: 1 1 auto;
    min-width: 0;
}

.feature-card-action {
    flex: 0 0 auto;
}

.feature-card-btn {
    background: #ffffff;
    color: var(--dark-color) !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    padding: 10px 24px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: var(--transition-smooth);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: auto;
}

.feature-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    background: #ffffff;
    color: #2563eb !important;
}

.card-feature-title {
    font-size: 22px;
    line-height: 1.3;
}

.card-feature-desc {
    font-size: 13px;
    opacity: 0.9;
}

/* QUICK ACCESS CARDS (16 Cards) */
.quick-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-card);
    padding: 22px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 142px;
}


.quick-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(37, 99, 235, 0.15);
}

.quick-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.quick-card-icon.blue {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.quick-card-icon.amber {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.quick-card-icon.emerald {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.quick-card-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.quick-card-icon.sky {
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary-color);
}

.quick-card-icon.rose {
    background: rgba(244, 63, 94, 0.1);
    color: #F43F5E;
}

.quick-card-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-soft-success {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.badge-soft-primary {
    background: rgba(37, 99, 235, 0.12);
    color: #2563EB;
}

.badge-soft-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #D97706;
}

.quick-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.quick-card-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
}

.quick-card-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* CATEGORY CARDS SECTION */
.category-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.02);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.category-card-img-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-img-wrap i {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition-smooth);
}

.category-card:hover .category-card-img-wrap i {
    transform: scale(1.1);
}

.category-card-count {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.category-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.category-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* LIVE MARKET CHART SECTION */
.chart-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-card);
    padding: 30px;
    box-shadow: var(--card-shadow);
}

.chart-filter-btn {
    border: 1.5px solid var(--border-color);
    background: transparent;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.chart-filter-btn:hover,
.chart-filter-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.time-filter-btn {
    border: none;
    background: #F1F5F9;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.time-filter-btn:hover,
.time-filter-btn.active {
    background: var(--dark-color);
    color: #ffffff;
}

/* NEWSLETTER SECTION */
.newsletter-card {
    background: var(--gradient-primary);
    border-radius: var(--border-radius-card);
    padding: 45px;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}

.newsletter-input-group {
    background: #ffffff;
    border-radius: 16px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.newsletter-input-group input {
    border: none;
    outline: none;
    box-shadow: none;
    font-size: 14px;
    width: 100%;
    color: var(--dark-color);
}

.newsletter-input-group input::placeholder {
    color: #94A3B8;
}

/* FOOTER SECTION */
.footer-section {
    background: #0b1329 !important;
    color: #ffffff !important;
    padding-top: 70px;
    padding-bottom: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
    clear: both !important;
    width: 100% !important;
}

body.dark-mode .footer-section,
[data-theme="dark"] .footer-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #070d1e !important;
    color: #ffffff !important;
}

.footer-section p,
.footer-section div,
.footer-section span,
.footer-section small {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-title {
    color: #fbbf24 !important;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 35px;
    height: 3px;
    background: #fbbf24;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #fbbf24 !important;
    transform: translateX(4px);
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icon-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    margin-top: 50px;
    font-size: 13px;
}

/* BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
    border: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
}

/* ==========================================================================
   DARK MODE SYSTEM (body.dark-mode)
   ========================================================================== */
body.dark-mode {
    --bg-color: #0F172A;
    --card-bg: #1E293B;
    --dark-color: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: #334155;
    background-color: #0F172A;
    color: #F8FAFC;
}

body.dark-mode .header-nav {
    background-color: #1E293B;
    border-bottom: 1px solid #334155;
}

body.dark-mode .brand-logo,
body.dark-mode .user-name,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #F8FAFC !important;
}

body.dark-mode .hero-clock-card {
    background: linear-gradient(135deg, #020617 0%, #1E1B4B 50%, #1E293B 100%) !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .panchangam-card {
    background: linear-gradient(135deg, #2E1065 0%, #1E1B4B 100%) !important;
    border: 1px solid #4C1D95 !important;
    color: #F8FAFC !important;
}

body.dark-mode .calendar-card {
    background: linear-gradient(135deg, #172554 0%, #0F172A 100%) !important;
    border: 1px solid #1E40AF !important;
    color: #F8FAFC !important;
}

body.dark-mode .sun-time-box {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode .quick-card,
body.dark-mode .chart-card,
body.dark-mode .category-card,
body.dark-mode .depth-card,
body.dark-mode .forecast-card,
body.dark-mode .weather-table-card {
    background-color: #1E293B !important;
    border-color: #334155 !important;
    color: #F8FAFC !important;
}

body.dark-mode .quick-card-title,
body.dark-mode .quick-card-value {
    color: #F8FAFC !important;
}

body.dark-mode .quick-card-sub,
body.dark-mode .text-muted {
    color: #94A3B8 !important;
}

body.dark-mode .header-nav {
    background-color: #1E293B !important;
    border-bottom: 1px solid #334155 !important;
}

body.dark-mode .brand-logo {
    color: #F8FAFC !important;
}

body.dark-mode .nav-icon-btn {
    background-color: #334155 !important;
    color: #F8FAFC !important;
}

body.dark-mode .nav-icon-btn:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

body.dark-mode .user-profile-btn {
    background-color: #334155 !important;
    color: #F8FAFC !important;
}

body.dark-mode .user-profile-btn:hover {
    background-color: #475569 !important;
}

body.dark-mode .user-name {
    color: #F8FAFC !important;
}

body.dark-mode .user-role {
    color: #94A3B8 !important;
}

body.dark-mode .search-box-wrap input {
    background: #334155 !important;
    color: #F8FAFC !important;
    border-color: #475569 !important;
}

body.dark-mode .search-box-wrap input::placeholder {
    color: #94A3B8 !important;
}

body.dark-mode .search-box-wrap .search-icon {
    color: #94A3B8 !important;
}

body.dark-mode .feature-card-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

body.dark-mode .feature-card-btn:hover {
    background: #ffffff !important;
    color: var(--dark-color) !important;
}

body.dark-mode .time-filter-btn,
body.dark-mode .chart-filter-btn {
    background-color: #334155 !important;
    color: #F8FAFC !important;
    border: 1px solid #475569 !important;
}

body.dark-mode .time-filter-btn.active,
body.dark-mode .chart-filter-btn.active {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

body.dark-mode .category-card {
    background-color: #1E293B !important;
    border-color: #334155 !important;
}

body.dark-mode .category-card-title {
    color: #F8FAFC !important;
}

body.dark-mode .category-card-desc {
    color: #94A3B8 !important;
}

body.dark-mode .dropdown-menu {
    background-color: #1E293B !important;
    color: #F8FAFC !important;
    border-color: #334155 !important;
}

body.dark-mode .dropdown-item {
    color: #E2E8F0 !important;
}

body.dark-mode .dropdown-item:hover {
    background-color: #334155 !important;
    color: #ffffff !important;
}

/* ANIMATED COLORFUL MODAL SYSTEM */
.custom-animated-modal .modal-dialog {
    transform: scale(0.85) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-animated-modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-info-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modal-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

/* DARK MODE MODAL STYLES */
body.dark-mode .modal-content {
    background-color: #1E293B !important;
    color: #F8FAFC !important;
    border: 1px solid #334155 !important;
}

body.dark-mode .modal-body {
    background-color: #0F172A !important;
}

body.dark-mode .modal-info-card {
    background-color: #1E293B !important;
    color: #F8FAFC !important;
    border-color: #334155 !important;
}

body.dark-mode .modal-info-card h6 {
    color: #F8FAFC !important;
}

body.dark-mode .modal-footer {
    background-color: #1E293B !important;
    border-top: 1px solid #334155 !important;
}

/* UNIVERSAL DARK MODE OVERRIDES */
body.dark-mode .card,
[data-bs-theme="dark"] .card,
body.dark-mode .bg-white,
[data-bs-theme="dark"] .bg-white,
body.dark-mode .weather-card,
[data-bs-theme="dark"] .weather-card {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

body.dark-mode .bg-light,
[data-bs-theme="dark"] .bg-light {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

body.dark-mode .text-dark,
[data-bs-theme="dark"] .text-dark,
body.dark-mode h1,
[data-bs-theme="dark"] h1,
body.dark-mode h2,
[data-bs-theme="dark"] h2,
body.dark-mode h3,
[data-bs-theme="dark"] h3,
body.dark-mode h4,
[data-bs-theme="dark"] h4,
body.dark-mode h5,
[data-bs-theme="dark"] h5,
body.dark-mode h6,
[data-bs-theme="dark"] h6,
body.dark-mode strong,
[data-bs-theme="dark"] strong {
    color: #f8fafc !important;
}

body.dark-mode .text-muted,
[data-bs-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

body.dark-mode .list-group-item,
[data-bs-theme="dark"] .list-group-item {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

body.dark-mode .table,
[data-bs-theme="dark"] .table,
body.dark-mode .table th,
[data-bs-theme="dark"] .table th,
body.dark-mode .table td,
[data-bs-theme="dark"] .table td,
body.dark-mode .table-light,
[data-bs-theme="dark"] .table-light {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

body.dark-mode .accordion-item,
[data-bs-theme="dark"] .accordion-item,
body.dark-mode .accordion-button,
[data-bs-theme="dark"] .accordion-button {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

body.dark-mode .accordion-button:not(.collapsed),
[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #0f172a !important;
    color: #38bdf8 !important;
}

/* ==========================================
   PRO GOLD PORTAL ANIMATIONS & PRICE ICONS
   ========================================== */
@keyframes pricePulseGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 15px 5px rgba(217, 119, 6, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
    }
}

@keyframes coinSpinSlow {
    0% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(180deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

@keyframes skeletonShimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.price-pulse-active {
    animation: pricePulseGlow 1.2s ease-in-out infinite;
}

.coin-spin-icon {
    display: inline-block;
    animation: coinSpinSlow 6s linear infinite;
}

.gold-price-badge {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.skeleton-box {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 104px;
    animation: skeletonShimmer 1.5s infinite linear forward;
}

body.dark-mode .skeleton-box {
    background: #1E293B;
    background-image: linear-gradient(to right, #1E293B 0%, #334155 20%, #1E293B 40%, #1E293B 100%);
}

/* ==========================================
   DARK THEME SYSTEM (data-theme="dark")
   ========================================== */
[data-theme="dark"] {
    --body-bg: #0F172A;
    --card-bg: #1E293B;
    --dark-color: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: #334155;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --card-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] body {
    background-color: var(--body-bg) !important;
    color: var(--dark-color) !important;
}

[data-theme="dark"] .main-wrapper {
    background-color: var(--body-bg) !important;
}

[data-theme="dark"] .header-nav {
    background: rgba(30, 41, 59, 0.95) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .brand-logo span,
[data-theme="dark"] .text-dark,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .quick-card-title,
[data-theme="dark"] .quick-card-value,
[data-theme="dark"] .category-card-title,
[data-theme="dark"] .sun-time-val,
[data-theme="dark"] .sun-time-title {
    color: #F8FAFC !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary,
[data-theme="dark"] .quick-card-sub,
[data-theme="dark"] .category-card-desc,
[data-theme="dark"] .sun-time-title {
    color: #CBD5E1 !important;
}

[data-theme="dark"] .card,
[data-theme="dark"] .quick-card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .chart-card,
[data-theme="dark"] .sun-time-box,
[data-theme="dark"] .bg-white,
[data-theme="dark"] .p-1.bg-white,
[data-theme="dark"] .p-2.bg-white,
[data-theme="dark"] .p-3.bg-white,
[data-theme="dark"] .p-4.bg-white,
[data-theme="dark"] .p-5.bg-white,
[data-theme="dark"] .list-group-item {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-light-subtle,
[data-theme="dark"] .p-1.bg-light,
[data-theme="dark"] .p-2.bg-light,
[data-theme="dark"] .p-3.bg-light,
[data-theme="dark"] .p-4.bg-light,
[data-theme="dark"] .badge.bg-light,
[data-theme="dark"] .badge.bg-white {
    background-color: #0F172A !important;
    border-color: var(--border-color) !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] .breadcrumb-item,
[data-theme="dark"] .breadcrumb-item a,
[data-theme="dark"] .breadcrumb-item span {
    color: #CBD5E1 !important;
}

[data-theme="dark"] .breadcrumb-item.active {
    color: #60A5FA !important;
}

[data-theme="dark"] .nav-icon-btn {
    color: #F8FAFC !important;
    background-color: #1E293B !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .table {
    --bs-table-bg: #1E293B;
    --bs-table-color: #F8FAFC;
    --bs-table-hover-bg: #334155;
    border-color: var(--border-color) !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] .table th {
    background-color: #0F172A !important;
    color: #CBD5E1 !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .table td {
    color: #F8FAFC !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .dropdown-menu {
    background-color: #1E293B !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .dropdown-item {
    color: #E2E8F0 !important;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: #334155 !important;
    color: #FFFFFF !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #0F172A !important;
    border-color: var(--border-color) !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] .form-control::placeholder {
    color: #94A3B8 !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25) !important;
}

[data-theme="dark"] .accordion-item {
    background-color: #1E293B !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .accordion-button {
    background-color: #1E293B !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #0F172A !important;
    color: #60A5FA !important;
}

[data-theme="dark"] .accordion-body {
    color: #CBD5E1 !important;
}

[data-theme="dark"] .top-bar-ticker {
    background-color: #0F172A !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] .ticker-item {
    color: #E2E8F0 !important;
}

[data-theme="dark"] .time-filter-btn {
    background-color: #0F172A !important;
    color: #94A3B8 !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .time-filter-btn.active {
    background-color: #2563EB !important;
    color: #FFFFFF !important;
}

/* APEXCHARTS DARK MODE LABELS & GRID */
[data-theme="dark"] .apexcharts-text,
[data-theme="dark"] .apexcharts-title-text,
[data-theme="dark"] .apexcharts-legend-text,
[data-theme="dark"] .apexcharts-xaxis-label,
[data-theme="dark"] .apexcharts-yaxis-label {
    fill: #CBD5E1 !important;
}

[data-theme="dark"] .apexcharts-gridline,
[data-theme="dark"] .apexcharts-grid-line {
    stroke: #334155 !important;
}

/* SOFT BADGES CONTRAST IN DARK MODE */
[data-theme="dark"] .bg-soft-primary {
    background-color: rgba(37, 99, 235, 0.25) !important;
    color: #93C5FD !important;
}

[data-theme="dark"] .bg-soft-success {
    background-color: rgba(34, 197, 94, 0.25) !important;
    color: #86EFAC !important;
}

[data-theme="dark"] .bg-soft-warning {
    background-color: rgba(234, 179, 8, 0.25) !important;
    color: #FDE047 !important;
}

/* WHITE BUTTONS & PILLS IN DARK MODE */
[data-theme="dark"] .btn.bg-white,
[data-theme="dark"] .badge.bg-white {
    background-color: #334155 !important;
    color: #FFFFFF !important;
    border-color: #475569 !important;
}

/* MARKET INDICATORS & CALCULATOR BREAKDOWN */
[data-theme="dark"] #marketIndicatorsContainer .bg-light,
[data-theme="dark"] #marketIndicatorsContainer .p-3,
[data-theme="dark"] .p-3.bg-light.rounded-3,
[data-theme="dark"] .p-3.bg-light {
    background-color: #0F172A !important;
    border-color: #334155 !important;
}

[data-theme="dark"] #marketIndicatorsContainer strong,
[data-theme="dark"] .p-3.bg-light strong,
[data-theme="dark"] .p-3.bg-light span {
    color: #F8FAFC !important;
}

[data-theme="dark"] #marketIndicatorsContainer .text-muted,
[data-theme="dark"] .p-3.bg-light .text-muted {
    color: #CBD5E1 !important;
}

/* DROPDOWN MENU VISIBILITY & RIGHT ALIGNMENT OVERRIDE */
.dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999999 !important;
}

.dropdown-menu,
.dropdown-menu-end,
.dropdown-menu[data-bs-popper] {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    max-width: calc(100vw - 24px) !important;
}

header .dropdown,
.navbar .dropdown {
    position: relative !important;
}

header .dropdown-menu,
.navbar .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
    margin-top: 8px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important;
    z-index: 999999 !important;
}

[data-theme="dark"] .dropdown-menu,
body.dark-mode .dropdown-menu,
body.dark-theme .dropdown-menu {
    background-color: #1E293B !important;
    border: 1px solid #334155 !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] .dropdown-menu .fw-bold,
[data-theme="dark"] .dropdown-menu span,
body.dark-mode .dropdown-menu .fw-bold,
body.dark-theme .dropdown-menu .fw-bold {
    color: #F8FAFC !important;
}

[data-theme="dark"] .dropdown-item,
body.dark-mode .dropdown-item,
body.dark-theme .dropdown-item {
    color: #CBD5E1 !important;
}

[data-theme="dark"] .dropdown-item:hover,
body.dark-mode .dropdown-item:hover,
body.dark-theme .dropdown-item:hover {
    background-color: #334155 !important;
    color: #FFFFFF !important;
}

/* AOS ANIMATION FALLBACK SAFEGUARD */
[data-aos] {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

body:not(.aos-initialized) [data-aos],
[data-aos].aos-animate {
    opacity: 1 !important;
    transform: none !important;
}

/* STICKY SIDEBAR & FULL COLUMN CONTENT UTILITIES */
.sticky-top-sidebar,
.sticky-sidebar-inner {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 95px !important;
    z-index: 15 !important;
}

.hover-lift {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12) !important;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.leading-snug {
    line-height: 1.35;
}

.leading-relaxed {
    line-height: 1.75;
}

/* Post article rich typography & responsive table optimization */
/* Strip dark background color blocks copied from dark-theme AI tools (ChatGPT/DeepSeek/Arena) */
#postContentVisual p,
#postContentVisual h1,
#postContentVisual h2,
#postContentVisual h3,
#postContentVisual h4,
#postContentVisual span,
#postContentVisual div,
#postContentVisual li,
.entry-content p,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content span,
.entry-content div,
.entry-content li {
    background-color: transparent !important;
}

#postContentVisual h2,
#postContentVisual h3 {
    color: #0f172a;
}

#postContentVisual p,
#postContentVisual li {
    color: #1e293b;
}

#postContentVisual table {
    width: 100% !important;
    border-collapse: collapse;
}

#postContentVisual table th,
#postContentVisual table td {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
}

#postContentVisual table th {
    background-color: #0f172a;
    color: #ffffff;
}

.entry-content {
    color: #1e293b;
}

.entry-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.entry-content h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    line-height: 1.3;
}

.entry-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-weight: 700;
    color: #0f172a;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.entry-content p {
    margin-bottom: 1.25rem;
    color: #1e293b;
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
    color: #1e293b;
    line-height: 1.6;
}

.entry-content span,
.entry-content div {
    color: inherit;
}

.entry-content strong,
.entry-content b {
    color: #0f172a;
    font-weight: 700;
}

.entry-content blockquote {
    border-left: 4px solid #dc2626;
    background-color: #f8fafc;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #334155;
}

.entry-content a,
#postContentVisual a {
    color: #dc2626;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.entry-content a:hover,
#postContentVisual a:hover {
    color: #991b1b;
    text-decoration: underline;
}

.entry-content table {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.entry-content table th {
    background-color: #0f172a;
    color: #ffffff;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-content table td {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #1e293b;
}

.entry-content table tr:nth-child(even) td {
    background-color: #f8fafc;
}

/* ==========================================
   BLOG POST DARK MODE TYPOGRAPHY OVERRIDES
   ========================================== */
body.dark-mode .entry-content,
[data-bs-theme="dark"] .entry-content,
[data-theme="dark"] .entry-content,
body.dark-mode #postContentVisual,
[data-bs-theme="dark"] #postContentVisual,
[data-theme="dark"] #postContentVisual {
    color: #e2e8f0 !important;
}

body.dark-mode .entry-content p,
[data-bs-theme="dark"] .entry-content p,
[data-theme="dark"] .entry-content p,
body.dark-mode .entry-content li,
[data-bs-theme="dark"] .entry-content li,
[data-theme="dark"] .entry-content li,
body.dark-mode .entry-content span,
[data-bs-theme="dark"] .entry-content span,
[data-theme="dark"] .entry-content span,
body.dark-mode .entry-content div,
[data-bs-theme="dark"] .entry-content div,
[data-theme="dark"] .entry-content div,
body.dark-mode #postContentVisual p,
[data-bs-theme="dark"] #postContentVisual p,
[data-theme="dark"] #postContentVisual p,
body.dark-mode #postContentVisual li,
[data-bs-theme="dark"] #postContentVisual li,
[data-theme="dark"] #postContentVisual li,
body.dark-mode #postContentVisual span,
[data-bs-theme="dark"] #postContentVisual span,
[data-theme="dark"] #postContentVisual span,
body.dark-mode #postContentVisual div,
[data-bs-theme="dark"] #postContentVisual div,
[data-theme="dark"] #postContentVisual div {
    color: #e2e8f0 !important;
}

body.dark-mode .entry-content h1,
body.dark-mode .entry-content h2,
body.dark-mode .entry-content h3,
body.dark-mode .entry-content h4,
body.dark-mode .entry-content h5,
body.dark-mode .entry-content h6,
[data-bs-theme="dark"] .entry-content h1,
[data-bs-theme="dark"] .entry-content h2,
[data-bs-theme="dark"] .entry-content h3,
[data-bs-theme="dark"] .entry-content h4,
[data-bs-theme="dark"] .entry-content h5,
[data-bs-theme="dark"] .entry-content h6,
body.dark-mode #postContentVisual h1,
body.dark-mode #postContentVisual h2,
body.dark-mode #postContentVisual h3,
body.dark-mode #postContentVisual h4,
[data-bs-theme="dark"] #postContentVisual h1,
[data-bs-theme="dark"] #postContentVisual h2,
[data-bs-theme="dark"] #postContentVisual h3,
[data-bs-theme="dark"] #postContentVisual h4 {
    color: #f8fafc !important;
    border-bottom-color: #334155 !important;
}

body.dark-mode .entry-content strong,
body.dark-mode .entry-content b,
[data-bs-theme="dark"] .entry-content strong,
[data-bs-theme="dark"] .entry-content b,
body.dark-mode #postContentVisual strong,
body.dark-mode #postContentVisual b,
[data-bs-theme="dark"] #postContentVisual strong,
[data-bs-theme="dark"] #postContentVisual b {
    color: #ffffff !important;
}

body.dark-mode .entry-content a,
[data-bs-theme="dark"] .entry-content a,
[data-theme="dark"] .entry-content a,
body.dark-mode #postContentVisual a,
[data-bs-theme="dark"] #postContentVisual a,
[data-theme="dark"] #postContentVisual a {
    color: #f87171 !important;
    font-weight: 700 !important;
}

body.dark-mode .entry-content a:hover,
[data-bs-theme="dark"] .entry-content a:hover,
[data-theme="dark"] .entry-content a:hover,
body.dark-mode #postContentVisual a:hover,
[data-bs-theme="dark"] #postContentVisual a:hover,
[data-theme="dark"] #postContentVisual a:hover {
    color: #fca5a5 !important;
}

body.dark-mode .entry-content blockquote,
[data-bs-theme="dark"] .entry-content blockquote,
[data-theme="dark"] .entry-content blockquote {
    background-color: rgba(30, 41, 59, 0.7) !important;
    border-left-color: #ef4444 !important;
    color: #cbd5e1 !important;
}

body.dark-mode .entry-content table,
[data-bs-theme="dark"] .entry-content table,
[data-theme="dark"] .entry-content table {
    border-color: #334155 !important;
}

body.dark-mode .entry-content table th,
[data-bs-theme="dark"] .entry-content table th,
[data-theme="dark"] .entry-content table th {
    background-color: #0f172a !important;
    color: #ffffff !important;
}

body.dark-mode .entry-content table td,
[data-bs-theme="dark"] .entry-content table td,
[data-theme="dark"] .entry-content table td {
    border-top-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .entry-content table tr:nth-child(even) td,
[data-bs-theme="dark"] .entry-content table tr:nth-child(even) td,
[data-theme="dark"] .entry-content table tr:nth-child(even) td {
    background-color: #0f172a !important;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

/* 16:9 Aspect Ratio Image Container for Blog Cards & Featured Articles */
.style-card-img-wrap {
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    position: relative;
    overflow: hidden;
}

.style-card-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* ==========================================
   100% WIDTH ADVERTISEMENTS & MONETIZATION SYSTEM (ALL DEVICES)
   ========================================== */
.newzeefy-ad-wrapper,
.widget_custom_html,
.sidebar-ad-widget,
.ad-slot-wrapper,
.ad-banner,
.ad-container,
.ad-slot,
.ad-unit,
.ad-box,
ins.adsbygoogle {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}

.entry-content .wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Ensure Adsterra Native Ads are not broken by global CSS */
.nz-raw-ad-container img {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    display: inline-block !important;
    margin: 0 !important;
    border-radius: 0 !important;
    object-fit: fill !important;
}

/* Force 300x250 and responsive containers to span full width */
.sidebar .widget_custom_html,
.secondary .widget_custom_html,
#secondary .widget_custom_html {
    display: block;
    width: 100% !important;
}