/* ============================================
   VidTonic — Ultra-Premium Design System
   Optimized for Performance & Mobile-First
   ============================================ */

:root {
    /* Brand Colors */
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #6d28d9;
    --secondary: #ec4899;
    --accent: #00f2ff;
    
    /* Neutral Palette */
    --bg-dark: #06060e;
    --bg-card: rgba(17, 17, 35, 0.7);
    --bg-input: rgba(0, 0, 0, 0.4);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    
    /* Glassmorphism */
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    
    /* Layout */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --max-width: 1100px;
    --font-main: 'Plus Jakarta Sans', 'Inter', sans-serif;
    
    /* Animations */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 2. Dynamic Background */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #0b0b14; /* Pure professional dark background */
}

.blob {
    display: none; /* Removing blobs for a cleaner solid professional look */
}

/* 3. Typography & Utility */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hidden { display: none !important; }
.mt-4 { margin-top: 2rem; }

/* 4. Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 6, 14, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    border: 1.5px solid var(--primary-light);
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
}

.logo h1 {
    font-size: 1.5rem;
}

.logo h1 span {
    color: var(--primary-light);
}

.nav-links { display: none; } /* Replaced by hamburger menu */

/* Hamburger Button */
.nav-hamburger {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: var(--transition);
    z-index: 1001;
}

.nav-hamburger:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary);
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1.5rem;
    background: #14141e;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 220px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.nav-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.nav-drop-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.nav-drop-item:hover {
    background: rgba(139, 92, 246, 0.1);
    color: white;
}

/* 5. Hero Section */
.hero-section {
    padding-top: 8rem;
    padding-bottom: 4rem;
    text-align: center;
}

.app-container {
    max-width: 900px;
    margin: 0 auto;
}

.header {
    margin-bottom: 2.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 0;
    text-transform: uppercase;
    height: 38px;
    box-sizing: border-box;
}

.header h2 {
    font-size: clamp(1.65rem, 6vw, 3.5rem);
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.subtitle {
    color: var(--text-dim);
    font-size: clamp(0.9rem, 3.5vw, 1.2rem);
    max-width: 620px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.hero-tagline {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-light);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-feedback-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

.hero-feedback-link:hover {
    color: var(--primary-light);
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

/* 6. Main Content Area */
.main-content {
    background: #14141e; /* Solid premium dark color */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary); /* Solid color instead of gradient */
}

/* Input Form */
.input-wrapper {
    margin-bottom: 0;
}

.input-inner {
    display: flex;
    gap: 0.75rem;
    background: var(--bg-input);
    padding: 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.input-inner:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

input[type="url"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
    font-family: inherit;
    width: 100%;
}

input[type="url"]::placeholder {
    color: var(--text-muted);
}

button#submitBtn {
    background: var(--primary); /* Solid primary color */
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

button#submitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
    filter: brightness(1.1);
}

button#submitBtn:active {
    transform: translateY(0);
}

/* 7. Result Area */
#resultArea {
    margin-top: 2.5rem;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* New Media Container */
.media-container {
    margin-bottom: 2.5rem;
}

/* Thumbnail Overlay */
.thumb-overlay {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    background: #000;
}

.thumb-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.thumb-overlay:hover img {
    transform: scale(1.03);
    filter: brightness(0.75);
}

/* Play Button Overlay */
.play-overlay-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 2;
}

.play-overlay-btn svg {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6));
}

.play-overlay-btn:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

/* Video Player */
.player-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    width: 100%;
}

/* Video Title Below */
.video-title-below {
    margin-top: 1.25rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
}

/* ── Video Loading Progress Box ── */
.media-container {
    margin-bottom: 2.5rem;
    position: relative;
}

.video-loader {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    background: rgba(0, 0, 0, 0.75);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
}

.loader-box {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

.loader-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, var(--primary-dark), var(--primary), var(--secondary));
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 14px 14px;
}

.loader-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    font-weight: 900;
    color: white;
    z-index: 2;
    font-family: var(--font-main);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
    letter-spacing: -0.02em;
}

.loader-label {
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* Tabs */
.tabs-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--glass-border);
}

.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
    background: transparent;
    color: var(--text-dim);
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* Tables */
.format-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

.format-table th {
    text-align: left;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.format-table td {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.format-table tr td:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 700;
}

.format-table tr td:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    text-align: right;
}

.dl-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
}

.dl-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.size-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--primary-light);
    font-family: monospace;
}

/* 8. History Section */
.history-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.history-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
}

.history-heading-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    flex-shrink: 0;
}

.history-heading h4 {
    font-size: 1.3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.history-notice {
    font-size: 0.78rem;
    background: rgba(245, 158, 11, 0.08);
    color: #fbbf24;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    white-space: nowrap;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.history-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.history-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.history-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(139, 92, 246, 0.1);
}

.history-card:hover::before {
    opacity: 1;
}

/* Thumbnail wrapper for overlay */
.history-thumb-wrap {
    position: relative;
    width: 100%;
}

.history-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: filter 0.3s;
}

.history-card:hover img {
    filter: brightness(0.85);
}

/* Time badge — top right corner of thumbnail */
.history-time-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 0.02em;
    white-space: nowrap;
    z-index: 2;
}

/* ── Thumbnail Tab ── */
.thumb-tab-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.thumb-tab-preview {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    line-height: 0;
}

.thumb-tab-preview img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
}

.thumb-tab-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}

.thumb-quality-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.thumb-quality-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 1rem 0.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: white;
    transition: var(--transition);
    cursor: pointer;
}

.thumb-quality-btn:hover {
    background: rgba(139,92,246,0.1);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(139,92,246,0.2);
}

.tq-label {
    font-size: 1.1rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.02em;
}

.tq-desc {
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.tq-dl {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-top: 0.2rem;
}

.thumb-quality-max {
    border-color: rgba(139,92,246,0.4);
    background: rgba(139,92,246,0.06);
}

.thumb-quality-max .tq-label {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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



.history-card-info p {
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.history-card-info span {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── Stats Section ── */
.stats-section {
    padding: 5rem 0;
    background: #0f0f18;
}

.stats-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.stats-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.03em;
}

/* ── Tech Stack / Powered By Section ── */
.techstack-section {
    padding: 6rem 0;
    background: #09090f;
    border-top: 1px solid var(--glass-border);
}

.techstack-header {
    text-align: center;
    margin-bottom: 4rem;
}

.techstack-pill {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.techstack-title {
    font-size: clamp(1.8rem, 5vw, 2.75rem);
    color: #ffffff;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.techstack-subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.techstack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.techstack-card {
    background: #14141e;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.techstack-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: #1a1a26;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.ts-icon {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.techstack-card:hover .ts-icon {
    background: rgba(139, 92, 246, 0.1);
    transform: scale(1.1) rotate(5deg);
}

.ts-info h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.ts-info p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .techstack-grid {
        grid-template-columns: 1fr;
    }
    .techstack-card {
        padding: 1.5rem;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: #16161f; /* Solid dark color */
    border: 1px solid rgba(139,92,246,0.15);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: default;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.85rem;
    display: block;
    filter: drop-shadow(0 0 8px rgba(139,92,246,0.5));
}

.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.6rem;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
    .stat-card { padding: 1.5rem 1rem; border-radius: 14px; }
    .stat-icon { font-size: 1.5rem; }
}

/* 9. Sections Styling */
.section {
    padding: 6rem 0;
}


.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.75rem);
    margin-bottom: 4rem;
    color: #ffffff;
}

/* Features */
/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.step-card {
    padding: 3rem 2rem;
    background: #16161f; /* Solid dark color */
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: #1c1c28;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
    transition: var(--transition);
}

.step-card:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

.step-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.step-card p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.7;
}

/* ── Key Features Redesign ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #14141e; /* Solid dark color */
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary); /* Unique accent border */
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    transition: var(--transition);
    position: relative;
    text-align: left;
}

.feature-card:hover {
    transform: translateX(8px); /* Unique slide effect */
    background: #1a1a26;
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
}

.feature-card h4 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.98rem;
    line-height: 1.8;
}

/* ── FAQ Redesign ── */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #14141e; /* Solid dark color */
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    transition: var(--transition);
    cursor: pointer;
}

.faq-item:hover {
    border-color: var(--primary);
    background: #1a1a26;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    padding-right: 2rem;
}

.faq-badge {
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 900;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.faq-item h4 {
    color: white;
    font-size: 1.15rem;
    margin: 0;
    flex: 1;
}

.faq-arrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary-light);
}

.faq-answer {
    padding-left: 3.1rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-top: 1rem;
    opacity: 1;
}

.faq-answer p {
    color: var(--text-dim);
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 600px) {
    .faq-answer { padding-left: 0; }
    .faq-item { padding: 1.25rem; }
    .faq-item h4 { font-size: 1rem; }
}

/* ── Testimonials ── */
.testimonials-section {
    padding: 6rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #14141e;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.testi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.testi-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testi-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testi-name h5 {
    color: white;
    font-size: 1rem;
    margin: 0;
}

.testi-name span {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.testi-stars {
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: #f59e0b;
    opacity: 0.9;
}

.testi-text {
    color: var(--text-dim);
    font-size: 0.98rem;
    line-height: 1.8;
    font-style: italic;
}

/* Developer Card */
.dev-card {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    background: #14141e;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.dev-photo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.dev-photo {
    width: 160px;
    height: 160px;
    border-radius: 24px;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    transition: var(--transition);
    display: block;
}

.dev-card:hover .dev-photo {
    transform: scale(1.04);
}

.dev-status {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a28;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #4ade80;
    white-space: nowrap;
}

.dev-info { flex: 1; min-width: 0; }

.dev-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.dev-role {
    display: inline-block;
    color: var(--primary-light);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
    padding: 0.35rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 50px;
}

.dev-desc {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.dev-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.dev-skill {
    background: #1e1e2e;
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 8px;
    letter-spacing: 0.03em;
}

.dev-contact {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.25rem;
    align-items: center;
}

.contact-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #1e1e2e;
    color: var(--text-main);
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    text-decoration: none;
}

.contact-icon-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

@media (max-width: 700px) {
    .dev-card { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        padding: 2.5rem 1.5rem; 
        gap: 2rem; 
        margin: 0 auto; 
        width: auto;
        max-width: 100%;
    }
    .dev-skills { justify-content: center; }
    .dev-contact { justify-content: center; flex-direction: row !important; flex-wrap: nowrap; gap: 1rem; }
    .dev-status { font-size: 0.68rem; }
}

/* 10. Footer — Premium 3-col */
.footer {
    background: #0a0a12;
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--glass-border);
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links-group h5 {
    color: white;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.footer-links-group a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links-group a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.4rem; }
.footer-bottom .disclaimer { font-size: 0.75rem; color: var(--text-muted); opacity: 0.6; }

.logo-img-sm { 
    width: 24px; 
    height: 24px; 
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--primary-light);
}

@media (max-width: 768px) {
    /* Footer: brand full width top, links 2-col bottom row */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .footer-brand {
        grid-column: 1 / -1; /* span full width */
    }
    .footer-tagline { max-width: 100%; }
}

/* 11. Mobile Responsiveness (ULTRA-PREMIUM) */
@media (max-width: 1024px) {
    .container { padding: 0 1.25rem; }
    .main-content { padding: 2rem; }
}

@media (max-width: 768px) {
    /* Base Mobile Tweaks */
    html { font-size: 15px; }
    
    .section { padding: 3.5rem 0; }
    
    /* Navbar Mobile — logo left, hamburger right */
    .nav-container { 
        padding: 0.85rem 1.25rem;
        justify-content: space-between;
    }
    .logo { gap: 0.5rem; }
    .logo h1 { font-size: 1.3rem; letter-spacing: -0.01em; }
    .logo-img { width: 26px; height: 26px; }
    .nav-dropdown { right: 1.25rem; min-width: 200px; }
    
    /* Hero Mobile */
    .hero-section { 
        padding-top: 6rem; 
        padding-bottom: 2rem;
    }
    .header h2 { 
        font-size: 2.4rem; 
        line-height: 1.2;
        margin-bottom: 0.75rem;
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    }
    .subtitle { 
        font-size: 0.95rem; 
        margin-bottom: 2rem;
        padding: 0 1rem;
        opacity: 0.9;
    }
    
    /* Input Wrapper Mobile — Professional Search Bar */
    .main-content {
        padding: 1.5rem 1rem;
        border-radius: var(--radius-lg);
        margin: 0;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.1);
    }
    
    .input-inner {
        flex-direction: row;
        align-items: center;
        background: rgba(0, 0, 0, 0.45);
        padding: 0.4rem 0.4rem 0.4rem 1rem;
        gap: 0.5rem;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    input[type="url"] {
        padding: 0.85rem 0.5rem;
        font-size: 0.95rem;
        text-align: left;
        background: transparent;
        flex: 1;
        min-width: 0;
    }
    
    button#submitBtn {
        width: auto;
        min-width: unset;
        min-height: unset;
        padding: 0.75rem 1.2rem;
        font-size: 0.88rem;
        font-weight: 700;
        border-radius: 10px;
        flex-shrink: 0;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    }

    /* Results Mobile */
    #resultArea { margin-top: 2.5rem; }
    
    .video-preview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.25rem;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .preview-info h3 {
        font-size: 1.15rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    /* ── Format Cards: Compact Horizontal Row Layout ── */
    .format-table-container {
        padding: 0;
        overflow: hidden;
    }

    .format-table {
        width: 100%;
        margin: 0;
        padding: 0;
        display: block;
        border-spacing: 0;
    }

    .format-table thead { display: none; }

    .format-table tbody {
        display: block;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .format-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr auto;
        align-items: center;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: var(--radius-sm);
        padding: 0.75rem 0.85rem;
        margin-bottom: 0.6rem;
        width: 100%;
        box-sizing: border-box;
    }

    .format-table td {
        display: block;
        padding: 0;
        text-align: left;
        background: transparent !important;
        border: none !important;
    }

    /* Quality: 1080p, 720p etc. */
    .format-table td:nth-child(1) {
        font-size: 0.85rem;
        font-weight: 700;
        color: white;
        margin-bottom: 0;
    }

    /* Type: MP4, WebM etc. */
    .format-table td:nth-child(2) {
        font-size: 0.75rem;
        color: var(--text-dim);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* Size Badge */
    .format-table td:nth-child(3) {
        display: flex;
        align-items: center;
    }

    .format-table td:nth-child(3) .size-badge {
        font-size: 0.72rem;
        padding: 0.2rem 0.5rem;
        background: rgba(139, 92, 246, 0.12);
        border: 1px solid rgba(139, 92, 246, 0.25);
        color: var(--primary-light);
        font-weight: 600;
        border-radius: 4px;
        display: inline-block;
    }

    /* Download Button */
    .format-table td:nth-child(4) {
        width: auto;
        margin-top: 0;
        text-align: right;
    }

    .dl-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        border-radius: 8px;
        background: linear-gradient(135deg, var(--primary-dark), var(--primary));
        white-space: nowrap;
        width: auto;
        display: inline-block;
    }

    /* ── Tabs: Compact Horizontal Scrollable Row ── */
    .tabs-nav {
        display: flex;
        flex-direction: row;
        gap: 0.4rem;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 0.6rem;
        margin-bottom: 1.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .tabs-nav::-webkit-scrollbar { display: none; }

    .tab-btn {
        flex-shrink: 0;
        padding: 0.45rem 0.9rem;
        font-size: 0.78rem;
        font-weight: 700;
        border-radius: 8px;
        white-space: nowrap;
    }

    /* ── History Mobile — column + 2 per row ── */
    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .history-heading h4 {
        font-size: 1rem;
    }

    .history-heading-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        border-radius: 7px;
    }

    .history-notice {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
    }

    .history-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
        margin-top: 1.25rem;
    }

    .history-card-info {
        padding: 0.65rem;
    }

    .history-card-info p {
        font-size: 0.78rem;
        line-height: 1.3;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 0.3rem;
    }

    .history-card-info span {
        font-size: 0.68rem;
    }

    /* Sections */
    .section-title { 
        font-size: 2rem; 
    }

    .steps-grid { grid-template-columns: 1fr; }
    .step-card { padding: 1.5rem; }
    
    .features-grid { grid-template-columns: 1fr; }
    
    /* Dev Card Mobile Refinement */
    .dev-card {
        padding: 2.5rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        border-radius: 24px;
        margin: 0 0.5rem;
    }
    
    .dev-photo {
        width: 120px;
        height: 120px;
        border-radius: 24px;
    }
    
    .dev-info h3 {
        font-size: 1.75rem;
    }
    
    .dev-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .dev-contact {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .contact-link {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
    
    /* FAQ Mobile */
    .faq-item {
        padding: 1.5rem;
    }
    
    .faq-item h4 {
        font-size: 1.05rem;
    }
    
    /* Feature Cards Mobile */
    .feature-card {
        padding: 2rem;
        text-align: center;
    }
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animation for loading elements */
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   APK DOWNLOAD BUTTON
   ============================================================ */

/* ── Hero Top Row: badge LEFT + Get App button RIGHT ─────────────────── */
.hero-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
    margin-bottom: 2rem;
    white-space: nowrap;
}

/* Compact "Get App" pill button */
.get-app-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 0 0 rgba(5,150,105,0.5), 0 4px 14px rgba(5,150,105,0.35);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    animation: getAppPulse 2.6s ease-in-out infinite;
    white-space: nowrap;
    height: 38px;
    box-sizing: border-box;
}

@keyframes getAppPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(5,150,105,0.5), 0 4px 14px rgba(5,150,105,0.35); }
    50%      { box-shadow: 0 0 0 7px rgba(5,150,105,0), 0 6px 20px rgba(5,150,105,0.5); }
}

.get-app-btn:hover {
    transform: translateY(-2px) scale(1.04);
    filter: brightness(1.1);
    box-shadow: 0 0 0 0 rgba(5,150,105,0), 0 8px 24px rgba(5,150,105,0.5);
    animation-play-state: paused;
}

.get-app-btn:active {
    transform: scale(0.97);
}

/* Ripple glow inside button */
.get-app-btn .apk-btn-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
}

.get-app-btn .apk-btn-glow.burst {
    animation: apkBurst 0.6s ease-out forwards;
}

/* hero-top-row always stays horizontal on all screens */

/* Keep old apk-download-wrapper hidden (no longer used) */
.apk-download-wrapper { display: none; }

/* ============================================================
   FEEDBACK SECTION — Premium Two-Column
   ============================================================ */

.feedback-section { padding: 5rem 0; }

.feedback-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    background: #14141e;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(139,92,246,0.06);
}

/* ── LEFT PANEL ── */
.fb-left {
    padding: 3rem 2.5rem;
    background: linear-gradient(145deg, #1a1a2e 0%, #16162a 100%);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.fb-left::before {
    content: '';
    position: absolute;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
    bottom: -80px; left: -60px;
    pointer-events: none;
}

.fb-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-light);
    opacity: 0.9;
}

.fb-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0;
}

.fb-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* Type chips */
.fb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.fb-chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.fb-chip:hover {
    border-color: rgba(139,92,246,0.4);
    color: var(--primary-light);
    background: rgba(139,92,246,0.08);
}

.fb-chip.active {
    background: rgba(139,92,246,0.15);
    border-color: rgba(139,92,246,0.5);
    color: var(--primary-light);
    box-shadow: 0 0 12px rgba(139,92,246,0.2);
}

/* ── RIGHT PANEL ── */
.fb-right {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
}

.fb-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fb-textarea {
    width: 100%;
    min-height: 160px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.fb-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139,92,246,0.12);
    background: rgba(0,0,0,0.45);
}

.fb-textarea::placeholder { color: var(--text-muted); }

.fb-send-btn {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 4px 20px rgba(139,92,246,0.35);
}

.fb-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(139,92,246,0.5);
    filter: brightness(1.1);
}

.fb-send-btn:active { transform: scale(0.97); }
.fb-send-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Response message */
.feedback-response {
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    animation: fadeInSlide 0.3s ease forwards;
}

.feedback-response.success {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.3);
    color: #10b981;
}

.feedback-response.error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
}

/* Mobile */
@media (max-width: 700px) {
    .feedback-container {
        grid-template-columns: 1fr;
        margin: 0;
    }
    .fb-left {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 2rem 1.75rem;
    }
    .fb-right { padding: 2rem 1.75rem; }
    .fb-send-btn { align-self: stretch; justify-content: center; }
}




.apk-download-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem 1rem 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 0 rgba(5, 150, 105, 0.5),
        0 8px 32px rgba(5, 150, 105, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.15);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.35s cubic-bezier(0.4,0,0.2,1),
                filter 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    animation: apkPulse 2.8s ease-in-out infinite;
    max-width: 380px;
    width: 100%;
}

@keyframes apkPulse {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(5, 150, 105, 0.45),
            0 8px 32px rgba(5, 150, 105, 0.35),
            inset 0 1px 0 rgba(255,255,255,0.15);
    }
    50% {
        box-shadow:
            0 0 0 10px rgba(5, 150, 105, 0),
            0 14px 42px rgba(5, 150, 105, 0.55),
            inset 0 1px 0 rgba(255,255,255,0.15);
    }
}

.apk-download-btn:hover {
    transform: translateY(-4px) scale(1.02);
    filter: brightness(1.12);
    box-shadow:
        0 0 0 0 rgba(5, 150, 105, 0),
        0 20px 50px rgba(5, 150, 105, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.15);
    animation-play-state: paused;
}

.apk-download-btn:active {
    transform: translateY(-1px) scale(0.99);
}

/* Glow overlay (ripple on click) */
.apk-btn-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(255,255,255,0.25) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.apk-btn-glow.burst {
    opacity: 1;
    animation: apkBurst 0.65s ease-out forwards;
}

@keyframes apkBurst {
    0%   { opacity: 1; transform: scale(0.6); }
    100% { opacity: 0; transform: scale(1.4); }
}

/* Android icon */
.apk-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Text content */
.apk-btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    flex: 1;
}

.apk-btn-label {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.apk-btn-sub {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.01em;
}

/* FREE badge */
.apk-btn-badge {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    align-self: center;
    flex-shrink: 0;
}

/* Hint text below button */
.apk-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .apk-download-btn {
        padding: 0.9rem 1.2rem 0.9rem 1rem;
        gap: 0.75rem;
        border-radius: 14px;
    }
    .apk-btn-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    .apk-btn-label { font-size: 1rem; }
    .apk-btn-sub   { font-size: 0.72rem; }
    .apk-btn-badge { display: none; }
}


/* ============================================================
   DB STATS SECTION  (Real-Time Analytics)
   ============================================================ */

.db-stats-section {
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.db-stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(109, 40, 217, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(5, 150, 105, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.db-stats-header {
    text-align: center;
    margin-bottom: 3rem;
}

.db-stats-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.3);
    color: #34d399;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.db-stats-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.db-stats-sub {
    color: var(--text-dim);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Grid of 3 cards */
.db-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .db-stats-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

/* Individual DB stat card */
.db-stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #14141e;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    overflow: hidden;
}

.db-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--icon-color, var(--primary)), transparent);
    border-radius: 20px 20px 0 0;
    opacity: 0.7;
}

.db-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 20px rgba(139,92,246,0.08);
    border-color: rgba(255,255,255,0.13);
}

/* Icon wrapper */
.db-stat-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--icon-color, #6d28d9) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--icon-color, #6d28d9) 30%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

/* Info block */
.db-stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.db-stat-value {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
}

.db-stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.db-stat-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Status badge (top-right corner) */
.db-stat-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.db-stat-badge.live {
    background: rgba(5, 150, 105, 0.15);
    border: 1px solid rgba(5, 150, 105, 0.35);
    color: #34d399;
    animation: livePulse 2s ease-in-out infinite;
}

.db-stat-badge.apk {
    background: rgba(109, 40, 217, 0.15);
    border: 1px solid rgba(109, 40, 217, 0.35);
    color: #a78bfa;
}

.db-stat-badge.video {
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.3);
    color: #fbbf24;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* Input Label Styling */
.input-label-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    margin-left: 0.5rem;
}

.input-label-icon {
    font-size: 1rem;
}

.input-label-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .input-label-wrapper {
        justify-content: flex-start;
        margin-left: 0.5rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999; /* Higher z-index to stay on top */
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.6);
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
}

