* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #1e293b;
}

header h1 {
    font-size: 1.5rem;
    color: #f8fafc;
}

header p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.app-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-card {
    background: #1e293b;
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
}

.app-card:hover {
    background: #334155;
}

.app-card .app-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f8fafc;
}

.app-card .app-meta {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.app-card .arrow {
    color: #64748b;
    font-size: 1.25rem;
}

.version-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.version-card {
    background: #1e293b;
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

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

.version-number {
    font-size: 1rem;
    font-weight: 600;
    color: #f8fafc;
}

.badge-latest {
    display: inline-block;
    background: #22c55e;
    color: #052e16;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
    vertical-align: middle;
    text-transform: uppercase;
}

.version-meta {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}

.btn-download:hover {
    background: #2563eb;
}

.back-link {
    display: inline-block;
    color: #3b82f6;
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.back-link:hover {
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    color: #64748b;
    padding: 3rem 1rem;
}

.empty-state p {
    font-size: 1rem;
}

.page-title {
    font-size: 1.25rem;
    color: #f8fafc;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 2rem;
    }

    header h1 {
        font-size: 1.75rem;
    }
}
