:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-card: #25315a;
    --accent: #FF5733;
    --accent-glow: #ff8c5a;
    --text-primary: #ffffff;
    --text-secondary: #a0a8b5;
    --success: #4CAF50;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    max-width: 500px;
    margin: 0 auto;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--accent), var(--accent-glow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: var(--shadow);
}

.user-details .user-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Timer */
.timer-section {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid var(--border);
}

.timer-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.timer-display {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Courier New', monospace;
}

/* Wheel Container */
.wheel-container {
    margin: 30px 0;
    text-align: center;
}

.wheel-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.wheel-canvas {
    max-width: 100%;
    height: 400px;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 35px solid var(--accent);
    z-index: 10;
    filter: drop-shadow(0 5px 15px rgba(255, 87, 51, 0.5));
}

.wheel-info .wheel-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 15px;
}

/* Spin Button */
.spin-button {
    width: 100%;
    height: 70px;
    background: linear-gradient(135deg, var(--text-secondary), #6b7280);
    color: var(--text-primary);
    border: none;
    border-radius: 25px;
    font-size: 20px;
    font-weight: 700;
    cursor: not-allowed;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.spin-button.ready {
    background: linear-gradient(135deg, var(--accent), var(--accent-glow));
    cursor: pointer;
    transform: translateY(0);
}

.spin-button.ready:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 87, 51, 0.4);
}

.spin-button:active {
    transform: translateY(0);
}

/* Navigation */
.btn-nav, .admin-link {
    padding: 12px 20px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-nav:hover, .admin-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Recent section */
.recent-section {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.recent-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.modal-message {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
}

.promo-section {
    background: rgba(255, 87, 51, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 87, 51, 0.3);
}

.promo-code {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.btn-primary, .btn-copy {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--accent), var(--accent-glow));
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 10px;
}

.btn-copy {
    width: auto;
    padding: 12px 25px;
    font-size: 16px;
    display: inline-block;
}

.btn-primary:hover, .btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 87, 51, 0.4);
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .wheel-canvas {
        height: 320px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}
