/* =====================================================
   XAPK to APK - Modern Design System
   ===================================================== */

/* CSS Variables */ 
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #22d3ee;
    --secondary-light: #67e8f9;
    --accent: #f472b6;

    /* Backgrounds */
    --bg-dark: #0f0f23;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.05);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Borders */
    --border-light: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(99, 102, 241, 0.5);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    --gradient-hero: linear-gradient(135deg, #1a1a3e 0%, #0f0f23 50%, #0a1628 100%);
    --gradient-card: linear-gradient(145deg, rgba(99, 102, 241, 0.1), rgba(34, 211, 238, 0.05));

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
} 

h1 {
    font-size: clamp(1.25rem, 4vw, 2.75rem);
}

h2 {
    font-size: clamp(1.35rem, 3.5vw, 2rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
}

/* =====================================================
   Navigation
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    padding: var(--space-md) 0;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-base);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
}

.logo i {
    font-size: 1.75rem;
    background: linear-gradient(135deg, #6C5CE7, #00D2FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Multicolor Logo Text */
.logo-text {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}
.logo-xapk {
    background: linear-gradient(135deg, #6C5CE7, #818CF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -0.5px;
}
.logo-to {
    color: #00D2FF;
    -webkit-text-fill-color: #00D2FF;
    font-weight: 600;
    font-size: 0.85em;
    margin: 0 1px;
}
.logo-apk {
    background: linear-gradient(135deg, #00E676, #00D2FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

/* Hidden on desktop, only shown in mobile nav menu */
.mobile-get-app {
    display: none;
}

.nav-links a {
    position: relative;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

.hero {
    position: relative;
    display: block;
    padding: clamp(90px, 10vh, 110px) 0 var(--space-md);
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.6s ease;
}

.hero-badge i {
    color: var(--accent);
}

.hero h1 {
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.upload-zone {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    background-color: var(--bg-card);
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3clinearGradient id='grad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3e%3cstop offset='0%25' stop-color='%236366f1' /%3e%3cstop offset='50%25' stop-color='%23a855f7' /%3e%3cstop offset='100%25' stop-color='%23ec4899' /%3e%3c/linearGradient%3e%3c/defs%3e%3crect width='calc(100%25 - 4px)' height='calc(100%25 - 4px)' x='2' y='2' fill='none' rx='20' ry='20' stroke='url(%23grad)' stroke-width='2.5' stroke-dasharray='8, 8' stroke-dashoffset='0' stroke-linecap='round' /%3e%3c/svg%3e");
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition-base);
    animation: fadeInUp 0.6s ease 0.3s both;
}

.upload-zone::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-base);
}

.upload-zone:hover,
.upload-zone.drag-over {
    background-color: var(--bg-card-hover);
    transform: scale(1.01);
}

.upload-zone:hover::before,
.upload-zone.drag-over::before {
    opacity: 0.1;
}

.upload-zone.drag-over {
    animation: pulse 1s infinite;
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-glow);
}

.upload-zone h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.upload-zone p {
    margin-bottom: var(--space-md);
}

.file-limit {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =====================================================
   Progress Section
   ===================================================== */
.progress-section {
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    animation: fadeIn 0.3s ease;
}

.file-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.file-info i {
    font-size: 2.5rem;
    color: var(--primary);
}

.file-details {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
}

.file-size {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.progress-bar {
    height: 8px;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.progress-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* =====================================================
   Download Section
   ===================================================== */
.download-section {
    padding: 1.5rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    font-size: 2.5rem;
    color: white;
    animation: scaleIn 0.5s ease;
}

.download-section h3 {
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.extracted-files {
    margin-bottom: 0.5rem;
}

/* Cloud converter inline buttons (inside extractedFiles) */
.cloud-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 14px;
}
.cloud-actions .btn {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}
.cloud-actions .btn-primary {
    background: linear-gradient(135deg, #6C5CE7, #00D2FF);
    color: #fff;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}
.cloud-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}
.cloud-actions .btn-outline-secondary {
    background: rgba(108, 92, 231, 0.08);
    color: var(--text-secondary, #8b95b0);
    border: 1px solid rgba(108, 92, 231, 0.2);
}
.cloud-actions .btn-outline-secondary:hover {
    background: rgba(108, 92, 231, 0.15);
    color: #f0f0f5;
}

.package-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--gradient-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.package-id {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    color: var(--primary-light);
}

.package-id i {
    color: var(--secondary);
}

.version-badge {
    padding: var(--space-xs) var(--space-sm);
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.extracted-file {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.extracted-file i {
    color: var(--primary);
}

.download-section .btn {
    margin: 0.25rem;
}

/* =====================================================
   Error Section
   ===================================================== */
.error-section {
    padding: var(--space-2xl);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-xl);
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444, #f87171);
    border-radius: 50%;
    font-size: 2.5rem;
    color: white;
}

.error-section h3 {
    margin-bottom: var(--space-md);
    color: #ef4444;
}

.error-section p {
    margin-bottom: var(--space-lg);
}

/* =====================================================
   How It Works Section
   ===================================================== */
.how-it-works {
    padding: var(--space-xl) 0 var(--space-3xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.03) 100%);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: var(--space-2xl);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.step-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition-base);
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    color: var(--primary-light);
}

.step-card h3 {
    margin-bottom: var(--space-sm);
}

/* =====================================================
   Tools Section
   ===================================================== */
.tools-section {
    padding: var(--space-3xl) 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.tool-card {
    position: relative;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

.tool-icon.aab {
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: white;
}

.tool-icon.apks {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: white;
}

.tool-icon.info {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: white;
}

.tool-icon.verify {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
}

.tool-icon.obb {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.tool-icon.download {
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: white;
}

.tool-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.tool-card p {
    font-size: 0.9rem;
}

/* =====================================================
   Info Section
   ===================================================== */
.info-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.03) 0%, transparent 100%);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.info-content h2 {
    margin-bottom: var(--space-lg);
}

.info-content p {
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
}

.feature-list i {
    color: var(--secondary);
}

.info-visual {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xl);
}

.file-structure {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-width: 350px;
}

.structure-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
}

.structure-header i {
    color: var(--primary);
}

.structure-content {
    padding: var(--space-lg);
}

.structure-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
}

.structure-item i {
    color: var(--text-muted);
}

.structure-item.indent {
    padding-left: var(--space-xl);
}

.badge {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-left: auto;
}

.badge.primary {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
}

.badge.secondary {
    background: rgba(34, 211, 238, 0.2);
    color: var(--secondary);
}

/* =====================================================
   Blog Section
   ===================================================== */
.blog-section {
    padding: var(--space-3xl) 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.blog-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    font-size: 3rem;
    color: white;
}

.blog-content {
    padding: var(--space-xl);
}

.blog-category {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.blog-content h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    font-size: 1.125rem;
    line-height: 1.4;
}

.blog-content p {
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary-light);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.blog-card:hover .read-more {
    color: var(--secondary);
}

.blog-cta {
    text-align: center;
}

/* =====================================================
   FAQ Section
   ===================================================== */
.faq-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.03) 100%);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-question i {
    color: var(--primary);
    transition: var(--transition-base);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 var(--space-lg) var(--space-lg);
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-lg);
}

.footer-brand p {
    margin-bottom: var(--space-lg);
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 1.125rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer-links h4 {
    margin-bottom: var(--space-lg);
    font-size: 1rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-light);
}

.footer-bottom p {
    font-size: 0.875rem;
}

.footer-bottom i {
    color: #ef4444;
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    50% {
        transform: scale(1.01);
        box-shadow: 0 0 20px 10px rgba(99, 102, 241, 0);
    }
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1024px) {

    .tools-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-list {
        display: inline-block;
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {

    .tool-hero,
    .tool-content {
        padding: 1.5rem 0;
    }
}

@media (max-width: 1024px) {
    /* Tablet: hide PC/Mac from header (not needed on tablet/phone) */
    .nav-pc-mac {
        display: none !important;
    }

    /* Compact nav spacing for tablets */
    .nav-links {
        gap: var(--space-md);
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .steps-grid,
    .tools-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Phone: hamburger menu */
@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        order: 1;
        margin-right: var(--space-sm);
    }

    .logo {
        position: static;
        transform: none;
        order: 2;
        margin: 0 auto;
        font-size: 1.25rem;
    }

    .logo i {
        display: none;
    }

    .nav-actions {
        order: 3;
    }

    /* Hide Get App button from header, show in mobile menu */
    .nav-download-dropdown {
        display: none !important;
    }

    .mobile-get-app {
        display: list-item;
        text-align: center;
    }

    .hero {
        padding-top: calc(60px + var(--space-2xl));
    }

    .upload-zone {
        padding: var(--space-2xl) var(--space-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand .logo {
        position: static;
        transform: none;
        margin-bottom: var(--space-lg);
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    /* Tool Pages mobile fixes */
    .info-content,
    .info-visual {
        min-width: 0;
        width: 100%;
    }

    .tool-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1.25rem;
    }

    .tool-buttons .btn {
        width: 100%;
    }

    .alert-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .numbered-list pre {
        white-space: pre-wrap !important;
        word-break: break-word;
    }

    .comparison-table {
        display: block;
        overflow-x: auto;
    }

    .tool-page {
        padding-top: 50px;
    }

    .tool-hero {
        padding: 1rem 0;
    }

    .blog-hero {
        padding: 1.5rem 0;
    }

    .article-content {
        padding: 1.5rem var(--space-lg);
    }

    .article-content h2 {
        margin: 1.5rem 0 1rem;
    }

    .hero-badge {
        margin-bottom: 0.5rem;
    }

    .tool-hero h1 {
        margin-bottom: 0.5rem;
    }

    .tool-content {
        padding: 1rem 0;
    }
}

@media (max-width: 600px) {
    .nav-actions {
        gap: 0.5rem;
    }

    /* Small screens: single column grid */
    .steps-grid,
    .tools-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: clamp(1.15rem, 5vw, 1.5rem) !important;
        line-height: 1.3;
    }

    h2 {
        font-size: clamp(1.1rem, 4.5vw, 1.35rem) !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
    }

    /* Reduce excessive padding on small screens for converter sections */
    .download-section {
        padding: 1.25rem 1rem;
    }
    .upload-zone {
        padding: 1.5rem 1rem;
    }
    .progress-section {
        padding: 1rem;
    }
    .error-section {
        padding: 1.25rem 1rem;
    }
    /* Package info row compact on mobile */
    .package-info {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    .package-id {
        font-size: 0.78rem;
    }
    /* File item compact */
    .extracted-file {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    /* Cloud converter: reduce gap above buttons */
    .extracted-files {
        margin-bottom: 0.75rem;
    }
    /* Cloud converter: full-width buttons matching instant converter */
    .download-section .bb-file-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
    .download-section .bb-file-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
        font-weight: 600;
        border-radius: 12px;
        margin: 0;
    }
    .download-section .bb-file-actions .btn-primary {
        background: linear-gradient(135deg, #6C5CE7, #00D2FF);
        color: #fff;
        box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
    }
    .download-section .bb-file-actions .btn-outline-secondary {
        background: rgba(108, 92, 231, 0.08);
        color: var(--text-secondary, #8b95b0);
        border: 1px solid rgba(108, 92, 231, 0.2);
    }
    /* Remove old btn margin in download section */
    .download-section .btn {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .btn-download-nav span {
        display: none;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    h1 {
        font-size: clamp(1rem, 4.5vw, 1.35rem) !important;
    }

    h2 {
        font-size: clamp(0.95rem, 4vw, 1.2rem) !important;
    }

    .hero-subtitle {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: 1rem !important;
    }

    h2 {
        font-size: 0.95rem !important;
    }

    .hero-subtitle {
        font-size: 0.8rem !important;
    }

    .logo {
        font-size: 1rem;
    }
}


/* =====================================================
   Tool Page Specific Styles
   ===================================================== */
.tool-page {
    padding-top: 100px;
}

.tool-hero {
    padding: 2rem 0;
    background: var(--gradient-hero);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.tool-hero h1 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
    line-height: 1.3;
}

.tool-hero p {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    font-size: 1rem;
}

.tool-content {
    padding: 2rem 0;
}

.tool-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* =====================================================
   Blog Page Specific Styles
   ===================================================== */
.blog-page {
    padding-top: 100px;
}

.blog-hero {
    padding: var(--space-2xl) 0;
    background: var(--gradient-hero);
    text-align: center;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg) var(--space-3xl);
    /* Reduced top padding from 3xl to xl */
}

.article-content>*:first-child {
    margin-top: 0;
}

.article-content h1 {
    margin-bottom: var(--space-lg);
}

.article-content h2 {
    margin: var(--space-xl) 0 var(--space-lg);
    /* Reduced top margin from 2xl to xl */
}

.article-content p {
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.article-content li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.article-content code {
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

.article-content pre {
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: var(--space-lg);
}

.article-content pre code {
    padding: 0;
    background: none;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-meta i {
    color: var(--primary);
}

/* =====================================================
   Navigation Dropdown Menu
   ===================================================== */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 450px;
    padding: 1.5rem;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.show-dropdown .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: transparent;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--bg-glass);
}

.dropdown-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.dropdown-icon.xapk {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.dropdown-icon.aab {
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: white;
}

.dropdown-icon.apks {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: white;
}

.dropdown-icon.info {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: white;
}

.dropdown-icon.verify {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
}

.dropdown-icon.obb {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.dropdown-text {
    display: flex;
    flex-direction: column;
}

.dropdown-text strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.dropdown-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =====================================================
   Nav Actions & Theme Toggle
   ===================================================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: rotate(20deg);
}

/* Light Mode Icon Switch */
body.light-mode .theme-toggle i::before {
    content: "\f185";
    /* sun icon */
}

/* =====================================================
   Light Mode Theme
   ===================================================== */
body.light-mode {
    --bg-dark: #f5f7fa;
    --bg-card: rgba(0, 0, 0, 0.02);
    --bg-card-hover: rgba(0, 0, 0, 0.04);
    --bg-glass: rgba(0, 0, 0, 0.03);

    --text-primary: #1a1a2e;
    --text-secondary: rgba(26, 26, 46, 0.7);
    --text-muted: rgba(26, 26, 46, 0.5);

    --border-light: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(99, 102, 241, 0.3);

    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #dbeafe 100%);
    --gradient-card: linear-gradient(145deg, rgba(99, 102, 241, 0.05), rgba(34, 211, 238, 0.03));

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
}

body.light-mode .upload-zone {
    background-color: rgba(255, 255, 255, 0.8);
}

body.light-mode .progress-section,
body.light-mode .download-section {
    background: rgba(255, 255, 255, 0.9);
}

body.light-mode ::-webkit-scrollbar-track {
    background: #e2e8f0;
}

body.light-mode .footer {
    background: #1a1a2e;
}

body.light-mode .footer,
body.light-mode .footer h4,
body.light-mode .footer a,
body.light-mode .footer p {
    color: #ffffff;
}

body.light-mode .footer a {
    color: rgba(255, 255, 255, 0.7);
}

body.light-mode .footer a:hover {
    color: #ffffff;
}

/* =====================================================
   Responsive Dropdown
   ===================================================== */
@media (max-width: 600px) {
    .nav-dropdown:hover .dropdown-menu {
        display: none;
    }

    .nav-links.active .nav-dropdown .dropdown-menu,
    .nav-dropdown.show-dropdown .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        min-width: auto;
        margin-top: 0.5rem;
        padding: 1rem;
        opacity: 1;
        visibility: visible;
        display: block;
    }

    .nav-links.active .dropdown-grid {
        grid-template-columns: 1fr;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* =====================================================
   Hero Stats Badges
   ===================================================== */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.6s ease 0.25s both;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.stat-item:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.stat-item i {
    color: var(--primary-light);
    font-size: 1rem;
}

.stat-item strong {
    color: var(--text-primary);
    font-weight: 700;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* LIVE Pulse Dot — real-time indicator */
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
    animation: livePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(34, 197, 94, 0.6); }
    50% { opacity: 0.4; box-shadow: 0 0 12px rgba(34, 197, 94, 0.9); }
}

/* Glow animation when stat updates */
.stat-item.stat-updated {
    border-color: #22c55e !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
}

.stat-item.stat-updated strong {
    color: #22c55e;
    transform: scale(1.1);
}

/* Counter bump micro-animation */
@keyframes counterBump {
    0% { transform: scale(1); }
    30% { transform: scale(1.15); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.stat-item.stat-bumped strong {
    animation: counterBump 0.5s ease;
}

/* ★ SSE Real-Time Connected Indicator */
.live-dot.live-connected {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8), 0 0 20px rgba(34, 197, 94, 0.4);
    animation: liveConnectedPulse 1.5s ease-in-out infinite;
}

@keyframes liveConnectedPulse {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 8px rgba(34, 197, 94, 0.8), 0 0 20px rgba(34, 197, 94, 0.4);
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        box-shadow: 0 0 12px rgba(34, 197, 94, 1), 0 0 30px rgba(34, 197, 94, 0.6);
        transform: scale(1.2);
    }
}

/* ★ Live Conversion Pulse — triggers when another user converts */
@keyframes livePulseWave {
    0% { 
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
        border-color: #22c55e;
    }
    40% { 
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
        border-color: #22c55e;
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
        border-color: var(--border-light);
    }
}

.stat-item.stat-live-pulse {
    animation: livePulseWave 1.5s ease-out;
    border-color: #22c55e !important;
}

.stat-item.stat-live-pulse strong {
    color: #22c55e;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

/* Rating CTA — Special Interactive Badge */
.stat-rating-cta {
    position: relative;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.08)) !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-secondary);
    overflow: visible;
    padding-right: var(--space-xl) !important;
}

.stat-rating-cta i.fa-star {
    color: #fbbf24 !important;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5));
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.4)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.7)); }
}

.stat-rating-cta strong {
    color: #fbbf24 !important;
    font-weight: 800;
}

.stat-rating-cta:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.15)) !important;
    border-color: rgba(251, 191, 36, 0.6) !important;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px) scale(1.03);
}

.stat-review-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    border-left: 1px solid rgba(255,255,255,0.15);
    padding-left: 0.5rem;
    margin-left: 0.15rem;
}

.stat-cta-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: rgba(251, 191, 36, 0.6);
    animation: bounceArrow 1.5s ease-in-out infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(-35%); }
}

.stat-rating-cta:hover .stat-cta-arrow {
    color: #fbbf24;
}

/* Glow ring effect on hover */
.stat-rating-cta::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.3));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.stat-rating-cta:hover::after {
    opacity: 1;
}

/* Tooltip hint */
.stat-rating-cta::before {
    content: 'Rate Us ⭐';
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    padding: 4px 10px;
    background: rgba(251, 191, 36, 0.95);
    color: #1a1a2e;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.stat-rating-cta:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Light mode */
body.light-mode .stat-rating-cta {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.06)) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

body.light-mode .stat-rating-cta:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(245, 158, 11, 0.12)) !important;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.light-mode .stat-review-count {
    border-left-color: rgba(0,0,0,0.12);
    color: rgba(0,0,0,0.45);
}

/* =====================================================
   Back to Top Button
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.5);
}

/* =====================================================
   Cookie Consent Banner
   ===================================================== */
.cookie-consent {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 700px;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-consent.visible {
    bottom: 1.5rem;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
}

.cookie-content i {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.cookie-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-content a {
    color: var(--primary-light);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8rem;
}

/* =====================================================
   Mobile Menu Overlay
   ===================================================== */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   Cookie Consent Responsive
   ===================================================== */
@media (max-width: 768px) {
    .cookie-consent {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .cookie-content {
        flex-direction: column;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 42px;
        height: 42px;
    }
}

/* =====================================================
   Mobile Hero Stats — Layout Fixes (≤768px)
   ===================================================== */
@media (max-width: 850px) {
    /* Tablet specific - force 3 items inline but wrap if needed */
    .hero-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: var(--space-lg);
        width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
    }
    /* Hide "Files" and "Happy" on mobile to save space */
    .hero-stats .stat-label-extra {
        display: none;
    }
    .hero-stats .stat-item {
        font-size: 0.72rem;
        padding: 6px 10px;
        border-radius: 10px;
        gap: 5px;
        justify-content: center;
        white-space: nowrap;
    }
    .hero-stats .stat-item i {
        font-size: 0.8rem;
    }
    .hero-stats .stat-item strong {
        font-size: 0.78rem;
    }
    /* Hide live dot on mobile to save space */
    .hero-stats .stat-item .live-dot {
        width: 6px;
        height: 6px;
    }
    /* Rating badge spans full width on very small screens, but compact */
    .hero-stats .stat-rating-cta {
        grid-column: 1 / -1;
        justify-content: center;
        margin: 0 auto;
        padding: 6px 14px !important;
        font-size: 0.72rem;
        max-width: 220px;
        overflow: hidden;
        position: relative;
    }
    .hero-stats .stat-rating-cta .stat-cta-arrow {
        display: inline-flex;
        position: static;
        transform: none;
        margin-left: 6px;
        font-size: 0.6rem;
    }
    .hero-stats .stat-rating-cta i.fa-star {
        font-size: 0.75rem;
        animation: none;
        transform: none;
        filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.4));
    }
    .hero-stats .stat-rating-cta::before {
        display: none; /* hide tooltip on mobile */
    }
    .hero-stats .stat-rating-cta::after {
        display: none; /* hide glow ring on mobile */
    }
    .hero-stats .stat-review-count {
        font-size: 0.68rem;
    }

    /* Reduce hero top padding on mobile */
    .hero {
        padding-top: 70px;
    }
    /* Android devices: push badge down a bit more (address bar takes space) */
    body.is-android .hero {
        padding-top: 85px;
    }
}

@media (max-width: 400px) {
    /* On very small phones, keep rating compact */
    .hero-stats .stat-rating-cta {
        max-width: 200px;
    }
}

/* =====================================================
   Light Mode Additions
   ===================================================== */
body.light-mode .cookie-consent {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .stat-item {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .mobile-overlay {
    background: rgba(0, 0, 0, 0.4);
}

/* =====================================================
   Large Screen Enhancements
   ===================================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1350px;
    }

    .hero-content {
        max-width: 1000px;
    }

    .faq-accordion,
    .article-content {
        max-width: 1000px;
    }


}

@media (min-width: 1600px) {
    .container {
        max-width: 1550px;
    }

    .hero-content {
        max-width: 1200px;
    }

    .faq-accordion,
    .article-content {
        max-width: 1200px;
    }
}

@media (min-width: 2000px) {
    .container {
        max-width: 1900px;
    }

    .hero-content {
        max-width: 1500px;
    }

    .faq-accordion,
    .article-content {
        max-width: 1500px;
    }
}

@media (min-width: 2560px) {
    .container {
        max-width: 2400px;
    }

    .hero-content {
        max-width: 1800px;
    }

    .faq-accordion,
    .article-content {
        max-width: 1800px;
    }
}

@media (min-width: 3200px) {
    .container {
        max-width: 3000px;
    }

    .hero-content {
        max-width: 2400px;
    }

    .faq-accordion,
    .article-content {
        max-width: 2400px;
    }
}

@media (min-width: 3840px) {
    .container {
        max-width: 3600px;
    }

    .hero-content {
        max-width: 3000px;
    }

    .faq-accordion,
    .article-content {
        max-width: 3000px;
    }
}

/* =====================================================
   Header Download Dropdown
   ===================================================== */
.nav-download-dropdown {
    position: relative;
}

.btn-download-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35);
}

.btn-download-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
}

.btn-download-nav i {
    font-size: 0.8rem;
}

.download-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    background: rgba(30, 30, 60, 0.98);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    overflow: hidden;
    z-index: 2000;
    animation: dropdownIn 0.25s ease;
}

.download-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.nav-download-dropdown:hover .download-dropdown-menu,
.nav-download-dropdown:focus-within .download-dropdown-menu {
    display: block;
}

.download-dropdown-header {
    padding: 14px 18px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-dropdown-header i {
    color: var(--accent);
}

.download-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.download-dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.download-dropdown-item i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.download-dropdown-item .fab.fa-google-play {
    color: #34a853;
}

.download-dropdown-item .fab.fa-windows {
    color: #00a4ef;
}

.download-dropdown-item .fab.fa-apple {
    color: #a2aaad;
}

.download-dropdown-item .fab.fa-chrome {
    color: #ffc107;
}

.download-dropdown-item .fab.fa-firefox-browser {
    color: #ff6611;
}

.download-dropdown-item div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.download-dropdown-item strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.download-dropdown-item span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.download-dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 0;
}

/* =====================================================
   App Promo Banner (After Conversion)
   ===================================================== */
.app-promo-banner {
    position: relative;
    margin-top: var(--space-xl);
    padding: 32px 28px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(34, 211, 238, 0.06) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-xl);
    overflow: hidden;
    animation: promoSlideUp 0.8s ease 0.5s both;
}

@keyframes promoSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: promoGlowPulse 4s ease-in-out infinite;
}

@keyframes promoGlowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.promo-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 24px;
}

.promo-icon-pulse {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 12px;
    font-size: 1.2rem;
    color: #fff;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    }
}

.promo-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.promo-text p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.promo-text strong {
    color: var(--primary-light);
}

.promo-text em {
    color: #34d399;
    font-style: normal;
    font-weight: 600;
}

.promo-platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 15px;
}

.promo-platform-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 15px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
}

.promo-platform-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.promo-platform-card .platform-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.promo-platform-card.android .platform-icon {
    background: linear-gradient(135deg, #34a853, #4caf50);
    color: #fff;
}

.promo-platform-card.windows .platform-icon {
    background: linear-gradient(135deg, #00a4ef, #0078d4);
    color: #fff;
}

.promo-platform-card.macos .platform-icon {
    background: linear-gradient(135deg, #555, #333);
    color: #fff;
}

.platform-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.platform-info strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.platform-info span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.platform-link-icon {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.promo-platform-card:hover .platform-link-icon {
    color: var(--primary-light);
}

.promo-guarantee {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.promo-guarantee i {
    color: #34d399;
}

/* =====================================================
   Footer Download Strip
   ===================================================== */
.footer-download-strip {
    padding: 32px 0 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.footer-download-header {
    margin-bottom: 24px;
}

.footer-download-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-download-header h3 i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-download-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-download-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-dl-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    min-width: 170px;
}

.footer-dl-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.2);
}

.footer-dl-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.footer-dl-icon.android-icon {
    background: linear-gradient(135deg, #34a853, #4caf50);
    color: #fff;
}

.footer-dl-icon.windows-icon {
    background: linear-gradient(135deg, #00a4ef, #0078d4);
    color: #fff;
}

.footer-dl-icon.mac-icon {
    background: linear-gradient(135deg, #555, #333);
    color: #fff;
}

.footer-dl-icon.chrome-icon {
    background: linear-gradient(135deg, #ffc107, #fb8c00);
    color: #fff;
}

.footer-dl-icon.firefox-icon {
    background: linear-gradient(135deg, #ff6611, #e85d04);
    color: #fff;
}

.footer-dl-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.footer-dl-info strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.footer-dl-info span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ============ Responsive: Promo Banner ============ */
@media (max-width: 768px) {
    .promo-platforms {
        grid-template-columns: 1fr;
    }

    .promo-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-download-grid {
        flex-direction: column;
        align-items: center;
    }

    .footer-dl-card {
        width: 100%;
        max-width: 300px;
    }

    .btn-download-nav span {
        display: none;
    }

    .btn-download-nav {
        padding: 8px 12px;
    }

    .download-dropdown-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 260px;
    }
}

@media (max-width: 480px) {
    .app-promo-banner {
        padding: 18px 14px;
    }

    .promo-platform-card {
        padding: 12px;
    }
}

/* =====================================================
   Light Mode — Download Dropdown, Promo Banner, Footer Strip
   ===================================================== */
body.light-mode .download-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

body.light-mode .download-dropdown-header {
    color: var(--primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .download-dropdown-item {
    color: #334155;
}

body.light-mode .download-dropdown-item:hover {
    background: rgba(99, 102, 241, 0.06);
    color: #1a1a2e;
}

body.light-mode .download-dropdown-item strong {
    color: #1a1a2e;
}

body.light-mode .download-dropdown-item span {
    color: #64748b;
}

body.light-mode .download-dropdown-divider {
    background: rgba(0, 0, 0, 0.08);
}

/* Light Mode — Promo Banner */
body.light-mode .app-promo-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(34, 211, 238, 0.04) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

body.light-mode .promo-platform-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .promo-platform-card:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

/* Light Mode — Footer Download Strip (footer is dark in light mode) */
body.light-mode .footer-download-strip {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

body.light-mode .footer-download-header h3 {
    color: #ffffff;
}

body.light-mode .footer-download-header h3 i {
    -webkit-text-fill-color: #fff;
    color: #fff;
    background: none;
}

body.light-mode .footer-download-header p {
    color: rgba(255, 255, 255, 0.7);
}

body.light-mode .footer-dl-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.light-mode .footer-dl-card:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

body.light-mode .footer-dl-info strong {
    color: #ffffff;
}

body.light-mode .footer-dl-info span {
    color: rgba(255, 255, 255, 0.6);
}

/* =====================================================
   User Reviews Section
   ===================================================== */
.reviews-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.03) 50%, transparent 100%);
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: var(--space-2xl);
}

.reviews-header-left .section-title {
    text-align: left;
    margin-bottom: 0.25rem;
}

.reviews-header-left .section-subtitle {
    text-align: left;
    margin-bottom: 0;
    font-size: 1rem;
}

#writeReviewBtn {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* Review Stats Summary */
.review-stats-summary {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

#reviewStatsContainer {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.review-stats-left {
    text-align: center;
    min-width: 140px;
}

.review-avg-score {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.review-avg-stars {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.review-avg-stars i {
    margin: 0 1px;
}

.review-total-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-stats-right {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.review-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-bar-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 36px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.review-bar-label i {
    color: #fbbf24;
    font-size: 0.65rem;
}

.review-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.review-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

.review-bar-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 24px;
    text-align: right;
}

/* Review Form */
.review-form-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-bottom: 0;
}

.review-form-wrapper.visible {
    max-height: 800px;
    opacity: 1;
    margin-bottom: var(--space-2xl);
}

.review-form {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.review-form h3 {
    margin-bottom: var(--space-lg);
    font-size: 1.15rem;
}

.review-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.review-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.review-form-group.full-width {
    grid-column: 1 / -1;
}

.review-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.review-form-group input,
.review-form-group textarea,
.review-form-group select {
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-form-group input:focus,
.review-form-group textarea:focus,
.review-form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.review-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.review-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23818cf8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.star-input {
    font-size: 1.6rem;
    color: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    user-select: none;
}

.star-input:hover {
    transform: scale(1.15);
}

.star-input.active {
    color: #fbbf24;
}

.star-input.active i {
    color: #fbbf24;
}

.shake-error {
    animation: shakeX 0.4s ease;
}

@keyframes shakeX {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.review-form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: var(--space-md);
}

#submitReviewBtn {
    border-radius: var(--radius-full);
}

.review-form-message {
    display: none;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
}

.review-form-message.success {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.review-form-message.error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Reviews List */
.reviews-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: var(--transition-base);
    animation: fadeInUp 0.4s ease both;
}

.review-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.avatar-blue { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.avatar-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.avatar-green { background: linear-gradient(135deg, #34d399, #10b981); }
.avatar-orange { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.avatar-pink { background: linear-gradient(135deg, #f472b6, #ec4899); }
.avatar-cyan { background: linear-gradient(135deg, #22d3ee, #06b6d4); }

.review-meta {
    flex: 1;
    min-width: 0;
}

.review-author {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.review-rating-badge {
    color: #fbbf24;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.review-rating-badge i {
    margin: 0 1px;
}

.review-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.review-comment {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.review-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.review-tool-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.review-tool-tag i {
    color: var(--primary-light);
    font-size: 0.7rem;
}

.review-helpful-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.review-helpful-btn:hover:not(.voted) {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--primary-light);
}

.review-helpful-btn.voted {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--primary-light);
    cursor: default;
}

/* Reviews Empty State */
.reviews-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    color: var(--text-muted);
}

.reviews-empty i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 1rem;
    display: block;
}

.reviews-empty p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Load More */
.reviews-load-more {
    text-align: center;
}

.review-load-more-btn {
    border-radius: var(--radius-full) !important;
}

/* Light Mode Reviews */
body.light-mode .review-stats-summary,
body.light-mode .review-form,
body.light-mode .review-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0,0,0,0.08);
}

body.light-mode .review-avg-score {
    -webkit-text-fill-color: var(--primary-dark);
    color: var(--primary-dark);
}

body.light-mode .review-bar-track {
    background: rgba(0,0,0,0.06);
}

body.light-mode .review-form-group input,
body.light-mode .review-form-group textarea,
body.light-mode .review-form-group select {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.12);
    color: #1e1e3c;
}

body.light-mode .star-input {
    color: rgba(0,0,0,0.15);
}

body.light-mode .review-helpful-btn {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.1);
    color: rgba(0,0,0,0.5);
}

body.light-mode .review-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}

/* Responsive Reviews */
@media (max-width: 768px) {
    #reviewStatsContainer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .review-stats-left {
        padding-bottom: var(--space-lg);
        border-bottom: 1px solid var(--border-light);
    }

    .reviews-list {
        grid-template-columns: 1fr;
    }

    .review-form-grid {
        grid-template-columns: 1fr;
    }

    .reviews-header {
        flex-direction: column;
        text-align: center;
    }

    .reviews-header-left .section-title,
    .reviews-header-left .section-subtitle {
        text-align: center;
    }
}