:root {
    --bg-black: #0b0b0d;
    --accent-silver: #d1d5db;
    --accent-crystal: rgba(255, 255, 255, 0.08);
    --accent-white: #f3f4f6;
    --text-dim: #9ca3af;
    --border-glass: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.015);
    
    /* Legacy accent colors for logic, but styled to silver */
    --accent-orange: #f5f5f5;
    --accent-pink: #ffffff;
    --accent-purple: #cccccc;
    
    --accent-gradient: linear-gradient(135deg, #f3f4f6 0%, #9ca3af 100%);
    --accent-glow: rgba(255, 255, 255, 0.15);
    
    /* Backgrounds (Dark - Default) */
    --bg-dark: var(--bg-black);
    --bg-card: var(--bg-glass);
    --text-primary: var(--accent-white);
    --text-secondary: var(--text-dim);
    
    /* Borders & Lines */
    --border-glow: rgba(255, 255, 255, 0.12);
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

body.light-theme {
    --bg-dark: #ffffff;
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --text-primary: #000000;
    --text-secondary: #444444;
    --border-glass: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Liquid Glass UI Utilities */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.glass-panel::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: 0.5s;
}

.glass-panel:hover::after {
    left: 100%;
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-pink);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(236, 72, 153, 0.1);
    transform: translateY(-5px);
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shimmer {
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #a1a1aa 25%,
        #ffffff 50%,
        #a1a1aa 75%,
        #ffffff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 4s linear infinite;
}

@keyframes text-shimmer {
    to { background-position: 200% center; }
}

.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Buttons */
.btn-p.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-premium {
    background: #ffffff;
    color: #000000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
    background: #f5f5f5;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.glow-text {
    text-shadow: 0 0 20px var(--accent-glow);
}

/* Premium Background Animations */
@keyframes crystal-float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-22px) scale(1.05); }
}

@keyframes crystal-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes crystal-pulse {
    0%, 100% { transform: scale(0.95); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

@keyframes orb-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.crystal-base {
    animation: crystal-float 10s ease-in-out infinite;
}

.crystal-rotate {
    animation: crystal-spin 60s linear infinite, star-shine 5s ease-in-out infinite alternate;
}

@keyframes star-shine {
    0% {
        filter: blur(0.2px) saturate(1.2) contrast(1.1) drop-shadow(0 0 30px rgba(138, 43, 226, 0.2)) drop-shadow(0 0 60px rgba(255, 20, 147, 0.15)) drop-shadow(0 0 90px rgba(0, 255, 255, 0.1)) brightness(1);
    }
    100% {
        filter: blur(0px) saturate(1.3) contrast(1.15) drop-shadow(0 0 45px rgba(138, 43, 226, 0.3)) drop-shadow(0 0 90px rgba(255, 20, 147, 0.25)) drop-shadow(0 0 135px rgba(0, 255, 255, 0.2)) brightness(1.1);
    }
}

.orb-animate {
    animation: orb-drift 15s ease-in-out infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent-orange), var(--accent-purple));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-pink);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
