@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
    --glass-blur: 20px;
    
    --color-gold: #d4af37;
    --color-accent: #ff3b30; /* More vibrant Apple red */
    --color-success: #34c759;
    --color-text: #f5f5f7;
    --color-text-secondary: #86868b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text);
    background-color: #000;
    /* Rich, dark gradient background */
    background: radial-gradient(circle at 50% 0%, #1a1a2e 0%, #000000 70%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.font-mafia {
    font-family: 'Courier Prime', monospace;
}

/* --- Liquid Glass Components --- */

/* The main container for content */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
}

/* Inputs with inner shadow/glass feel */
.glass-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.glass-input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

/* Buttons with distinct glass states */
.glass-button {
    background: rgba(255, 255, 255, 0.08);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.glass-button:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.05);
}

.glass-button-primary {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.8) 0%, rgba(200, 30, 30, 0.9) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3);
}

.glass-button-gold {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.8) 0%, rgba(180, 140, 20, 0.9) 100%);
    color: black;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Animations */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.animate-pulse-slow {
    animation: pulse-slow 3s infinite ease-in-out;
}

/* Utility Overrides for "Apple" feel */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Card Flip */
.perspective-1000 { perspective: 1000px; }
.transform-style-3d { transform-style: preserve-3d; }
.backface-hidden { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rotate-y-180 { transform: rotateY(180deg); }
.card-inner.flipped { transform: rotateY(180deg); }

/* Text Gradient Utilities */
.text-gradient {
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to bottom, #ffffff, #a1a1aa);
}

.text-gradient-gold {
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to bottom, #ffd700, #b8860b);
}
