
/* Base Global Styles */
body {
    background-color: #0a0a0c;
    color: #f3f4f6;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

.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;
}

.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;
}

::-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); }

@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.2; }
}
.animate-pulse-slow { animation: pulse-slow 8s ease-in-out infinite; }

.prismatic-btn {
    position: relative;
    overflow: hidden;
}
.prismatic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        rgba(139, 92, 246, 0.4),
        rgba(20, 184, 166, 0.2),
        transparent
    );
    transform: skewX(-20deg);
    transition: all 0.6s ease-in-out;
    z-index: 1;
}
.prismatic-btn:hover::before {
    left: 200%;
}

.prismatic-text {
    background: linear-gradient(to right, #ffffff, #C5A861, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html:not(.dark) body { background-color: #f8f9fa !important; color: #1a1a1a !important; }
html:not(.dark) .bg-syc-dark\/70 { background-color: rgba(255, 255, 255, 0.8) !important; border-color: rgba(0,0,0,0.05) !important; }
html:not(.dark) .bg-syc-dark\/80 { background-color: rgba(255, 255, 255, 0.85) !important; border-color: rgba(0,0,0,0.05) !important; }
html:not(.dark) .bg-syc-dark\/90 { background-color: rgba(255, 255, 255, 0.9) !important; border-color: rgba(0,0,0,0.05) !important; }
html:not(.dark) .bg-syc-dark\/95 { background-color: rgba(255, 255, 255, 0.95) !important; border-color: rgba(0,0,0,0.05) !important; }
html:not(.dark) .glass-panel { background: rgba(255, 255, 255, 0.7) !important; border: 1px solid rgba(0,0,0,0.05) !important; box-shadow: 0 8px 30px rgba(0,0,0,0.04) !important; }
html:not(.dark) .text-white { color: #000000 !important; }
html:not(.dark) .text-syc-text-dim { color: #4b5563 !important; }
html:not(.dark) .bg-syc-dark { background-color: #ffffff !important; }
html:not(.dark) .bg-syc-surface-highest\/20 { background-color: rgba(0,0,0,0.02) !important; }
html:not(.dark) .border-white\/5 { border-color: rgba(0,0,0,0.05) !important; }
html:not(.dark) .border-white\/10 { border-color: rgba(0,0,0,0.1) !important; }
html:not(.dark) .bg-white\/5 { background-color: rgba(0,0,0,0.03) !important; }
html:not(.dark) .text-gradient-white { background: linear-gradient(180deg, #111111 0%, rgba(17,17,17,0.7) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
html:not(.dark) .prismatic-text {
    background: linear-gradient(to right, #1a1a1a, #C5A861, #8B5CF6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Data flow lines */
@keyframes data-flow-horizontal {
    0% { transform: translateX(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(300%); opacity: 0; }
}
.animate-data-flow {
    animation: data-flow-horizontal 3s linear infinite;
}

@keyframes data-flow-vertical {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(300%); opacity: 0; }
}
.animate-data-flow-v {
    animation: data-flow-vertical 3s linear infinite;
}

/* Pulsing Lock / Shield */
@keyframes pulse-intense {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; box-shadow: 0 0 30px rgba(197, 168, 97, 0.8); }
}
.animate-pulse-intense {
    animation: pulse-intense 2s ease-in-out infinite;
}

/* Data flow lines */
@keyframes data-flow-horizontal {
    0% { transform: translateX(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(300%); opacity: 0; }
}
.animate-data-flow {
    animation: data-flow-horizontal 3s linear infinite;
}

@keyframes data-flow-vertical {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(300%); opacity: 0; }
}
.animate-data-flow-v {
    animation: data-flow-vertical 3s linear infinite;
}

/* Pulsing Lock / Shield */
@keyframes pulse-intense {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; box-shadow: 0 0 30px rgba(197, 168, 97, 0.8); }
}
.animate-pulse-intense {
    animation: pulse-intense 2s ease-in-out infinite;
}

html:not(.dark) .bg-syc-dark\/40 { background-color: rgba(255, 255, 255, 0.4) !important; border-color: rgba(0,0,0,0.05) !important; }
html:not(.dark) .bg-syc-dark\/50 { background-color: rgba(255, 255, 255, 0.5) !important; border-color: rgba(0,0,0,0.05) !important; }
html:not(.dark) .bg-syc-dark\/60 { background-color: rgba(255, 255, 255, 0.6) !important; border-color: rgba(0,0,0,0.05) !important; }

/* ==========================================================================
   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);
}
