* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.5s ease;
}

/* Dark Mode */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .header {
    background: rgba(26, 26, 46, 0.95);
}

body.dark-mode .logo,
body.dark-mode .nav-links button {
    color: #e0e0e0;
}

body.dark-mode .nav-links button:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.15);
}

body.dark-mode .search-section,
body.dark-mode .task-card,
body.dark-mode .modal-content {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

body.dark-mode .search-section h1,
body.dark-mode .task-card h3,
body.dark-mode .modal-header h2,
body.dark-mode .modal-body h4 {
    color: #e0e0e0;
}

body.dark-mode .search-section p,
body.dark-mode .task-preview,
body.dark-mode .modal-body,
body.dark-mode .modal-body p,
body.dark-mode .modal-body li {
    color: #b0b0b0;
}

body.dark-mode select {
    background: #1a1a2e;
    color: #e0e0e0;
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-mode select option {
    background: #1a1a2e;
}

body.dark-mode .task-card:hover {
    border-color: #667eea;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

body.dark-mode .close-btn {
    background: #2a2a3e;
    color: #e0e0e0;
}

body.dark-mode .faq-item {
    background: rgba(36, 36, 54, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

body.dark-mode .faq-question {
    color: #e0e0e0;
}

body.dark-mode .faq-answer {
    color: #b0b0b0;
}



/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    animation: pulse 2s infinite;
}

.task-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.platform-icons {
  display: flex;
  gap: 8px;
  margin: 6px 0;
}


.desktop-icon {
  width: 30px;   
  height: 30px;
  fill: currentColor;
  color: #1a1a2f;  
  vertical-align: middle;
}
body.dark-mode .desktop-icon {
  width: 30px;   
  height: 30px;
  fill: currentColor;
  color: white;  
  vertical-align: middle;
}
.apple-icon {
  width: 30px;   
  height: 30px;
  fill: currentColor;
  color: #1a1a2f;  
  vertical-align: middle;
}
body.dark-mode .apple-icon {
  width: 30px;   
  height: 30px;
  fill: currentColor;
  color: white;  
  vertical-align: middle;
}

.android-icon {
  width: 30px;
  height: 30px;
  fill: currentColor;
  color: #1a1a2f;
  vertical-align: middle;
}

body.dark-mode .android-icon {
  width: 30px;
  height: 30px;
  fill: currentColor;
  color: white;
  vertical-align: middle;
}




/* ===== Theme Switcher - Enhanced Version ===== */
.theme-switcher {
display: inline-block;
margin: 10px;
transform: scale(1);
transition: transform 0.3s ease;
}

.theme-switcher:hover {
transform: scale(1.05);
}

.theme-toggle-input {
display: none;
}

.theme-toggle-label {
cursor: pointer;
display: block;
user-select: none;
}

.toggle-wrapper {
position: relative;
width: 60px;
height: 30px;
border-radius: 30px;
transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toggle-background {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(40deg, #3a86ff, #8338ec);
border-radius: 30px;
box-shadow: 0 2px 10px rgba(58, 134, 255, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
overflow: hidden;
transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Wave effect for background */
.toggle-background:before {
content: "";
position: absolute;
width: 150%;
height: 150%;
background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.1) 10px,
    rgba(255, 255, 255, 0.1) 20px
);
top: -25%;
left: -25%;
transform: rotate(0deg);
transition: all 1.2s ease;
animation: waveMove 8s infinite linear;
}

@keyframes waveMove {
0% {
    transform: rotate(0deg) scale(1);
}
50% {
    transform: rotate(180deg) scale(1.1);
}
100% {
    transform: rotate(360deg) scale(1);
}
}

/* Dark theme background */
.theme-toggle-input:checked + .theme-toggle-label .toggle-background {
background: linear-gradient(40deg, #121212, #2a2a2a);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.theme-toggle-input:checked
+ .theme-toggle-label
.toggle-background:before {
background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.015),
    rgba(255, 255, 255, 0.015) 10px,
    rgba(255, 255, 255, 0.03) 10px,
    rgba(255, 255, 255, 0.03) 20px
);
animation: darkWaveMove 8s infinite linear;
}

@keyframes darkWaveMove {
0% {
    transform: rotate(0deg) scale(1);
}
50% {
    transform: rotate(-180deg) scale(1.1);
}
100% {
    transform: rotate(-360deg) scale(1);
}
}

.toggle-icons {
position: absolute;
width: 100%;
height: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 8px;
box-sizing: border-box;
z-index: 1;
}

/* Sun icon */
.sun-icon {
position: absolute;
left: 75%;
top: 50%;
color: #ffbe0b;
font-size: 18px;
transform: translate(-50%, -50%) scale(0.8);
opacity: 0;
transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
filter: drop-shadow(0 0 3px rgba(255, 190, 11, 0.5));
}

/* Moon icon */
.moon-icon {
position: absolute;
left: 25%;
top: 50%;
color: #ffffff;
font-size: 16px;
transform: translate(-50%, -50%) scale(1);
opacity: 1;
transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

/* Icon animations for checked state */
.theme-toggle-input:checked + .theme-toggle-label .sun-icon {
opacity: 1;
transform: translate(-50%, -50%) scale(1.2) rotate(360deg);
}

.theme-toggle-input:checked + .theme-toggle-label .moon-icon {
opacity: 0;
transform: translate(-50%, -50%) scale(0) rotate(-360deg);
}

/* Toggle circle */
.toggle-circle {
position: absolute;
top: 3px;
right: 3px;
width: 24px;
height: 24px;
background-color: #ffffff;
border-radius: 50%;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
z-index: 2;
overflow: hidden;
}

/* Inner glow effect for the circle */
.toggle-circle:before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: 50%;
background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 70%
);
opacity: 0.8;
transition: opacity 0.3s ease;
}

/* Outer glow effect */
.toggle-circle:after {
content: "";
position: absolute;
top: -5px;
left: -5px;
right: -5px;
bottom: -5px;
border-radius: 50%;
background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 70%
);
opacity: 0;
transition: opacity 0.4s ease;
}

/* Circle transformation for dark mode */
.theme-toggle-input:checked + .theme-toggle-label .toggle-circle {
transform: translateX(-30px);
background-color: #3a86ff;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4),
    inset 0 0 3px rgba(255, 255, 255, 0.6);
}

.theme-toggle-input:checked + .theme-toggle-label .toggle-circle:before {
background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(58, 134, 255, 0.2) 70%
);
}

/* Hover effects */
.theme-toggle-label:hover .toggle-circle:after {
opacity: 0.6;
}

.theme-toggle-label:hover .toggle-background {
filter: brightness(1.1);
}

/* Press effect */
.theme-toggle-label:active .toggle-circle {
transform: scale(0.9);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.theme-toggle-input:checked + .theme-toggle-label:active .toggle-circle {
transform: translateX(-30px) scale(0.9);
}

/* Subtle pulse animation */
@keyframes pulse {
0% {
    box-shadow: 0 0 0 0 rgba(58, 134, 255, 0.4);
}
70% {
    box-shadow: 0 0 0 6px rgba(58, 134, 255, 0);
}
100% {
    box-shadow: 0 0 0 0 rgba(58, 134, 255, 0);
}
}

.theme-toggle-input:checked + .theme-toggle-label .toggle-circle {
animation: pulse 1.5s infinite;
}



.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-links button {
    background: none;
    border: none;
    color: #4a5568;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px 14px;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    white-space: nowrap;
}

.nav-links button:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: relative;
    width: 50px !important;
    padding: 8px !important;
}

.dark-mode-toggle .sun-icon,
.dark-mode-toggle .moon-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    transition: all 0.3s ease;
}

.dark-mode-toggle .moon-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(180deg) scale(0);
}

body.dark-mode .dark-mode-toggle .sun-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-180deg) scale(0);
}

body.dark-mode .dark-mode-toggle .moon-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0) scale(1);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Search Section */

.select-box {
    position: relative;
    width: 320px;
    z-index: 100;
}

.search-box {
    background: #1e293b;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    transition: all 0.2s ease-in-out;
}

.search-box:hover {
    border: 1px solid #3b82f6;
}

.search-box:focus-within {
    box-shadow: 0 0 25px #3b82f6;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    flex: 1;
    font-size: 16px;
}

.dropdown {
    position: absolute;
    background: #1e293b;
    width: 100%;
    max-height: 180px;
    overflow-y: auto;
    border-radius: 10px;
    margin-top: 6px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    display: none;
    z-index: 101;
}

.dropdown.active {
    display: block;
    animation: fadeIn 0.15s ease-in-out;
    z-index: 101;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown div {
    padding: 10px 14px;
    cursor: pointer;
    color : #fff;
    border-bottom: 1px solid #2e3a53;
    transition: all 0.15s;
    z-index: 10000;
}

.dropdown div:hover {
    background: #3b82f6;
}

.selected {
    color: #60a5fa;
    font-weight: 600;
}




.search-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease-out;
    z-index: 10;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-section h1 {
    font-size: 32px;
    color: #2d3748;
    margin-bottom: 10px;
}

.search-section p {
    color: #718096;
    margin-bottom: 25px;
    font-size: 16px;
}

.search-form {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

select, button.search-btn {
    padding: 15px 25px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    font-size: 16px;
    font-family: "Inter", sans-serif;
    transition: all 0.3s;
}

select {
    flex: 1;
    min-width: 200px;
    background: white;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #667eea;
}

button.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 15px 40px;
    min-width: 150px;
}

button.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.task-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.task-card:hover {
    transform: translateY(-8px);
    border-color: #667eea;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.task-card h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
}

.task-reward {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 16px;
}

.task-preview {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    transition: all 0.3s;
}

.close-btn:hover {
    background: #667eea;
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 25px;
}

.modal-header h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
}

.modal-body {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.modal-body h4 {
    color: #333;
    margin: 20px 0 10px;
    font-size: 18px;
}

.modal-body ul {
    padding-left: 25px;
    margin: 10px 0;
}

.modal-body li {
    margin: 8px 0;
}

.task-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.task-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Info Modal */
.info-modal {
    display: none;
}

.info-modal.active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: white;
    font-size: 18px;
}

/* Telegram Floating Button */
.telegram-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0088cc 0%, #00a1e0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 999;
    animation: floatBounce 3s ease-in-out infinite;
    text-decoration: none;
}

@keyframes floatBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.telegram-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.6);
}

.telegram-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* FAQ Styles */
.faq-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(102, 126, 234, 0.1);
}

.faq-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: #666;
    line-height: 1.8;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }

    .nav-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 20px;
        gap: 8px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links button {
        font-size: 13px;
        padding: 6px 10px;
    }

    .dark-mode-toggle {
        width: 40px !important;
        padding: 6px !important;
    }

    .dark-mode-toggle .sun-icon,
    .dark-mode-toggle .moon-icon {
        font-size: 18px;
    }

    .container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .select-box {
        width: 100%;
    }
    
    .search-section {
        padding: 25px 20px;
        border-radius: 16px;
        margin-bottom: 25px;
    }

    .search-section h1 {
        font-size: 24px;
    }

    .search-section p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .search-form {
        flex-direction: column;
        gap: 12px;
    }

    select, button.search-btn {
        padding: 12px 20px;
        font-size: 15px;
        width: 100%;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .task-card {
        padding: 20px;
    }

    .task-card h3 {
        font-size: 18px;
    }

    .modal-content {
        padding: 25px 20px;
        border-radius: 20px;
        max-width: 95%;
    }

    .modal-header h2 {
        font-size: 22px;
        padding-right: 30px;
    }

    .modal-body {
        font-size: 15px;
    }

    .close-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }

    .telegram-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .telegram-float svg {
        width: 28px;
        height: 28px;
    }

    .faq-question {
        padding: 15px;
        font-size: 15px;
    }

    .faq-answer {
        font-size: 14px;
    }

    .task-link {
        padding: 12px 25px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .nav-links button {
        font-size: 12px;
        padding: 5px 8px;
    }

    .search-section h1 {
        font-size: 22px;
    }

    .search-section p {
        font-size: 13px;
    }

    .task-card h3 {
        font-size: 16px;
    }

    .task-reward {
        font-size: 14px;
        padding: 6px 16px;
    }

    .modal-header h2 {
        font-size: 20px;
    }
}

