:root {
    /* Color palette */
    --primary-color: #f7a600;
    --primary-rgb: 247, 166, 0;
    --secondary-color: #ff8c00;
    --accent-color: #ff6b00;
    --accent-rgb: 255, 107, 0;
    --success-color: #4cd964;
    --success-rgb: 76, 217, 100;
    --error-color: #ff3b30;
    --info-color: #5b9bd5;
    --cooldown-color: #a78bfa;
    --dark-bg: #0f0f0f;
    --card-bg: #1a1a1a;
    --card-bg-elevated: #222222;
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(255, 255, 255, 0.14);
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-muted: #666666;

    /* Gradients */
    --accent-gradient: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    --button-gradient: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    --card-gradient: linear-gradient(to bottom, rgba(26,26,26,0.95), rgba(20,20,20,0.95));

    /* Shadows */
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.4);
    --hover-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.15);
    --glow-primary: 0 0 20px rgba(var(--primary-rgb), 0.15);

    /* Radius scale */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 50px;
    --border-radius: var(--radius-lg);

    /* Spacing scale */
    --spacing-2xs: 4px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;

    /* Typography scale */
    --font-2xs: 0.65rem;
    --font-xs: 0.75rem;
    --font-sm: 0.85rem;
    --font-base: 0.95rem;
    --font-lg: 1.05rem;
    --font-xl: 1.2rem;
    --font-2xl: 1.5rem;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;

    /* Layout */
    --app-max-width: 430px;
    --btn-min-height: 44px;
    --nav-height: 68px;
    --header-height: 56px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--dark-bg);
    color: var(--text-primary);
    overscroll-behavior: none;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app-container {
    display: none;
    flex-direction: column;
    min-height: 100vh;
    max-width: var(--app-max-width);
    margin: 0 auto;
    background: var(--dark-bg);
    width: 100%;
    box-sizing: border-box;
}

/* ============================================================
   SHARED PRIMITIVES
   ============================================================ */

/* -- Card -- */
.card,
.feature-card,
.onetime-task-card,
.recurring-task-card,
.section-card,
.social-content-card,
.reward-card,
.stat-card {
    background: var(--card-gradient);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--card-shadow);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

/* -- Button base -- */
.btn,
.feature-btn,
.onetime-action-btn,
.recurring-action-btn,
.copy-btn,
.uid-submit-btn,
.social-links-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    min-height: var(--btn-min-height);
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--font-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}
.btn:active,
.feature-btn:active,
.onetime-action-btn:active,
.recurring-action-btn:active,
.copy-btn:active,
.uid-submit-btn:active,
.social-links-submit-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* -- Badge -- */
.points-badge,
.task-points-badge,
.recurring-points-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--primary-rgb), 0.12));
    color: var(--primary-color);
    font-weight: 800;
    font-size: var(--font-xs);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(var(--primary-rgb), 0.4);
    white-space: nowrap;
}

/* -- Empty state -- */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
}
.empty-state i {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.5;
    margin-bottom: var(--spacing-md);
    display: block;
}
.empty-state h4 {
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
    font-size: var(--font-lg);
}
.empty-state p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-size: var(--font-sm);
}

/* -- Section header -- */
.section-header,
.task-type-header,
.feature-header {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

/* ============================================================
   HEADER
   ============================================================ */

header {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(20, 20, 20, 0.98));
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

#app-title {
    margin: 0;
    font-family: 'Exo 2', 'Orbitron', 'Audiowide', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bybit-city-logo {
    height: 1.5rem;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}


#user-points-display {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.1));
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs) var(--spacing-sm);
    box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.2);
}

.points-label {
    font-size: var(--font-xs);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

#points-value {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(var(--primary-rgb), 0.4);
    min-width: 40px;
    text-align: right;
}

main {
    flex: 1 1 0%;
    padding: var(--spacing-sm);
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.page-content {
    animation: fadeIn 0.4s ease-out;
}

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

/* ===== BOTTOM NAVIGATION ===== */
#bottom-nav {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(20, 20, 20, 0.98));
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xs) var(--spacing-xs);
    padding-bottom: max(var(--spacing-xs), env(safe-area-inset-bottom));
    flex-shrink: 0;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    gap: var(--spacing-2xs);
}

.nav-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 2px solid var(--card-border);
    color: var(--text-muted);
    font-size: var(--font-2xs);
    padding: var(--spacing-xs);
    cursor: pointer;
    text-align: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-weight: 600;
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    -webkit-tap-highlight-color: transparent;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.nav-btn:hover::before {
    opacity: 1;
}

.nav-btn i {
    font-size: var(--font-xl);
    display: block;
    margin-bottom: var(--spacing-2xs);
    transition: all var(--transition-base);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-btn.active {
    color: var(--primary-color);
    font-weight: 700;
    transform: translateY(-2px);
    box-shadow: 
        0 4px 15px rgba(247, 166, 0, 0.3),
        0 0 20px rgba(247, 166, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #ff8c00, var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}


.nav-btn.active i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(247, 166, 0, 0.6));
}

.nav-btn:hover:not(.active) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.nav-btn:hover:not(.active) i {
    transform: scale(1.1);
    color: var(--text-primary);
}

/* Individual nav button color accents */
.nav-btn[data-page="tasks-page"] i {
    color: #4cd964;
}

.nav-btn[data-page="tasks-page"].active {
    background: linear-gradient(135deg, rgba(76, 217, 100, 0.25), rgba(56, 197, 84, 0.2));
    border-color: rgba(76, 217, 100, 0.5);
    box-shadow: 
        0 4px 15px rgba(76, 217, 100, 0.3),
        0 0 20px rgba(76, 217, 100, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #4cd964;
}

.nav-btn[data-page="tasks-page"].active::after {
    background: linear-gradient(90deg, #4cd964, #32d74b, #4cd964);
}

.nav-btn[data-page="invite-page"] i {
    color: rgb(255, 107, 0);
}

.nav-btn[data-page="invite-page"].active {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.25), rgba(255, 140, 0, 0.2));
    border-color: rgba(255, 107, 0, 0.5);
    box-shadow: 
        0 4px 15px rgba(255, 107, 0, 0.3),
        0 0 20px rgba(255, 107, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: rgb(255, 107, 0);
}

.nav-btn[data-page="invite-page"].active::after {
    background: linear-gradient(90deg, rgb(255, 107, 0), rgb(255, 140, 0), rgb(255, 107, 0));
}

.nav-btn[data-page="leaderboard-page"] i {
    color: #f7a600;
}

.nav-btn[data-page="leaderboard-page"].active {
    background: linear-gradient(135deg, rgba(247, 166, 0, 0.25), rgba(255, 140, 0, 0.2));
    border-color: rgba(247, 166, 0, 0.5);
    box-shadow: 
        0 4px 15px rgba(247, 166, 0, 0.3),
        0 0 20px rgba(247, 166, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #f7a600;
}

.nav-btn[data-page="leaderboard-page"].active::after {
    background: linear-gradient(90deg, #f7a600, #ff8c00, #f7a600);
}

.nav-btn[data-page="profile-page"] i {
    color: rgb(255, 107, 0);
}

.nav-btn[data-page="profile-page"].active {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.25), rgba(255, 140, 0, 0.2));
    border-color: rgba(255, 107, 0, 0.5);
    box-shadow: 
        0 4px 15px rgba(255, 107, 0, 0.3),
        0 0 20px rgba(255, 107, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: rgb(255, 107, 0);
}

.nav-btn[data-page="profile-page"].active::after {
    background: linear-gradient(90deg, rgb(255, 107, 0), rgb(255, 140, 0), rgb(255, 107, 0));
}

/* Responsive bottom navigation for 5 buttons */
@media (max-width: 600px) {
    #bottom-nav {
        padding: 8px 6px;
        gap: 4px;
    }
    
    .nav-btn {
        font-size: 0.65rem;
        padding: 8px 6px;
        border-radius: 10px;
    }
    
    .nav-btn i {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }
}

/* ===== PAGE HEADER SYSTEM ===== */
.page-content h2 {
    position: relative;
    font-size: var(--font-xl);
    margin-bottom: var(--spacing-2xs);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.95), rgba(30, 30, 30, 0.95));
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.page-content h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    opacity: 0.8;
}


.page-content h2 i {
    font-size: var(--font-xl);
    color: var(--primary-color);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.1));
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.15);
    position: relative;
    z-index: 1;
}

.page-content h2 span {
    position: relative;
    z-index: 1;
    flex: 1;
}


/* Clean card styling */
.task-item, .leaderboard-item, .referral-item {
    background: var(--card-bg);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    transition: all var(--transition-base);
    width: 100%;
    box-sizing: border-box;
}

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(247, 166, 0, 0.2);
}

.task-item h3, .leaderboard-item p, .referral-item p {
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.task-item h3 {
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.task-item h3 span.points {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.8rem;
    background: rgba(247, 166, 0, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(247, 166, 0, 0.15);
}

.task-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.task-item input[type="text"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1em;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.task-item input[type="text"]:focus {
    outline: none;
    border-color: rgb(255, 107, 0);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}

.task-item button, button {
    background: var(--button-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.task-item button:hover, button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.25);
}

.task-item button:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Profile page styling */
#profile-page {
    padding: 0;
}

/* ===== PROFILE STATS GRID ===== */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.profile-stat-card {
    background: var(--card-gradient);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.profile-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color), var(--accent-color)) 0% 0% / 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.profile-stat-card:hover::before {
    opacity: 1;
}

.profile-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(var(--accent-rgb), 0.3);
}

.profile-stat-card.highlight {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--primary-rgb), 0.08));
    border-color: rgba(var(--primary-rgb), 0.25);
}

.profile-stat-card.highlight::before {
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.5), transparent);
}

.profile-stat-card.highlight .stat-value {
    color: var(--primary-color);
    font-weight: 700;
}

.stat-label {
    font-size: var(--font-xs);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.8;
}

.stat-value {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* ===== PROFILE SECTION CARDS ===== */
.profile-section-card {
    background: var(--card-gradient);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.profile-section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color), var(--accent-color)) 0% 0% / 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.profile-section-card:hover::before {
    opacity: 1;
}

.profile-section-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(var(--accent-rgb), 0.3);
}

.profile-section-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--card-border);
}

.profile-section-header i {
    font-size: var(--font-2xl);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.profile-section-header h3 {
    margin: 0;
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.profile-section-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.profile-input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: var(--font-base);
    transition: all var(--transition-base);
    font-family: inherit;
}

.profile-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.profile-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.03);
}

.profile-input::placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* UID Input Wrapper */
.uid-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-submit-btn {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-md);
    background: var(--button-gradient);
    color: white;
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    min-height: var(--btn-min-height);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.profile-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(247, 166, 0, 0.4);
}

.profile-submit-btn:active {
    transform: translateY(0);
}

.profile-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.profile-submit-btn i {
    font-size: 1rem;
}

/* ===== LEADERBOARD ITEMS ===== */
.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xs) var(--spacing-xs);
    gap: var(--spacing-xs);
    background: var(--card-gradient);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-2xs);
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.leaderboard-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leaderboard-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.leaderboard-item:hover::before {
    opacity: 1;
}

.leaderboard-item .rank {
    font-size: var(--font-sm);
    font-weight: 800;
    color: var(--primary-color);
    min-width: 30px;
    text-align: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.1));
    padding: var(--spacing-2xs) var(--spacing-2xs);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 1px 4px rgba(var(--primary-rgb), 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.leaderboard-item .user-info {
    flex-grow: 1;
    min-width: 0;
}

.leaderboard-item .user-info p {
    margin: 0;
    font-size: var(--font-sm);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.leaderboard-item .points {
    font-weight: 800;
    color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.15));
    padding: var(--spacing-2xs) var(--spacing-xs);
    border-radius: var(--radius-pill);
    font-size: var(--font-xs);
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid rgba(var(--accent-rgb), 0.4);
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.3);
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== ONE-TIME TASKS ===== */
.onetime-task-card {
    background: var(--card-gradient);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    transition: all var(--transition-base);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.onetime-task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.onetime-task-card:hover::before {
    opacity: 1;
}

.onetime-task-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(var(--primary-rgb), 0.3);
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.onetime-task-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-sm);
}

.onetime-task-main {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.onetime-task-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
    flex-wrap: nowrap;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.onetime-task-title {
    margin: 0;
    font-size: var(--font-base);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.onetime-points-badge {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--primary-rgb), 0.2));
    color: var(--primary-color);
    font-weight: 800;
    font-size: var(--font-2xs);
    padding: var(--spacing-2xs) var(--spacing-xs);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(var(--primary-rgb), 0.5);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.25);
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.onetime-task-desc {
    font-size: var(--font-xs);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

.onetime-task-action {
    flex-shrink: 0;
}

.onetime-action-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2xs);
    min-height: 38px;
    min-width: 80px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.onetime-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.onetime-action-btn:active::before {
    width: 300px;
    height: 300px;
}

.onetime-action-btn.join-state {
    background: linear-gradient(135deg, rgb(255, 107, 0), rgb(255, 140, 0));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.onetime-action-btn.join-state:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(255, 140, 0), rgb(255, 107, 0));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.5);
}

.onetime-action-btn.verify-state {
    background: linear-gradient(135deg, rgb(255, 107, 0), rgb(255, 140, 0));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.onetime-action-btn.verify-state:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(255, 140, 0), rgb(255, 107, 0));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.5);
}

.onetime-action-btn.completed-state {
    background: rgba(76, 217, 100, 0.15);
    color: #4cd964;
    border: 2px solid rgba(76, 217, 100, 0.4);
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(76, 217, 100, 0.2);
}

.onetime-action-btn.completed-state:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(76, 217, 100, 0.2);
}

.onetime-action-btn:disabled {
    background: rgba(136, 136, 136, 0.2);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border: 1px solid rgba(136, 136, 136, 0.1);
}

.onetime-task-card.completed {
    background: linear-gradient(135deg, rgba(76, 217, 100, 0.1), rgba(56, 197, 84, 0.05));
    border-color: rgba(76, 217, 100, 0.3);
    opacity: 0.95;
}

.onetime-task-card.completed .onetime-task-title {
    color: rgba(76, 217, 100, 0.95);
}

.onetime-task-card.completed .onetime-task-desc {
    color: rgba(76, 217, 100, 0.75);
}

.onetime-task-card.completed .onetime-points-badge {
    background: rgba(76, 217, 100, 0.2);
    border-color: rgba(76, 217, 100, 0.4);
    color: #4cd964;
}

/* Mobile Responsive for One-time Tasks */
@media (max-width: 600px) {
    .onetime-task-card {
        padding: 10px 12px;
        margin-bottom: 8px;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .onetime-task-content {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .onetime-task-main {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .onetime-task-title-row {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .onetime-title-with-badge {
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 60px);
        overflow: hidden;
    }
    
    .onetime-task-title {
        font-size: 0.88rem;
        max-width: 100%;
    }
    
    .onetime-points-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
        flex-shrink: 0;
    }
    
    .onetime-task-desc {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.3;
        max-width: 100%;
    }
    
    .onetime-task-action {
        width: 100%;
    }
    
    .onetime-action-btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.75rem;
        min-height: 36px;
    }
}

/* ===== NEW TASK SPECIAL STYLING ===== */
.onetime-task-card.new-task {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.12), rgba(247, 166, 0, 0.08), rgba(26, 26, 26, 0.95));
    border: 1px solid rgba(255, 107, 0, 0.5);
    box-shadow: 0 3px 18px rgba(255, 107, 0, 0.2), 0 0 25px rgba(247, 166, 0, 0.08);
    position: relative;
    animation: newTaskPulse 3s ease-in-out infinite;
}

.onetime-task-card.new-task::before {
    opacity: 1;
    background: linear-gradient(90deg, #ff6b00, #f7a600, #ff8c42, #ff6b00);
    height: 2px;
    animation: shimmer 2s ease-in-out infinite;
}

.onetime-task-card.new-task:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3), 0 0 35px rgba(247, 166, 0, 0.1);
    border-color: rgba(255, 107, 0, 0.7);
}

.new-task-glow {
    display: none;
}

@keyframes newTaskPulse {
    0%, 100% { box-shadow: 0 4px 25px rgba(255, 107, 0, 0.25), 0 0 40px rgba(247, 166, 0, 0.1); }
    50% { box-shadow: 0 4px 30px rgba(255, 107, 0, 0.35), 0 0 50px rgba(247, 166, 0, 0.15); }
}


.onetime-title-with-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 70px);
    overflow: hidden;
}

.new-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #ff6b00, #ff8c42);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.35);
    animation: badgeGlow 2s ease-in-out infinite;
    flex-shrink: 0;
}

.new-badge i {
    font-size: 0.5rem;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 2px 6px rgba(255, 107, 0, 0.35); }
    50% { box-shadow: 0 2px 10px rgba(255, 107, 0, 0.5); }
}

.onetime-task-card.new-task .onetime-task-title {
    color: #ff8c42;
}

.onetime-task-card.new-task .onetime-points-badge {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.25), rgba(247, 166, 0, 0.15));
    border-color: rgba(255, 107, 0, 0.5);
    color: #ff8c42;
}

.onetime-action-btn.new-task-btn {
    background: linear-gradient(135deg, #ff6b00, #ff8c42) !important;
    border: none !important;
    box-shadow: 0 3px 10px rgba(255, 107, 0, 0.35);
}

.onetime-action-btn.new-task-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff8c42, #f7a600) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.45);
    transform: translateY(-1px);
}

/* Mobile adjustments for new tasks */
@media (max-width: 600px) {
    .onetime-title-with-badge {
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }
    
    .new-badge {
        font-size: 0.5rem;
        padding: 2px 5px;
        padding: 3px 8px;
    }
}

/* ===== NEW TASKS NOTIFICATION BANNER ===== */
.new-tasks-banner {
    background: linear-gradient(135deg, #ff6b00 0%, #f7a600 50%, #ff8c42 100%);
    border: 1px solid #ff6b00;
    border-radius: var(--radius-md);
    padding: 8px 12px;
    margin: 0 0 12px 0;
    display: none;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bannerPulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4);
}

.new-tasks-banner.visible {
    display: flex;
}

.new-tasks-banner::before,
.event-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: bannerShine 3s ease-in-out infinite;
}

@keyframes bannerShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

@keyframes bannerPulse {
    0%, 100% { box-shadow: 0 2px 12px rgba(255, 107, 0, 0.3); }
    50% { box-shadow: 0 3px 18px rgba(255, 107, 0, 0.5); }
}

.new-tasks-banner:active,
.event-banner:active {
    transform: scale(0.98);
}

.new-tasks-banner-icon {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.new-tasks-banner-icon i {
    color: #fff;
    font-size: 0.9rem;
}

.new-tasks-banner-content {
    flex: 1;
    min-width: 0;
}

.new-tasks-banner-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.new-tasks-banner-title .pulse-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulseDot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.new-tasks-banner-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 2px 0 0 0;
    font-weight: 500;
    line-height: 1.2;
}

.new-tasks-banner-arrow {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Event Announcement Banner (blue/cyan variant) */
.event-banner {
    background: linear-gradient(135deg, #0052ff 0%, #00b4d8 50%, #0077ff 100%);
    border: 1px solid #0052ff;
    border-radius: var(--radius-md);
    padding: 8px 12px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: eventBannerPulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 82, 255, 0.3);
    text-decoration: none;
}

@keyframes eventBannerPulse {
    0%, 100% { box-shadow: 0 2px 12px rgba(0, 82, 255, 0.3); }
    50% { box-shadow: 0 3px 18px rgba(0, 82, 255, 0.5); }
}

.event-banner .pulse-dot {
    background: #00e5ff;
}

/* Legacy styles for backward compatibility */
.task-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: nowrap;
}

.task-title-text {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.points-badge {
    background: linear-gradient(135deg, rgba(247, 166, 0, 0.15), rgba(255, 140, 0, 0.15));
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 50px;
    border: 2px solid rgba(247, 166, 0, 0.4);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(247, 166, 0, 0.2);
    letter-spacing: 0.3px;
}

.task-description-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Enhanced Action Buttons */
.task-action-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.join-btn {
    background: linear-gradient(135deg, rgb(255, 107, 0), rgb(255, 140, 0));
    color: white;
}

.join-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(255, 140, 0), rgb(255, 107, 0));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.verify-btn {
    background: linear-gradient(135deg, rgb(255, 107, 0), rgb(255, 140, 0));
    color: white;
}

.verify-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(255, 140, 0), rgb(255, 107, 0));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.completed-btn {
    background: rgba(76, 217, 100, 0.15);
    color: #4cd964;
    border: 2px solid rgba(76, 217, 100, 0.3);
    cursor: not-allowed;
    box-shadow: none;
}

.completed-btn:hover {
    transform: none;
    box-shadow: none;
}

.task-action-btn:disabled {
    background: rgba(136, 136, 136, 0.2);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border: 1px solid rgba(136, 136, 136, 0.1);
}

/* Completed Task State */
.task-item.completed {
    background: rgba(76, 217, 100, 0.08);
    border-color: rgba(76, 217, 100, 0.25);
    opacity: 0.95;
}

.task-item.completed .task-title-text {
    color: rgba(76, 217, 100, 0.9);
}

.task-item.completed .task-description-text {
    color: rgba(76, 217, 100, 0.7);
}

.task-item.completed .points-badge {
    background: rgba(76, 217, 100, 0.15);
    border-color: rgba(76, 217, 100, 0.3);
    color: #4cd964;
}

/* Legacy button styles for backward compatibility */
.join-btn, .verify-btn {
    background: linear-gradient(to right, rgb(255, 107, 0), rgb(255, 140, 0));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(255, 107, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.verify-btn {
    background: linear-gradient(to right, rgb(255, 107, 0), rgb(255, 140, 0));
}

.join-btn:hover, .verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.join-btn:disabled, .verify-btn:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Utility */
.hidden {
    display: none !important;
}

/* ===================================================================
   UNIFIED LOADING SYSTEM
   ===================================================================
   Centralized loading component system using dual-ring spinner.
   Use .loading-container for all loading states across the app.
   =================================================================== */

/* Dual-Ring Spinner - Core Component */
.loading-spinner {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto 30px;
    z-index: 1;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    box-shadow: 
        0 0 20px rgba(247, 166, 0, 0.3),
        inset 0 0 20px rgba(247, 166, 0, 0.1);
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 3px solid transparent;
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spinReverse 0.8s linear infinite;
    opacity: 0.6;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spinReverse {
    to { transform: rotate(-360deg); }
}

/* Loading Text - Gradient Animation */
.loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin: 0;
    z-index: 1;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: textShimmer 2s ease-in-out infinite;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
}

@keyframes textShimmer {
    0%, 100% { 
        background-position: 0% 50%;
        filter: brightness(1);
    }
    50% { 
        background-position: 100% 50%;
        filter: brightness(1.3);
    }
}

/* Unified Loading Container - Use this for ALL loading states */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    min-height: 200px;
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.3), rgba(20, 20, 20, 0.3));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 16px 0;
}

.loading-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(247, 166, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Full-Page Loading (Initial App Load) */
#loading-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

#loading-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(247, 166, 0, 0.05) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
    pointer-events: none;
}

#loading-page .loading-spinner {
    margin-bottom: 30px;
}

#loading-page p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin: 0;
    z-index: 1;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: textShimmer 2s ease-in-out infinite;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
}

/* Compact Loading (Inline/Section Loading) */
.loading-container.compact {
    padding: 30px 20px;
    min-height: 150px;
}

.loading-container.compact .loading-spinner {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.loading-container.compact .loading-spinner::before {
    border-width: 3px;
}

.loading-container.compact .loading-spinner::after {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-width: 2px;
}

.loading-container.compact .loading-text {
    font-size: 0.95rem;
}





/* UID Notice Styling */
.uid-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--primary-rgb), 0.08));
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: var(--spacing-2xs);
}

.uid-notice i {
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.uid-notice span {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}


/* (Referral Summary styles consolidated below in Enhanced Referral Summary section) */

/* Task Center Styles */
#tasks-page h2::after {
    background: linear-gradient(to right, var(--primary-color), #ff6b00);
}

/* Simplified task tabs */
/* ===== TASK TABS ===== */
.task-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: var(--spacing-xl);
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xs);
    gap: var(--spacing-xs);
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.task-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.03), rgba(255, 140, 0, 0.03));
    pointer-events: none;
}

.task-tab {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 2px solid var(--card-border);
    color: var(--text-muted);
    padding: var(--spacing-sm) var(--spacing-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--font-sm);
    font-weight: 600;
    transition: all var(--transition-base);
    text-align: center;
    white-space: nowrap;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-tap-highlight-color: transparent;
}

.task-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.task-tab:hover::before {
    opacity: 1;
}

.task-tab i {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 6px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.task-tab.active {
    background: linear-gradient(135deg, rgba(247, 166, 0, 0.25), rgba(255, 140, 0, 0.2));
    color: var(--primary-color);
    border: 2px solid rgba(247, 166, 0, 0.5);
    box-shadow: 
        0 4px 15px rgba(247, 166, 0, 0.3),
        0 0 20px rgba(247, 166, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.task-tab.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #ff8c00, var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}


.task-tab.active i {
    color: var(--primary-color);
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(247, 166, 0, 0.6));
}

.task-tab:hover:not(.active) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.task-tab:hover:not(.active) i {
    transform: scale(1.1);
    color: var(--text-primary);
}

/* Individual tab color accents */
.task-tab[data-category="daily"] i {
    color: #4cd964;
}

.task-tab[data-category="daily"].active {
    background: linear-gradient(135deg, rgba(76, 217, 100, 0.25), rgba(56, 197, 84, 0.2));
    border-color: rgba(76, 217, 100, 0.5);
    box-shadow: 
        0 4px 15px rgba(76, 217, 100, 0.3),
        0 0 20px rgba(76, 217, 100, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #4cd964;
}

.task-tab[data-category="daily"].active::after {
    background: linear-gradient(90deg, #4cd964, #32d74b, #4cd964);
}

.task-tab[data-category="onetime"] i {
    color: #ff6b00;
}

.task-tab[data-category="onetime"].active {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.25), rgba(255, 140, 0, 0.2));
    border-color: rgba(255, 107, 0, 0.5);
    box-shadow: 
        0 4px 15px rgba(255, 107, 0, 0.3),
        0 0 20px rgba(255, 107, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #ff6b00;
}

.task-tab[data-category="onetime"].active::after {
    background: linear-gradient(90deg, #ff6b00, #ff8c00, #ff6b00);
}

.task-tab[data-category="recurring"] i {
    color: rgb(255, 107, 0);
}

.task-tab[data-category="recurring"].active {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.25), rgba(255, 140, 0, 0.2));
    border-color: rgba(255, 107, 0, 0.5);
    box-shadow: 
        0 4px 15px rgba(255, 107, 0, 0.3),
        0 0 20px rgba(255, 107, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: rgb(255, 107, 0);
}

.task-tab[data-category="recurring"].active::after {
    background: linear-gradient(90deg, rgb(255, 107, 0), rgb(255, 140, 0), rgb(255, 107, 0));
}

/* Task Content Areas */
.task-content {
    position: relative;
}

.task-category-content {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.task-category-content.active {
    display: block;
}

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


/* Coming Soon Styling */
.coming-soon {
    text-align: center;
    padding: 40px 20px;
    background: rgba(30, 30, 30, 0.4);
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.coming-soon i {
    font-size: 3em;
    color: var(--text-secondary);
    margin-bottom: 15px;
    opacity: 0.6;
}

.coming-soon p {
    color: var(--text-secondary);
    font-size: 1.1em;
    margin: 0;
    font-weight: 500;
}


/* Mobile Responsiveness for Task Tabs */
@media (max-width: 480px) {
    .task-tabs {
        padding: 6px;
        gap: 6px;
        border-radius: 14px;
    }
    
    .task-tab {
        font-size: 0.75rem;
        padding: 12px 8px;
        min-height: 60px;
        border-radius: 12px;
    }
    
    .task-tab i {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
}


/* Global responsive improvements */
* {
    box-sizing: border-box;
}

/* Prevent horizontal overflow on all elements */
.page-content,
.task-content,
.task-category-content,
#leaderboard-list,
#referral-history {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Ensure buttons don't overflow */
button {
    max-width: 100%;
    box-sizing: border-box;
}

/* Better text handling */
.task-item h3,
.task-item p,
.leaderboard-item .user-info p,
#invite-link {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Mobile optimization */
@media (max-width: 600px) {
    main {
        padding: 12px;
    }
    
    .task-item, .referral-item {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .leaderboard-item {
        padding: 8px 10px;
        margin-bottom: 5px;
        gap: 6px;
    }
    
    .leaderboard-item .rank {
        font-size: 0.85rem;
        min-width: 28px;
        padding: 3px 5px;
    }
    
    .leaderboard-item .user-info p {
        font-size: 0.8rem;
    }
    
    .leaderboard-item .points {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    header {
        padding: 12px 14px;
    }
    
    #app-title {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
        gap: 6px;
    }
    
    .bybit-city-logo {
        height: 1.5rem !important;
    }
    
    #user-points-display {
        padding: 6px 12px;
    }
    
    .points-label {
        font-size: 0.7rem;
    }
    
    #points-value {
        font-size: 1rem;
    }
    
    .page-content h2 {
        font-size: 1.1rem;
        padding: 10px 14px;
        gap: 10px;
        margin-bottom: 4px;
    }
    
    .page-content h2 i {
        font-size: 1.1rem;
        width: 32px;
        height: 32px;
    }
    
    .task-section-header h3 {
        font-size: 1.05rem;
        padding: 8px 12px;
    }
    
    .task-section-header h3 i {
        font-size: 1rem;
        width: 28px;
        height: 28px;
    }
    
    .task-section-header p {
        padding-left: 48px;
        font-size: 0.75rem;
    }
    
    .section-description {
        font-size: 0.75rem;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 18px;
        padding: 0;
    }
    
    .task-section-header p {
        padding-left: 26px;
        font-size: 0.75rem;
    }
    
    .task-header-wrapper {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .task-title-text {
        font-size: 1rem;
        flex-basis: 100%;
    }
    
    .points-badge {
        font-size: 0.8rem;
        padding: 5px 12px;
        align-self: flex-end;
    }
    
    .task-description-text {
        font-size: 0.85rem;
        margin-bottom: 14px;
    }
    
    .task-action-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    /* Legacy support */
    .task-item h3 {
        font-size: 1.1em;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .task-item h3 span.points {
        align-self: flex-end;
    }
}

/* Clean daily feature cards */
/* ===== DAILY FEATURE CARDS ===== */
.daily-feature-card {
    background: var(--card-gradient);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-base);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.daily-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.daily-feature-card:hover::before {
    opacity: 1;
}

.daily-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(var(--primary-rgb), 0.3);
}



.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--card-border);
}

.feature-header h4 {
    margin: 0;
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.feature-header h4 i {
    font-size: 1.3em;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.2);
    transition: all var(--transition-base);
}

.checkin-card .feature-header h4 i {
    color: #4cd964;
    background: rgba(76, 217, 100, 0.15);
    box-shadow: 0 2px 8px rgba(76, 217, 100, 0.3);
}

.share-card .feature-header h4 i {
    color: rgb(255, 107, 0);
    background: rgba(255, 107, 0, 0.15);
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.activity-card .feature-header h4 i {
    color: #5b9bd5;
    background: rgba(91, 155, 213, 0.15);
    box-shadow: 0 2px 8px rgba(91, 155, 213, 0.3);
}

.feature-points {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--primary-rgb), 0.2));
    color: var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-pill);
    font-size: var(--font-sm);
    font-weight: 800;
    border: 2px solid rgba(var(--primary-rgb), 0.5);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.daily-feature-card p {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.feature-btn {
    padding: var(--spacing-sm) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: var(--font-base);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    min-height: var(--btn-min-height);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.feature-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.feature-btn:active::before {
    width: 300px;
    height: 300px;
}

.primary-btn {
    background: linear-gradient(135deg, rgb(255, 107, 0), rgb(255, 140, 0));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.primary-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(255, 140, 0), rgb(255, 107, 0));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.5);
}

.secondary-btn {
    background: linear-gradient(135deg, rgb(255, 107, 0), rgb(255, 140, 0));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.secondary-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(255, 140, 0), rgb(255, 107, 0));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.5);
}

.success-btn {
    background: linear-gradient(135deg, #4cd964, #32d74b);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 217, 100, 0.4);
}

.success-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #32d74b, #28c840);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(76, 217, 100, 0.5);
}

.feature-btn:disabled {
    background: rgba(136, 136, 136, 0.2);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    border: 2px solid rgba(136, 136, 136, 0.1);
    box-shadow: none;
}

/* Daily Activity Progress Styles */
.activity-status {
    margin-top: 12px;
}

.activity-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5b9bd5, #4a90e2, #5b9bd5);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    animation: shimmer 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(91, 155, 213, 0.5);
}

.activity-status.completed .progress-fill {
    background: linear-gradient(90deg, #4cd964, #3dd055, #4cd964);
    box-shadow: 0 0 10px rgba(76, 217, 100, 0.5);
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-message {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-message i {
    color: #5b9bd5;
    font-size: 1.1em;
}

.activity-status.completed .activity-message i {
    color: #4cd964;
}

.activity-remaining {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.activity-points {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 4px;
}

.activity-hint {
    margin-top: 12px;
    padding: 12px;
    background: rgba(91, 155, 213, 0.1);
    border: 1px solid rgba(91, 155, 213, 0.2);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-hint i {
    color: #5b9bd5;
    flex-shrink: 0;
}

.content-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.content-preview h5 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 1.1em;
    font-weight: 600;
}

.content-preview p {
    margin: 0 0 8px 0;
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.4;
}

.content-hashtags {
    color: rgb(255, 107, 0);
    font-size: 0.85em;
    font-weight: 500;
}

.link-submission {
    margin-top: 16px;
}

.link-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.95em;
}

.link-input:focus {
    outline: none;
    border-color: rgb(255, 107, 0);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}

.feature-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== STUNNING LOADING CONTENT ===== */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    min-height: 200px;
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.3), rgba(20, 20, 20, 0.3));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 16px 0;
}

.loading-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(247, 166, 0, 0.3);
}

.loading-content::after {
    content: 'Loading content...';
    position: relative;
    z-index: 1;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: textShimmer 2s ease-in-out infinite;
}

/* Override if content has custom text */
.loading-content:not(:empty)::after {
    display: none;
}

.loading-content:not(:empty) {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: textShimmer 2s ease-in-out infinite;
}

.status-message {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    text-align: center;
    font-size: var(--font-sm);
}

.status-message.success {
    background: rgba(76, 217, 100, 0.2);
    border: 1px solid rgba(76, 217, 100, 0.3);
    color: #4cd964;
}

.status-message.error {
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
}

.status-message.info {
    background: rgba(255, 107, 0, 0.2);
    border: 1px solid rgba(255, 107, 0, 0.3);
    color: rgb(255, 107, 0);
}


/* Mobile responsive adjustments for new features */
@media (max-width: 600px) {
    .daily-feature-card {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 12px;
    }
    
    .feature-header h4 {
        font-size: 1.1em;
    }
    
    .feature-points {
        padding: 5px 10px;
        font-size: 0.85em;
    }
    
    .feature-btn {
        padding: 12px 20px;
        font-size: 0.95em;
        min-height: 44px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
    }
    
    .feature-btn.primary-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-height: 40px;
        margin-top: 8px;
    }
}

/* ===== SECTION DESCRIPTION ===== */
.section-description {
    color: var(--text-muted);
    font-size: var(--font-xs);
    margin-top: var(--spacing-2xs);
    margin-bottom: var(--spacing-lg);
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    line-height: 1.5;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.01em;
    position: relative;
}

/* ===== TASK SECTION HEADERS ===== */
.task-section-header {
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.task-section-header h3,
.invite-rewards-overview h3,
.invite-link-section h3,
.referral-performance h3 {
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
    font-size: var(--font-xl);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    letter-spacing: -0.02em;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.95), rgba(30, 30, 30, 0.95));
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.task-section-header h3::before,
.invite-rewards-overview h3::before,
.invite-link-section h3::before,
.referral-performance h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    opacity: 0.6;
}

.task-section-header h3 i,
.invite-rewards-overview h3 i,
.invite-link-section h3 i,
.referral-performance h3 i {
    font-size: var(--font-lg);
    color: var(--primary-color);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.1));
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.15);
    position: relative;
    z-index: 1;
}

.task-section-header p {
    color: var(--text-muted);
    margin: 0;
    font-size: var(--font-xs);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.01em;
    padding-left: 54px;
    margin-top: var(--spacing-2xs);
}

/* Interactive element transitions */
.task-item,
.daily-feature-card,
.nav-btn,
.task-tab,
.feature-btn {
    transition: all var(--transition-base);
}

/* ===== MODERN INVITE PAGE STYLES ===== */

/* Invite Rewards Overview */
.invite-rewards-overview {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-rgb), 0.05));
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.invite-rewards-overview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(247, 166, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.invite-rewards-overview h3 {
    margin-bottom: var(--spacing-lg);
}

.rewards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.reward-card {
    background: var(--card-gradient);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.reward-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reward-card:hover::before {
    opacity: 1;
}

.reward-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.reward-card.instant-reward {
    border-left: 3px solid #4cd964;
}

.reward-card.ongoing-reward {
    border-left: 3px solid var(--primary-color);
}

.reward-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.reward-card h4 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.reward-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.reward-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.3;
}

.earnings-example {
    background: rgba(76, 217, 100, 0.1);
    border: 1px solid rgba(76, 217, 100, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    text-align: center;
    position: relative;
}

.earnings-example i {
    color: #4cd964;
    margin-right: 8px;
}

.earnings-example span {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Invite Link Section */
.invite-link-section {
    background: var(--card-gradient);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.invite-link-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.invite-link-section h3 {
    margin-bottom: var(--spacing-lg);
}

.invite-link-container {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    align-items: stretch;
}

.link-display {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0;
    overflow: hidden;
}

#invite-link {
    display: block;
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    color: var(--text-primary);
    font-family: 'Fira Code', 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    border: none;
    word-break: break-all;
    line-height: 1.4;
    margin: 0;
}

.copy-btn {
    background: var(--button-gradient);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-xl);
    color: white;
    font-weight: 700;
    font-size: var(--font-base);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    min-width: 100px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.copy-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.copy-btn:active::before {
    width: 300px;
    height: 300px;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(247, 166, 0, 0.5);
}

.copy-btn:active {
    transform: translateY(0);
}

/* Share Buttons */
.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.share-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.share-btn i {
    font-size: 1.2rem;
}

.share-btn.telegram {
    border-color: rgba(0, 136, 204, 0.3);
}

.share-btn.telegram:hover {
    background: rgba(255, 107, 0, 0.15);
    border-color: rgba(255, 107, 0, 0.5);
    color: rgb(255, 107, 0);
}

.share-btn.whatsapp {
    border-color: rgba(37, 211, 102, 0.3);
}

.share-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.5);
    color: #25d366;
}

.share-btn.twitter {
    border-color: rgba(255, 107, 0, 0.3);
}

.share-btn.twitter:hover {
    background: rgba(255, 107, 0, 0.15);
    border-color: rgba(255, 107, 0, 0.5);
    color: rgb(255, 107, 0);
}

/* Referral Performance */
.referral-performance {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.referral-performance h3 {
    margin-bottom: var(--spacing-lg);
}

/* Enhanced Referral Summary */
.referral-summary {
    background: linear-gradient(145deg, rgba(42, 42, 42, 0.9), rgba(30, 30, 30, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.referral-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #4cd964, var(--secondary-color));
}

.summary-item {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.summary-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(247, 166, 0, 0.2);
    transform: translateX(4px);
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-item i {
    font-size: 1.3rem;
    margin-right: 16px;
    width: 24px;
    text-align: center;
    color: var(--primary-color);
}

.summary-item div {
    flex: 1;
}

.summary-item strong {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.summary-item.total-bonus {
    background: linear-gradient(135deg, rgba(247, 166, 0, 0.15), rgba(255, 107, 0, 0.1));
    border: 1px solid rgba(247, 166, 0, 0.3);
    box-shadow: 0 4px 15px rgba(247, 166, 0, 0.1);
}

.bonus-explanation {
    margin-top: 16px;
    padding: 14px;
    background: rgba(76, 217, 100, 0.1);
    border: 1px solid rgba(76, 217, 100, 0.2);
    border-radius: 10px;
    text-align: center;
}

.bonus-explanation i {
    color: #4cd964;
    margin-right: 8px;
}

.bonus-explanation small {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.4;
}

/* Mobile Responsiveness for Invite Page */
@media (max-width: 600px) {
    .rewards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .invite-link-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .copy-btn {
        min-width: auto;
        width: 100%;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .share-btn {
        flex-direction: row;
        justify-content: center;
        padding: 12px 16px;
    }
    
    .share-btn i {
        margin-right: 8px;
        margin-bottom: 0;
    }
}

/* Empty State Styles */
.no-referrals-message {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
}

.empty-state {
    max-width: 300px;
    margin: 0 auto;
}

.empty-state h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.empty-state p {
    font-size: 0.9rem;
}

.potential-earnings {
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 0 rgba(76, 217, 100, 0.2);
    }
    50% { 
        box-shadow: 0 0 20px rgba(76, 217, 100, 0.3);
    }
}

/* Completed Task State */
.task-item.completed {
    background: rgba(76, 217, 100, 0.1);
    border: 1px solid rgba(76, 217, 100, 0.3);
    opacity: 0.8;
}

.task-item.completed h3 {
    color: #4cd964;
}

.task-item.completed h3::after {
    content: " ✅";
    font-size: 0.9em;
}

/* ===== NEW SOCIAL SHARE SUBMISSION SECTIONS ===== */

.submission-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.submission-section:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.submission-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.submission-header i {
    font-size: 1.4rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.submission-header span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* X Platform styling - Unified Orange */
.submission-section:first-of-type .submission-header i {
    color: rgb(255, 140, 0);
    background: rgba(255, 107, 0, 0.15);
}

.submission-section:first-of-type:hover {
    border-color: rgba(255, 107, 0, 0.3);
}

/* Instagram styling - Unified Orange */
.submission-section:last-of-type .submission-header i {
    background: linear-gradient(135deg, rgb(255, 107, 0), rgb(255, 140, 0));
    color: white;
}

.submission-section:last-of-type:hover {
    border-color: rgba(255, 107, 0, 0.3);
}

.submission-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.submission-form .link-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    margin: 0;
}

.submission-form .link-input:focus {
    outline: none;
    border-color: rgb(255, 107, 0);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.submission-form .link-input::placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Platform-specific input focus colors - Unified Orange */
.submission-section:first-of-type .link-input:focus {
    border-color: rgb(255, 107, 0);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.submission-section:last-of-type .link-input:focus {
    border-color: rgb(255, 140, 0);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

/* Platform-specific buttons - Unified Orange */
.twitter-btn {
    background: linear-gradient(135deg, rgb(255, 107, 0), rgb(255, 140, 0));
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.twitter-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(255, 140, 0), rgb(255, 107, 0));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.35);
}

.twitter-btn:active {
    transform: translateY(0);
}

.instagram-btn {
    background: linear-gradient(135deg, rgb(255, 107, 0), rgb(255, 140, 0));
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.instagram-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(255, 140, 0), rgb(255, 107, 0));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.35);
}

.instagram-btn:active {
    transform: translateY(0);
}

.twitter-btn:disabled,
.instagram-btn:disabled {
    background: rgba(136, 136, 136, 0.2);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border: 1px solid rgba(136, 136, 136, 0.1);
}

/* Submission section responsive design */
@media (max-width: 600px) {
    .submission-section {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 12px;
    }
    
    .submission-header {
        gap: 10px;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }
    
    .submission-header i {
        font-size: 1.2rem;
        width: 28px;
        height: 28px;
    }
    
    .submission-header span {
        font-size: 1rem;
    }
    
    .submission-form .link-input {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    
    .twitter-btn,
    .instagram-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

/* ===== STUNNING RECURRING TASKS REDESIGN ===== */

/* Task Type Section Container */
.task-type-section {
    background: linear-gradient(145deg, rgba(42, 42, 42, 0.8), rgba(30, 30, 30, 0.8));
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: all var(--transition-base);
    box-shadow: var(--card-shadow);
}

.task-type-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(var(--primary-rgb), 0.2);
}

/* Task Type Header */
.task-type-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.task-type-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.task-type-header i {
    color: var(--primary-color);
    font-size: 1.3em;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(247, 166, 0, 0.15), rgba(255, 140, 0, 0.1));
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(247, 166, 0, 0.15);
}

/* Task List Container */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Recurring Task Card */
.recurring-task-card {
    background: var(--card-gradient);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    transition: all var(--transition-base);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.recurring-task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recurring-task-card:hover::before {
    opacity: 1;
}

.recurring-task-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.recurring-task-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.recurring-task-main {
    flex: 1;
    min-width: 0;
}

.recurring-task-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
}

.recurring-task-emoji {
    font-size: 1.3em;
    flex-shrink: 0;
}

.recurring-task-title {
    margin: 0;
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.recurring-points-badge {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--primary-rgb), 0.2));
    color: var(--primary-color);
    font-weight: 800;
    font-size: var(--font-sm);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-pill);
    border: 2px solid rgba(var(--primary-rgb), 0.5);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.recurring-task-desc {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

.recurring-task-action {
    width: 100%;
}

.recurring-action-btn {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-base);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    min-height: var(--btn-min-height);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.recurring-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.recurring-action-btn:active::before {
    width: 300px;
    height: 300px;
}

.recurring-action-btn.action-state {
    background: linear-gradient(135deg, rgb(255, 107, 0), rgb(255, 140, 0));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.recurring-action-btn.action-state:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(255, 140, 0), rgb(255, 107, 0));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.5);
}

.recurring-action-btn.verify-state {
    background: linear-gradient(135deg, rgb(255, 107, 0), rgb(255, 140, 0));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.recurring-action-btn.verify-state:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(255, 140, 0), rgb(255, 107, 0));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.5);
}

.recurring-action-btn.completed-state {
    background: rgba(76, 217, 100, 0.15);
    color: #4cd964;
    border: 2px solid rgba(76, 217, 100, 0.4);
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(76, 217, 100, 0.2);
}

.recurring-action-btn.completed-state:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(76, 217, 100, 0.2);
}

/* Cooldown state for recurring tasks on timer */
.recurring-action-btn.cooldown-state {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    color: #a78bfa;
    border: 2px solid rgba(139, 92, 246, 0.4);
    cursor: not-allowed;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25);
}

.recurring-action-btn.cooldown-state:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25);
}

.recurring-action-btn.cooldown-state i {
    animation: cooldownPulse 2s ease-in-out infinite;
}

@keyframes cooldownPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Card styling for cooldown state */
.recurring-task-card.on-cooldown {
    border-color: rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), transparent);
}

/* Recurring badge indicator */
.recurring-badge {
    font-size: 0.85rem;
    margin-left: 6px;
    opacity: 0.8;
}

.recurring-action-btn:disabled {
    background: rgba(136, 136, 136, 0.2);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border: 1px solid rgba(136, 136, 136, 0.1);
}

.recurring-task-card.completed {
    background: linear-gradient(135deg, rgba(76, 217, 100, 0.1), rgba(56, 197, 84, 0.05));
    border-color: rgba(76, 217, 100, 0.3);
    opacity: 0.95;
}

.recurring-task-card.completed .recurring-task-title {
    color: rgba(76, 217, 100, 0.95);
}

.recurring-task-card.completed .recurring-task-desc {
    color: rgba(76, 217, 100, 0.75);
}

.recurring-task-card.completed .recurring-points-badge {
    background: rgba(76, 217, 100, 0.2);
    border-color: rgba(76, 217, 100, 0.4);
    color: #4cd964;
}

/* Legacy styles for backward compatibility */
.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
}

.task-content {
    flex: 1;
    margin-right: 16px;
}

.task-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.task-title {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.task-btn {
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.task-item.completed {
    background: rgba(76, 217, 100, 0.08);
    border-color: rgba(76, 217, 100, 0.2);
    opacity: 0.9;
}

.task-item.completed .task-title {
    color: #4cd964;
}

.task-item.completed .task-description {
    color: rgba(76, 217, 100, 0.8);
}

/* Mobile Responsiveness for Recurring Tasks */
@media (max-width: 600px) {
    .task-type-section {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 16px;
    }
    
    .task-type-header {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    
    .task-type-header h4 {
        font-size: 1.05rem;
    }
    
    .recurring-task-card {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 16px;
    }
    
    .recurring-task-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .recurring-task-title {
        font-size: 1.05rem;
        width: 100%;
    }
    
    .recurring-points-badge {
        font-size: 0.85rem;
        padding: 6px 14px;
        align-self: flex-end;
    }
    
    .recurring-task-desc {
        font-size: 0.85rem;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.4;
    }
    
    .recurring-action-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 46px;
    }
    
    /* Legacy mobile styles */
    .task-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
    }
    
    .task-content {
        margin-right: 0;
    }
    
    .task-header {
        gap: 10px;
    }
    
    .task-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .task-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 44px;
        margin-top: 8px;
    }
}

/* Multiple Social Content Cards Styling */
/* ===== CONTENT CARDS ===== */
.content-card {
    background: var(--card-gradient);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover::before {
    opacity: 1;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.content-card.expired {
    opacity: 0.6;
    background: rgba(26, 26, 26, 0.5);
    border-color: rgba(255, 255, 255, 0.04);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.content-header h5 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(247, 166, 0, 0.1);
    border: 1px solid rgba(247, 166, 0, 0.2);
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.countdown-timer i {
    font-size: 0.8rem;
}

.countdown-timer .expired {
    color: #ff6b6b;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.expired {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.platform-buttons {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.platform-buttons .feature-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.9rem;
}

.twitter-btn {
    background: linear-gradient(135deg, rgb(255, 107, 0), rgb(255, 140, 0));
    border: 1px solid rgba(255, 107, 0, 0.3);
}

.twitter-btn:hover {
    background: linear-gradient(135deg, rgb(255, 140, 0), rgb(255, 107, 0));
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}

.instagram-btn {
    background: linear-gradient(135deg, rgb(255, 107, 0), rgb(255, 140, 0));
    border: 1px solid rgba(255, 107, 0, 0.3);
}

.instagram-btn:hover {
    background: linear-gradient(135deg, rgb(255, 140, 0), rgb(255, 107, 0));
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}

/* Social Link Input Styles */
.social-link-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link-input label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

.social-link-input label i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.social-link-input label i.fa-instagram {
    background: linear-gradient(135deg, rgb(255, 107, 0), rgb(255, 140, 0));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-link-input label i.fa-x-twitter {
    color: rgb(255, 107, 0);
}

.social-link-input label span {
    flex: 1;
}

/* Social Notice Styling */
.social-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.08));
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: var(--spacing-2xs);
}

.social-notice i {
    color: rgb(255, 107, 0);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.social-notice span {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Platform Submission Status */
.submission-status {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-sm) 0;
}

.platform-status {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.twitter-status {
    background: rgba(255, 107, 0, 0.1);
    color: rgb(255, 107, 0);
    border: 1px solid rgba(255, 107, 0, 0.2);
}

.instagram-status {
    background: rgba(255, 140, 0, 0.1);
    color: rgb(255, 140, 0);
    border: 1px solid rgba(255, 140, 0, 0.2);
}

/* Disabled button states */
.feature-btn.disabled,
.feature-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-btn.disabled:hover,
.feature-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    transform: none;
}

/* Submitted share button states */
.share-btn.submitted {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Profile Page Mobile Responsive */
@media (max-width: 600px) {
    .profile-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .profile-stats-grid {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .profile-stat-card {
        padding: 12px 14px;
        border-radius: 10px;
    }
    
    .stat-label {
        font-size: 0.7rem;
        margin-bottom: 5px;
        letter-spacing: 0.6px;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .profile-section-card {
        padding: 18px;
        margin-bottom: 20px;
        border-radius: 16px;
    }
    
    .profile-section-header {
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .profile-section-header i {
        font-size: 1.3rem;
        width: 36px;
        height: 36px;
    }
    
    .profile-section-header h3 {
        font-size: 1.1rem;
    }
    
    .profile-section-content {
        gap: 14px;
    }
    
    .profile-input {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .profile-submit-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 48px;
    }
    
    .uid-notice,
    .social-notice {
        padding: 12px 14px;
        font-size: 0.85rem;
        gap: 10px;
    }
    
    .uid-notice i,
    .social-notice i {
        font-size: 1rem;
    }
    
    .social-link-input label {
        font-size: 0.9rem;
    }
    
    .social-link-input label i {
        font-size: 1.1rem;
        width: 22px;
    }
}

/* === V9: Tier badges, referral status === */

.tier-badge {
    display: inline-block;
    font-size: var(--font-2xs);
    font-weight: 600;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    vertical-align: middle;
    margin-left: 4px;
    opacity: 0.85;
}
.tier-premium { background: rgba(255, 215, 0, 0.12); color: #d4a800; border: 1px solid rgba(255, 215, 0, 0.2); }
.tier-standard { background: rgba(192, 192, 192, 0.1); color: #999; border: 1px solid rgba(192, 192, 192, 0.15); }

.tier-separator {
    text-align: center;
    padding: var(--spacing-2xs) 0;
    margin: var(--spacing-2xs) 0;
    border-top: 1px dashed rgba(255,255,255,0.08);
}
.tier-separator-label {
    font-size: var(--font-2xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-item.tier-premium {
    border-left: 2px solid rgba(255, 215, 0, 0.35);
}
.leaderboard-item.tier-standard {
    border-left: 2px solid rgba(192, 192, 192, 0.25);
}

.referral-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 8px;
    margin-left: 8px;
}
.referral-badge.credited { background: rgba(76, 217, 100, 0.2); color: #4cd964; }
.referral-badge.pending { background: rgba(255, 149, 0, 0.2); color: #ff9500; }

.referral-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.referral-item:last-child { border-bottom: none; }
.referral-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}
.referral-conditions {
    width: 100%;
    margin-top: 4px;
    display: flex;
    gap: 12px;
}
.referral-conditions .condition {
    font-size: 0.75rem;
    font-weight: 500;
}
.referral-conditions .condition.met { color: #4cd964; }
.referral-conditions .condition.unmet { color: #ff3b30; opacity: 0.7; }
.referral-list {
    margin-top: var(--spacing-sm);
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

/* Leaderboard rank medals */
.rank-gold i { color: gold; }
.rank-silver i { color: silver; }
.rank-bronze i { color: #cd7f32; }

