/* CSS Variables & Theme Setup */
:root {
    --bg-primary: #0B1120;
    --bg-surface: #1E293B;
    --bg-glass: rgba(30, 41, 59, 0.75);
    --bg-glass-card: rgba(30, 41, 59, 0.6);
    --primary: #6366F1;
    --primary-hover: #4F46E5;
    --secondary: #8B5CF6;
    --accent: #10B981;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-primary: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-card: rgba(255, 255, 255, 0.9);
    --primary: #6366F1;
    --primary-hover: hsl(243, 75%, 59%);
    --secondary: #8B5CF6;
    --accent: #10B981;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 15px;
    line-height: 1.5;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--bg-glass-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo-pulse {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    animation: pulseGlow 1.5s infinite alternate;
}

.loader-logo-pulse img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loader-bar {
    width: 200px;
    height: 6px;
    background: var(--border-color);
    border-radius: 10px;
    margin: 15px auto 0 auto;
    overflow: hidden;
}

.loader-bar div {
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    animation: loadBar 1.2s infinite ease-in-out;
}

@keyframes loadBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(99,102,241,0.3); }
    100% { transform: scale(1.08); box-shadow: 0 0 30px rgba(139,92,246,0.6); }
}

/* Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
    width: 260px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFF;
    font-size: 36px;
    margin: 0 auto;
    box-shadow: var(--shadow-glow);
}

.logo-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    display: none;
}

.sidebar-nav {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-main);
    background: rgba(99, 102, 241, 0.12);
}

.nav-item.active {
    color: var(--primary);
    font-weight: 600;
}

.badge-count {
    margin-left: auto;
    background: var(--primary);
    color: #FFF;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.user-auth-box {
    display: flex;
    gap: 10px;
}

.theme-toggle-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
    background-color: #FFF;
}

/* Main Content Wrapper */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px 36px;
    width: calc(100% - 260px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Header */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    width: 100%;
}

.sidebar-toggle-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    border-color: var(--primary);
}

.search-bar-wrapper {
    flex: 1;
    max-width: 580px;
    width: 100%;
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    padding: 0 16px;
    transition: var(--transition);
}

.search-bar-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.search-bar-wrapper .search-icon {
    color: var(--text-muted);
    font-size: 16px;
    flex-shrink: 0;
}

.search-bar-wrapper input {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 10px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
}

.search-clear-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    flex-shrink: 0;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 50;
    max-height: 380px;
    overflow-y: auto;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.suggestion-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.suggestion-item img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.icon-btn {
    width: 42px;
    height: 42px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    text-decoration: none;
    flex-shrink: 0;
}

.icon-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.pulse-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

.user-avatar-placeholder {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

/* Hero Slider */
.hero-slider-section {
    margin-bottom: 32px;
    width: 100%;
}

.hero-slider {
    position: relative;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    padding: 32px;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(11,17,32,0.94) 0%, rgba(11,17,32,0.75) 60%, rgba(11,17,32,0.3) 100%);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.25);
    color: #818CF8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.hero-slide-content h1 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFF;
    line-height: 1.2;
}

.hero-slide-content p {
    color: #CBD5E1;
    font-size: clamp(13px, 1.5vw, 15px);
    margin-bottom: 18px;
    line-height: 1.5;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.slider-dot.active {
    width: 28px;
    background: var(--primary);
}

/* Categories Section */
.categories-section {
    margin-bottom: 32px;
    width: 100%;
}

.section-header {
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
}

.subtitle {
    font-size: clamp(12px, 1.4vw, 14px);
    color: var(--text-muted);
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.categories-scroll::-webkit-scrollbar {
    height: 4px;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.category-chip {
    padding: 8px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}

.category-chip:hover, .category-chip.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #FFF;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* App Grid & Cards (Responsive Flex / Grid rules) */
.apps-grid-section {
    margin-bottom: 36px;
    width: 100%;
}

.filter-dropdown-wrapper .custom-select {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

/* Responsive App Grid governed by media queries below */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 18px;
    width: 100%;
}

.app-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.app-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.2);
}

.app-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.app-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.app-card-meta {
    flex: 1;
    min-width: 0;
}

.app-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-card-category {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-card-badges {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 600;
}

.badge-premium {
    background: rgba(245, 158, 11, 0.2);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-mod {
    background: rgba(139, 92, 246, 0.2);
    color: #A78BFA;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.app-card-details-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.app-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rating-stars {
    color: #F59E0B;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.rating-stars span {
    color: var(--text-main);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #FFF;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.w-100 {
    width: 100%;
}

/* Skeleton Loading */
.app-card.skeleton {
    pointer-events: none;
}

.skeleton-icon {
    width: 52px;
    height: 52px;
    background: var(--border-color);
    border-radius: 14px;
    animation: pulseSkeleton 1.2s infinite ease-in-out;
    flex-shrink: 0;
}

.skeleton-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-line {
    background: var(--border-color);
    height: 12px;
    border-radius: 6px;
    animation: pulseSkeleton 1.2s infinite ease-in-out;
}

.skeleton-line.title {
    width: 80%;
}

.skeleton-line.sub {
    width: 50%;
}

@keyframes pulseSkeleton {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 0.4; }
}

/* App Details Page Styles */
.app-details-container {
    max-width: 1050px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 100px;
}

.app-details-hero {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    width: 100%;
}

.app-details-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    flex-shrink: 0;
}

.app-details-info {
    flex: 1;
    min-width: 0;
}

.publisher-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    margin: 4px 0 12px 0;
    flex-wrap: wrap;
}

.verified-badge {
    color: var(--accent);
    font-size: 12px;
}

.app-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
    width: 100%;
}

.spec-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: 11px;
    color: var(--text-muted);
}

.spec-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    word-break: break-all;
}

.content-section-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    width: 100%;
}

.content-section-card h3 {
    font-size: 17px;
    margin-bottom: 12px;
}

.screenshots-gallery-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.screenshot-item {
    width: 200px;
    height: 380px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.changelog-list {
    list-style: disc;
    padding-left: 18px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.virus-scan-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 14px;
    border-radius: var(--radius-md);
    color: var(--accent);
}

.virus-scan-box i {
    font-size: 28px;
    flex-shrink: 0;
}

/* Sticky Download Bar */
.sticky-download-bar {
    position: fixed;
    bottom: 0;
    left: 260px;
    right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 90;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
}

.sticky-app-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sticky-app-info img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.sticky-app-info h4 {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Download Modal */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
    padding: 16px;
}

.modal-backdrop.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.modal-app-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.download-progress-box {
    margin: 18px 0;
}

.progress-bar-wrap {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 0.2s linear;
}

.progress-status-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.success-icon-badge {
    width: 56px;
    height: 56px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 14px auto;
}

.success-icon-large {
    font-size: 52px;
    color: var(--accent);
    margin-bottom: 10px;
}

/* Notification Drawer */
.notification-drawer {
    position: fixed;
    top: 0; right: -380px; width: 360px; max-width: 100%; height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    z-index: 200;
    box-shadow: -10px 0 40px rgba(0,0,0,0.4);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.notification-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius-md);
}

.notification-item h5 {
    font-size: 14px;
    margin-bottom: 4px;
}

.notification-item p {
    font-size: 12px;
    color: var(--text-muted);
}

.notification-time {
    font-size: 10px;
    color: var(--primary);
    margin-top: 6px;
    display: block;
}

/* Auth Pages */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at center, rgba(99,102,241,0.15) 0%, var(--bg-primary) 70%);
    padding: 16px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    padding: 32px;
}

.auth-logo {
    margin-bottom: 22px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
}

.input-with-icon input, .form-group input, .form-group textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 12px 16px 12px 40px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-group textarea {
    padding-left: 16px;
}

.input-with-icon input:focus, .form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(102, 104, 247, 0.2);
}

.auth-footer {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-footer a {
    text-decoration: none;
}

.page-container {
    max-width: 800px;
    width: 100%;
    margin: 10px auto;
}

.form-container-card {
    padding: 32px;
}

.required {
    color: #EF4444;
}

/* Footer */
.app-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 40px 24px 24px 24px;
    margin-top: 50px;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px auto;
}

.footer-col h4 {
    font-size: 15px;
    margin-bottom: 14px;
    color: var(--text-main);
}

.footer-col p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 10px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: #FFF;
    border-color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.ssl-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 12px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.hidden {
    display: none !important;
}

.about-hero {
    text-align: center;
    margin-bottom: 40px;
}

.about-hero h1 {
    margin-top: 18px;
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 1.2;
}

.about-hero p {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--text-muted);
}

/* About - Feature & FAQ */
.feature-card {
    padding: 20px;
    margin-bottom: 14px;
    border-radius: 18px;
}

.feature-card h3 {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.3;
}

.feature-card p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-muted);
}

.feature-card .icon-box {
    margin-bottom: 8px;
}

.faq-section {
    margin-top: 35px;
}

.faq-section h2 {
    font-size: 24px;
    margin-bottom: 18px;
    line-height: 1.3;
}

.faq-item {
    padding: 18px;
    margin-bottom: 12px;
    border-radius: 18px;
}

.faq-item h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.faq-item p {
    margin: 8px 0 0;
    line-height: 1.6;
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
    margin-bottom: 30px;
}

.contact-socials a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 20px;
    transition: 0.2s ease;
}

.contact-socials a:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    color: var(--primary);
}