:root {
    --primary-color: #FFC107;
    --primary-light: #FFD54F;
    --primary-dark: #FFA000;
    --background-color: #121212;
    --surface-color: #1E1E1E;
    --card-bg: #252525;
    --card-hover: #2E2E2E;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-tertiary: #757575;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-heading: 'Poppins', var(--font-primary);
}

/* Hide Balance and Related Elements */
.earnings-card,
.earnings-header,
.earnings-amount,
.target-progress,
.target-text,
.amount-change {
    display: none !important;
}

/* Adjust header layout when balance is hidden */
.header-content {
    justify-content: space-between;
}

/* Logout Modal Styles */
.logout-icon {
    margin: 0 auto 1.5rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.05));
    border-radius: 50%;
    animation: fadeIn 0.5s ease-out, pulse 2s infinite;
    border: 2px dashed rgba(255, 193, 7, 0.3);
    position: relative;
    overflow: hidden;
}

.logout-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 0.7; }
    70% { transform: scale(1.3); opacity: 0; }
    100% { opacity: 0; }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.2); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.logout-message {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 1.5rem 0 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(20, 20, 20, 0.9));
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: all 0.3s ease;
    animation: slideUp 0.5s ease-out;
}

.logout-message::before {
    content: '👋';
    position: absolute;
    left: -15px;
    top: -15px;
    background: var(--background-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logout-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin: 3rem 0 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.logout-actions .btn-primary,
.logout-actions .btn-secondary {
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logout-features {
    margin-top: 2.5rem;
    padding: 1.8rem 2rem;
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.6), rgba(30, 30, 30, 0.6));
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.logout-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    animation: progressBar 8s linear;
}

@keyframes progressBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

.logout-features p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.logout-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    counter-reset: feature-counter;
}

.logout-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    position: relative;
    padding-left: 1.8rem;
    transition: all 0.3s ease;
}

.logout-features li::before {
    counter-increment: feature-counter;
    content: counter(feature-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: rgba(255, 193, 7, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-features i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

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

/* Hover effects */
.logout-features li:hover {
    transform: translateX(5px);
}

.logout-features li:hover::before {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.logout-features li:hover i {
    transform: scale(1.2);
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .logout-message {
        font-size: 1.1rem;
        padding: 1.2rem;
    }
    
    .logout-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .logout-actions .btn-primary,
    .logout-actions .btn-secondary {
        width: 100%;
    }
    
    .logout-features {
        padding: 1.5rem 1.2rem;
    }
}

/* Thank You Modal Styles */
.thank-you-icon {
    margin: 0 auto 1.5rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    animation: bounceIn 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.thank-you-message {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 1rem 0 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.thank-you-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature i {
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
}

.feature span {
    color: var(--text-primary);
    font-weight: 500;
}

.feature:nth-child(1) i { animation: fadeInUp 0.5s 0.2s both; }
.feature:nth-child(2) i { animation: fadeInUp 0.5s 0.4s both; }
.feature:nth-child(3) i { animation: fadeInUp 0.5s 0.6s both; }

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error Message Styles */
.error-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.error-message::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--error-color);
}

.error-icon {
    color: var(--error-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.error-icon svg {
    width: 24px;
    height: 24px;
}

.error-content h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.error-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.error-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.error-content a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.error-content a:hover::after {
    width: 100%;
}

/* Form Error State */
.form-group.error input {
    border-color: var(--error-color);
    background-color: rgba(244, 67, 54, 0.05);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

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

/* Auth Styles */
.auth-modal .modal-content {
    max-width: 400px;
    padding: 2.5rem;
    background: linear-gradient(145deg, var(--surface-color), var(--card-bg));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
}

.auth-form.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-form.loading::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 193, 7, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.875rem 1.25rem;
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group input:hover {
    border-color: rgba(255, 193, 7, 0.3);
    background: rgba(0, 0, 0, 0.25);
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.form-group input.error {
    border-color: var(--error-color);
    background: rgba(244, 67, 54, 0.1);
}

.form-group input.error:focus {
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.2);
}

.form-group input.success {
    border-color: var(--success-color);
    background: rgba(76, 175, 80, 0.1);
}

.form-group input.success:focus {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.form-group .error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-group .error-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-group .error-message i {
    font-size: 1rem;
}

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group.checkbox:hover {
    background: rgba(255, 255, 255, 0.05);
}

.form-group.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.auth-switch {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: var(--transition);
    background: rgba(255, 193, 7, 0.1);
}

.auth-switch a:hover {
    background: rgba(255, 193, 7, 0.2);
    transform: translateY(-1px);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .auth-buttons {
        width: 100%;
        gap: 0.75rem;
    }
    
    .auth-buttons button {
        width: 100%;
        min-width: unset;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .logo {
        justify-content: center;
    }
}

.btn-secondary, .btn-primary {
    padding: 0.875rem 1.75rem;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: 160px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--background-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.btn-primary i {
    font-size: 1.1rem;
}

.btn-secondary.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-secondary.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-secondary.success {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.btn-secondary.error {
    background: var(--error-color);
    border-color: var(--error-color);
    color: white;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover::before {
    transform: translateX(100%);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu .user-name {
    color: var(--primary-color);
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 2rem 0;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Header */
.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.header-content::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.earnings-card {
    background: rgba(255, 193, 7, 0.05);
    padding: 1.5rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.withdraw-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-color);
    color: var(--background-color);
    padding: 0.875rem 1.5rem;
    border-radius: 25px;
    margin-top: 1rem;
    font-weight: 600;
    transition: var(--transition);
    justify-content: center;
}

.withdraw-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.withdraw-button i {
    font-size: 1.1rem;
}

.earnings p {
    margin: 0.25rem 0;
    font-size: 1rem;
    color: var(--text-primary);
}

#totalEarnings {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.target {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

/* Tasks Section */
.tasks-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tasks-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.tasks-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
    perspective: 1000px;
}

.task-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
}

.task-card:hover {
    transform: translateY(-5px) rotateX(5deg);
}

.task-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.task-card:hover::before {
    transform: translateX(100%);
}

.task-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 193, 7, 0.2);
}

.task-card.watched {
    opacity: 0.6;
    cursor: not-allowed;
}

.task-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.task-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 193, 7, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.task-card:hover .task-icon {
    transform: scale(1.1);
    background: var(--primary-color);
    color: var(--background-color);
}

.task-card.watched .task-icon {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.task-amount {
    background: rgba(255, 193, 7, 0.1);
    color: var(--primary-color);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.task-amount::before {
    content: '+';
    font-size: 1.1rem;
    font-weight: 700;
}

.task-card:hover .task-amount {
    background: var(--primary-color);
    color: var(--background-color);
    transform: translateX(-5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.pagination button:not(:disabled):hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pageInfo {
    font-size: 0.95rem;
    color: var(--text-secondary);
    min-width: 100px;
    text-align: center;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 30px;
}

.logo {
    position: relative;
    padding-bottom: 1rem;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.logo .tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.logo-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.earnings {
    text-align: right;
}

.earnings p {
    margin: 5px 0;
    font-size: 1.1rem;
}

#totalEarnings {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.3rem;
}

.tasks-header {
    margin-bottom: 20px;
}

.tasks-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.tasks-container {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.task-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.task-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.task-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.task-amount {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.pagination button {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button:not(:disabled):hover {
    background-color: var(--primary-color);
    color: #000;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 600px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateY(20px);
    animation: slideUp 0.3s ease-out forwards;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--text-color);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.timer {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #333;
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    transition: width 1s linear;
}

/* Success Modal */
.success {
    text-align: center;
    padding: 3rem 2rem;
}

.success h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 1.5rem 0 0.5rem;
}

.success p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.earned-amount {
    color: var(--primary-color) !important;
    font-size: 1.5rem !important;
    font-weight: 700;
    margin: 0 0.25rem;
}

.success-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success h2 {
    color: var(--success-color);
    margin-bottom: 15px;
}

.earned-amount {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

#closeSuccess {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #000;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 30px;
    margin-top: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

#closeSuccess:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

#closeSuccess:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.3);
}

/* Video Player */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Timer */
.timer {
    margin: 1.5rem 0 0;
    text-align: center;
}

.timer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

#timeRemaining {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 1s linear;
    border-radius: 4px;
}

/* Close Button */
.close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.75rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Success Icon */
.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon i {
    font-size: 3.5rem;
    color: var(--success-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding: 1.5rem 1.25rem;
        width: 95%;
    }
    
    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .logo {
        margin: 0 auto;
    }

    .auth-buttons {
        justify-content: center;
    }
    
    .earnings-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .tasks-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.25rem;
    }

    .task-card {
        padding: 1.25rem;
    }
}

.app-footer {
    margin-top: auto;
    padding: 2rem 0;
    background: var(--surface-color);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: 1.75rem;
    }

    .logo .tagline {
        font-size: 0.9rem;
    }
    
    .modal-content {
        padding: 1.75rem 1.5rem;
        width: 95%;
    }

    .auth-modal .modal-content {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .success {
        padding: 2rem 1.5rem;
    }
    
    .success-icon {
        width: 70px;
        height: 70px;
    }
    
    .success-icon i {
        font-size: 3rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .amount {
        font-size: 2rem;
    }

    .task-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .task-amount {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 1rem;
    }

    .tasks-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .task-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .task-info {
        flex-direction: column;
        align-items: center;
    }

    .task-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .modal-content {
        padding: 1.25rem 1rem;
        border-radius: var(--border-radius);
    }

    .auth-form {
        gap: 1rem;
    }

    .form-group input {
        padding: 0.625rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .success h2 {
        font-size: 1.5rem;
    }
    
    .earned-amount {
        font-size: 1.2rem !important;
    }

    .pagination {
        gap: 0.75rem;
    }

    .pagination button {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    #pageInfo {
        font-size: 0.85rem;
        min-width: 80px;
    }
}

/* Task Card Styles */
.task-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.task-card:hover {
    background: var(--card-hover);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.task-card.watched {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.03);
}

/* Footer Styles */
.app-footer {
    background-color: #1E1E1E;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-separator {
    color: var(--text-tertiary);
    margin: 0 0.5rem;
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-separator {
        display: none;
    }
}

.task-card.watched:hover {
    transform: none;
    box-shadow: none;
}

.task-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.task-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
}

.task-card.watched .task-icon {
    color: var(--success-color);
    background: rgba(76, 175, 80, 0.1);
}

.task-amount {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.task-amount .earn-amount {
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: var(--transition);
}

.task-amount .completed-badge {
    color: var(--success-color);
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-amount .completed-badge::before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .earnings {
        text-align: center;
    }
    
    .task-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .task-info {
        width: 100%;
        justify-content: center;
    }
}



/* Tip of the Day Styles */
.tip-container {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #ffd700;
    position: relative;
    overflow: hidden;
}

.tip-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ffd700;
    font-weight: 600;
}

.tip-header i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.tip-content {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 1rem;
}

.tip-category {
    display: inline-block;
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 15px;
    font-weight: 500;
}

.tip-refresh {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #aaa;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tip-refresh:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    transform: rotate(180deg);
}


/* Income Method Styles */
.income-method {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid #ffd700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.income-method h3 {
    color: #ffd700;
    margin-top: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.income-method h4 {
    color: #ffd700;
    margin: 20px 0 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.method-description {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.method-steps,
.method-tips {
    padding-left: 20px;
    margin: 10px 0;
}

.method-steps li,
.method-tips li {
    margin-bottom: 8px;
    color: #e0e0e0;
    line-height: 1.5;
}

.method-steps li {
    counter-increment: step-counter;
    position: relative;
}

.method-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: -30px;
    background: #ffd700;
    color: #1e1e1e;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.method-tips li::before {
    content: "•";
    color: #ffd700;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

@media (max-width: 768px) {
    .income-method {
        padding: 20px;
    }
    
    .income-method h3 {
        font-size: 1.3rem;
    }
    
    .income-method h4 {
        font-size: 1.1rem;
    }
}








/* Resources Section Styles */
.resources-section {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 15px;
    border-left: 4px solid #4a90e2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.resources-section h3 {
    color: #4a90e2;
    margin-top: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resources-section p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 15px;
}

.resource-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.resource-links li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.resource-links li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
}

.resource-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    line-height: 1.4;
}

.resource-links a:hover {
    color: #4a90e2;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .resources-section {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .resources-section h3 {
        font-size: 1.3rem;
    }
    
    .resource-links li {
        font-size: 0.95rem;
    }
}