* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #FFF8DC;
    --bg-secondary: #F9E79F;
    --bg-card: #F7DC6F;
    --text-primary: #5D4037;
    --text-secondary: #6D4C41;
    --accent-yellow: #F4D03F;
    --accent-yellow-dark: #D68910;
    --accent-yellow-light: #FAD7A0;
    --accent-orange: #E67E22;
    --accent-red: #C0392B;
    --border-color: #D4AF37;
    --gradient-primary: linear-gradient(135deg, #F4D03F 0%, #F39C12 100%);
    --gradient-hover: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
    --shadow-yellow: rgba(244, 208, 63, 0.4);
}

body {
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(244, 208, 63, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(243, 156, 18, 0.2) 0%, transparent 50%);
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid var(--accent-yellow-dark);
    box-shadow: 0 0 20px var(--shadow-yellow);
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Fredoka One', 'Bangers', cursive;
    color: var(--accent-orange);
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3), 1px 1px 0px rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

.logo-text p {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 700;
}

.stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: right;
}

.stat-number {
    display: block;
    font-size: 22px;
    font-weight: 800;
    font-family: 'Bangers', cursive;
    color: var(--accent-orange);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Claim Section */
.claim-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 3px solid var(--accent-yellow-dark);
    box-shadow: 0 10px 40px var(--shadow-yellow), inset 0 0 20px rgba(244, 208, 63, 0.2);
}

.claim-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.claim-title {
    font-size: 42px;
    font-weight: 800;
    font-family: 'Fredoka One', 'Bangers', cursive;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--accent-orange);
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.4), 2px 2px 0px rgba(255, 255, 255, 0.8), 6px 6px 10px rgba(0, 0, 0, 0.2);
}

.diamond {
    font-size: 28px;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.claim-subtitle {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 700;
}

.claim-btn {
    background: var(--gradient-primary);
    border: 3px solid var(--accent-yellow-dark);
    color: var(--text-primary);
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Bangers', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px var(--shadow-yellow), inset 0 0 10px rgba(244, 208, 63, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.claim-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-yellow), inset 0 0 15px rgba(244, 208, 63, 0.4);
}

.claimed-progress {
    margin-top: 30px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: 800;
    font-family: 'Bangers', cursive;
    color: var(--text-primary);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 2.7%;
    box-shadow: inset 0 0 10px rgba(244, 208, 63, 0.5);
}

.progress-text {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 700;
}

/* Wallet Section */
.wallet-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    border: 3px solid var(--accent-yellow-dark);
    box-shadow: 0 5px 20px var(--shadow-yellow);
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    font-family: 'Bangers', cursive;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.wallet-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.wallet-input {
    flex: 1;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', monospace;
    transition: all 0.3s ease;
}

.wallet-input:focus {
    outline: none;
    border-color: var(--accent-yellow-dark);
    box-shadow: 0 0 0 3px var(--shadow-yellow);
}

.wallet-input::placeholder {
    color: var(--text-secondary);
}

.save-btn {
    background: var(--gradient-primary);
    border: 2px solid var(--accent-yellow-dark);
    color: var(--text-primary);
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Bangers', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px var(--shadow-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.save-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px var(--shadow-yellow);
}

.wallet-hint {
    font-size: 14px;
    color: var(--text-primary);
    margin-top: 8px;
    font-weight: 700;
}

/* Tasks Section */
.tasks-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    border: 3px solid var(--accent-yellow-dark);
    box-shadow: 0 5px 20px var(--shadow-yellow);
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.task-item:hover {
    border-color: var(--accent-yellow-dark);
    transform: translateX(5px);
    box-shadow: 0 4px 12px var(--shadow-yellow);
}

.task-item.completed {
    background: rgba(244, 208, 63, 0.3);
    border-color: var(--accent-yellow-dark);
}

.task-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.task-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 10px;
}

.task-details {
    flex: 1;
}

.task-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-family: 'Comic Neue', cursive;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.task-reward {
    font-size: 16px;
    color: var(--accent-orange);
    font-weight: 800;
    font-family: 'Bangers', cursive;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.task-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-status {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 700;
}

.task-status.completed {
    color: #27AE60;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.task-btn {
    background: var(--gradient-primary);
    border: 2px solid var(--accent-yellow-dark);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Bangers', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 3px 10px var(--shadow-yellow);
    text-transform: uppercase;
}

.task-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px var(--shadow-yellow);
}

.task-btn.completed {
    background: var(--text-secondary);
    cursor: not-allowed;
}

.task-btn.completed:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats {
        width: 100%;
        justify-content: space-between;
    }

    .claim-section {
        padding: 30px 20px;
    }

    .claim-title {
        font-size: 28px;
    }

    .wallet-input-group {
        flex-direction: column;
    }

    .save-btn {
        width: 100%;
    }

    .task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .task-action {
        width: 100%;
        justify-content: space-between;
    }

    .task-btn {
        flex: 1;
    }
}

/* Verification Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    border: 3px solid var(--accent-yellow-dark);
    box-shadow: 0 10px 40px var(--shadow-yellow);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid var(--accent-yellow-dark);
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Bangers', cursive;
    color: var(--accent-yellow-dark);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--accent-yellow-dark);
    color: var(--bg-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-description {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.6;
}

.verification-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Comic Neue', monospace;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.verification-input:focus {
    outline: none;
    border-color: var(--accent-yellow-dark);
    box-shadow: 0 0 0 3px var(--shadow-yellow);
}

.verification-input::placeholder {
    color: var(--text-secondary);
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Bangers', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cancel-btn {
    background: transparent;
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.cancel-btn:hover {
    background: var(--text-secondary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.submit-btn {
    background: var(--gradient-primary);
    border-color: var(--accent-yellow-dark);
    color: var(--text-primary);
    box-shadow: 0 4px 15px var(--shadow-yellow);
}

.submit-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px var(--shadow-yellow);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }
}
