/* Font Setup */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --gold-primary: #FFD700;
    --gold-dark: #B8860B;
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --text-light: #f3f4f6;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-bottom: 80px; /* Space for bottom nav */
}

/* Custom Gold Gradient Text */
.text-gold-gradient {
    background: linear-gradient(to right, #F6E27A, #CB9B51);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Gold Gradient Background */
.bg-gold-gradient {
    background: linear-gradient(135deg, #CB9B51 0%, #F6E27A 50%, #B8860B 100%);
}

.border-gold {
    border: 1px solid #B8860B;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 134, 11, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* SPIN WHEEL CSS */
.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    border: 4px solid #CB9B51;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99); /* Easing for spin */
    box-shadow: 0 0 20px rgba(203, 155, 81, 0.3);
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-right: 1px solid rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(0,0,0,0.5);
}

/* Label adjustment inside segment */
.segment-label {
    position: absolute;
    left: 60%;
    top: 80%;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 0.8rem;
    color: white;
    text-shadow: 1px 1px 2px black;
}

/* Pointer Arrow */
.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #FFF;
    z-index: 10;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}

/* Center Dot */
.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #F6E27A, #B8860B);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

/* Hide/Show Utility */
.hidden-custom {
    display: none !important;
}

#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 400px;
    pointer-events: none; /* Allows clicks to pass through container */
}

.toast-item {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-20px);
    animation: toastSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast-item.success { border-left: 4px solid #4ade80; }
.toast-item.error { border-left: 4px solid #ef4444; }
.toast-item.info { border-left: 4px solid #FFD700; }

.toast-item.toast-out {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastSlideOut {
    to { opacity: 0; transform: translateY(-20px); }
}