* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --primary-dark: #357abd;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 30%, #d946ef 60%, #ec4899 100%);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    position: relative;
    padding: 3rem 0;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0.4;
    z-index: 0;
}

header > * {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    letter-spacing: -0.08em;
    line-height: 1;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3), 0 0 40px rgba(255,255,255,0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .hero-logo {
    width: 200px;
    height: 200px;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.6)) drop-shadow(0 0 30px rgba(251, 191, 36, 0.6));
    margin-right: -2rem;
    object-fit: contain;
}

.hero-title span {
    margin-left: -1.5rem;
    display: inline-block;
}

.subtitle {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 2;
    opacity: 0.9;
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

main {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.download-section {
    margin-bottom: 2rem;
}

.apk-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.apk-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.apk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.apk-header h2 {
    font-size: 1.5rem;
    color: var(--text-color);
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.latest {
    background: var(--success-color);
    color: white;
}

.badge.old {
    background: var(--secondary-color);
    color: white;
}

.apk-info {
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    font-weight: 600;
    color: var(--text-light);
}

.value {
    color: var(--text-color);
    text-align: right;
}

.download-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.download-btn:active {
    transform: scale(0.98);
}

.download-icon {
    font-size: 1.3rem;
}

.info-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-section h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-section p {
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.info-section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-back {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    font-weight: 500;
    margin-bottom: 2rem;
}

.btn-back:hover {
    background: #5a6268;
    transform: translateX(-4px);
}

.back-link {
    margin-bottom: 1rem;
}

.history-section {
    margin-top: 2rem;
}

.apk-list {
    display: grid;
    gap: 1.5rem;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-apk {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    background: #f8f9fa;
    border-radius: 8px;
}

footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
    color: white;
    text-align: center;
    padding: 3rem 0 2rem;
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
    border-radius: 12px 12px 0 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    letter-spacing: -0.08em;
    line-height: 1;
    margin-bottom: 1rem;
}

.footer-logo .footer-logo-icon {
    width: 80px;
    height: 80px;
    margin-right: -1rem;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.5));
}

.footer-logo span {
    margin-left: -0.5rem;
    display: inline-block;
}

footer p {
    margin: 0.5rem 0;
    opacity: 0.85;
    font-size: 1.05rem;
}

footer strong {
    font-weight: 800;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #ffffff, #e0f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title .hero-logo {
        width: 120px;
        height: 120px;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }

    .container {
        padding: 1rem 0.5rem;
    }

    main {
        padding: 1.5rem;
    }

    .apk-card {
        padding: 1rem;
    }

    .info-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .value {
        text-align: left;
    }
}

