@import 'variables.css';

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    background-color: #e9ecef;
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* Ensure mobile container always used */
@media (min-width: 768px) {
    body {
        /* Allow wider layout on desktop/tablet */
        max-width: 1200px;
        margin: 0 auto;
        box-shadow: none;
    }
}

a {
    text-decoration: none;
    color: var(--primary);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
    min-height: 44px;
    min-width: 44px;
    -webkit-user-select: none;
    user-select: none;
}

.btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), #e65100);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    background: linear-gradient(135deg, var(--secondary), #e67e00);
}

/* Navigation Styles */
.nav-links {
    display: none;
    /* Hidden by default on mobile */
    align-items: center;
    gap: 1.5rem;
}

/* Show nav links on desktop */
@media (min-width: 768px) {
    .nav-links.desktop-only {
        display: flex;
    }
}

.nav-item {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-download {
    background: var(--success);
    border: 2px solid var(--success);
}

.nav-download:hover {
    background: transparent;
    color: var(--success);
}

/* Search Bar */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border-radius: 25px;
    border: none;
    background: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    color: var(--dark);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-800);
    font-size: 1rem;
}

/* Slider Styles (Refined) */
.banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #000;
}

.banner-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.banner-slide {
    min-width: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 180px;
    /* Increased from 140px */
    /* Mobile focused height */
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .banner-slide img {
        height: 400px;
        /* Increased from 350px */
    }
}

.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.banner-dots .dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.banner-dots .dot.active {
    background: var(--white);
    width: 20px;
    border-radius: 4px;
}

/* Banner Navigation Arrows */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.banner-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.banner-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.banner-prev {
    left: 10px;
}

.banner-next {
    right: 10px;
}

/* Hide arrows on very small screens */
@media (max-width: 400px) {
    .banner-nav {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* Quick Nav */
.quick-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    /* Firefox */
}

/* Thin quick-links used on slug pages above footer */
.quick-links.thin {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 8px 0;
}
.quick-links.thin .container {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 0 0.5rem;
}
.quick-links.thin a {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: var(--dark);
    background: var(--gray-100);
    border-radius: 999px;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.quick-links.thin a:hover {
    background: var(--primary);
    color: var(--white);
}

.quick-nav::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.nav-pill {
    flex: 0 0 auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 10px 16px;
    border-radius: 22px;
    font-size: 0.85rem;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    min-height: 44px;
    -webkit-user-select: none;
    user-select: none;
}

.nav-pill:active {
    transform: scale(0.95);
}

.nav-pill:hover,
.nav-pill.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* App List (Compact & Full Width) */
.app-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    /* Always full width */
    gap: 10px;
}

.app-item {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 12px 14px;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.15s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 12px;
    width: 100%;
    min-height: 70px;
    -webkit-user-select: none;
    user-select: none;
}

.app-item:active {
    transform: scale(0.98);
    background: #f8f9fa;
}

.app-item:hover {
    transform: translateX(3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.app-icon-wrapper {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    margin-right: 14px;
}

.app-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--dark);
}

.app-desc {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-rating {
    font-size: 0.7rem;
    color: #ffa000;
    font-weight: 700;
    background: #fff8e1;
    padding: 2px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-get {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.15s ease;
    margin-left: auto;
    min-height: 36px;
    min-width: 70px;
}

.btn-get:active {
    transform: scale(0.92);
    opacity: 0.9;
}

.app-item:hover .btn-get {
    background: var(--secondary);
    transform: scale(1.05);
}

/* Navbar Tweaks */
/* Unique Styled Promo Bar */
.top-promo-bar {
    background: linear-gradient(135deg, #FF6B00, #FF8E3C, #E65100);
    background-size: 400% 400%;
    color: white;
    padding: 0;
    /* padding moved to link */
    font-size: 0.8rem;
    font-weight: 700;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: gradientShift 8s ease infinite;
}

/* Glassmorphism Shine Effect */
.top-promo-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: skewX(-20deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.marquee-container {
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}

.marquee-content span {
    display: inline-block;
    padding-right: 60px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Partners Section */
.partners-section {
    padding: 15px 0 5px;
}

.partner-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 0 15px;
    scrollbar-width: none;
}

.partner-grid::-webkit-scrollbar {
    display: none;
}

.partner-card {
    min-width: 160px;
    background: white;
    padding: 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: var(--primary);
}

.partner-icon {
    width: 35px;
    height: 35px;
    background: var(--gray-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
}

.partner-logo {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.partner-info {
    display: flex;
    flex-direction: column;
}

.partner-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
}

.partner-tag {
    font-size: 0.65rem;
    color: #888;
    font-weight: 500;
}

.navbar {
    box-shadow: none;
    border-bottom: none;
    background: var(--primary);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.brand span {
    color: var(--accent);
}

.menu-toggle {
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.menu-toggle:hover {
    opacity: 0.8;
}

/* Modern Hamburger Icon */
.hamburger-icon {
    width: 24px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

/* Animated effect on hover */
.menu-toggle:hover .hamburger-icon span:nth-child(1) {
    transform: translateY(-2px);
}

.menu-toggle:hover .hamburger-icon span:nth-child(3) {
    transform: translateY(2px);
}

/* When menu is active, transform to X */
.menu-toggle.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Styles (Restored & Right Aligned) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1900;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-menu-overlay.active {
    visibility: visible;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    will-change: transform;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}

/* Adjust menu position for desktop centered view */
@media (min-width: 768px) {
    .mobile-menu {
        right: calc(50% - 240px);
    }
}

.mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    color: white;
}

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.mobile-nav-links {
    padding: 1rem;
    overflow-y: auto;
}

.mobile-nav-links li {
    margin-bottom: 0.5rem;
}

.mobile-nav-links a {
    display: flex;
    padding: 14px 15px;
    border-radius: var(--radius);
    color: var(--dark);
    font-weight: 500;
    transition: background 0.15s ease;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    -webkit-user-select: none;
    user-select: none;
}

.mobile-nav-links a:active {
    background: var(--gray-200);
    transform: scale(0.98);
}

.mobile-nav-links a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.mobile-nav-links i {
    width: 20px;
    text-align: center;
    color: var(--secondary);
}

/* Mobile Menu Overlay fix (Clean up previous incomplete rule) */


/* App Detail Page Styles */
.app-hero {
    background: #f8f9fa;
    padding: 40px 0;
    border-bottom: 1px solid var(--gray-200);
}

.app-hero .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.app-hero .app-icon {
    flex: 0 0 auto;
}

.app-hero .app-icon img {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    object-fit: cover;
    background: white;
}

.app-hero .app-info {
    flex: 1;
    min-width: 0;
}

.app-hero h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.app-hero .app-desc {
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 15px;
    line-height: 1.5;
}

.app-hero .app-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--gray-800);
}

.app-details {
    padding: 40px 0;
}

.app-details .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.app-description h2 {
    margin-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 8px;
    display: inline-block;
    font-size: 1.3rem;
}

.app-description .content {
    line-height: 1.7;
    color: var(--gray-800);
    font-size: 1rem;
    position: relative;
}

.app-description .content.truncated {
    max-height: 150px;
    overflow: hidden;
    position: relative;
}

.app-description .content.truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, var(--light));
    pointer-events: none;
}

.read-more-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more-btn:hover {
    background: #e65100;
    transform: translateY(-1px);
}

.app-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-sidebar .card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.app-sidebar .safety-card {
    background: #e8f5e9;
    border-color: #c8e6c9;
}

.app-sidebar .safety-card h3 {
    color: #2e7d32;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.app-sidebar .safety-card p {
    font-size: 0.9rem;
    color: #1b5e20;
}

.app-sidebar .related-apps h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.app-sidebar .related-app {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    transition: 0.2s;
    margin-bottom: 10px;
}

.app-sidebar .related-app:hover {
    background: var(--gray-50);
    border-color: var(--primary);
}

.app-sidebar .related-app img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    margin-right: 12px;
    object-fit: cover;
    background: #eee;
}

.app-sidebar .related-app h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--dark);
}

.app-sidebar .related-app span {
    font-size: 0.8rem;
    color: var(--primary);
}

/* Mobile-optimized App Detail Page - Always use mobile layout */
.app-hero {
    padding: 30px 20px;
}

.app-hero .container {
    padding: 0;
}

.app-hero .app-icon img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
}

.app-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.app-hero .app-desc {
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.app-hero .app-meta {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.app-hero .btn-primary {
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.app-details {
    padding: 30px 20px;
}

.app-details .container {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.app-description h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
}

.app-description .content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.app-sidebar {
    gap: 20px;
}

.app-sidebar .card {
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 0;
}

.app-sidebar .safety-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.app-sidebar .safety-card p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.app-sidebar .related-apps h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.app-sidebar .related-app {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.app-sidebar .related-app img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.app-sidebar .related-app h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.app-sidebar .related-app span {
    font-size: 0.85rem;
}

/* Ensure buttons and interactive elements are touch-friendly */
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Better spacing for mobile */
.app-hero .container {
    gap: 20px;
}

/* Floating Group Buttons */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Adjust for desktop centered view */
@media (min-width: 768px) {
    .floating-buttons {
        right: calc(50% - 230px);
    }
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: float 3s ease-in-out infinite;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    animation-delay: 0s;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.telegram-btn {
    background: linear-gradient(135deg, #0088cc, #005f99);
    animation-delay: 0.5s;
}

.telegram-btn:hover {
    background: linear-gradient(135deg, #005f99, #0088cc);
}

/* Floating animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Pulse effect on hover */
.floating-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    transition: all 0.3s;
}

.floating-btn:hover::before {
    opacity: 0.3;
    transform: scale(1.3);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .floating-buttons {
        right: 15px;
        bottom: 20px;
        left: auto;
        top: auto;
        transform: none;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Footer Tweak */
.footer {
    background: #000000;
    color: #ffffff;
    padding: 10px 0;
    border-top: 1px solid #333333;
    text-align: center;
}

/* 
   -----------------------------------------
   PREMIUM APP DETAILS STYLES (New)
   -----------------------------------------
*/

/* Hero Animation */
.app-hero-heroic {
    background: transparent;
    /* Remove blue background */
    position: relative;
    padding: 10px 0 10px;
    /* Minimal padding */
    overflow: hidden;
    color: var(--dark);
    /* Dark text for light bg */
    border-bottom: 1px solid var(--gray-200);
    /* Simple separator */
    box-shadow: none;
    /* Remove shadow */
}

.hero-bg-animation {
    display: none;
    /* Hide background animation */
}

.floating-shapes .shape {
    position: absolute;
    opacity: 0.1;
    background: white;
    border-radius: 50%;
    animation: floatShape 10s infinite linear;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-duration: 15s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-duration: 20s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 30%;
    animation-duration: 12s;
}

@keyframes floatShape {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

.app-showcase {
    position: relative;
    z-index: 2;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    /* Minimal padding inside card */
    border: none;
    display: flex;
    flex-direction: row;
    /* Align horizontal on mobile too */
    align-items: center;
    text-align: left;
    gap: 15px;
    /* Reduced gap */
    max-width: 800px;
    margin: 0 auto;
}

@media(min-width: 768px) {
    .app-showcase {
        flex-direction: row;
        text-align: left;
        gap: 25px;
        padding: 25px;
    }
}

/* 3D Icon */
.app-icon-3d {
    flex-shrink: 0;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.icon-glow {
    position: relative;
    border-radius: 22px;
    padding: 0;
    box-shadow: none;
    background: none;
    animation: none;
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.app-icon-main {
    width: 72px;
    /* Tiny icon size */
    height: 72px;
    border-radius: 18px;
    display: block;
    border: 1px solid var(--gray-200);
    /* Simple border instead of white */
}

/* Typography & Badges */
.app-details-fancy {
    flex: 1;
}

.app-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 255, 136, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

.app-title-glow {
    font-size: 1.3rem;
    /* Tiny title */
    font-weight: 800;
    margin-bottom: 5px;
    position: relative;
    display: block;
    line-height: 1.2;
}

.app-desc-animated {
    font-size: 0.85rem;
    /* Tiny desc */
    opacity: 0.9;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Added standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stats Removed */

/* Star/Download Badge Animations */
.star-bounce {
    animation: bounceIcon 2s infinite;
}

.download-bounce {
    animation: bounceIcon 2s infinite 0.5s;
}

.shield-bounce {
    animation: bounceIcon 2s infinite 1s;
}

@keyframes bounceIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Mega Download Button */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media(min-width: 768px) {
    .action-buttons {
        flex-direction: row;
        align-items: center;
    }
}

.download-btn-mega {
    background: linear-gradient(135deg, #FF6B00, #F57C00);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    padding: 3px;
    /* for border effect */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
    position: relative;
    overflow: hidden;
    flex: 2;
}

.download-btn-mega:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.4);
}

.btn-inner {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 48px;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
}

.download-icon {
    font-size: 1.2rem;
    animation: sectionDown 1s infinite alternate;
}

@keyframes sectionDown {
    from {
        transform: translateY(-3px);
    }

    to {
        transform: translateY(3px);
    }
}

/* Fancy Share Button */
.share-btn-fancy {
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--dark);
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    flex: 1;
    position: relative;
}

.share-btn-fancy:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.share-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* App Details Content (Majedar) */
.app-details-majedar {
    padding: 40px 0;
    background: #f8f9fa;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
}

@media(min-width: 992px) {
    .details-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.description-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-description-content {
    line-height: 1.8;
    color: var(--gray-800);
    font-size: 1.05rem;
}

.app-description-content.truncated {
    max-height: 200px;
    overflow: hidden;
    mask-image: linear-gradient(black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(black 60%, transparent 100%);
}

.read-more-btn-fancy {
    margin-top: 20px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more-btn-fancy:hover {
    background: var(--primary);
    color: white;
}

/* Sidebar Fancy */
.sidebar-fancy {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.safety-badges {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.badges-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
}

.badge-item i {
    font-size: 1.2rem;
}

.verified-badge {
    color: #2ecc71;
}

.virus-badge {
    color: #3498db;
}

.privacy-badge {
    color: #9b59b6;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.info-card {
    background: white;
    padding: 15px 10px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.info-card .card-icon {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.info-card h4 {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 2px;
}

.info-card p {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

/* Related Apps Cool */
.related-apps-cool {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.2s;
    background: #f8f9fa;
    border: 1px solid transparent;
}

.related-item:hover {
    background: white;
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
}

.related-info h4 {
    font-size: 0.9rem;
    margin: 0 0 2px 0;
    color: var(--dark);
}

.related-info span {
    font-size: 0.75rem;
    color: var(--primary);
}

.related-arrow {
    margin-left: auto;
    color: #ccc;
    font-size: 0.8rem;
}

/* Mobile & Deployment Readiness Optimizations */
@media (max-width: 768px) {

    /* Reduce hero padding for mobile to save vertical space */
    section[style*="background: var(--primary)"] {
        padding: 5px 0 25px !important;
    }

    /* Ensure banners don't have too much gap on small screens */
    .banner-section {
        margin-top: -10px !important;
        margin-bottom: 15px !important;
    }

    /* Smaller text for announcement bar on mobile */
    .top-promo-bar {
        font-size: 0.7rem;
    }

    /* Compact Partners Section */
    .partners-section h2 {
        font-size: 1.1rem !important;
    }

    .partner-card {
        min-width: 130px;
        padding: 10px;
    }
}

/* ===== MOBILE TOUCH OPTIMIZATIONS ===== */

/* Horizontal scrollable areas */
.quick-nav,
.partner-grid {
    -webkit-overflow-scrolling: touch;
}

/* Search input - prevent iOS zoom */
.search-input {
    font-size: 16px !important;
}

/* Banner slider */
.banner-track {
    will-change: transform;
}

.banner-slide img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

/* Touch feedback */
.banner-nav:active,
.close-menu:active,
.menu-toggle:active,
.floating-btn:active {
    opacity: 0.7;
}

/* Minimum touch target sizes */
.banner-nav,
.close-menu,
.menu-toggle {
    min-width: 44px;
    min-height: 44px;
}

.close-menu {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menu scroll */
.mobile-nav-links {
    -webkit-overflow-scrolling: touch;
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Safe area insets for modern phones (notch support) */
@supports (padding: max(0px)) {
    .navbar {
        padding-top: max(12px, env(safe-area-inset-top));
    }
    
    .footer {
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
    
    .floating-buttons {
        bottom: max(20px, env(safe-area-inset-bottom));
    }
}
