/* ===== ZYRA APP STORE — COMPLETE STYLESHEET ===== */
/* Dark Galaxy Theme · Mobile-First · Privacy-First Aesthetic */

/* --- CSS Custom Properties --- */
:root {
    --bg-deep: #06060f;
    --bg-primary: #0a0a18;
    --bg-card: rgba(18, 18, 38, 0.75);
    --bg-card-hover: rgba(26, 26, 52, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.025);
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0c0;
    --text-muted: #686898;
    --accent: #8b7cf0;
    --accent-glow: #a89bfa;
    --accent-soft: rgba(139, 124, 240, 0.15);
    --install: #4ae0a0;
    --install-glow: rgba(74, 224, 160, 0.25);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --star-color: #ffffff;
    --danger: #f06080;
    --warning: #f0c060;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(139, 124, 240, 0.12);
    --transition-fast: 0.18s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* --- Star Canvas Background --- */
#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Orbit Rings (Decorative) --- */
.orbit-ring {
    position: fixed;
    border-radius: 50%;
    border: 1px solid rgba(139, 124, 240, 0.08);
    pointer-events: none;
    z-index: 0;
    animation: orbitPulse 12s ease-in-out infinite;
}
.orbit-ring-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    border-color: rgba(139, 124, 240, 0.1);
    animation-delay: 0s;
}
.orbit-ring-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -80px;
    border-color: rgba(168, 155, 250, 0.07);
    animation-delay: -6s;
}
@keyframes orbitPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.04); opacity: 1; }
}

/* --- Site Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 24, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 101;
}
.logo-icon {
    flex-shrink: 0;
}
.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.logo-accent {
    color: var(--accent);
    font-weight: 400;
}

/* Main Navigation */
.main-nav {
    display: flex;
    gap: 4px;
}
.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}
.nav-link.active {
    color: var(--accent-glow);
    background: var(--accent-soft);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 101;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Main Content --- */
.main-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    min-height: calc(100vh - 60px - 180px);
}

/* --- Hero Section (Home) --- */
.hero {
    text-align: center;
    padding: 70px 20px 50px;
    position: relative;
}
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 124, 240, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
    position: relative;
}
.hero-highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-glow), #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.hero-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-glow);
    font-variant-numeric: tabular-nums;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-smooth);
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 124, 240, 0.3);
}
.btn-primary:hover {
    background: var(--accent-glow);
    box-shadow: 0 6px 28px rgba(139, 124, 240, 0.45);
    transform: translateY(-1px);
}
.btn-ghost {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-install {
    background: var(--install);
    color: #0a0a18;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px var(--install-glow);
    letter-spacing: 0.01em;
}
.btn-install:hover {
    background: #5ef0b0;
    box-shadow: 0 8px 36px rgba(74, 224, 160, 0.4);
    transform: translateY(-2px);
}
.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Sections --- */
.section {
    margin-bottom: 50px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.section-link {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    transition: color var(--transition-fast);
}
.section-link:hover {
    color: var(--accent-glow);
}

/* --- Page Hero (Subpages) --- */
.page-hero {
    text-align: center;
    padding: 50px 20px 30px;
}
.page-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* --- App Grid --- */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}
.featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* --- App Card --- */
.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 124, 240, 0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}
.app-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(139, 124, 240, 0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}
.app-card:hover::before {
    opacity: 1;
}
.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    border: 1px solid var(--border-subtle);
}
.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.card-title-group {
    min-width: 0;
}
.card-name {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-version {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.card-category {
    display: inline-block;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--accent-soft);
    color: var(--accent-glow);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    align-self: flex-start;
}
.card-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.card-install-btn {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: var(--install);
    color: #0a0a18;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    transition: all var(--transition-fast);
}
.card-install-btn:hover {
    background: #5ef0b0;
}
.badge-offline {
    color: var(--install);
}
.badge-privacy {
    color: var(--accent-glow);
}

/* --- Skeleton Loaders --- */
.card-skeleton, .cat-card-skeleton, .bubble-skeleton {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    animation: shimmer 1.8s infinite;
    border: 1px solid var(--border-subtle);
}
.card-skeleton { height: 220px; }
.cat-card-skeleton { height: 160px; }
.bubble-skeleton { height: 100px; width: 100px; border-radius: 50%; }
@keyframes shimmer {
    0% { opacity: 0.4; }
    50% { opacity: 0.7; }
    100% { opacity: 0.4; }
}

/* --- Detail Loading --- */
.detail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 20px;
}
.detail-skeleton-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    animation: shimmer 1.8s infinite;
}
.detail-skeleton-line {
    width: 280px;
    height: 20px;
    border-radius: 6px;
    background: var(--bg-card);
    animation: shimmer 1.8s infinite;
}
.detail-skeleton-line.short {
    width: 180px;
}

/* --- App Detail Page --- */
.app-detail {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.detail-top {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.detail-icon-large {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    flex-shrink: 0;
    border: 1px solid var(--border-medium);
}
.detail-info {
    flex: 1;
    min-width: 200px;
}
.detail-name {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.detail-developer {
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.detail-version-badge {
    display: inline-block;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--bg-glass);
    color: var(--text-secondary);
    margin-right: 8px;
    border: 1px solid var(--border-subtle);
}
.detail-install-area {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}
.detail-file-size {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.detail-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
}
.detail-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-subtle);
    background: var(--bg-glass);
}
.badge-green { border-color: rgba(74, 224, 160, 0.3); color: var(--install); }
.badge-purple { border-color: rgba(139, 124, 240, 0.3); color: var(--accent-glow); }
.badge-yellow { border-color: rgba(240, 192, 96, 0.3); color: var(--warning); }

/* Screenshot Gallery */
.screenshot-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}
.screenshot-thumb {
    flex-shrink: 0;
    width: 240px;
    height: 135px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    scroll-snap-align: start;
    background: var(--bg-card);
}
.screenshot-thumb:hover {
    border-color: var(--accent);
    transform: scale(1.03);
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.detail-grid-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 14px;
    border: 1px solid var(--border-subtle);
}
.detail-grid-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.detail-grid-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-md);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2rem;
    color: #fff;
    padding: 10px;
    z-index: 201;
}

/* --- Categories Grid --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.category-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(139, 124, 240, 0.25);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}
.category-icon {
    font-size: 2.4rem;
}
.category-name {
    font-weight: 700;
    font-size: 1rem;
}
.category-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Category Bubbles (Home) --- */
.category-bubbles {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.category-bubble {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all var(--transition-smooth);
    text-align: center;
}
.category-bubble:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}
.category-bubble .bubble-icon {
    font-size: 1.6rem;
}
.category-bubble .bubble-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* --- Search & Filter Bar --- */
.search-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 20px;
}
.search-wrapper {
    position: relative;
    flex: 1;
    min-width: 220px;
}
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}
.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-input::placeholder {
    color: var(--text-muted);
}
.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.chip {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.chip:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}
.chip.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-glow);
}
.sort-select {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.85rem;
}
.results-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.no-results {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}
.no-results-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}
.no-results h3 {
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* --- Upload Page --- */
.upload-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}
.upload-form {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--accent-glow);
    letter-spacing: 0.02em;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group select {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);                    /* solid dark for the button itself */
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group select option {
    background: var(--bg-card);                    /* dark option list */
    color: var(--text-primary);                    /* visible text */
}
.drop-zone {
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-glass);
}
.drop-zone:hover, .drop-zone.drag-active {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}
.drop-zone-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.upload-preview {
    position: sticky;
    top: 80px;
}
.preview-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-secondary);
}
.preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    min-height: 300px;
}
.preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--install);
    color: #0a0a18;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 300;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    animation: toastIn 0.4s ease;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* --- About Page --- */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}
.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 26px;
    transition: all var(--transition-smooth);
}
.about-card:hover {
    border-color: rgba(139, 124, 240, 0.2);
    box-shadow: var(--shadow-glow);
}
.about-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}
.about-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.about-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Philosophy Snippet (Home) --- */
.philosophy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.philosophy-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
}
.philosophy-card h3 {
    font-weight: 700;
    margin-bottom: 8px;
}
.philosophy-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Site Footer --- */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-subtle);
    background: rgba(10, 10, 24, 0.7);
    padding: 30px 20px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.footer-links {
    display: flex;
    gap: 18px;
}
.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}
.footer-links a:hover {
    color: var(--accent-glow);
}
.footer-bottom {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}
.footer-version {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 900px) {
    .upload-layout {
        grid-template-columns: 1fr;
    }
    .upload-preview {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: rgba(10, 10, 24, 0.96);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 8px;
        transition: right var(--transition-smooth);
        z-index: 100;
        border-left: 1px solid var(--border-subtle);
    }
    .main-nav.open {
        right: 0;
    }
    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
    }
    .hero-stats {
        gap: 20px;
    }
    .detail-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .detail-install-area {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .search-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
}