/* CSS Variables & Premium Color System */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-glass: rgba(255, 255, 255, 0.02);
    --border-glass: rgba(255, 255, 255, 0.06);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --color-indigo: #6366f1;
    --color-purple: #a855f7;
    --color-blue: #3b82f6;
    --color-pink: #ec4899;
    --font-outfit: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #a855f7 100%);
    --gradient-hero: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 60%),
                     radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.1), transparent 50%);
    --glow-indigo: 0 0 20px rgba(99, 102, 241, 0.4);
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.4);
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Global Reset */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-outfit);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

a {
    color: var(--color-indigo);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: var(--color-purple);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-indigo);
}

/* Background Clip for Gradients */
.text-transparent {
    color: transparent !important;
}
.bg-clip-text {
    -webkit-background-clip: text !important;
    background-clip: text !important;
}
.bg-gradient-brand {
    background: var(--gradient-brand);
}

/* Helper Glows */
.text-indigo-glow {
    color: var(--color-indigo);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}
.text-purple-glow {
    color: var(--color-purple);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

/* Buttons */
.btn-premium {
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5), var(--glow-purple);
    color: #fff;
}

.btn-premium-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-glass);
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.btn-premium-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-indigo);
    color: #fff;
}

.btn-outline-premium {
    background: transparent;
    color: var(--color-indigo);
    border: 1px solid var(--color-indigo);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-outline-premium:hover {
    background: var(--color-indigo);
    color: #fff;
    box-shadow: var(--glow-indigo);
}

/* Nav styles */
.navbar-premium {
    background-color: rgba(10, 14, 23, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}
.nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary) !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}
.btn-nav-search {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}
.btn-nav-search:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    color: var(--text-primary);
}

/* Hero Section */
.hero-wrapper {
    background-image: var(--gradient-hero);
    position: relative;
    padding: 120px 0 100px 0;
    overflow: hidden;
}
.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 25%;
    width: 250px;
    height: 250px;
    background: var(--color-indigo);
    filter: blur(140px);
    opacity: 0.25;
    z-index: -1;
}
.hero-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-indigo);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

/* Glassmorphic Cards */
.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.05);
}
.glass-card-mini {
    background: rgba(255,255,255,0.015);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
}

/* Product App Cards */
.app-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.app-card-header {
    position: relative;
    height: 140px;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 19px;
    border-top-right-radius: 19px;
    background-color: rgba(255,255,255,0.02);
}
.app-card-logo-container {
    position: absolute;
    bottom: -30px;
    left: 20px;
    width: 70px;
    height: 70px;
    background: #111827;
    border-radius: 16px;
    padding: 3px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    border: 1px solid var(--border-glass);
}
.app-card-logo {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}
.app-card-body {
    padding: 45px 20px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.app-card-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-indigo);
    margin-bottom: 8px;
}
.app-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}
.app-card-summary {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 20px;
}
.app-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 15px;
    margin-top: auto;
}

/* Technology Badges */
.tech-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.bg-primary-glow {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}
.bg-orange-glow {
    background: rgba(249, 115, 22, 0.15) !important;
    color: #fdba74 !important;
    border-color: rgba(249, 115, 22, 0.3) !important;
}
.bg-purple-glow {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #c084fc !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
}
.bg-cyan-glow {
    background: rgba(6, 182, 212, 0.15) !important;
    color: #67e8f9 !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
}
.bg-yellow-glow {
    background: rgba(234, 179, 8, 0.1) !important;
    color: #fef08a !important;
    border-color: rgba(234, 179, 8, 0.2) !important;
}

/* Statistics Counters */
.stats-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    letter-spacing: -0.05em;
    display: inline-block;
}
.stats-label {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* Product Detail Page */
.detail-hero {
    position: relative;
    padding: 100px 0 60px 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 14, 23, 0.5) 0%, rgba(10, 14, 23, 0.95) 100%);
    backdrop-filter: blur(8px);
}
.detail-header-card {
    position: relative;
    z-index: 10;
}
.detail-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border: 2px solid var(--border-glass);
    object-fit: cover;
}
.detail-meta-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.detail-meta-item strong {
    color: var(--text-primary);
}

/* Markdown README Viewer */
.readme-content {
    line-height: 1.7;
    color: #d1d5db;
}
.readme-content h1, .readme-content h2, .readme-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #fff;
}
.readme-content h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 8px;
}
.readme-content p {
    margin-bottom: 20px;
}
.readme-content ul, .readme-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}
.readme-content li {
    margin-bottom: 8px;
}
.readme-content code {
    background: rgba(255,255,255,0.06);
    color: #f472b6;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.readme-content pre {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 18px;
    overflow-x: auto;
    margin-bottom: 25px;
}
.readme-content pre code {
    background: transparent;
    color: #e5e7eb;
    padding: 0;
    font-size: 0.88em;
}

/* Swiper Screenshots Carousel */
.swiper-screenshots {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 50px;
}
.swiper-slide-screenshot {
    width: 280px;
    height: 560px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 3px solid rgba(255,255,255,0.08);
    background: #000;
}
.swiper-screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Swiper Pagination/Navigation Glowing styles */
.swiper-pagination-bullet-active {
    background: var(--color-indigo) !important;
    box-shadow: var(--glow-indigo);
}

/* Admin Styling */
.admin-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-glass);
    min-height: calc(100vh - 73px);
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}
.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(255,255,255,0.04);
    color: #fff;
    border-left: 3px solid var(--color-indigo);
}
.console-log-box {
    background: #05070c;
    border: 1px solid #1f2937;
    border-radius: 12px;
    height: 250px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    padding: 15px;
    color: #34d399;
    overflow-y: auto;
}
.online-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

/* Online Status Dot in layout */
.dot-online {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

/* Footer Link Styles */
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #fff;
}
.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}
.social-icon:hover {
    background: var(--color-indigo);
    color: #fff;
    box-shadow: var(--glow-indigo);
    transform: translateY(-2px);
}
.footer-sub-link {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}
.footer-sub-link:hover {
    color: #fff;
}

/* Search Filters Styling */
.filter-dropdown {
    background-color: #111827;
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}
.filter-dropdown:focus {
    border-color: var(--color-indigo);
    box-shadow: var(--glow-indigo);
    background-color: #111827;
    color: var(--text-primary);
}
.search-input-premium {
    background-color: #111827;
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.search-input-premium:focus {
    border-color: var(--color-indigo);
    box-shadow: var(--glow-indigo);
    background-color: #111827;
    color: var(--text-primary);
}

/* Logo Styling */
.brand-logo {
    height: 65px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.brand-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.6);
}
.brand-logo-footer {
    height: 60px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}
.brand-logo-long {
    height: 80px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.brand-logo-long:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

/* Premium Platform Badges styles */
.platform-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.platform-badge-android {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}
.platform-badge-ios {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}
.platform-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Premium Dropdown Menu */
.dropdown-menu-premium {
    background: rgba(17, 24, 39, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-premium);
    padding: 8px 0 !important;
}
.dropdown-menu-premium .dropdown-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 8px 20px !important;
    transition: all 0.2s ease;
}
.dropdown-menu-premium .dropdown-item:hover {
    color: var(--text-primary) !important;
    background: rgba(99, 102, 241, 0.1) !important;
}