/* ==========================================================================
   SIMPAKAB DOWNLOAD PAGE PREMIUM STYLESHEET - v1.1.0
   Design Theme: Amethyst Midnight & Electric Rose Gold
   Aesthetics: Rich Glassmorphism, Floating 3D Shadows, Dynamic Glowing Orbs
   ========================================================================== */

   :root {
    --bg-dark: #070305; /* Amethyst Obsidian Black */
    --card-bg: rgba(20, 8, 14, 0.4); /* Glassmorphic Pink Slate */
    --card-border: rgba(255, 255, 255, 0.07);
    --text-primary: #fff0f5; /* Lavender Blush White */
    --text-secondary: #e2c0d2; /* Muted Pastel Rose */
    --accent-primary: #ec407a; /* Vibrant Electric Pink */
    --accent-secondary: #ad1457; /* Deep Rose Gold */
    --glow-pink: rgba(236, 64, 122, 0.55);
    --glow-rose: rgba(173, 20, 87, 0.45);
    --safety-green: #00e676; /* Play Protect Green */
    --safety-bg: rgba(0, 230, 118, 0.07);
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Reset & Core Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 50%, #15060f 0%, #070305 100%);
    color: var(--text-primary);
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

/* Dynamic Ambient Glow Orbs (Fluid Motion) */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.65;
    pointer-events: none;
}

.glow-1 {
    width: 550px;
    height: 550px;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    animation: orb-orbit-1 25s infinite ease-in-out alternate;
}

.glow-2 {
    width: 600px;
    height: 600px;
    bottom: -15%;
    right: -15%;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    animation: orb-orbit-2 28s infinite ease-in-out alternate;
}

.glow-3 {
    width: 350px;
    height: 350px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(236, 64, 122, 0.25) 0%, transparent 60%);
    animation: orb-float 15s infinite ease-in-out alternate;
}

@keyframes orb-orbit-1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(120px, 80px) scale(1.15); }
    100% { transform: translate(-50px, 150px) scale(0.9); }
}

@keyframes orb-orbit-2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-100px, -120px) scale(1.2); }
    100% { transform: translate(80px, 40px) scale(0.85); }
}

@keyframes orb-float {
    0% { transform: translate(-50%, -50%) translateY(0) scale(1); }
    100% { transform: translate(-50%, -50%) translateY(30px) scale(1.1); }
}

/* Container & Glassmorphism Card Alignment */
.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    perspective: 1000px;
    margin: 40px auto; /* Memberikan jarak vertikal aman dan menengahkan secara elastis */
}

.glass-card {
    background: rgba(15, 6, 12, 0.5);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--card-border);
    border-radius: 40px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 
        0 40px 100px -20px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        0 0 50px rgba(236, 64, 122, 0.08);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 50px 120px -20px rgba(0, 0, 0, 0.95),
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        0 0 70px rgba(236, 64, 122, 0.18);
}

/* Header Section */
.header-section {
    margin-bottom: 25px;
}

.app-icon-container {
    position: relative;
    width: 116px;
    height: 116px;
    margin: 0 auto 20px;
}

.app-icon {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 36px;
    overflow: hidden;
    padding: 10px;
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(236, 64, 122, 0.2);
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-icon-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px dashed rgba(236, 64, 122, 0.4);
    border-radius: 42px;
    animation: spin-clockwise 30s linear infinite, ring-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ring-pulse {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.04); opacity: 0.85; }
    100% { transform: scale(1); opacity: 0.4; }
}

@keyframes spin-clockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.glass-card:hover .app-icon {
    transform: scale(1.06) rotate(3deg);
}

.app-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ffffff 40%, #ffc0db 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

.brand-badge {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(236, 64, 122, 0.1);
    border: 1px solid rgba(236, 64, 122, 0.2);
    border-radius: 100px;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(236, 64, 122, 0.05);
}

.app-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 330px;
    margin: 0 auto;
}

/* Play Protect Safety Badge (Neon Look) */
.safety-badge-container {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.safety-badge {
    background: var(--safety-bg);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--safety-green);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.04);
}

.shield-icon {
    width: 15px;
    height: 15px;
    animation: shield-pulse 2s infinite ease-in-out;
}

@keyframes shield-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.85; }
    100% { transform: scale(1); opacity: 1; }
}

/* Version & Premium Changelog Card */
.update-card {
    background: rgba(20, 6, 13, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 22px 20px;
    margin-bottom: 30px;
    text-align: left;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.version-badge {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 100px;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 10px rgba(236, 64, 122, 0.3);
}

.update-status {
    font-size: 0.72rem;
    color: var(--text-secondary);
    opacity: 0.8;
    position: relative;
    padding-left: 12px;
    font-weight: 600;
}

.update-status::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--safety-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--safety-green);
}

.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.changelog-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.changelog-item:hover {
    transform: translateX(6px);
}

.changelog-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.fine-icon {
    color: #ffd54f;
    box-shadow: 0 0 15px rgba(255, 213, 79, 0.1);
}

.scan-icon {
    color: #4fc3f7;
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.1);
}

.report-icon {
    color: #ba68c8;
    box-shadow: 0 0 15px rgba(186, 104, 200, 0.1);
}

.inventory-icon {
    color: #00e676;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.15);
}

.offline-icon {
    color: #ff9100;
    box-shadow: 0 0 15px rgba(255, 145, 0, 0.15);
}

.ai-icon {
    color: #ff4081;
    box-shadow: 0 0 15px rgba(255, 64, 129, 0.15);
}

.alert-icon {
    color: #ffea00;
    box-shadow: 0 0 15px rgba(255, 234, 0, 0.15);
}

.changelog-content h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.changelog-content p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    opacity: 0.95;
}

/* Action Buttons (The WOW Factor) */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

/* APK Download Button with Animated Gradient & Shimmer Sweep */
.download-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 12px 25px -8px var(--glow-pink),
        0 0 15px rgba(236, 64, 122, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 
        0 16px 30px -6px var(--glow-pink),
        0 0 25px rgba(236, 64, 122, 0.35);
}

.download-btn:active {
    transform: scale(0.97);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.download-btn:hover .btn-icon {
    transform: translateY(3px);
}

/* Premium Shimmer sweep animation */
.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
    animation: shimmer-sweep 4s infinite linear;
}

@keyframes shimmer-sweep {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

/* Web Outline Button with Glass Hover Effect */
.ios-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-primary);
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.02rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ios-btn:hover {
    background: rgba(236, 64, 122, 0.08);
    border-color: rgba(236, 64, 122, 0.35);
    color: #ffffff;
    transform: translateY(-3px) scale(1.015);
    box-shadow: 
        0 8px 25px -8px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(236, 64, 122, 0.1);
}

.ios-btn:active {
    transform: scale(0.97);
}

.ios-btn:hover .btn-icon {
    transform: rotate(15deg) scale(1.05);
}

/* Footer Metadata */
.footer-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 15px;
}

.meta-separator {
    color: var(--accent-primary);
    opacity: 0.5;
}

/* Responsive Scaling for Perfect Mobile Display */
@media (max-width: 480px) {
    body {
        padding: 10px;
        align-items: flex-start; /* Memastikan konten mengalir dari atas jika layar sangat pendek */
    }

    .container {
        max-width: 100%;
        margin: 20px auto; /* Margin aman atas bawah di seluler agar tidak mentok */
    }

    .glass-card {
        padding: 24px 16px; /* Padding lebih ramping agar lega */
        border-radius: 28px;
    }

    .app-icon-container {
        width: 86px; /* Mengecilkan ikon di seluler agar hemat ruang */
        height: 86px;
        margin-bottom: 12px;
    }

    .app-title {
        font-size: 2.3rem; /* Judul lebih ringkas */
        margin-bottom: 2px;
    }

    .brand-badge {
        font-size: 0.65rem;
        padding: 3px 10px;
        margin-bottom: 10px;
    }

    .app-subtitle {
        font-size: 0.82rem; /* Subjudul lebih rapat */
        line-height: 1.4;
        max-width: 280px;
    }

    .safety-badge-container {
        margin-bottom: 16px;
    }

    .safety-badge {
        font-size: 0.72rem;
        padding: 6px 12px;
    }

    .update-card {
        padding: 14px 12px;
        border-radius: 18px;
        margin-bottom: 20px;
    }

    .changelog-list {
        gap: 12px;
    }

    .changelog-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.85rem;
    }

    .changelog-content h4 {
        font-size: 0.82rem;
    }

    .changelog-content p {
        font-size: 0.72rem;
    }

    .action-buttons {
        gap: 10px;
        margin-bottom: 16px;
    }

    .download-btn, .ios-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 14px;
    }

    .footer-meta {
        font-size: 0.7rem;
        margin-top: 10px;
    }
}

/* Premium Entry Animations (Staggered Fade In Up) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.28s; }
.delay-3 { animation-delay: 0.44s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.76s; }
