/* ===== Base Styles & Variables ===== */
:root {
            --primary-dark: #006666;
            --primary-darker: #003366;
            --secondary: #006699;
            --accent-blue: #0066ff;
            --accent-cyan: #00ffff;
            --success: #28a745;
            --text-dark: #333;
            --text-light: #f5f5f5;
            --bg-light: #f5f5f5;
            --bg-dark: #1a1a1a;
            --card-light: #ffffff;
            --card-dark: #2d2d2d;
            --telegram-btn: #2AABEE;
            --share-btn: #FF6B6B;
            --social-icon: #555;
        }

        [data-theme="dark"] {
            --text-primary: var(--text-light);
            --bg-primary: var(--bg-dark);
            --card-primary: var(--card-dark);
            --social-icon: #ddd;
        }

        [data-theme="light"] {
            --text-primary: var(--text-dark);
            --bg-primary: var(--bg-light);
            --card-primary: var(--card-light);
            --social-icon: #555;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            transition: background-color 0.3s, color 0.3s;
        }
        
        body {
            font-family: 'Arial', sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
            padding-bottom: 120px;
            overflow-x: hidden;
        }
        
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
            color: white;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .logo-container {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .logo {
            height: 40px;
            width: auto;
        }
        
        .site-name {
            font-size: 22px;
            font-weight: bold;
        }
        
        .header-controls {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .theme-toggle {
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            padding: 5px;
        }

        .menu-icon {
            font-size: 20px;
            cursor: pointer;
            padding: 5px;
        }
        
        .sidebar {
            height: 100%;
            width: 0;
            position: fixed;
            top: 0;
            right: 0;
            background-color: var(--card-dark);
            overflow-x: hidden;
            transition: 0.5s;
            padding-top: 60px;
            z-index: 1000;
        }
        
        .sidebar a {
            padding: 15px 25px;
            text-decoration: none;
            font-size: 16px;
            color: var(--text-light);
            display: block;
            transition: 0.3s;
            border-bottom: 1px solid #444;
        }
        
        .sidebar a:hover {
            background-color: var(--secondary);
        }
        
        .sidebar .close-btn {
            position: absolute;
            top: 10px;
            right: 20px;
            font-size: 30px;
            cursor: pointer;
            color: white;
        }
        
        .banner-container {
            width: 100%;
            position: relative;
            padding-top: 16.666%;
        }
        
        .banner {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        
        .banner img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .search-container {
            padding: 10px 5px;
            background-color: var(--card-primary);
            position: sticky;
            top: 60px;
            z-index: 99;
        }

        .search-wrapper {
            position: relative;
            width: 100%;
        }

        .search-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #666;
            z-index: 1;
        }

        .search-bar {
            width: 100%;
            padding: 10px 15px 10px 40px;
            border-radius: 25px;
            border: 1px solid #ddd;
            font-size: 14px;
            background-color: var(--card-primary);
            color: var(--text-primary);
            position: relative;
        }

        [data-theme="dark"] .search-icon {
            color: #aaa;
        }

.app-filter {
    display: flex;
    background-color: var(--card-primary);
    border-bottom: 1px solid #eee;
    padding: 10px 5px;
    position: static;
    top: auto;
    margin-top: -10px;
    z-index: 98;
}

.filter-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    background: none;
    font-weight: bold;
    color: var(--text-primary);
    cursor: pointer;
    text-align: center;
    background-color: var(--card-primary);
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.filter-btn.active {
    color: var(--text-light);
    border-color: #ccc;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
}

        .app-list {
            padding: 15px 5px;
        }
        
        .app-item {
            display: flex;
            background-color: var(--card-primary);
            border-radius: 10px;
            padding: 12px 10px 12px 0;
            margin-bottom: 12px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            align-items: center;
            width: 100%;
            margin-left: 0;
        }
        
        .app-number {
            width: 1px;
            font-weight: bold;
            color: var(--secondary);
            text-align: center;
            flex-shrink: 0;
            margin-left: -5px;
            margin-right: 2px;
            padding-left: 5px;
        }
        
        .app-logo {
            width: 60px; /* Increased to 60px */
            height: 60px; /* Increased to 60px */
            border-radius: 8px;
            margin: 0 7.5px 0 0;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .app-info {
            flex: 1;
            min-width: 0;
            overflow: hidden;
        }
        
        .app-name {
            font-weight: bold;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 3px;
            color: var(--text-primary);
        }
        
        .app-bonus {
            color: #A80000;
            font-size: 12px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .app-min-withdrawal {
            font-size: 12px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .download-btn {
            background: linear-gradient(135deg, #ff2d00  0%, #ff2d00  100%);
            color: white;
            border: 1px solid #000;
            border-radius: 5px;
            padding: 8px 12px;
            font-size: 13px;
            display: flex;
            align-items: center;
            margin-left: 10px;
            white-space: nowrap;
            flex-shrink: 0;
            cursor: pointer;
            font-weight: bold;
        }
        
        .download-btn i {
            margin-right: 5px;
        }
/* ===== Footer Styles ===== */
.footer {
    position: relative; /* Changed from fixed to relative */
    width: 100%;
    background-color: var(--secondary);
    padding: 15px;
    color: white;
    z-index: 100;
    margin-top: 40px; /* Added margin to separate from content */
}

.footer-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

.footer-btn {
    flex: 1;
    border: none;
    border-radius: var(--border-radius);
    padding: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: all 0.3s;
}

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

.telegram-btn {
    background-color: var(--telegram-btn);
}

.share-btn {
    background-color: var(--share-btn);
}

.footer-btn i {
    margin-right: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.footer-link {
    color: white;
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 0.8;
}

.footer-link i {
    font-size: 14px;
}

.copyright {
    text-align: center;
    font-size: 12px;
    margin-top: 10px;
    opacity: 0.8;
}

/* Adjust body padding since footer is no longer fixed */
body {
    padding-bottom: 0; /* Changed from 120px to 0 */
}

/* Ensure content doesn't hide behind footer */
.page-container {
    padding-bottom: 20px; /* Added padding to prevent content from touching footer */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-links {
        gap: 15px;
    }
    
    .footer-link {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer-btn {
        padding: 10px;
        font-size: 13px;
    }
}

/* ===== Modal & Overlay Styles ===== */
.share-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.share-content {
  background-color: var(--card-primary);
  padding: 25px;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.share-content h3 {
  margin-bottom: 20px;
  color: var(--text-primary);
}

.copy-link {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--social-icon);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
}

.share-options {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 25px 0;
}

.share-option {
  padding: 12px;
  border-radius: 50%;
  background-color: var(--social-icon);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  color: white;
  transition: transform 0.3s;
}

.share-option:hover {
  transform: scale(1.1);
}

.close-share {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.close-share:hover {
  background-color: var(--primary-dark);
}

/* ===== Back to Top Button ===== */
#backToTop {
    border: 2px solid #000 !important;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    cursor: pointer;
    opacity: 1 !important;
}

/* Mobile version (if needed) */
@media (max-width: 768px) {
    #backToTop {
        border: 2px solid #000 !important; 
    }
}

/* ===== Loading Animation ===== */
.loader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.loader-content {
  background-color: var(--card-primary);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.loader-content p {
  margin-top: 15px;
  color: var(--text-primary);
}

.spinner {
  border: 4px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  border-top: 4px solid var(--secondary);
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
  .app-item {
    flex-wrap: wrap;
    padding: 12px;
  }
  
  .app-info {
    width: 100%;
    margin-top: 10px;
  }
  
  .download-btn {
    margin-left: auto;
    margin-top: 10px;
  }
  
  .footer-links {
    gap: 15px;
  }
  
  .footer-link {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 12px;
  }
  
  .site-name {
    font-size: 16px;
  }
  
  .app-logo {
    width: 50px;
    height: 50px;
    margin: 0 10px;
  }
  
  .app-name {
    font-size: 15px;
  }
  
  .app-bonus, .app-min-withdrawal {
    font-size: 13px;
  }
  
  .footer-btn {
    padding: 10px;
    font-size: 13px;
  }
}
/* ==================== */
/* PAGE LAYOUT STYLES */
/* ==================== */
.page-container {
    padding: 20px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    color: var(--secondary);
    margin-bottom: 15px;
    text-align: center;
}

.page-subtitle {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* ==================== */
/* CATEGORIES PAGE */
/* ==================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background: var(--card-primary);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.category-card h3 {
    margin: 10px 0;
    color: var(--secondary);
}

.category-btn {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    margin-top: 15px;
    text-decoration: none;
}

/* ==================== */
/* HOW IT WORKS PAGE */
/* ==================== */
.steps-container {
    margin: 40px 0;
}

.step {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-number {
    background: var(--secondary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content {
    background: var(--card-primary);
    padding: 15px;
    border-radius: 8px;
    flex-grow: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-preview {
    background: var(--card-primary);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
}

/* ==================== */
/* PAYMENT PROOFS PAGE */
/* ==================== */
.proofs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.proof-card {
    background: var(--card-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.proof-header {
    display: flex;
    justify-content: space-between;
    background: var(--secondary);
    color: white;
    padding: 15px;
}

.proof-amount {
    font-size: 1.2rem;
    font-weight: bold;
}

.proof-body {
    padding: 15px;
}

.proof-body p {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.proof-body i {
    margin-right: 10px;
    color: var(--secondary);
}

.submit-proof {
    text-align: center;
    margin: 40px 0;
}

/* ==================== */
/* CONTACT PAGE */
/* ==================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    background: var(--card-primary);
    padding: 20px;
    border-radius: 10px;
}

.info-item {
    display: flex;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-right: 15px;
}

.contact-form {
    background: var(--card-primary);
    padding: 20px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: var(--card-primary);
    color: var(--text-primary);
}

.submit-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
}

/* ==================== */
/* LEGAL PAGES */
/* ==================== */
.legal-page {
    max-width: 800px;
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section h2 {
    color: var(--secondary);
    margin: 20px 0 10px;
}

.last-updated {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* ==================== */
/* FAQ PAGE */
/* ==================== */
.faq-section {
    margin-bottom: 30px;
}

.faq-section h2 {
    color: var(--secondary);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.faq-item {
    background: var(--card-primary);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1rem;
}

.faq-answer {
    padding: 0 15px;
    display: none;
}

.faq-answer p {
    margin: 0 0 15px;
}

.support-cta {
    text-align: center;
    margin-top: 40px;
}

.support-btn {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
}