body { font-family: 'Inter', sans-serif; background-color: #121212; color: #ffffff; }
.dark-bg { background-color: #121212; }
.card-bg { background-color: #1e1e1e; }
.border-accent { border-color: #ff8c00; }
.text-accent { color: #ff8c00; }
.btn, .btn-accent, .btn-outline-accent { transition: all 0.2s ease-in-out; transform: scale(1); }
.btn:active, .btn-accent:active, .btn-outline-accent:active { transform: scale(0.95); }
.btn-accent { background-color: #ff8c00; color: #121212; font-weight: bold; }
.btn-accent:hover { background-color: #e67e00; }
.btn-outline-accent { border: 1px solid #ff8c00; color: #ff8c00; }
.btn-outline-accent:hover { background-color: #ff8c00; color: #121212; }
.input-field { background-color: #2c2c2c; border: 1px solid #444; }
.main-page { display: none; }
.main-page.active { display: flex; animation: fadeIn 0.5s ease-in-out; }
.sub-page { display: none; }
.sub-page.active { display: block; animation: fadeIn 0.3s ease-in-out; }
.bottom-nav a.active { color: #ff8c00; }
.notification-dot {
    position: absolute; top: -2px; right: -2px; width: 10px; height: 10px;
    background-color: #ef4444; border-radius: 50%; border: 2px solid #121212; display: none;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cooldown-active { opacity: 0.7; pointer-events: none; }
.text-ad-btn { transition: all 0.2s ease-in-out; }
.text-ad-btn:active { transform: scale(0.95); }
/* Styles for locked tasks */
button[disabled] {
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
button[disabled] i {
    margin-right: 4px;
}

/* Leaderboard Styles */
.leaderboard-view {
    animation: fadeIn 0.3s ease-in-out;
}

.leaderboard-view.hidden {
    display: none;
}

/* Leaderboard entries with gradient backgrounds */
.leaderboard-view > div > div {
    transition: all 0.3s ease-in-out;
}

.leaderboard-view > div > div:hover {
    transform: translateY(-2px);
}

/* Spinner Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 140, 0, 0.2);
    border-top: 4px solid #ff8c00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    py-8: 8px;
    gap: 12px;
}

.spinner-text {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
}

/* Terms & Conditions Modal Styles */
#terms-modal {
    animation: fadeIn 0.3s ease-in-out;
}

#terms-modal.hidden {
    display: none;
}

#terms-modal-content {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.terms-section {
    margin-bottom: 1.5rem;
}

.terms-section h3 {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.terms-section p,
.terms-section li {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.6;
}

.terms-section ul {
    margin-left: 1.5rem;
    color: #d1d5db;
}

.terms-section li {
    margin-bottom: 0.5rem;
}

.terms-header {
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #374151;
    padding-bottom: 1rem;
}

.terms-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, #94a3b8, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.terms-header p {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Refer & Earn Page Styles */
.refer-nav-btn {
    position: relative;
    overflow: hidden;
    background-color: #1e1e1e !important;
    color: #ffffff;
    border: 1px solid #444;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refer-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.15);
}

.refer-nav-btn.active {
    border-width: 2px;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
}

.refer-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.refer-section.active {
    display: block;
}

.refer-section-loader {
    display: none;
    min-height: 200px;
    align-items: center;
    justify-content: center;
}

.refer-section-loader.active {
    display: flex;
}

.refer-section-content {
    animation: fadeIn 0.3s ease-in-out;
}

/* Wallet Page Styles */
.wallet-nav-btn {
    position: relative;
    overflow: hidden;
    background-color: #1e1e1e !important;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-nav-btn:hover {
    transform: translateY(-4px);
}

.wallet-nav-btn.active {
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.4);
}

.wallet-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.wallet-section.active {
    display: block;
}

.wallet-section-loader {
    display: none;
    min-height: 200px;
    align-items: center;
    justify-content: center;
}

.wallet-section-loader.active {
    display: flex;
}

.wallet-section-content {
    animation: fadeIn 0.3s ease-in-out;
}

/* Social Share Buttons */
.social-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.social-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.social-share-btn:active {
    transform: scale(0.92);
}

/* Custom hover scale */
.hover\:scale-102:hover {
    transform: scale(1.02);
}

/* Smooth transitions for buttons */
#leaderboard-today-btn,
#leaderboard-yesterday-btn {
    transition: all 0.3s ease-in-out;
}

/* Mission gift image styling */
.gift-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* Mission card styling */
.mission-card {
    transition: all 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.2);
}

/* Enhanced Progress Bar Styling */
.progress-bar {
    width: 100%;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(255, 140, 0, 0.2);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8c00 0%, #ffa500 100%);
    border-radius: 11px;
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    box-sizing: border-box;
}
