/* ================================================================
   RONPLAY - SULTAN TECH STYLESHEET (FINAL OPTIMIZED)
   Features: Deep Navy Theme, Neon Search, Glassmorphism, 
   Fixed Modal Spacing, Centered Desktop View
   ================================================================ */

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #e2e8f0;
    margin: 0;
    padding: 0;
    background-color: #0b111e; 
}

a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover, a:focus {
    color: #3187e8;
    text-decoration: none;
    cursor: pointer;
}

/* --- HEADER GRADIENT --- */
.header {
    background: linear-gradient(135deg, #0b111e 0%, #2846dc 100%);
    height: 120px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(49, 135, 232, 0.3);
}

/* Flexbox implementation for perfect logo centering */
.header .block {
    margin: 0;
    padding: 15px 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- NEON SEARCH BAR --- */
.main {
    padding: 15px;
    width: 100%;
}

.search {
    margin-bottom: 20px;
    position: relative;
}

.search input {
    background-color: #131c2d;
    border-radius: 50px; 
    color: #fff;
    height: 55px;
    width: 100%;
    font-size: 16px;
    padding: 15px 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

/* Glow effect when user clicks the search bar */
.search input:focus {
    outline: none;
    border: 1px solid #3187e8;
    box-shadow: 0 0 15px rgba(49, 135, 232, 0.4);
}

/* --- APP LIST --- */
.apps ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.apps ul li a {
    line-height: 18px;
    display: block;
    height: auto;
    min-height: 75px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 12px 10px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.apps ul li a:hover {
    background: rgba(49, 135, 232, 0.1);
}

.avatar img {
    float: left;
    height: 48px;
    width: 48px;
    margin-top: 2px;
    margin-right: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.app {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.name {
    margin-top: 2px;
    font-size: 11px;
    color: #718096; /* Warna Slate Gray (Abu-abu kebiruan yang redup) */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500; /* Jangan terlalu tebal biar menyatu dengan background */
}

.description {
    font-size: 12px;
    color: #8e8e93;
    margin-top: 4px;
}

.righticon {
    float: right;
    margin-top: -30px;
    color: #4a5568;
}

/* --- FOOTER --- */
.footer {
    background: #0b111e;
    border-top: 1px solid rgba(255,255,255,0.05);
    width: 100%;
    height: 60px;
    bottom: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer a {
    color: #4a5568;
    font-size: 24px;
}
.footer a:hover { color: #3187e8; }

/* --- MODALS & GLASSMORPHISM --- */
.modal-backdrop {
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px); /* iOS style background blur */
}

.modal-content {
    background: #131c2d;
    border: 1px solid rgba(49, 135, 232, 0.3);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.modal-header { 
    border-bottom: none; 
    text-align: center;
}

.phone {
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.icon-modal {
    text-align: center;
    margin-top: 20px;
}

.avatar-modal img {
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 15px rgba(49, 135, 232, 0.6); 
    border-radius: 15px;
    margin-bottom: 2px !important; /* FIX: Margin diperkecil biar nama game nempel */
}

.name-modal {
    margin-top: 0px !important; 
	padding-bottom: 10px !important;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.modal-body h1 {
    font-size: 24px;
    font-weight: 700;
    padding: 5px 0;
    text-shadow: 0 0 10px rgba(49, 135, 232, 0.5);
    text-align: center;
}

/* FIX: Modal Text Spacing (Breathing room for text) */
.modal-body p {
    margin-top: 25px !important; 
    margin-bottom: 25px !important; 
    line-height: 1.6;
    color: #a0aec0; 
    font-size: 14px;
    text-align: center;
}

.modal-btn {
    text-align: center;
    padding-bottom: 20px;
}

.modal-btn a {
    display: inline-block;
    color: #fff !important;
    background: linear-gradient(135deg, #3187e8 0%, #2846dc 100%);
    padding: 15px 0;
    width: 90%;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(49, 135, 232, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- LOADING BAR MODAL --- */
.modal-load {
    background: #131c2d;
    color: #fff;
    border: 1px solid rgba(49, 135, 232, 0.3);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    text-align: center;
    margin: 0 auto;
}

@media screen and (max-width: 720px) {
    .modal-load { width: 80%; }
}

.modal-load p {
    margin: 0;
    padding: 5px 0;
    font-size: 15px;
}

.modal-load p:first-child {
    font-size: 18px;
    font-weight: 600;
}

.progress {
    height: 10px;
    width: 90%; /* FIX: Kasih width 90% biar nggak mentok banget ke pinggir */
    background-color: #0b111e;
    border-radius: 10px;
    margin: 15px auto 10px auto !important; /* FIX: 'auto' di kiri dan kanan ini yang bikin bar-nya 100% di tengah layar */
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #2846dc 0%, #3187e8 100%);
    box-shadow: 0 0 10px #3187e8;
}

/* --- ANIMATIONS --- */
.animate-bottom {
    position: relative;
    animation: animatebottom 0.4s;
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

@keyframes animatebottom {
    from { bottom: -100px; opacity: 0; }
    to { bottom: 0; opacity: 1; }
}

/* --- DESKTOP WRAPPER (Centered Phone View Fix) --- */
@media (min-width: 768px) {
    body {
        background-color: #050a14 !important; 
        margin: 0;
        padding: 0;
        display: block; 
    }

    .phone-wrapper {
        max-width: 500px !important; 
        margin: 0 auto !important;   
        min-height: 100vh;
        background-color: #0b111e; 
        position: relative;
        box-shadow: 0 0 50px rgba(0,0,0,0.9); 
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
    }

    .header, .main {
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer {
        position: absolute; 
        bottom: 0;
        width: 100% !important;
        max-width: 500px !important;
    }
    
    .main { padding-bottom: 70px !important; }
}