:root {
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-blur: blur(15px);
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.2);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-light: #f8fafc;
    --card-hover: rgba(255, 255, 255, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: var(--bg-light);
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.1) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.1) 0, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== GLOBAL HEADER ===== */
.site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    /* Vertical space for the floating effect */
    background: transparent;
    /* Rely on inner glass card for look */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.site-logo {
    height: auto;
    width: 220px;
    max-width: 100%;
    /* Fully adjustable/containable */
    max-height: 100px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-toggle-btn {
    display: none;
    background: white;
    border: 1px solid var(--glass-border);
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.filter-toggle-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    color: var(--primary);
}

.search-bar {
    width: 400px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background: var(--bg-light);
    border: 1px solid transparent;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

/* ===== LAYOUT ===== */
.app-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 20px;
    align-items: start;
}

.filters-sidebar {
    padding: 25px;
    position: sticky;
    top: 100px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.app-card {
    padding: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.app-card:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-weight: 700;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    margin-bottom: 5px;
    cursor: pointer;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s;
    font-weight: 500;
}

.filter-option:hover,
.filter-option.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.desktop-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    /* More professional medium weight */
    font-size: 0.95rem;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 10px;
}

.desktop-menu a:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-link:hover {
    color: var(--primary);
}

.sidebar-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-menu-btn {
    background: var(--bg-light);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    display: none;
    /* Hidden by default, shown in media query */
    align-items: center;
    justify-content: center;
}

/* ===== MOBILE DRAWER MENU ===== */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 10001;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    visibility: hidden;
}

.drawer-menu.active {
    right: 0;
    visibility: visible;
}

.drawer-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bg-light);
}

.drawer-logo img {
    height: auto;
    width: 190px;
}

.drawer-close {
    background: var(--bg-light);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.drawer-content {
    padding: 30px 20px;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.drawer-nav a i {
    color: var(--primary);
    font-size: 1.2rem;
}

.drawer-nav a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .site-header {
        padding: 5px 15px;
        /* Tighter vertical padding on mobile */
    }

    .header-inner {
        padding: 10px 20px;
        border-radius: 15px;
    }
}

.app-card-header {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-info {
    flex: 1;
}

.app-info h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.app-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1;
}

.app-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-featured {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.badge-free {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.badge-regular {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.app-meta {
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== DETAIL PAGE ===== */
.detail-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Banner */
.app-banner {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Category Badges */
.category-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.category-tag:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Hero */
.hero-section {
    display: flex;
    gap: 40px;
    padding: 50px;
    margin-bottom: 40px;
    align-items: center;
}

.hero-icon {
    width: 160px;
    height: 160px;
    border-radius: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.hero-content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.hero-badge {
    display: inline-block;
    padding: 6px 15px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Hero Buttons */
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.hero-btn-primary {
    background: linear-gradient(135deg, #1c15a3, #3a73ed);
}

.hero-btn-primary:hover {
    background: linear-gradient(135deg, #1c15a3, #3a73ed);
}

.hero-btn-secondary {
    background: linear-gradient(135deg, #360353, #9c35cc);
}

.hero-btn-secondary:hover {
    background: linear-gradient(135deg, #2c0246, #862dd6);
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
    max-width: 100%;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

.left-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 20px;
}

.mobile-only {
    display: none;
}

/* Section Cards */
.section-card {
    padding: 35px;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

.section-card h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-left: 5px solid var(--primary);
    padding-left: 15px;
    color: var(--text-primary);
}

/* Featured Image */
.featured-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    object-fit: cover;
    max-height: 500px;
}

/* Equal-Aligned Sections */
.section-equal {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.section-equal-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.section-equal-text h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary);
    padding-left: 15px;
    color: var(--text-primary);
}

.section-equal-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    flex: 1;
}

.section-equal-media {
    flex: 1;
    display: flex;
    align-items: center;
}

.section-equal-media img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Video Thumbnails */
.video-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    background: #000;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, opacity 0.3s;
}

.video-thumb:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    transition: all 0.3s;
}

.video-play-overlay i {
    font-size: 3.5rem;
    color: white;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s;
}

.video-thumb:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.video-thumb:hover .video-play-overlay i {
    transform: scale(1.15);
}

/* Video Modal */
.video-modal-inner {
    width: 85vw;
    max-width: 1000px;
    aspect-ratio: 16/9;
}

.video-modal-inner iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ===== THUMBNAIL GALLERY ===== */
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    aspect-ratio: 4/3;
    background: #f1f5f9;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-thumb:hover img {
    transform: scale(1.08);
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(79, 70, 229, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.thumb-overlay i {
    font-size: 2rem;
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s;
}

.gallery-thumb:hover .thumb-overlay {
    background: rgba(79, 70, 229, 0.35);
}

.gallery-thumb:hover .thumb-overlay i {
    opacity: 1;
    transform: scale(1);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.lb-prev,
.lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.lb-prev:hover,
.lb-next:hover {
    background: var(--primary);
}

.lb-prev {
    left: 25px;
}

.lb-next {
    right: 25px;
}

.lb-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    width: 100%;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.video-placeholder:hover {
    background: #111;
    transform: scale(1.02);
}

.video-placeholder i {
    font-size: 3rem;
    color: var(--primary);
}

/* ===== ENHANCED FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-item-enhanced {
    padding: 30px 25px;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-item-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), #8b5cf6);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-item-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.1);
    border-color: var(--primary-glow);
}

.feature-item-enhanced:hover::before {
    opacity: 1;
}

.feature-icon-num {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 18px;
    box-shadow: 0 5px 15px var(--primary-glow);
}

.feature-item-enhanced h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-item-enhanced p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.feature-item {
    padding: 20px;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    height: 100%;
}

/* ===== PRICING ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.pricing-card {
    background: white;
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card.recommended {
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.pricing-card.recommended::before {
    content: '★ Recommended';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 20px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.pricing-duration {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.pricing-features li i {
    color: var(--primary);
    margin-right: 8px;
}

.pricing-btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s;
    width: 100%;
}

.pricing-btn:hover {
    background: #4338ca;
    transform: scale(1.02);
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-q {
    font-weight: 600;
    cursor: pointer;
    padding: 18px 20px;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    user-select: none;
    background: white;
}

.faq-q::after {
    content: '\F282';
    font-family: 'bootstrap-icons';
    font-size: 1rem;
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-q::after {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: break-word;
}

.faq-item.active .faq-a {
    max-height: 500px;
    padding: 0 20px 20px 20px;
}

/* ===== FOOTER ===== */
.site-footer {
    margin-top: 60px;
    background: white;
    border-top: 1px solid var(--glass-border);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 30px 30px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.site-logo-footer {
    max-height: auto;
    width: 200px;
    margin-bottom: 20px;
}

.footer-col h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}


.footer-col p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-col p i {
    color: var(--primary);
    margin-right: 8px;
    width: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--bg-light);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.2s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */
/* ===== SEARCH SECTION (Standalone) ===== */
.search-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-container {
    width: 100%;
    max-width: 800px;
}

.search-form-standalone {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px;
    border-radius: 20px;
    display: flex;
    gap: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-form-standalone:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.search-icon {
    font-size: 1.2rem;
    color: var(--primary);
    margin-right: 15px;
}

.search-input-standalone {
    width: 100%;
    background: none;
    border: none;
    padding: 15px 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    outline: none;
}

.search-btn-standalone {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 35px;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.search-btn-standalone:hover {
    background: #4338ca;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 20px var(--primary-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: scale(1.1);
    background: #4338ca;
}

@media (max-width: 1024px) {
    .filter-toggle-btn {
        display: block !important;
    }

    .mobile-only {
        display: flex;
    }

    .app-container {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        height: 100vh;
        z-index: 1000;
        border-radius: 0;
        background: white;
    }

    .filters-sidebar.active {
        display: block;
        box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .left-panel {
        position: static;
        order: 2;
    }

    .main-content {
        order: 1;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }

    .hero-icon {
        width: 120px;
        height: 120px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-equal {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }

    .search-bar {
        flex: 1;
        width: auto;
    }

    .header-inner .logo {
        font-size: 1.2rem;
    }

    .section-card {
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        padding: 12px 15px;
    }

    .search-form-standalone {
        flex-direction: column;
        padding: 15px;
        border-radius: 25px;
    }

    .search-input-wrapper {
        padding-left: 10px;
    }

    .search-btn-standalone {
        padding: 15px;
        width: 100%;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}


/* ===== CONTACT PAGE ===== */
.contact-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.contact-hero {
    padding: 80px 30px;
    text-align: center;
    margin-bottom: 40px;
}

.contact-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-card {
    padding: 40px;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-left: 5px;
}

.contact-input {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    outline: none;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
}

.contact-input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    transform: translateY(-2px);
}

textarea.contact-input {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

.contact-success {
    text-align: center;
    padding: 60px 40px;
}

.success-icon {
    font-size: 4.5rem;
    color: #10b981;
    margin-bottom: 25px;
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.info-card {
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: white;
}

.info-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: inline-flex;
    width: 55px;
    height: 55px;
    background: var(--primary-glow);
    border-radius: 15px;
    align-items: center;
    justify-content: center;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.error-bubble {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 30px;
    border: 1px solid rgba(239, 68, 68, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Scrollbar */
.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Pros and Cons Card Styling */
.pros-cons-card {
    padding: 30px !important;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.pros-title,
.cons-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    border: none !important;
    padding: 0 !important;
}

.pros-title {
    color: #16a34a !important;
}

.cons-title {
    color: #dc2626 !important;
}

.pros-content-render,
.cons-content-render {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pros-content-render ul,
.cons-content-render ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-content-render li,
.cons-content-render li {
    position: relative;
    padding-left: 0;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Category Tree Format */
.category-tree {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
}

.tree-item {
    display: flex;
    flex-direction: column;
}

.tree-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    transition: all 0.2s;
    overflow: hidden;
}

.tree-header:hover {
    background: var(--primary-glow);
}

.tree-header.active {
    background: var(--primary);
}

.tree-header.active .tree-link {
    color: white;
}

.tree-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.tree-toggle {
    padding: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.tree-header.active .tree-toggle {
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.tree-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.tree-content {
    margin-left: 20px;
    padding-left: 15px;
    border-left: 1px solid var(--glass-border);
    display: none;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
    margin-bottom: 8px;
    position: relative;
}

.tree-content.show {
    display: flex;
}

.tree-sub-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
}

.tree-sub-link::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    width: 10px;
    height: 1px;
    background: var(--glass-border);
}

.tree-sub-link:hover {
    background: var(--primary-glow);
    color: var(--primary);
}

.tree-sub-link.active {
    background: var(--primary-glow);
    color: var(--primary);
    font-weight: 700;
}

.tree-sub-link.active i {
    color: var(--primary);
}