/* Downloads Page Styling - Premium Modern UI */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #2962ff 0%, #7209b7 100%);
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 25px 50px rgba(41, 98, 255, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
}

.downloads-page {
    font-family: 'Outfit', sans-serif;
    background: #ffffff;
}

/* Page Title (Standard) */
.page-title {
    margin-bottom: 40px;
}

/* Category Filter Tabs - Premium Glassmorphic Sliding Pill */
.filter-container {
    margin-top: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 100;
    background: none;
    display: flex;
    justify-content: center;
}

.filter-tabs {
    display: inline-flex;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    position: relative;
    max-width: 95%;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-indicator {
    position: absolute;
    height: calc(100% - 16px);
    background: var(--primary-gradient);
    border-radius: 100px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
    top: 8px;
    box-shadow: 0 10px 20px rgba(41, 100, 255, 0.3);
}

.filter-btn {
    border: none;
    background: transparent;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 700;
    color: #64748b;
    transition: all 0.4s ease;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    cursor: pointer;
    white-space: nowrap;
}

.filter-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.filter-btn:hover {
    color: #1e293b;
}

.filter-btn:hover i {
    transform: scale(1.2);
}

.filter-btn.active {
    color: white;
}

@media (max-width: 768px) {
    .filter-container {
        margin-top: 0;
        margin-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .filter-tabs {
        display: flex; /* Changed from inline-flex to flex */
        justify-content: flex-start;
        padding: 6px;
        gap: 5px;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-x-scrolling: touch;
        border-radius: 50px;
    }
    
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 13px;
        gap: 6px;
        flex-shrink: 0; /* Important: prevents buttons from shrinking */
    }
    
    .filter-btn i {
        font-size: 16px;
    }

    .filter-indicator {
        height: calc(100% - 12px);
        top: 6px;
    }
}

/* Downloads Grid & Cards */
.downloads-section {
    position: relative;
    padding: 20px 0 80px;
    overflow: hidden;
}

.downloads-tech-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(148, 163, 184, 0.18) 1.2px, transparent 1.2px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

.downloads-section .container {
    position: relative;
    z-index: 1;
}

.download-card {
    position: relative;
    border-radius: 28px;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.6);
    padding: 35px;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(41, 98, 255, 0.03), transparent);
    pointer-events: none;
}

.download-card:hover {
    transform: translateY(-15px) scale(1.01);
    box-shadow: 0 30px 60px rgba(41, 98, 255, 0.12), 0 0 0 1px rgba(41, 98, 255, 0.1);
    border-color: rgba(41, 98, 255, 0.2);
}


.software-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border: 1px solid color-mix(in srgb, var(--accent-color), transparent 85%);
    border-radius: 16px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.download-card:hover .software-icon-wrapper {
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-color), transparent 90%);
    transform: translateY(-3px);
}

.software-icon-wrapper i {
    font-size: 28px;
    color: #2962ff;
}

.download-card:hover .software-icon-wrapper i {
    /* color: white; */
}

.software-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.software-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.software-version-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 25px;
}

.software-version-tag i {
    color: #2962ff;
    font-size: 14px;
}

.software-description {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

@media (max-width: 576px) {
    .download-card {
        padding: 24px 20px;
    }
    
    .software-name {
        font-size: 1.3rem;
    }
    
    .software-icon-wrapper {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
    }
    
    .software-icon-wrapper i {
        font-size: 28px;
    }
    
    .software-icon-wrapper img {
        max-width: 32px;
        max-height: 32px;
    }
}

.card-footer-elite {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 30px;
    margin-top: auto;
    border-top: 1px dashed #e2e8f0;
}

.software-meta-elite {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 2px;
}

.meta-value {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
}

.footer-actions-elite {
    width: 100%;
}

.btn-download-premium-lite {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    padding: 14px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(41, 98, 255, 0.2);
}

.btn-download-premium-lite:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(41, 98, 255, 0.3);
}

.mobile-store-links-elite {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.store-badge-elite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0f172a;
    color: #fff !important;
    padding: 12px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.store-badge-elite i {
    font-size: 24px;
}

.store-badge-elite .badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.store-badge-elite .badge-sub {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.7;
}

.store-badge-elite .badge-main {
    font-size: 13px;
    font-weight: 700;
}

.store-badge-elite:hover {
    background: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1200px) {
    .mobile-store-links-elite {
        grid-template-columns: 1fr;
    }
}

/* Extension Badges */
.ext-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.ext-exe {
    background: #fee2e2;
    color: #ef4444;
}

.ext-zip {
    background: #fef9c3;
    color: #ca8a04;
}

.ext-apk {
    background: #dcfce7;
    color: #16a34a;
}

.ext-pdf {
    background: #ffedd5;
    color: #f97316;
}

.ext-generic {
    background: #f1f5f9;
    color: #64748b;
}

/* Support CTA Section (Elite) */
.support-cta-elite {
    padding: 40px 0 100px;
    position: relative;
    background: #f8fbfe;
    overflow: hidden;
}

.support-cta-elite::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 30% 20%, rgba(41, 100, 255, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 70% 80%, rgba(114, 9, 183, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.premium-cta-card-elite {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    z-index: 1;
}

.cta-mesh-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%232962FF' fill-opacity='0.02' d='M44.7,-76.4C58.8,-69.2,71.8,-59.1,79.6,-46.5C87.4,-33.8,90,-18.6,89.1,-3.7C88.2,11.3,83.7,25.9,76.5,39.8C69.3,53.7,59.3,66.8,46.5,74.9C33.8,83,18.3,86.1,2.8,81.3C-12.7,76.5,-28.3,63.9,-41.8,51.8C-55.3,39.7,-66.8,28.1,-74.6,13.9C-82.4,-0.3,-86.5,-17.1,-82.1,-32.1C-77.7,-47.1,-64.8,-60.2,-50.2,-67.2C-35.6,-74.2,-19.3,-75,-2.9,-69.9C13.5,-64.8,27.1,-75.7,40.7,-81.8C42,-82.3,43.3,-83,44.7,-76.4Z' transform='translate(100 100)' /%3E%3C/svg%3E") no-repeat center center;
    background-size: 150%;
    opacity: 0.5;
    z-index: -1;
}

.cta-icon-wrapper {
    width: 100px;
    height: 100px;
    background: white;
    box-shadow: 0 20px 40px rgba(41, 98, 255, 0.1);
    color: #2962ff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 35px;
    position: relative;
    animation: ctaFloat 4s ease-in-out infinite;
}

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

.cta-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cta-desc {
    font-size: 18px;
    color: #64748b;
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-elite-contact, .btn-elite-whatsapp {
    padding: 18px 40px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-elite-contact {
    background: #1e293b;
    color: white;
    box-shadow: 0 15px 30px rgba(30, 41, 59, 0.2);
}

.btn-elite-whatsapp {
    background: #22c55e;
    color: white;
    box-shadow: 0 15px 30px rgba(34, 197, 94, 0.2);
}

.btn-elite-contact:hover, .btn-elite-whatsapp:hover {
    transform: translateY(-8px) scale(1.02);
    color: white;
}

.btn-elite-contact:hover {
    background: #0f172a;
    box-shadow: 0 25px 50px rgba(30, 41, 59, 0.3);
}

.btn-elite-whatsapp:hover {
    background: #16a34a;
    box-shadow: 0 25px 50px rgba(34, 197, 94, 0.3);
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2.2rem;
    }
    
    .premium-cta-card-elite {
        padding: 60px 25px;
    }
    
    .btn-elite-contact, .btn-elite-whatsapp {
        width: 100%;
        justify-content: center;
    }
}

/* Installation Steps Section */
.info-section {
    padding: 80px 0;
    border-top: 1px solid #f1f5f9;
}

.info-section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    color: #1e293b;
    margin-bottom: 50px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

@media (max-width: 1200px) {
    .info-section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 991px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step-item {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 1;
}

.step-number {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #47b2e4 0%, #37517e 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(71, 178, 228, 0.25);
}

.step-icon {
    font-size: 36px;
    color: #47b2e4;
    margin-bottom: 15px;
}

.step-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 0;
}

/* Requirements Grid */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .requirements-grid {
        grid-template-columns: 1fr;
    }
}

.req-box {
    background: #f8fafc;
    padding: 25px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #e2e8f0;
}

.req-icon {
    font-size: 24px;
    color: #2962ff;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.req-info h4 {
    font-size: 14px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.req-info p {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0;
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.faq-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.faq-card:hover {
    border-color: #2962ff;
    box-shadow: 0 10px 30px rgba(41, 98, 255, 0.05);
}

.faq-question {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.faq-question i {
    color: #2962ff;
    font-size: 18px;
    margin-top: 2px;
}

.faq-answer {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
    padding-left: 28px;
}

/* Animations */
.animate-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden-item {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    position: absolute;
}

/* ===============================
   SEARCH & PILLS (Restored from Help Center)
================================*/

.help-search-wrapper {
  max-width: 560px;
  margin: 0 auto 30px auto;
  position: relative;
  z-index: 100;
}

.help-search-box {
  position: relative;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.05);
  border-radius: 50px;
  background: #fff;
}

.help-search-box:focus-within {
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.12);
  transform: translateY(-1px);
}

.help-search-box input {
  width: 100%;
  padding: 16px 90px 16px 30px;
  border-radius: 50px;
  border: 1px solid #e0f2fe;
  font-size: 15px;
  background: #fff;
  color: #1e293b;
  outline: none;
  transition: all 0.3s ease;
}

.help-search-box input::placeholder {
  color: #94a3b8;
  opacity: 0.8;
}

.help-search-box input:focus {
  border-color: #38bdf8;
}

.help-search-box i.search-icon {
  position: absolute;
  right: 55px;
  top: 50%;
  transform: translateY(-50%);
  color: #38bdf8;
  font-size: 20px;
  pointer-events: none;
  transition: all 0.3s ease;
}

.help-search-box:focus-within i.search-icon {
  color: #0ea5e9;
  transform: translateY(-50%) scale(1.05);
}

.search-clear-btn {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: #aab4c0;
  font-size: 16px;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 10;
}

.search-clear-btn:hover {
  color: #ef4444;
  background: #fef2f2;
}

#searchSuggestions {
  position: absolute;
  top: calc(100% + 5px);
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 999;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
}

.suggestion-item {
  padding: 14px 24px;
  cursor: pointer;
  font-size: 14.5px;
  color: #475569;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #f1f5f9;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item::after {
  content: '\f52a';
  font-family: 'bootstrap-icons';
  color: #38bdf8;
  font-size: 16px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.suggestion-item:hover {
  background: #f0f9ff;
  color: #0369a1;
}

.suggestion-item.active {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 500;
}

.suggestion-item.active::after {
  opacity: 1;
  transform: scale(1.1);
}

.suggestion-item mark {
  background: transparent;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #38bdf8;
}

.category-pills-wrapper {
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 0 30px 0;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.category-pills-wrapper::-webkit-scrollbar {
  display: none;
}

.category-pill {
  padding: 10px 24px;
  background: #fff;
  color: #000;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1.5px solid #f1f5f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.category-pill:hover {
  background: #e2e8f0;
}

.category-pill.active {
  background: #000;
  color: #fff;
}

.help-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  text-align: center;
  color: #94a3b8;
}

.help-no-results i {
  font-size: 48px;
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .category-pills-wrapper {
    justify-content: flex-start;
    padding-left: 15px;
    padding-right: 15px;
  }
}


/* =========================
   REAL LAZY REVEAL SYSTEM
   Matches Help Center Experience
   ========================= */
.reveal-card {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.reveal-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.download-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.3s ease, 
              border-color 0.3s ease;
}

.download-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}


/* ===============================
   ENTRANCE ANIMATION (Small to Big)
================================*/

@keyframes scaleInGrow {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.entrance-grow {
    animation: scaleInGrow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0; /* Start hidden */
}

/* Staggered Delay Utilities */
.download-card-item {
    will-change: transform, opacity;
}


/* ===============================
   SCROLL-TRIGGERED REVEAL
================================*/

.reveal-on-scroll {
    opacity: 0;
    transform: scale(0.7) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.visible {
    opacity: 1 !important;
    transform: scale(1) translateY(0) !important;
}


