/* ==========================================================================
   APK STORE - PRODUCTION DESIGN SYSTEM & MASTER STYLESHEET
   Aesthetics: Modern, Clean, High-Converting Android App Repository
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Brand Colors */
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-dark: #047857;
    --primary-light: #ecfdf5;
    --primary-glow: rgba(16, 185, 129, 0.2);
    
    /* Neutrals */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-muted: #e2e8f0;
    
    /* Typography Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    /* Accents & Status */
    --accent-blue: #3b82f6;
    --accent-blue-light: #eff6ff;
    --accent-amber: #f59e0b;
    --accent-amber-light: #fffbeb;
    --accent-purple: #8b5cf6;
    --status-success: #10b981;
    --status-warning: #f59e0b;
    --status-danger: #ef4444;
    
    /* Borders & Shadows */
    --border-subtle: #e2e8f0;
    --border-focus: #10b981;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: break-word;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h2 { font-size: clamp(1.3rem, 3.2vw, 1.75rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
h4 { font-size: clamp(1rem, 2vw, 1.15rem); }

p {
    color: var(--text-secondary);
    overflow-wrap: break-word;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Layout Grids */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1rem;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    flex-shrink: 0;
    min-width: 0;
}

.logo-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px var(--primary-glow);
    flex-shrink: 0;
    overflow: hidden;
}

.logo-badge:has(img),
.logo-badge:has(.site-logo-rendered) {
    background: transparent !important;
    box-shadow: none !important;
}

.logo-badge img,
.logo-badge .site-logo-rendered {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.35rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    min-height: 40px;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-dark);
    background-color: var(--primary-light);
}

/* Header Search */
.header-search-wrap {
    position: relative;
    flex: 1;
    max-width: 320px;
}

.header-search-form {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.header-search-input {
    width: 100%;
    height: 42px;
    padding: 0 2.6rem 0 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background-color: var(--bg-subtle);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.header-search-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.header-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.header-search-btn:hover {
    color: var(--primary);
}

/* Header Action Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.admin-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    transition: all var(--transition-fast);
    min-height: 40px;
    white-space: nowrap;
}

.admin-link-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.35rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.4rem;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.mobile-toggle:hover {
    background-color: var(--bg-subtle);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-surface);
    z-index: 999;
    padding: 1.25rem 1.5rem 2rem;
    border-top: 1px solid var(--border-subtle);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-xl);
}

.mobile-nav-drawer.open {
    display: block;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-item .nav-link {
    font-size: 1.05rem;
    padding: 0.85rem 1rem;
    width: 100%;
    min-height: 48px;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
    background-color: var(--bg-subtle);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.btn-secondary:hover {
    background-color: var(--bg-muted);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-block {
    width: 100%;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-primary {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.badge-blue {
    background-color: var(--accent-blue-light);
    color: var(--accent-blue);
}

.badge-amber {
    background-color: var(--accent-amber-light);
    color: var(--accent-amber);
}

.badge-gray {
    background-color: var(--bg-muted);
    color: var(--text-secondary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-body) 100%);
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    max-width: 780px;
    margin: 0 auto 1rem;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary) 0%, #047857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Big Search Bar */
.hero-search-box {
    max-width: 680px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.hero-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: var(--radius-full);
    padding: 0.45rem 0.55rem 0.45rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border: 2px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.hero-search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 12px 35px var(--primary-glow);
}

.hero-search-icon {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    font-family: inherit;
    color: var(--text-primary);
    background: transparent;
}

.hero-search-btn {
    padding: 0.75rem 1.8rem;
    font-size: 1rem;
    border-radius: var(--radius-full);
}

/* Hero Tags / Quick Categories */
.hero-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-tags-label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 0.25rem;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.tag-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* ==========================================================================
   SECTION LAYOUTS & HEADERS
   ========================================================================== */

.section {
    padding: 3rem 0;
}

.section-alt {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
}

.section-title-wrap h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.section-title-wrap h2 i {
    color: var(--primary);
    font-size: 1.4rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    white-space: nowrap;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-fast);
}

.view-all-link:hover {
    transform: translateX(4px);
}

/* ==========================================================================
   APP CARDS & GRIDS
   ========================================================================== */

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.app-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.app-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: var(--shadow-card-hover);
}

.app-card-top {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-card-logo {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    object-fit: cover;
    background-color: var(--bg-subtle);
    border: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.app-card-meta {
    flex: 1;
    min-width: 0;
}

.app-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.app-card-title a {
    color: inherit;
}

.app-card-title a:hover {
    color: var(--primary);
}

.app-card-dev {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-card-tags {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.app-tag-cat {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.app-tag-version {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.app-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-subtle);
    gap: 0.5rem;
}

.app-card-specs {
    display: flex;
    flex-direction: column;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.app-card-specs span strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.app-download-btn {
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   CATEGORY CARDS & GRID
   ========================================================================== */

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

.category-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.category-card-info h4 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.category-card-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   APP DETAILS PAGE (app.html)
   ========================================================================== */

.app-detail-header {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.app-detail-main {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.app-detail-logo {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    object-fit: cover;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.app-detail-meta {
    flex: 1;
}

.app-detail-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.app-detail-developer {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.app-detail-developer i {
    color: var(--accent-blue);
}

.app-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.app-detail-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-download-hero {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: var(--radius-lg);
}

/* App Info Table / Specs Grid */
.specs-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
}

.spec-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.15rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.spec-content {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Download Confirmation Section */
/* Download Confirmation & 5-Second Timer Section */
.download-card {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 2px solid #a7f3d0;
    border-radius: var(--radius-xl);
    padding: 2.25rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.1);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.download-card-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #065f46;
    margin-bottom: 0.5rem;
}

.download-security-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 1rem;
    background: #d1fae5;
    color: #047857;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.download-security-pill.pulse {
    background: #10b981;
    color: #ffffff;
    animation: pillGlow 1.8s infinite ease-in-out;
}

@keyframes pillGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
        transform: scale(1.02);
    }
}

.download-file-info {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.download-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
}

.btn-download-direct {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 3rem;
    font-size: 1.25rem;
    font-weight: 800;
    border-radius: var(--radius-lg);
    background: #059669;
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
    transition: all var(--transition-fast);
}

.btn-download-direct:hover {
    background: #047857;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(5, 150, 105, 0.45);
}

.btn-download-direct:active {
    transform: translateY(0);
}

/* 5-Second Animated Circular Countdown */
.countdown-circle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem auto;
}

.countdown-circle {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.countdown-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.countdown-svg-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 6;
}

.countdown-svg-progress {
    fill: none;
    stroke: #10b981;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 264;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.95s linear, stroke 0.3s;
}

.countdown-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.countdown-number {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    color: #065f46;
    animation: countPulse 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes countPulse {
    0% {
        transform: scale(0.65);
        opacity: 0.4;
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.countdown-unit {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #059669;
    margin-top: 0.2rem;
}

/* Linear Progress Bar */
.timer-progress-track {
    width: 100%;
    max-width: 380px;
    height: 8px;
    background: #d1fae5;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 1.25rem auto 0.75rem;
}

.timer-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981, #047857);
    border-radius: var(--radius-full);
    transition: width 0.95s linear;
}

.download-timer-status {
    font-size: 0.95rem;
    font-weight: 600;
    color: #065f46;
    min-height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Download Started State */
.download-success-icon {
    font-size: 3.75rem;
    color: #10b981;
    margin-bottom: 0.5rem;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.manual-download-box {
    background: #ffffff;
    border: 1.5px dashed #6ee7b7;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    max-width: 440px;
    margin: 1.25rem auto;
    box-shadow: var(--shadow-sm);
}

.download-tip {
    font-size: 0.85rem;
    color: #047857;
    margin-top: 1.25rem;
    line-height: 1.5;
}

.btn-outline-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-outline-secondary:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* Detail Content Block */
.detail-block {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.detail-block-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.detail-block-title i {
    color: var(--primary);
}

.changelog-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: #065f46;
    white-space: pre-line;
    line-height: 1.6;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.feature-item i {
    color: var(--primary);
    margin-top: 0.25rem;
}

/* Screenshot Slider */
.screenshots-wrapper {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.screenshot-thumb {
    width: 240px;
    height: 420px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    flex-shrink: 0;
    scroll-snap-align: start;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.screenshot-thumb:hover {
    transform: scale(1.02);
}

/* Install Steps Guide */
.install-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.step-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.step-card h4 {
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.9rem;
}

/* Previous Versions Table */
.versions-table-wrap {
    overflow-x: auto;
}

.versions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.versions-table th {
    background: var(--bg-subtle);
    text-align: left;
    padding: 0.85rem 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.versions-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.versions-table tr:hover td {
    background-color: #f8fafc;
}

/* FAQ Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
}

.faq-question {
    padding: 1rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--bg-subtle);
}

.faq-question i {
    transition: transform var(--transition-fast);
    color: var(--text-muted);
}

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

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-secondary);
    font-size: 0.95rem;
    background: var(--bg-surface);
}

.faq-item.active .faq-answer {
    padding: 0.5rem 1.25rem 1.25rem;
    max-height: 250px;
}

/* Disclaimer Box */
.disclaimer-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.disclaimer-box i {
    color: var(--accent-amber);
    font-size: 1.3rem;
    margin-top: 0.2rem;
}

/* ==========================================================================
   BREADCRUMBS & FILTERS
   ========================================================================== */

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 1.5rem 0 1rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.filter-tab {
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tab.active, .filter-tab:hover {
    background: var(--primary);
    color: #ffffff;
}

.filter-select {
    padding: 0.45rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

/* ==========================================================================
   EMPTY & LOADING STATES
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--bg-surface);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-xl);
    margin: 2rem 0;
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* Skeleton Loading Animation */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 220px;
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: #0f172a;
    color: #94a3b8;
    margin-top: auto;
    padding: 4rem 0 2rem;
    border-top: 1px solid #1e293b;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .site-logo {
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 340px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: #ffffff;
    color: var(--text-primary);
    padding: 1rem 1.4rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    pointer-events: auto;
    animation: toast-slide-in 0.3s ease;
    max-width: 360px;
}

@keyframes toast-slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-success i { color: var(--status-success); }
.toast-error i { color: var(--status-danger); }
.toast-info i { color: var(--accent-blue); }

/* ==========================================================================
   RESPONSIVE DESIGN & MEDIA QUERIES (320px to 1440px+)
   ========================================================================== */

/* 1. Small Desktops & Large Laptops (1024px - 1200px) */
@media (max-width: 1200px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.25rem;
    }
    .footer-top {
        gap: 2rem;
    }
}

/* 2. Tablet Landscape & Medium Screens (769px - 992px) */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    .mobile-toggle {
        display: inline-flex;
    }
    .header-search-wrap {
        display: none;
    }
    .hero-title {
        font-size: clamp(2rem, 4.5vw, 2.5rem);
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .app-detail-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    .app-detail-badges, .app-detail-actions {
        justify-content: center;
    }
    .contact-layout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* 3. Tablet Portrait (581px - 768px) */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .header-inner {
        height: 64px;
    }
    .mobile-nav-drawer {
        top: 64px;
    }
    .hero-section {
        padding: 2.25rem 0 1.75rem;
    }
    .section {
        padding: 2.25rem 0;
    }
    .section-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        margin-bottom: 1.25rem;
    }
    .section-title-wrap {
        width: 100%;
    }
    .section-title-wrap h2 {
        font-size: clamp(1.25rem, 4vw, 1.55rem);
    }
    .section-subtitle {
        font-size: 0.88rem;
        margin-top: 0.2rem;
    }
    .view-all-link {
        align-self: flex-start;
        padding: 0.2rem 0;
        font-size: 0.9rem;
        min-height: 38px;
    }
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    .filter-select {
        width: 100%;
    }
    .app-detail-header {
        padding: 1.5rem 1.25rem;
    }
    .app-detail-logo {
        width: 96px;
        height: 96px;
        border-radius: 22px;
    }
    .btn-download-hero {
        width: 100%;
        justify-content: center;
        font-size: 1.1rem;
        min-height: 50px;
    }
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .value-props-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* 4. Standard Mobile (401px - 580px) */
@media (max-width: 580px) {
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .hero-title {
        font-size: clamp(1.65rem, 6vw, 2.2rem);
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    .hero-search-form {
        padding: 0.3rem 0.3rem 0.3rem 1rem;
    }
    .hero-search-input {
        font-size: 0.92rem;
        min-height: 40px;
    }
    .hero-search-btn {
        padding: 0.65rem 1.1rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding-top: 1.5rem;
    }
    .btn-download-direct {
        width: 100%;
        justify-content: center;
        padding: 0.95rem 1.5rem;
        font-size: 1.1rem;
    }
    .specs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    .spec-item {
        padding: 0.6rem 0.7rem;
        gap: 0.6rem;
    }
    .spec-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    .spec-label {
        font-size: 0.7rem;
    }
    .spec-value {
        font-size: 0.85rem;
    }
    .screenshot-thumb {
        width: 160px;
        height: 280px;
    }
    .toast {
        max-width: calc(100vw - 32px);
    }
}

/* 5. Small Mobile (320px - 400px) */
@media (max-width: 400px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .site-logo {
        font-size: 1.15rem;
        gap: 0.5rem;
    }
    .logo-badge {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 8px;
    }
    .admin-link-btn {
        padding: 0.35rem 0.55rem;
        font-size: 0.78rem;
        gap: 0.25rem;
    }
    .admin-link-btn span {
        display: none;
    }
    .hero-section {
        padding: 1.75rem 0 1.25rem;
    }
    .app-card {
        padding: 1rem;
    }
    .app-card-logo {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }
    .app-card-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }
    .app-card-specs {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    .app-download-btn {
        width: 100%;
        justify-content: center;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    .specs-grid {
        grid-template-columns: 1fr;
    }
    .detail-block {
        padding: 1.25rem 1rem;
    }
}

/* ==========================================================================
   CONSENT BANNER & AD CONTAINER UTILITIES
   ========================================================================== */

.consent-banner-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    color: #f8fafc;
    padding: 1rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    animation: slideUpConsent 0.3s ease-out;
}

@keyframes slideUpConsent {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.consent-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    line-height: 1.5;
    flex: 1;
    min-width: 280px;
}

.consent-icon {
    font-size: 1.25rem;
    color: var(--accent-amber);
    flex-shrink: 0;
}

.consent-link {
    color: var(--primary);
    text-decoration: underline;
    margin-left: 0.35rem;
    white-space: nowrap;
}

.consent-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.ad-placement-slot {
    min-height: 20px;
    margin: 1.25rem 0;
    clear: both;
}

.ad-container-inner {
    padding: 0.5rem 0;
    background: transparent;
}

