@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Inter', sans-serif; 
    -webkit-tap-highlight-color: transparent; 
    
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

body { 
    background-color: #111214; 
    color: #ffffff; 
    overflow-x: hidden; 
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 30px 30px;
    zoom: 80%;
}

.icon-nav { font-size: 20px; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.icon-nav-small { margin-right: 6px; vertical-align: middle; color: #fff; font-size: 14px; }
.icon-robux { width: 18px; height: 18px; object-fit: contain; margin-right: 4px; vertical-align: middle; }
.icon-robux-large { width: 36px; height: 36px; object-fit: contain; margin-right: 8px; vertical-align: middle; }

.top-nav { 
    position: sticky; top: 0; z-index: 10; 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 14px 16px; background-color: #1a1b1d; border-bottom: 1px solid #232527; 
}
.nav-left-group { display: flex; align-items: center; gap: 16px; }
.nav-right { display: flex; align-items: center; }
.robux-balance { display: flex; align-items: center; font-size: 18px; font-weight: 700; }
.kirim-btn { background-color: #2a2b2f; color: white; border: none; padding: 6px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; display: flex; align-items: center; transition: 0.2s; }
.kirim-btn:active { transform: scale(0.95); }

.main-page { padding: 16px 20px; max-width: 600px; margin: 0 auto; }
.page-title { font-size: 32px; font-weight: 700; margin-bottom: 20px; }
.section-title { font-size: 17px; font-weight: 700; margin: 25px 0 8px 0; }
.section-desc { font-size: 13px; color: #b3b3b3; margin-bottom: 15px; line-height: 1.5; }

.packages-card { background-color: #1a1b1d; border-radius: 12px; border: 1px solid #2a2b2f; overflow: hidden; }
.pkg-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #2a2b2f; transition: 0.2s; }
.pkg-item:active { background-color: rgba(255,255,255,0.02); }
.pkg-item:last-child { border-bottom: none; }
.pkg-left { display: flex; align-items: center; font-size: 16px; font-weight: 700; gap: 2px; }
.btn-price { background-color: #2a2b2f; color: #ffffff; border: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; min-width: 95px; text-align: center; transition: 0.2s; }
.btn-price:active { transform: scale(0.95); }
.btn-price-blue { background-color: #4078ff; }
.badge-untukmu { background-color: #232527; font-size: 11px; padding: 4px 8px; border-radius: 20px; margin-left: 8px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; color: #ffffff; }

.other-ways-card { background-color: #1a1b1d; border-radius: 12px; border: 1px solid #2a2b2f; padding: 18px 20px; }
.other-ways-card h3 { font-size: 16px; margin-bottom: 4px; }
.other-ways-card p { font-size: 14px; color: #b3b3b3; }

.faq-list { margin-bottom: 30px; }
.faq-item { background-color: #1a1b1d; border-radius: 10px; border: 1px solid #2a2b2f; margin-bottom: 10px; overflow: hidden; cursor: pointer; }
.faq-question { padding: 14px 18px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.faq-answer { padding: 0 18px; max-height: 0; transition: all 0.3s ease; color: #b3b3b3; font-size: 14px; line-height: 1.5; opacity: 0; }
.faq-item.active .faq-answer { padding: 0 18px 14px 18px; max-height: 200px; opacity: 1; }

.bottom-links { display: flex; gap: 10px; margin-top: 30px; margin-bottom: 40px; }
.btn-link { flex: 1; background-color: #1a1b1d; border: 1px solid #2a2b2f; color: white; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-logout { color: #ff4040; }

.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); opacity: 0; pointer-events: none; transition: 0.3s; z-index: 99; }
.overlay.active { opacity: 1; pointer-events: auto; }
.bottom-sheet { position: fixed; bottom: 0; left: 0; width: 100%; background-color: #1b1c1f; border-radius: 20px 20px 0 0; z-index: 100; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); display: flex; flex-direction: column; max-height: 90vh; }
.bottom-sheet.active { transform: translateY(0); }
.sheet-drag-handle { width: 40px; height: 4px; background-color: #4a4b4f; border-radius: 4px; margin: 10px auto 5px; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.sheet-header-alt { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; }
.sheet-header-right { display: flex; align-items: center; gap: 15px; }
.sheet-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; }
.sheet-balance { font-weight: 600; display: flex; align-items: center; }

#modal-amount .sheet-header-right .icon-nav.close-sheet,
#modal-confirm .sheet-header-right .icon-nav.close-sheet,
#modal-success .sheet-header-right .icon-nav.close-sheet,
#modal-insufficient .sheet-header-right .icon-nav.close-sheet {
    display: none !important;
}

.search-container { padding: 0 20px 15px 20px; position: relative; z-index: 10; }
#search-input { width: 100%; background-color: #232527; border: 2px solid transparent; color: white; padding: 14px 16px; border-radius: 8px; font-size: 16px; outline: none; transition: 0.2s; }
#search-input:focus { border-color: #4078ff; }
.friend-list-container { flex: 1; overflow-y: auto; padding: 0 20px 20px 20px; }
.friend-count-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: #b3b3b3; }
.friend-item { display: flex; align-items: center; padding: 10px 0; cursor: pointer; transition: 0.2s; }
.friend-item:active { opacity: 0.7; }
.friend-avatar { width: 44px; height: 44px; border-radius: 50%; background-color: #393b3d; margin-right: 15px; object-fit: cover; }
.friend-info { flex: 1; }
.friend-display { font-weight: 600; font-size: 16px; display: flex; align-items: center; }
.friend-username { font-size: 13px; color: #b3b3b3; margin-top: 2px; }

.user-profile-center { display: flex; flex-direction: column; align-items: center; margin-top: 10px; }
.target-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; background: #393b3d; }
.target-name { font-weight: 600; font-size: 16px; }
.target-handle { font-size: 14px; color: #b3b3b3; margin-top: 2px; }

.amount-display { display: flex; justify-content: center; align-items: center; margin: 30px 0 20px 0; }
#input-amount { 
    background: transparent; border: none; color: white; 
    font-size: 48px; font-weight: 700; outline: none; padding: 0; 
    text-align: center; max-width: 90vw;
}

.limit-warning-text { text-align: center; color: #ff4040; font-size: 13px; font-weight: 500; margin-bottom: 15px; }

.quick-amounts { display: flex; justify-content: center; gap: 10px; padding: 0 20px; margin-bottom: 30px; }
.quick-btn { background-color: #2a2b2f; color: white; border: none; padding: 12px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; display: flex; align-items: center; cursor: pointer; flex: 1; justify-content: center; transition: 0.2s; }
.quick-btn:active { transform: scale(0.95); }

.confirm-card { background-color: #232527; margin: 15px 20px; padding: 20px; border-radius: 12px; text-align: center; }
#confirm-stats-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 15px !important;
}
#confirm-stats-container .stats-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    width: 100% !important;
}
#confirm-stats-container .stat-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    color: #b3b3b3 !important;
}

.confirm-amount-card { background-color: #232527; margin: 0 20px 20px 20px; padding: 20px; border-radius: 12px; text-align: center; }
.amount-large { font-size: 32px; font-weight: 700; display: flex; justify-content: center; align-items: center; margin-bottom: 10px; }
.split-actions { display: flex; gap: 10px; padding: 0 20px; }
.split-actions button { flex: 1; }
.disclaimer-text { font-size: 12px; color: #b3b3b3; text-align: center; padding: 20px; line-height: 1.5; }

.success-center { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 20px 30px; }
.success-center .check-circle { 
    width: 60px; height: 60px; border-radius: 50%; 
    background-color: transparent !important; 
    border: 2.5px solid #d1d5db; 
    color: #ffffff; font-size: 28px; 
    display: flex; align-items: center; justify-content: center; 
    margin-bottom: 20px; box-shadow: none; 
}
.success-center h2 { font-size: 17px; font-weight: 500 !important; color: #ffffff; }

.insufficient-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 30px;
}
.warning-icon { font-size: 48px; color: #e6e6e6; margin-bottom: 20px; }
.insufficient-center h2 { font-size: 16px; font-weight: 500 !important; color: #ffffff; text-align: center; line-height: 1.5; }

.action-footer { padding: 20px; }
.btn-primary { background-color: #4078ff; color: white; border: none; width: 100%; padding: 14px; border-radius: 8px; font-weight: 600; font-size: 16px; cursor: pointer; transition: 0.2s; }
.btn-primary:disabled { background-color: #2a2b2f; color: #7a7b7f; cursor: not-allowed; }
.btn-primary:active { transform: scale(0.97); }
.btn-secondary { background-color: #2a2b2f; color: white; border: none; width: 100%; padding: 14px; border-radius: 8px; font-weight: 600; font-size: 16px; cursor: pointer; transition: 0.2s; }
.btn-secondary:active { transform: scale(0.97); }
.footer-note { text-align: center; font-size: 12px; color: #b3b3b3; margin-top: 15px; }

.key-modal { background: #1a1b1d; padding: 30px; border-radius: 12px; text-align: center; border: 1px solid #2a2b2f; max-width: 90%; width: 400px; margin: auto; position: relative; top: 50%; transform: translateY(-50%); }
.key-modal h2 { margin-bottom: 10px; font-size: 22px; }
.key-modal p { color: #b3b3b3; font-size: 14px; margin-bottom: 20px; }
#access-key-input { width: 100%; background: #232527; border: 2px solid transparent; color: white; padding: 12px; border-radius: 8px; font-size: 16px; text-align: center; margin-bottom: 15px; outline: none; text-transform: uppercase; }
#access-key-input:focus { border-color: #4078ff; }

.key-status-text {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    margin-top: 15px;
    margin-bottom: 40px;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    color: #b3b3b3;
}
.status-active { color: #22c55e !important; }
.status-expired { color: #ef4444 !important; }

/* === TAMBAHAN STYLE DROPDOWN SEARCH === */
.search-container { 
    padding: 0 20px 15px 20px; 
    position: relative; 
}

.search-dropdown {
    display: none;
    position: absolute;
    top: 55px;
    left: 20px;
    right: 20px;
    background-color: #2a2b2f;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    max-height: 220px;
    overflow-y: auto;
    z-index: 999;
    border: 1px solid #393b3d;
}

.search-dropdown.active {
    display: block;
}

.search-dropdown .friend-item {
    padding: 10px 15px;
    margin: 0;
    border-bottom: 1px solid #393b3d;
}

.search-dropdown .friend-item:last-child {
    border-bottom: none;
}

