:root {
    --bg-color: #000000;
    --text-color: #f8fafc;
    --brand-gold: #d4af37;
    --glass-bg: rgba(20, 20, 20, 0.4);
    --heavy-glass-bg: rgba(10, 10, 10, 0.6);
    --glass-border: rgba(212, 175, 55, 0.15);
    --orb-1: rgba(212, 175, 55, 0.2);
    --orb-2: rgba(30, 58, 138, 0.3);
    --grad-1: #d4af37; --grad-2: #fff2cd; --grad-3: #b5952f;
}
.theme-day {
    --bg-color: #e0f2fe;
    --text-color: #0f172a;
    --brand-gold: #0284c7;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --heavy-glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(2, 132, 199, 0.2);
    --orb-1: rgba(255, 255, 255, 0.8);
    --orb-2: rgba(56, 189, 248, 0.5);
    --grad-1: #0284c7; --grad-2: #bae6fd; --grad-3: #0369a1;
}

/* Day Mode Overrides for Tailwind classes */
.theme-day .text-white, .theme-day .text-gray-100 { color: #0f172a !important; }
.theme-day .text-gray-400, .theme-day .text-gray-300 { color: #475569 !important; }
.theme-day .text-gray-200 { color: #1e293b !important; }
.theme-day .bg-black { background-color: rgba(255,255,255,0.5) !important; }
.theme-day .bg-black\/40, .theme-day .bg-black\/60, .theme-day .bg-black\/80 { background-color: rgba(255,255,255,0.7) !important; }

body { background-color: var(--bg-color); color: var(--text-color); font-family: 'Outfit', sans-serif; overflow: hidden; height: 100dvh; transition: background-color 0.5s ease, color 0.5s ease; }
.glass { background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); }
.heavy-glass { background: var(--heavy-glass-bg); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border: 1px solid var(--glass-border); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2); }
.gold-text { background: linear-gradient(to right, var(--grad-1), var(--grad-2), var(--grad-1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gold-gradient-bg { background: linear-gradient(135deg, var(--grad-1), var(--grad-3)); color: var(--bg-color); }
.gold-gradient-bg:hover { background: linear-gradient(135deg, var(--grad-2), var(--grad-1)); }

/* Uiverse Loading Animations */
.loader {
  width: 48px;
  height: 48px;
  margin: auto;
  position: relative;
}

.loader:before {
  content: '';
  width: 48px;
  height: 5px;
  background: #f0808050;
  position: absolute;
  top: 60px;
  left: 0;
  border-radius: 50%;
  animation: shadow324 0.5s linear infinite;
}

.loader:after {
  content: '';
  width: 100%;
  height: 100%;
  background: #f08080;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 4px;
  animation: jump7456 0.5s linear infinite;
}

@keyframes jump7456 {
  15% { border-bottom-right-radius: 3px; }
  25% { transform: translateY(9px) rotate(22.5deg); }
  50% {
    transform: translateY(18px) scale(1, .9) rotate(45deg);
    border-bottom-right-radius: 40px;
  }
  75% { transform: translateY(9px) rotate(67.5deg); }
  100% { transform: translateY(0) rotate(90deg); }
}

@keyframes shadow324 {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.2, 1); }
}

.spinner-small { border-top-color: var(--brand-gold); -webkit-animation: spinner 1.5s linear infinite; animation: spinner 1.5s linear infinite; }
@keyframes spinner { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.fade-in { animation: fadeIn 0.4s ease-in forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.nav-active { color: var(--brand-gold) !important; border-bottom-color: var(--brand-gold) !important; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-gold); }

/* Orbs & Scale Animations */
.app-wrapper { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.app-scaled { transform: scale(0.92); border-radius: 24px; overflow: hidden; box-shadow: 0 0 50px rgba(0,0,0,0.5); pointer-events: none; filter: blur(5px); }
@media (min-width: 1024px) { .app-scaled { transform: none; border-radius: 0; box-shadow: none; pointer-events: auto; } }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); animation: float 10s infinite ease-in-out alternate; }
.orb-1 { width: 45vw; height: 45vw; background: var(--orb-1); top: -10%; left: -10%; }
.orb-2 { width: 55vw; height: 55vw; background: var(--orb-2); bottom: -10%; right: -10%; animation-delay: -5s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30px, 50px) scale(1.1); } }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%); transform: skewX(-25deg); animation: shine 4s infinite; }
@keyframes shine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }

/* Sidebar Animations */
#sidebar { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); flex-shrink: 0; z-index: 50; }
@media (max-width: 1023px) { 
    #sidebar { position: fixed; top: 0; right: 0; height: 100dvh; transform: translateX(100%); } 
    .sidebar-open { transform: translateX(0) !important; }
}

.sidebar-scroll-hint { position: relative; }
.sidebar-scroll-hint::after {
    content: '⬇ Scroll down for more';
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    margin-top: 8px;
    padding-bottom: 8px;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ==========================================
   Laptop Shader Gradient Loop Theme
   ========================================== */
@media (min-width: 1024px) {
    body { background-color: transparent !important; }
    body::before, body::after {
        content: ''; position: fixed; inset: 0; z-index: -1;
        background-size: 400% 400%; animation: shaderLoop 15s ease infinite;
        transition: opacity 0.8s ease; pointer-events: none;
    }
    body::before {
        background: linear-gradient(-45deg, #000000, #0a1122, #141005, #000000);
        opacity: 1;
    }
    body::after {
        background: linear-gradient(-45deg, #e0f2fe, #bae6fd, #fef9c3, #e0f2fe);
        opacity: 0;
    }
    body.theme-day::before { opacity: 0; }
    body.theme-day::after { opacity: 1; }
}
@keyframes shaderLoop {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}