/* Dashboard - Professional Version */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2128;
    --text-primary: #e6edf3;
    --text-secondary: #7d8590;
    --border: #30363d;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.05em;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #1a1d29 0%, #252836 50%, #1a1d29 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-normal);
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(234, 67, 53, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(91, 159, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* Section Title Typography */
.section-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    letter-spacing: var(--letter-spacing-tight);
    line-height: var(--line-height-tight);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.stat-card.purple::before { background: linear-gradient(90deg, #8b5cf6, #6366f1); }
.stat-card.pink::before { background: linear-gradient(90deg, #ec4899, #f43f5e); }
.stat-card.blue::before { background: linear-gradient(90deg, #3b82f6, #06b6d4); }
.stat-card.orange::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
    height: 5px;
}

.stat-icon {
    font-size: 48px;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(102, 126, 234, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Categories */
.categories-section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.categories-filter {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.category-chip {
    padding: 10px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.category-chip span {
    font-size: 18px;
}

.category-chip span img {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.category-chip:hover {
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.category-chip.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Responsive Categories */
@media (max-width: 768px) {
    .categories-filter {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .category-chip {
        font-size: 13px;
        padding: 12px 8px;
        white-space: nowrap;
        min-height: 48px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border-radius: 12px;
    }
    
    .category-chip span {
        font-size: 24px;
    }

    .category-chip span img {
        width: 24px;
        height: 24px;
    }
    
    /* Tümü butonunu tam genişlik yap */
    .category-chip:first-child {
        grid-column: 1 / -1;
        flex-direction: row;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .category-chip {
        font-size: 13px;
        padding: 9px 16px;
    }
}

/* Tasks Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.view-all-btn {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.view-all-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Tasks Grid */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* Task Card */
.task-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.task-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
}

.task-card:hover::before {
    opacity: 1;
}

.task-header-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
}

.badge-hot {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.badge-new {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.badge-premium {
    background: linear-gradient(135deg, #f59e0b, #eab308);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Task Image */
.task-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.task-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.3));
}

.instagram-bg { background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%); }
.tiktok-bg { background: linear-gradient(135deg, #000000 0%, #ee1d52 50%, #69c9d0 100%); }
.youtube-bg { background: linear-gradient(135deg, #c4302b 0%, #ff0000 100%); }
.twitter-bg { background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%); }
.facebook-bg { background: linear-gradient(135deg, #4267B2 0%, #1877f2 100%); }
.linkedin-bg { background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%); }
.twitch-bg { background: linear-gradient(135deg, #6441a5 0%, #9146ff 100%); }
.discord-bg { background: linear-gradient(135deg, #5865f2 0%, #7289da 100%); }

.platform-icon {
    font-size: calc(var(--gp-task-icon-size, 24px) * 2.4);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.task-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 3;
}

.task-category {
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Task Body */
.task-body {
    padding: 24px;
}

.task-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.task-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.task-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-icon {
    font-size: 16px;
}

.info-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.task-points {
    display: flex;
    align-items: center;
    gap: 8px;
}

.points-icon {
    font-size: 24px;
}

.points-value {
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

.btn-start {
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-start:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
    .tasks-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 24px 16px;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        font-size: 36px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .view-all-btn {
        width: 100%;
    }
    
    .tasks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .task-image {
        height: 160px;
    }
    
    .platform-icon {
        font-size: 64px;
    }
    
    .task-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-start {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: row;
        text-align: left;
    }
    
    .task-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.task-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.task-card:nth-child(1) { animation-delay: 0.05s; }
.task-card:nth-child(2) { animation-delay: 0.1s; }
.task-card:nth-child(3) { animation-delay: 0.15s; }
.task-card:nth-child(4) { animation-delay: 0.2s; }
.task-card:nth-child(5) { animation-delay: 0.25s; }
.task-card:nth-child(6) { animation-delay: 0.3s; }
.task-card:nth-child(7) { animation-delay: 0.35s; }
.task-card:nth-child(8) { animation-delay: 0.4s; }


/* Level Badge */
.task-level {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.level-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.level-badge.level-2 { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.level-badge.level-3 { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.level-badge.level-4 { background: linear-gradient(135deg, #ec4899, #f472b6); }
.level-badge.level-5 { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.level-badge.level-7 { background: linear-gradient(135deg, #ef4444, #f87171); }
.level-badge.level-10 { background: linear-gradient(135deg, #6366f1, #818cf8); }

/* Reward Points */
.reward-points {
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 6px;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.5));
    letter-spacing: 0.5px;
}

.price-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-new {
    display: none;
}

/* Locked Task */
.task-card.locked {
    position: relative;
    pointer-events: none;
}

.task-card.locked .task-body {
    filter: blur(4px);
    opacity: 0.6;
    user-select: none;
    pointer-events: none;
}

.task-card.locked .task-image {
    filter: blur(2px) grayscale(50%);
    opacity: 0.7;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 24px;
    user-select: none;
}

.lock-icon {
    font-size: 56px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.lock-text {
    font-size: 18px;
    font-weight: 700;
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.task-card.locked .btn-start {
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.task-card.locked .btn-start {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    cursor: not-allowed;
    opacity: 0.5;
}


/* Badge Alignment Fix */
.task-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: inline-block;
}

.badge.hot {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.badge.new {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.badge.premium {
    background: linear-gradient(135deg, #ffd89b, #19547b);
}

.badge.discount {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

/* Make level badge same size as other badges */
.level-badge {
    padding: 6px 14px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}


.dashboard-container {
    position: relative;
    z-index: 1;
}


/* Header */
.header {
    background: rgba(26, 29, 41, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header Top */
.header-top {
    padding: 20px 0;
}

.header-top .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 12px;
}

.logo:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.logo-icon {
    font-size: 36px;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.5));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Search Box */
.header-center {
    flex: 1;
    max-width: 500px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(37, 40, 54, 0.8);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.search-box:focus-within {
    border-color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: scale(1.05);
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    border-radius: 16px;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-balance:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5);
}

.balance-icon {
    font-size: 22px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px 8px 8px;
    background: rgba(37, 40, 54, 0.8);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 3px solid #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.user-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.dropdown-icon {
    font-size: 10px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.user-profile:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Header Bottom - Navigation */
.header-bottom {
    background: rgba(21, 25, 50, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    padding: 0;
}

.main-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 8px 0;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.nav-item {
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 12px;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px 3px 0 0;
    transition: transform 0.3s ease;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.15);
}

.nav-item:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-item.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.nav-item.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* Responsive Header */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 20px;
    }
    
    .header-top .header-container {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .header-center {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 15px 0;
    }
    
    .logo-text {
        display: none;
    }
    
    .user-name {
        display: none;
    }
    
    .user-balance {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .balance-icon {
        font-size: 18px;
    }
    
    .main-nav {
        gap: 4px;
        padding: 6px 0;
    }
    
    .nav-item {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }
    
    .header-top {
        padding: 12px 0;
    }
    
    .user-info {
        gap: 10px;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .search-input {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .search-btn {
        padding: 12px 18px;
    }
}


/* Announcement Banner */
.announcement-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    margin-bottom: 30px;
    animation: slideDown 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.announcement-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

.announcement-icon {
    font-size: 28px;
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

.announcement-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.announcement-content strong {
    color: #667eea;
    font-weight: 800;
}

.announcement-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: rotate(90deg);
}


.price-box {
    display: flex;
    align-items: center;
}

.reward-points {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #fbbf24 !important;
    animation: glow 2s ease-in-out infinite !important;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 2px 8px rgba(251, 191, 36, 0.5); }
    50% { text-shadow: 0 4px 16px rgba(251, 191, 36, 0.8); }
}


/* Quick Stats Banner */
.quick-stats-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.quick-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quick-stat-icon {
    font-size: 40px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.quick-stat-value {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 4px;
}

.quick-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Premium CTA */
.premium-cta-section {
    margin: 60px 0;
}

.premium-cta-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.premium-cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.4);
}

.premium-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.premium-cta-icon {
    font-size: 80px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.premium-cta-content {
    flex: 1;
}

.premium-cta-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 12px;
    color: white;
}

.premium-cta-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.premium-cta-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-feature {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(10px);
}

.premium-cta-btn {
    background: white;
    color: #667eea;
    padding: 18px 36px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: inline-block;
    pointer-events: none;
}

.premium-cta-card:hover .premium-cta-btn {
    transform: translateX(8px);
}

/* Recent Activity */
.recent-activity-section {
    margin: 60px 0;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(8px);
}

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.activity-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.activity-icon.pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.activity-time {
    font-size: 13px;
    color: var(--text-secondary);
}

.activity-reward {
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive for new sections */
@media (max-width: 1024px) {
    .quick-stats-banner {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px;
    }
    
    .premium-cta-card {
        padding: 40px;
        gap: 30px;
    }
    
    .premium-cta-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .quick-stats-banner {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 16px;
    }
    
    .premium-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        gap: 24px;
    }
    
    .premium-cta-icon {
        font-size: 64px;
    }
    
    .premium-cta-title {
        font-size: 24px;
    }
    
    .premium-cta-features {
        justify-content: center;
    }
    
    .premium-cta-btn {
        width: 100%;
    }
    
    .activity-item {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .activity-reward {
        width: 100%;
        text-align: right;
    }
}

@media (max-width: 480px) {
    .quick-stat-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .quick-stat-icon {
        font-size: 32px;
    }
    
    .quick-stat-value {
        font-size: 24px;
    }
    
    .premium-cta-title {
        font-size: 20px;
    }
    
    .premium-cta-desc {
        font-size: 14px;
    }
    
    .activity-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}


/* ===================================
   IMPROVED TASK CARDS (from tasks.css)
   =================================== */

/* Task Card Enhanced Styling */
.task-card {
    background: rgba(30, 33, 45, 0.8);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.task-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
}

.task-card:hover::before {
    opacity: 1;
}

/* Task Badges */
.task-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.badge {
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

.badge.hot {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
}

.badge.new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge.premium {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

/* Task Level */
.task-level {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.level-badge {
    padding: 7px 14px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.level-badge.level-3,
.level-badge.level-5 {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-color: transparent;
}

/* Task Image */
.task-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.task-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
}

.instagram-bg {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

.youtube-bg {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.tiktok-bg {
    background: linear-gradient(135deg, #000000 0%, #ee1d52 50%, #69c9d0 100%);
}

.twitter-bg {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.facebook-bg {
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
}

.task-image .platform-icon {
    font-size: 72px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    position: relative;
    z-index: 1;
}

/* Task Body */
.task-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.task-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.category-tag {
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.category-tag.instagram {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 100%);
}

.category-tag.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.category-tag.tiktok {
    background: linear-gradient(135deg, #000000 0%, #ee1d52 100%);
}

.category-tag.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.category-tag.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
}

.difficulty {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid;
}

.difficulty.easy {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-color: #10b981;
}

.difficulty.medium {
    background: rgba(251, 191, 36, 0.12);
    color: #f59e0b;
    border-color: #f59e0b;
}

.difficulty.hard {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border-color: #f59e0b;
}

.task-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 14px 0;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.task-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    line-height: 1.65;
    flex: 1;
}

/* Task Stats */
.task-stats {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(102, 126, 234, 0.12);
}

.task-stats .stat {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.task-stats .stat span {
    font-size: 18px;
}

/* Task Footer */
.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.price-box {
    flex: 1;
}

.reward-points {
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn-start {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(102, 126, 234, 0.4);
}

.btn-start:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Tasks Grid */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 1200px) {
    .tasks-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .tasks-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .task-image {
        height: 180px;
    }
    
    .task-image .platform-icon {
        font-size: 64px;
    }
    
    .task-body {
        padding: 24px;
    }
    
    .task-title {
        font-size: 20px;
    }
    
    .task-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-start {
        width: 100%;
        text-align: center;
    }
}


/* ===================================
   MOBILE BOTTOM NAVIGATION
   =================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(26, 29, 41, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    z-index: 9999;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 8px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item:active {
    transform: scale(0.95);
}

.mobile-nav-icon {
    font-size: 24px;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    line-height: 1;
}

.mobile-nav-label {
    font-size: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.mobile-nav-item.active {
    color: white;
}

.mobile-nav-item.active .mobile-nav-icon {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.mobile-nav-item.active .mobile-nav-label {
    color: #667eea;
}

/* Active indicator */
.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 3px 3px;
}

/* Badge for notifications */
.mobile-nav-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Hide desktop header nav on mobile */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    .header-bottom {
        display: none;
    }
    
    /* Add padding to body to prevent content being hidden behind bottom nav */
    body {
        padding-bottom: 70px;
        overflow-x: hidden;
    }
    
    .footer {
        margin-bottom: 70px;
    }

    /* WebView-specific bottom nav stabilization */
    html.is-webview .mobile-bottom-nav,
    body.is-webview .mobile-bottom-nav {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        transform: none !important;
        -webkit-transform: none !important;
        z-index: 2147483000 !important;
    }

    html.is-webview body,
    body.is-webview {
        padding-bottom: 74px !important;
    }

    html.is-webview .footer,
    body.is-webview .footer {
        margin-bottom: 74px !important;
    }
}

@media (max-width: 480px) {
    .mobile-nav-item {
        padding: 6px 4px;
        max-width: none;
        min-width: 0;
    }
    
    .mobile-nav-icon {
        font-size: 20px;
    }
    
    .mobile-nav-label {
        font-size: 9px;
    }
}


/* User Profile Dropdown */
.user-profile {
    position: relative;
    z-index: 1001;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 180px;
    background: rgba(26, 29, 41, 0.98);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow: hidden;
    padding: 8px;
}

.user-profile.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #ef4444;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: translateX(4px);
}

.dropdown-item-icon {
    font-size: 18px;
}

/* Dropdown Arrow */
.user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: rgba(26, 29, 41, 0.98);
    border-left: 2px solid rgba(102, 126, 234, 0.3);
    border-top: 2px solid rgba(102, 126, 234, 0.3);
    transform: rotate(45deg);
}

/* Responsive Dropdown */
@media (max-width: 768px) {
    .user-dropdown {
        min-width: 160px;
        right: -10px;
    }
}






/* Mobile Header Improvements */
@media (max-width: 768px) {
    .header-top {
        padding: 12px 0;
    }
    
    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        gap: 12px;
    }
    
    .header-left {
        flex-shrink: 0;
    }
    
    .logo {
        padding: 6px 12px;
    }
    
    .logo-icon {
        font-size: 32px;
    }
    
    .logo-text {
        display: none;
    }
    
    .header-center {
        display: none;
    }
    
    .header-right {
        flex-shrink: 0;
    }
    
    .user-info {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .user-balance {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 12px;
        gap: 8px;
    }
    
    .balance-icon {
        font-size: 18px;
    }
    
    .balance-amount {
        white-space: nowrap;
    }
    
    .user-profile {
        padding: 6px 12px 6px 6px;
        border-radius: 12px;
        gap: 8px;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .user-name {
        display: none;
    }
    
    .dropdown-icon {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 12px;
        gap: 8px;
    }
    
    .logo {
        padding: 4px 8px;
    }
    
    .logo-icon {
        font-size: 28px;
    }
    
    .user-balance {
        padding: 8px 12px;
        font-size: 13px;
        gap: 6px;
    }
    
    .balance-icon {
        font-size: 16px;
    }
    
    .balance-amount {
        font-size: 13px;
    }
    
    .user-profile {
        padding: 4px 8px 4px 4px;
        gap: 6px;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        border-width: 2px;
    }
    
    .dropdown-icon {
        font-size: 8px;
    }
}

@media (max-width: 360px) {
    .header-container {
        padding: 0 8px;
        gap: 6px;
    }
    
    .logo-icon {
        font-size: 24px;
    }
    
    .user-balance {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .balance-amount {
        font-size: 12px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
    }
}




/* Locked Task Overlay */
.task-card.task-locked {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lock-content {
    text-align: center;
    padding: 20px;
}

.lock-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.lock-text {
    font-size: 18px;
    font-weight: 900;
    color: white !important;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lock-subtext {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}


/* ===================================
   FLOATING GIVEAWAY BUTTON (Mobile Only)
   =================================== */
.giveaway-float-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
    z-index: 998;
    text-decoration: none;
    animation: giveawayPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
    touch-action: pan-x pan-y;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.giveaway-float-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.6);
}

.giveaway-float-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 2px;
}

.giveaway-float-text {
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.giveaway-float-icon {
    pointer-events: none;
}

@keyframes giveawayPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
    }
    50% { 
        transform: scale(1.08);
        box-shadow: 0 12px 32px rgba(245, 158, 11, 0.7);
    }
}

/* Show only on mobile */
@media (max-width: 768px) {
    .giveaway-float-btn {
        display: flex;
        animation: none;
        transform: none;
    }
}

/* Hide on giveaway page itself */
body.giveaway-page .giveaway-float-btn {
    display: none !important;
}

/* Dynamic branding logo image support */
.logo.logo-has-image,
.footer-logo.logo-has-image {
    gap: 0 !important;
}

.logo.logo-has-image .brand-logo-full,
.footer-logo.logo-has-image .brand-logo-full {
    display: block;
    height: 72px;
    width: auto;
    max-width: 420px;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(102, 126, 234, 0.25));
}

.logo.logo-has-image .brand-logo-wrap,
.footer-logo.logo-has-image .brand-logo-wrap {
    position: relative;
    display: inline-flex;
    width: fit-content;
    overflow: hidden;
    border-radius: 8px;
}

.footer-logo.logo-has-image .brand-logo-full {
    height: 78px;
    max-width: 460px;
}

/* Branding animations: header + footer */
.logo.brand-anim-slide,
.footer-logo.brand-anim-slide {
    position: static;
}

.logo.brand-anim-slide .brand-logo-wrap::after,
.footer-logo.brand-anim-slide .brand-logo-wrap::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -45%;
    width: 30%;
    height: 160%;
    transform: rotate(18deg);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: brandShine 3.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes brandShine {
    0% { left: -45%; }
    60%, 100% { left: 135%; }
}

.logo.brand-anim-float .brand-logo-full,
.footer-logo.brand-anim-float .brand-logo-full {
    animation: brandFloat 3s ease-in-out infinite;
}

@keyframes brandFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo.brand-anim-pulse .brand-logo-full,
.footer-logo.brand-anim-pulse .brand-logo-full {
    animation: brandPulse 2.2s ease-in-out infinite;
}

@keyframes brandPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.06); filter: brightness(1.18); }
}

/* Dashboard task cover image enhancement */
.dashboard-container .tasks-section .task-card .task-image {
    height: 200px !important;
    min-height: 200px !important;
    aspect-ratio: auto !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-container .tasks-section .task-card .task-image .task-cover-img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: var(--gp-task-cover-fit, cover) !important;
    object-position: center center !important;
    transform: scale(var(--gp-task-cover-scale, 1.35));
    transition: transform 0.25s ease, filter 0.25s ease;
    filter: brightness(1.02) saturate(1.05) contrast(1.02);
}

.dashboard-container .tasks-section .task-card:hover .task-image .task-cover-img {
    transform: scale(calc(var(--gp-task-cover-scale, 1.35) + 0.05));
    filter: brightness(1.05) saturate(1.08) contrast(1.03);
}

.dashboard-container .tasks-section .task-card .task-image::after {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.18) 55%,
        rgba(0, 0, 0, 0.32) 100%
    );
}

.dashboard-container .tasks-section .task-card .task-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 45%);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden !important;
    }

    .header-top .header-container {
        flex-wrap: nowrap !important;
        gap: 8px !important;
        align-items: center !important;
    }

    .header-left {
        flex: 1 1 auto;
        min-width: 0;
    }

    .header-right {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .user-info {
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    .user-balance {
        max-width: 56vw;
        padding: 8px 10px;
    }

    .balance-amount {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo.logo-has-image {
        padding: 4px 6px !important;
    }

    .dashboard-container .tasks-section .task-card .task-image {
        height: 170px !important;
        min-height: 170px !important;
    }

    .logo.logo-has-image .brand-logo-full {
        height: 46px;
        max-width: 190px;
    }

    .footer-logo.logo-has-image .brand-logo-full {
        height: 54px;
        max-width: 260px;
    }
}

/* Global mobile compact fixes (header + nav + giveaway button) */
@media (max-width: 768px) {
    .header-top .header-container {
        padding: 0 10px !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }

    .header-left,
    .header-right,
    .user-info {
        min-width: 0;
    }

    .logo {
        padding: 4px 6px !important;
    }

    .logo.logo-has-image .brand-logo-full {
        height: 42px !important;
        max-width: 150px !important;
    }

    .user-balance {
        padding: 7px 9px !important;
        border-radius: 11px !important;
        max-width: 46vw !important;
        gap: 6px !important;
    }

    .balance-icon {
        font-size: 15px !important;
    }

    .balance-amount {
        font-size: 13px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .user-profile {
        padding: 4px 6px !important;
        gap: 5px !important;
    }

    .user-avatar {
        width: 30px !important;
        height: 30px !important;
    }

    .dropdown-icon {
        font-size: 8px !important;
    }

    .mobile-bottom-nav {
        padding: 6px 0 max(6px, env(safe-area-inset-bottom));
    }

    .mobile-nav-item {
        padding: 6px 6px;
    }

    .mobile-nav-icon {
        font-size: 20px;
    }

    .mobile-nav-label {
        font-size: 10px;
    }

    body {
        padding-bottom: 78px !important;
    }

    .giveaway-float-btn {
        width: 52px !important;
        height: 52px !important;
        right: max(8px, env(safe-area-inset-right)) !important;
        bottom: calc(82px + env(safe-area-inset-bottom)) !important;
        box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45) !important;
        animation: none !important;
        transform: none !important;
        overflow: hidden;
    }

    .giveaway-float-icon {
        font-size: 22px !important;
        margin-bottom: 0 !important;
    }

    .giveaway-float-text {
        font-size: 8px !important;
        line-height: 1 !important;
    }
}

@media (max-width: 420px) {
    .logo.logo-has-image .brand-logo-full {
        height: 38px !important;
        max-width: 128px !important;
    }

    .user-balance {
        max-width: 42vw !important;
    }

    .balance-amount {
        font-size: 12px !important;
    }

    .giveaway-float-btn {
        width: 48px !important;
        height: 48px !important;
        right: max(6px, env(safe-area-inset-right)) !important;
    }

    .giveaway-float-text {
        display: none !important;
    }
}

/* Mobile category overflow fix */
@media (max-width: 768px) {
    .categories-section {
        overflow: hidden;
    }

    .categories-filter {
        width: 100%;
        max-width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .category-chip {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        justify-content: center;
    }

    .category-chip:first-child {
        grid-column: 1 / -1;
    }
}

/* Global notification/toast centering (all app pages) */
.toast,
.notification,
.mobile-notification {
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: min(92vw, 560px) !important;
    width: fit-content !important;
    text-align: center !important;
    white-space: pre-line;
    z-index: 2147483600 !important;
}

.toast.show,
.notification.show,
.mobile-notification.show {
    top: 50% !important;
    right: auto !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Task icon hard alignment override (dashboard + tasks shared styles) */
.task-image .platform-icon {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: var(--gp-task-icon-size, 24px) !important;
    animation: none !important;
    transform: none !important;
    z-index: 2 !important;
}

.task-image .platform-icon img {
    display: block !important;
    width: var(--gp-task-icon-size, 24px) !important;
    height: var(--gp-task-icon-size, 24px) !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 auto !important;
    vertical-align: middle !important;
}

.task-image .task-motion-wrap {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;
    transform-origin: center center !important;
}

@keyframes gpIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes gpIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes gpIconSway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes gpIconBob {
    0%, 100% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-5px) scale(1.03); }
    60% { transform: translateY(2px) scale(0.99); }
}

body[data-task-icon-anim="float"] .task-image .task-motion-wrap {
    animation: gpIconFloat 3.6s ease-in-out infinite !important;
}

body[data-task-icon-anim="pulse"] .task-image .task-motion-wrap {
    animation: gpIconPulse 2.8s ease-in-out infinite !important;
}

body[data-task-icon-anim="sway"] .task-image .task-motion-wrap {
    animation: gpIconSway 3.4s ease-in-out infinite !important;
}

body[data-task-icon-anim="bob"] .task-image .task-motion-wrap {
    animation: gpIconBob 2.9s ease-in-out infinite !important;
}
