:root {
    --primary-color: #00e5ff;
    --primary-hover: #00b8d4;
    --secondary-color: #00838f;
    --bg-gradient: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    --card-bg: rgba(0, 30, 40, 0.4);
    --card-border: rgba(0, 229, 255, 0.2);
    --text-main: #ffffff;
    --text-muted: #b2ebf2;
    --error: #ff5252;
    --success: #1de9b6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    min-height: 100vh;
    background: var(--bg-gradient);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background Animations */
.background-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #00e5ff;
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #00838f;
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #18ffff;
    bottom: 20%;
    left: 20%;
    animation-delay: -2s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    z-index: 1;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.4;
}

.timer-container {
    margin-bottom: 20px;
}

.timer-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

#timer-progress {
    height: 100%;
    width: 100%;
    background: var(--primary-color);
    transition: width 1s linear, background-color 0.3s ease;
}

.timer-text {
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.option-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.option-label input[type="radio"] {
    display: none;
}

.option-label.selected {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--primary-color);
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

#submit-btn {
    background: var(--primary-color);
}

#submit-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: scale(1.02);
}

#submit-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.btn-reward {
    display: block;
    background: linear-gradient(90deg, #00b8d4, #00e5ff);
    text-align: center;
    text-decoration: none;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
}

.btn-reward:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-muted);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.message-container {
    min-height: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.message {
    font-weight: 600;
    font-size: 1rem;
    padding: 10px;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

.message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.hidden {
    display: none !important;
}

/* Spinner Animation */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--text-main);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#success-container {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

#success-container p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

#reward-box-container {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.reward-link-box {
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.reward-link-box input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    text-align: center;
    outline: none;
}

.reward-actions {
    display: flex;
    gap: 15px;
}

.reward-actions .btn {
    flex: 1;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .glass-card {
        padding: 25px 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
}
