/* Base Global Styles */
body {
    background-color: #0a0a0c;
    color: #f3f4f6;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Ambient Glow System */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Glassmorphism Panels */
.glass-panel {
    background: rgba(26, 26, 32, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(197, 168, 97, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.glass-nav {
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Typography & Gradients */
.text-gradient-gold {
    background: linear-gradient(135deg, #FFD700 0%, #C5A861 50%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-white {
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(197,168,97,0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(197,168,97,0.4); }

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

@keyframes pulse-slow {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}
.animate-pulse-slow { animation: pulse-slow 4s ease-in-out infinite; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* GSAP Specific */
.gsap-letter-group {
    perspective: 1000px;
}
.gsap-expand-text {
    display: inline-block;
    transform-origin: left center;
}

/* Light Mode Overrides */
html:not(.dark) body { background-color: #f8f9fa !important; color: #1a1a1a !important; }
html:not(.dark) .bg-syc-dark, html:not(.dark) .bg-syc-dark\/50, html:not(.dark) .bg-syc-dark\/70, html:not(.dark) .bg-syc-dark\/80 { background-color: rgba(255, 255, 255, 0.8) !important; color: #1a1a1a !important; }
html:not(.dark) .text-white, html:not(.dark) .text-syc-text { color: #1a1a1a !important; }
html:not(.dark) .text-syc-text-dim { color: #4a4a4a !important; }
html:not(.dark) .glass-nav, html:not(.dark) .glass-panel, html:not(.dark) .glass-card { background: rgba(255, 255, 255, 0.7) !important; border-color: rgba(0, 0, 0, 0.1) !important; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important; }


.text-gradient-dark { background: linear-gradient(to right, #111, #444); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ==========================================================================
   Privacy Mode & Tabular Numerals (R1 & R2)
   ========================================================================== */

.sensitive-amount,
.privacy-blur {
    transition: filter 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.privacy-mode .sensitive-amount,
.privacy-mode .privacy-blur {
    filter: blur(8px) !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.privacy-mode canvas,
.privacy-mode canvas.sensitive-chart,
.privacy-mode .sensitive-chart,
.privacy-mode .chart-container-sensitive {
    filter: blur(12px) !important;
    pointer-events: none !important;
    user-select: none !important;
}

.privacy-active-btn {
    background-color: rgba(245, 158, 11, 0.2) !important;
    color: rgb(var(--color-syc-gold)) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

/* ==========================================================================
   FinTech Glass Shimmer Skeleton Loader System (R4) & Empty States (R3)
   ========================================================================== */
@keyframes syc-shimmer-sweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-shimmer {
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 0.75rem;
}

html:not(.dark) .skeleton-shimmer {
    background-color: rgba(0, 0, 0, 0.05);
}

.skeleton-shimmer::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(245, 158, 11, 0.09) 35%,
        rgba(255, 255, 255, 0.14) 50%,
        rgba(245, 158, 11, 0.09) 65%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: syc-shimmer-sweep 1.8s infinite ease-in-out;
    pointer-events: none;
}

html:not(.dark) .skeleton-shimmer::after {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(245, 158, 11, 0.12) 35%,
        rgba(0, 0, 0, 0.08) 50%,
        rgba(245, 158, 11, 0.12) 65%,
        rgba(0, 0, 0, 0) 100%
    );
}

.skeleton-line {
    height: 0.875rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}
.skeleton-pill {
    height: 1.25rem;
    border-radius: 9999px;
}
.skeleton-circle {
    border-radius: 9999px;
}

.empty-state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    height: 100%;
    min-height: 220px;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(197, 168, 97, 0.25);
}

html:not(.dark) .empty-state-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px dashed rgba(0, 0, 0, 0.12);
}

