/* =========================================
   1. CSS CHUNG VÀ GIAO DIỆN TRANG CHỦ (HUB)
========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { background-color: #f4f5f7; color: #333; line-height: 1.6; overflow-x: hidden; user-select: none; -webkit-user-select: none; }
a { text-decoration: none; }

.main-wrapper { max-width: 600px; margin: 0 auto; background-color: #fff; min-height: 100vh; position: relative; box-shadow: 0 0 15px rgba(0,0,0,.05); overflow-x: hidden; }

/* --- Global Loader --- */
#global-loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.85); backdrop-filter: blur(3px); z-index: 999999; display: none; align-items: center; justify-content: center; flex-direction: column; }
.global-spinner { border: 5px solid #f3f3f3; border-top: 5px solid #2ecc71; border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; margin-bottom: 15px; }
.loader-text { color: #2ecc71; font-weight: 700; font-size: 1.1rem; }

/* --- Modals Dùng Chung --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 9999; animation: fadeInOverlay .3s ease forwards; }
.glass-backdrop { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-content { background-color: #fff; width: 85%; max-width: 350px; padding: 25px 20px; border-radius: 16px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.2); transform: scale(.9); animation: popIn .3s ease forwards; position: relative; }
.modal-logo { width: 70px; height: 70px; border-radius: 15px; margin: 0 auto 15px; display: block; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.modal-title-green { color: #2ecc71; font-size: 1.4rem; font-weight: 800; }
.modal-title-orange { color: #f39c12; font-size: 1.4rem; font-weight: 800; }
.modal-title-blue { color: #3498db; font-size: 1.4rem; font-weight: 800; }
.modal-title-red { color: #e74c3c; font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }

.modal-icon-orange { font-size: 3.5rem; color: #f39c12; margin-bottom: 10px; }
.modal-icon-blue { font-size: 3.5rem; color: #3498db; margin-bottom: 10px; }
.modal-icon-red { font-size: 3.5rem; color: #e74c3c; margin-bottom: 10px; }
.modal-icon-green { font-size: 3.5rem; color: #2ecc71; margin-bottom: 10px; }
.pop-anim { animation: popIn 0.5s ease; }

.modal-desc { color: #555; font-size: 1.05rem; margin-top: 10px; line-height: 1.5; margin-bottom: 20px; }

.btn-blue { color: #fff; border: none; padding: 12px 20px; width: 100%; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: transform .1s; }
.btn-blue:active { transform: scale(.96); }
.btn-green-bg { background: #2ecc71; }
.btn-orange-bg { background: #f39c12; }
.btn-blue-bg { background: #3498db; }
.btn-red-bg { background: #e74c3c; }

/* --- CSS Trang Chủ & Menu --- */
#hub-view { display: block; padding-bottom: 20px;}
.hub-page-section { display: none; animation: fadeIn .4s ease; }
.hub-page-section.active { display: block; }

.hub-header { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid #f0f0f0; position: sticky; top: 0; background: #fff; z-index: 100; }
.hub-logo-area { display: flex; align-items: center; gap: 10px; }
.hub-logo-area img { width: 32px; height: 32px; border-radius: 8px; }
.hub-logo-text { font-size: 1.1rem; font-weight: 700; color: #2ecc71; letter-spacing: -.5px; }
.hub-logo-text span { color: #555; font-weight: 500; font-size: .9rem; }
.hub-actions { display: flex; gap: 18px; color: #777; font-size: 1.2rem; cursor: pointer; }

/* --- Khung tìm kiếm --- */
.hub-search-container { display: none; padding: 15px 20px; background: #fff; border-bottom: 1px solid #eee; animation: slideDown 0.3s ease; }
.hub-search-box { display: flex; align-items: center; background: #f4f5f7; border-radius: 20px; padding: 5px 15px; }
.hub-search-box input { flex: 1; border: none; background: transparent; padding: 10px 5px; outline: none; font-size: 0.95rem; }
.hub-search-box button { background: none; border: none; color: #2ecc71; font-size: 1.1rem; cursor: pointer; }
.search-error-msg { color: #e74c3c; font-size: 0.85rem; margin-top: 8px; display: none; }

/* --- Sidebar Menu --- */
.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); z-index: 10000; display: none; opacity: 0; transition: opacity .3s ease; }
.sidebar-overlay.active { display: block; opacity: 1; }
.sidebar-menu { position: fixed; top: 0; right: -280px; width: 280px; height: 100%; background: #fff; z-index: 10001; transition: right .3s ease; box-shadow: -5px 0 15px rgba(0,0,0,.1); display: flex; flex-direction: column; }
.sidebar-menu.active { right: 0; }
.sidebar-header { padding: 20px; color: #fff; display: flex; align-items: center; justify-content: space-between; }
.bg-green { background: #2ecc71; }
.sidebar-header h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.sidebar-header img { width: 35px; height: 35px; border-radius: 8px; }
.close-menu-btn { background: 0 0; border: none; color: #fff; font-size: 1.8rem; cursor: pointer; }
.sidebar-links { list-style: none; padding: 15px 0; flex: 1; }
.sidebar-links li { border-bottom: 1px solid #f0f0f0; }
.sidebar-links a { display: flex; align-items: center; gap: 15px; padding: 18px 25px; color: #444; font-size: 1.05rem; font-weight: 500; transition: background .2s; }
.sidebar-links a i { width: 20px; text-align: center; font-size: 1.2rem; }
.icon-green { color: #2ecc71; }
.sidebar-links a.active, .sidebar-links a:hover { background: #f4f8ff; color: #2b579a; }

/* --- Bong bóng chat Hub --- */
.hub-chat-btn { position: fixed; bottom: 20px; left: 20px; width: 55px; height: 55px; background-color: #0088cc; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 4px 15px rgba(0,136,204,.4); z-index: 990; transition: transform .3s ease; animation: pulse-telegram 2s infinite; text-decoration: none; }
.hub-chat-btn:hover { transform: scale(1.1); }

.app-slider-container { padding: 20px 0 20px 20px; }
.app-slider { display: flex; overflow-x: auto; gap: 15px; padding-right: 20px; scrollbar-width: none; }
.app-slider::-webkit-scrollbar { display: none; }
.app-card-hub { min-width: 110px; width: 110px; border: 1px solid #f0f0f0; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,.02); transition: transform .2s; }
.app-card-hub:active { transform: scale(.95); }
.app-icon-hub { width: 100%; aspect-ratio: 1/1; border-radius: 12px; object-fit: cover; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.app-name-hub { font-size: .9rem; font-weight: 600; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.app-dev-hub { font-size: .75rem; color: #888; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-rating-hub { font-size: .8rem; color: #f39c12; font-weight: 600; }

.section-title-hub { padding: 0 20px; font-size: 1.4rem; font-weight: 700; color: #333; margin-bottom: 15px; }
.hot-topics { padding: 0 20px; display: flex; flex-direction: column; gap: 12px; }
.topic-card { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-radius: 12px; cursor: pointer; }
.topic-orange { background-color: #fff6e5; color: #d35400; }
.topic-pink { background-color: #fde8ed; color: #c0392b; }
.topic-blue { background-color: #e8f0fe; color: #2980b9; }
.topic-left { display: flex; align-items: center; gap: 15px; font-weight: 600; font-size: 1.05rem; }
.topic-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .9rem; }
.topic-orange .topic-icon { background-color: #f39c12; }
.topic-pink .topic-icon { background-color: #e74c3c; }
.topic-blue .topic-icon { background-color: #3498db; }
.topic-avatars { display: flex; }
.topic-avatars img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px; object-fit: cover; }

.promo-banner { margin: 30px 20px; background: linear-gradient(135deg, #f0f4fd, #e1e8fa); padding: 30px 20px; border-radius: 16px; text-align: center; box-shadow: 0 8px 20px rgba(225,232,250,.5); }
.promo-banner h3 { color: #2b579a; font-size: 1.2rem; margin-bottom: 20px; line-height: 1.5; }
.btn-join { background-color: #4a80f0; color: #fff; border: none; padding: 12px 30px; border-radius: 25px; font-size: 1rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 4px 15px rgba(74,128,240,.3); }

/* --- Footer Hub --- */
.hub-footer { background-color: #f8f9fa; padding: 40px 20px 20px; border-top: 1px solid #eaeaea; margin-top: 20px; }
.hub-footer-brand h2 { color: #2ecc71; font-size: 1.6rem; margin-bottom: 10px; font-weight: 800; }
.hub-footer-brand p { color: #555; font-size: 0.9rem; line-height: 1.6; margin-bottom: 25px; text-align: justify; }
.hub-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 20px; margin-bottom: 30px; }
.hub-footer-col h4 { color: #333; font-size: 0.95rem; margin-bottom: 15px; text-transform: uppercase; font-weight: 700; }
.hub-footer-col ul { list-style: none; padding: 0; }
.hub-footer-col ul li { margin-bottom: 10px; }
.hub-footer-col ul li a { color: #666; font-size: 0.9rem; transition: color 0.2s; }
.hub-footer-col ul li a:hover { color: #2ecc71; }
.hub-footer-bottom { border-top: 1px solid #eaeaea; padding-top: 20px; text-align: center; }
.hub-footer-bottom p { color: #777; font-size: 0.85rem; margin-bottom: 12px; }
.hub-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.hub-footer-links a { color: #666; font-size: 0.85rem; }
.hub-footer-links a:hover { color: #2ecc71; text-decoration: underline; }

/* =========================================
   2. CSS PHẦN VÍ (WALLET) 
========================================= */
.wallet-container { padding: 20px; background: #f4f5f7; min-height: 100vh; }
.wallet-card { background: #fff; border-radius: 16px; padding: 25px 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 20px; text-align: center; }
.balance-card { background: linear-gradient(135deg, #2ecc71, #27ae60); color: #fff; }
.balance-card h3 { font-size: 1rem; font-weight: 500; margin-bottom: 5px; opacity: 0.9; }
.balance-card h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: 1px; }

.wallet-section-title { color: #2b579a; font-size: 1.3rem; margin-bottom: 10px; }
.wallet-section-desc { color: #666; font-size: 0.95rem; margin-bottom: 15px; }
.deposit-input { width: 100%; padding: 15px; border-radius: 10px; border: 2px solid #eee; font-size: 1.1rem; margin: 15px 0; outline: none; transition: border-color 0.3s; text-align: center; font-weight: bold; color: #333; }
.deposit-input:focus { border-color: #2ecc71; }

.btn-wallet-action { background: #2ecc71; color: #fff; border: none; padding: 15px 30px; border-radius: 10px; font-size: 1.1rem; font-weight: 700; width: 100%; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3); }
.btn-wallet-action:active { transform: scale(0.98); }
.btn-wallet-confirm { background: #3498db; box-shadow: 0 4px 10px rgba(52,152,219,0.3); }
.btn-wallet-cancel { width: 100%; background: none; border: none; color: #999; margin-top: 15px; font-size: 0.95rem; text-decoration: underline; cursor: pointer; }
.btn-wallet-goto { width:100%; background:linear-gradient(135deg, #3498db, #2980b9); color:#fff; border:none; padding:12px; border-radius:10px; font-weight:700; font-size:1rem; cursor:pointer; box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3); }
.btn-wallet-close { width:100%; background:linear-gradient(135deg, #2ecc71, #27ae60); color:#fff; border:none; padding:12px; border-radius:10px; font-weight:700; font-size:1rem; cursor:pointer; box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3); }

.deposit-details-card { display: none; text-align: left; }
.deposit-details-card h3 { color: #2b579a; font-size: 1.2rem; margin-bottom: 15px; text-align: center; }
.wallet-warning-text { text-align: center; color: #e74c3c; font-weight: 600; font-size: 0.95rem; }
.timer-box { font-size: 2rem; font-weight: 900; color: #e74c3c; text-align: center; margin: 15px 0 25px; letter-spacing: 2px; }

.qr-box { background: #f8f9fa; padding: 15px; border-radius: 12px; margin-bottom: 20px; text-align: center; border: 1px dashed #ccc; }
.qr-box img { width: 200px; height: 200px; border-radius: 8px; margin-bottom: 10px; }
.qr-box p { font-size: 0.85rem; color: #666; }

.bank-info-container { background: #fdfdfd; border: 1px solid #eee; border-radius: 10px; padding: 0 15px; margin-bottom: 20px; }
.bank-info-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.bank-info-row:last-child { border-bottom: none; }
.bank-info-label { color: #666; font-size: 0.95rem; }
.bank-info-value { font-weight: 700; color: #222; font-size: 1rem; flex: 1; text-align: right; padding-right: 10px; }
.bank-info-value.highlight { color: #e74c3c; font-size: 1.1rem; }
.copy-btn { background: #e8f0fe; color: #3498db; border: none; width: 32px; height: 32px; border-radius: 6px; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.copy-btn:active { background: #3498db; color: #fff; }

/* =========================================
   3. CSS PHẦN LIÊN HỆ (LIGHT MODE)
========================================= */
.contact-wrapper { padding: 20px; background: #f4f5f7; min-height: 100vh; }
.contact-form-card { background: #fff; border-radius: 16px; padding: 25px 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 25px; border: 1px solid #eaeaea; }
.help-center-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; border-left: 4px solid #e74c3c; padding-left: 15px; color: #222; }
.help-center-title i { font-size: 1.6rem; color: #e74c3c; }

.form-light-box h4 { color: #2b579a; font-size: 1.2rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; justify-content: center; font-weight: 700;}
.text-red { color: #e74c3c; }
.light-input { width: 100%; background: #f9f9f9; border: 1px solid #ddd; color: #333; padding: 15px; border-radius: 10px; margin-bottom: 15px; font-size: 1rem; outline: none; transition: border-color 0.3s;}
.light-input:focus { border-color: #2b579a; background: #fff; }
.light-textarea { resize: none; height: 120px; }

.upload-btn-light { width: 100%; border: 2px dashed #3498db; color: #3498db; background: rgba(52, 152, 219, 0.05); padding: 15px; border-radius: 10px; margin-bottom: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1rem; transition: background 0.3s;}
.upload-btn-light:hover { background: rgba(52, 152, 219, 0.1); }
.submit-btn-light { width: 100%; background: #e74c3c; color: #fff; border: none; padding: 16px; border-radius: 10px; font-size: 1.1rem; font-weight: 700; cursor: pointer; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform 0.2s; box-shadow: 0 4px 10px rgba(231,76,60,0.3);}
.submit-btn-light:active { transform: scale(0.97); }

.grid-2-actions-light { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.action-box-light { background: #fff; border-radius: 16px; padding: 25px 15px; text-align: center; border: 1px solid #eaeaea; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; display: block; text-decoration: none; box-shadow: 0 4px 15px rgba(0,0,0,0.05);}
.action-box-light:active { transform: scale(0.95); }
.action-box-light i { font-size: 3rem; margin-bottom: 15px; display: block; }
.box-tele-light i { color: #0088cc; }
.box-zalo-light i { color: #0068ff; }
.action-box-light span { display: block; font-weight: 700; font-size: 1rem; color: #333; }

/* =========================================
   4. CSS TRANG CHI TIẾT APP DPI 
========================================= */
#dpi-app-page { display: none; animation: slideInRight .3s ease; padding-bottom: 50px; background: #fdfdfd; min-height: 100vh;}
.dpi-app-header { background-color: #2b579a; color: #fff; padding: 12px 20px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 5px rgba(0,0,0,.1); }
.dpi-app-header h1 { font-size: 1.1rem; font-weight: 600; letter-spacing: 0.5px; }
.dpi-logo { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }

.dpi-main-container { padding: 30px 20px; text-align: center; background: #fff; min-height: calc(100vh - 60px); }
.dpi-big-icon { width: 110px; height: 110px; border-radius: 22px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); margin-bottom: 15px; }
.dpi-main-title { color: #e74c3c; font-size: 1.7rem; font-weight: 800; text-transform: uppercase; margin-bottom: 30px; letter-spacing: 0.5px; }

.dpi-os-selector { display: flex; gap: 15px; margin-bottom: 25px; }
.os-btn { flex: 1; padding: 15px; background: #f8f9fa; border: 2px solid #eee; border-radius: 12px; color: #555; font-weight: 600; cursor: pointer; transition: all 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.os-btn i { font-size: 1.8rem; margin-bottom: 5px; }
.os-btn.active { background: #e8f0fe; border-color: #3498db; color: #2b579a; box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2); }

#dpi-device-input { width: 100%; padding: 18px 15px; border-radius: 12px; border: 2px solid #eee; font-size: 1.05rem; margin-bottom: 25px; outline: none; transition: border-color 0.3s; }
#dpi-device-input:focus { border-color: #e74c3c; }

.btn-dpi-search { width: 100%; padding: 18px; background: linear-gradient(135deg, #2ecc71, #27ae60); color: #fff; border: none; border-radius: 12px; font-size: 1.15rem; font-weight: 800; cursor: pointer; transition: transform 0.2s; }
.btn-dpi-search:active { transform: scale(0.98); }
.btn-dpi-search i { margin-right: 8px; }

.dpi-terminal-wrapper { text-align: left; margin-top: 25px; }
.dpi-result-hud { background: #1e293b; border-radius: 16px; padding: 30px 20px 25px 20px; min-height: 180px; color: #fff; box-shadow: inset 0 4px 15px rgba(0,0,0,0.6), 0 10px 20px rgba(0,0,0,0.05); position: relative; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;}
.hud-dots { position: absolute; top: 12px; left: 15px; display: flex; gap: 6px; }
.dot-red { width: 12px; height: 12px; border-radius: 50%; background: #ef4444; }
.dot-yellow { width: 12px; height: 12px; border-radius: 50%; background: #f59e0b; }
.dot-green { width: 12px; height: 12px; border-radius: 50%; background: #10b981; }

#dpi-terminal-content { margin-top: 15px; font-size: 1rem; line-height: 1.8; }
.cursor-blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.dpi-hud-title { text-align: center; color: #38bdf8; font-size: 1.2rem; font-weight: 800; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px;}
.stat-item { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.05); padding: 12px 15px; border-radius: 8px; margin-bottom: 8px; border-left: 4px solid #2ecc71; opacity: 0; transform: translateY(10px); animation: slideUpFade 0.4s ease forwards; }
.stat-label { font-size: 0.95rem; color: #cbd5e1; display: flex; align-items: center; gap: 10px;}
.stat-label i { color: #f39c12; width: 16px; text-align: center;}
.stat-value { font-size: 1.15rem; font-weight: 800; color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.3);}

.dpi-advisory { margin-top: 25px; padding: 15px; background: rgba(231, 76, 60, 0.1); border: 1px solid rgba(231, 76, 60, 0.3); border-radius: 8px; color: #ff7675; font-size: 0.9rem; text-align: center; font-weight: 600; line-height: 1.5; animation: pulse-text 2s infinite; opacity: 0; animation-delay: 1.5s; animation-fill-mode: forwards; display: none;}

/* =========================================
   5. CSS TRANG CHI TIẾT APP CŨ (CHUNHATPHAMFF)
========================================= */
#app-detail-page { display: none; animation: slideInRight .3s ease; }
.app-detail-header { background-color: #2b579a; color: #fff; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 5px rgba(0,0,0,.1); }
.header-left { display: flex; align-items: center; gap: 10px; }
.btn-back-hub { background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; margin-right: 5px; }
.header-logo { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }
.app-detail-header h1 { font-size: 1.1rem; font-weight: 600; letter-spacing: .5px; }
.menu-btn { background: 0 0; border: none; cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .3s ease; }
.menu-btn:hover { transform: scale(1.1); }

/* Sidebar Detail */
.menu-link.active, .menu-link:hover { background: #f4f8ff; color: #2b579a; }

/* Các Section trong Detail */
.container-app { padding-bottom: 90px; }
.page-section { display: none; animation: fadeIn .4s ease; }
.page-section.active { display: block; }
.app-header { padding: 20px; display: flex; align-items: center; border-bottom: 1px solid #eee; background: #fff;}
.app-icon { width: 85px; height: 85px; border-radius: 18px; margin-right: 18px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,.1); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-info h2 { font-size: 1.5rem; color: #111; margin-bottom: 4px; }
.app-info p.category { color: #2b579a; font-size: .9rem; margin-bottom: 6px; font-weight: 500; }
.rating { color: #f39c12; font-size: .85rem; }

.tabs { display: flex; border-bottom: 2px solid #eee; background: #fafafa; }
.tab-btn { flex: 1; background: 0 0; border: none; padding: 14px 0; font-size: .95rem; font-weight: 600; color: #777; cursor: pointer; transition: all .3s; position: relative; }
.tab-btn.active { color: #2b579a; }
.tab-btn.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 3px; background-color: #2b579a; border-radius: 3px 3px 0 0; }
.tab-content { display: none; padding: 20px; animation: fadeIn .4s ease; background: #fff;}
.tab-content.active { display: block; }

.content-section { margin-bottom: 20px; }
.content-section h3 { font-size: 1.15rem; color: #222; margin-bottom: 12px; border-left: 4px solid #2b579a; padding-left: 10px; background-color: #f8f9fa; padding: 8px 10px; border-radius: 4px; }
.content-section p, .content-section ul { font-size: .95rem; color: #444; margin-bottom: 10px; text-align: justify; }
.content-section ul { padding-left: 20px; }
.content-section li { margin-bottom: 8px; }
.faq-q { font-size: 1.1rem; color: #333; font-weight: 700; margin-top: 20px; margin-bottom: 8px; }

.info-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.info-table tr { border-bottom: 1px solid #eee; }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 12px 15px; font-size: .95rem; }
.info-table td:first-child { font-weight: 600; color: #555; width: 40%; background-color: #fafafa; }
.info-table td:last-child { color: #222; }
.rating-stars { color: #f39c12; letter-spacing: 2px; }
.text-link-blue { color: #2b579a; }

.ad-slot { width: 100%; margin: 25px 0; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,.1); }
.ad-slot a { display: block; width: 100%; height: 100%; }
.ad-slot img { width: 100%; height: auto; display: block; transition: transform .3s ease; }
.ad-slot img:hover { transform: scale(1.02); }
.ad-slot-bottom { margin-bottom: 50px; }

.about-core-section { border-top: 2px dashed #ddd; padding-top: 20px; margin-top: 20px; }
.about-core-section h3 { font-size: 1.4rem; text-align: center; margin-bottom: 20px; background: none; border-left: none; padding: 0;}

/* File / Cập nhật */
.page-header-title { background-color: #f8f9fa; padding: 20px; border-bottom: 1px solid #eaeaea; text-align: center; }
.page-header-title h2 { color: #2b579a; font-size: 1.4rem; }
.page-header-title p { color: #666; font-size: .95rem; margin-top: 5px; }

.file-container, .update-container { padding: 20px; background: #fff; }
.file-card { background: #fff; border: 1px solid #eaeaea; border-radius: 12px; padding: 20px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,.04); transition: transform .2s; }
.file-card-standard { border-left: 5px solid #2b579a; }
.file-card-vip { border-left: 5px solid #f39c12; }
.file-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }

.file-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px dashed #eee; padding-bottom: 10px; }
.file-card-header h3 { font-size: 1.25rem; color: #111; display: flex; align-items: center; gap: 8px; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700; color: #fff; }
.badge-green { background-color: #2ecc71; }
.badge-orange { background-color: #f39c12; }
.badge-blue { background-color: #3498db; }

.file-desc { font-size: .95rem; color: #444; margin-bottom: 15px; text-align: justify; }
.file-features { background-color: #f8f9fa; padding: 15px; border-radius: 8px; margin-bottom: 15px; }
.file-features h4 { font-size: 1rem; color: #2b579a; margin-bottom: 10px; }
.features-vip h4 { color: #f39c12; }
.file-features ul { list-style-type: none; padding: 0; }
.file-features ul li { position: relative; padding-left: 25px; margin-bottom: 8px; font-size: .9rem; color: #555; }
.file-features ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: #2ecc71; font-size: .9rem; }

.btn-download-file { display: block; width: 100%; padding: 12px; background-color: #3ddc84; color: #000; text-align: center; border-radius: 8px; font-weight: 700; font-size: 1rem; transition: all .2s; }
.btn-download-file:hover { background-color: #2b579a; color: #fff; }
.btn-download-file i { margin-right: 8px; }

.upcoming-section { margin-top: 40px; padding-top: 20px; border-top: 2px solid #eee; }
.upcoming-section h3 { color: #222; margin-bottom: 15px; font-size: 1.2rem; text-align: center; }
.file-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; border: 1px solid #eaeaea; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.02); }
.file-table td, .file-table th { padding: 12px 10px; text-align: left; border-bottom: 1px solid #eaeaea; }
.file-table th { background-color: #f8f9fa; color: #2b579a; font-weight: 600; }
.status-dev { color: #f39c12; font-weight: 700; font-size: .85rem; display: flex; align-items: center; gap: 5px; }

.update-card { background: #fff; border: 1px solid #eaeaea; border-radius: 12px; padding: 20px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,.04); position: relative; }
.update-card.latest { border-left: 5px solid #e74c3c; }
.update-card.older { border-left: 5px solid #95a5a6; opacity: .9; }
.update-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed #eee; padding-bottom: 10px; margin-bottom: 15px; }
.update-version { font-size: 1.3rem; color: #2b579a; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.update-date { font-size: .9rem; color: #888; font-weight: 500; }
.update-meta { display: flex; flex-wrap: wrap; gap: 15px; font-size: .85rem; color: #666; margin-bottom: 15px; background: #f8f9fa; padding: 10px 15px; border-radius: 8px; }
.update-meta span i { color: #2b579a; margin-right: 5px; }
.update-content h4 { font-size: 1.05rem; color: #333; margin-top: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.update-content ul { list-style: none; padding: 10px 0 10px 10px; margin-bottom: 15px; }
.update-content ul li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: .95rem; color: #444; line-height: 1.5; }
.update-content ul li::before { content: '-'; position: absolute; left: 0; color: #2b579a; font-weight: 700; }
.feature-new { color: #2ecc71; }
.feature-fix { color: #e67e22; }
.feature-security { color: #e74c3c; }

/* Modals Download / Reserve */
.download-modal-box { max-width: 420px; padding: 40px 25px; }
.close-download-btn { position: absolute; top: 15px; right: 15px; background: 0 0; border: none; font-size: 1.5rem; color: #888; cursor: pointer; line-height: 1; }
.loader { border: 6px solid #f3f3f3; border-top: 6px solid #2b579a; border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite; margin: 0 auto; }
.loader-app-text { margin-top:20px; font-weight:700; font-size:1.1rem; color:#2b579a; text-align: center; }
.loader-app-sub { font-size:.9rem; color:#666; margin-top:5px; text-align: center; }

.dl-success-title { color:#e74c3c; font-size:1.25rem; font-weight:700; margin-bottom:15px; text-align: center;}
.dl-success-desc { color:#444; font-size:.95rem; margin-bottom:10px; text-align: center; }
.dl-action-link { color:#2ecc71; font-weight:700; font-size:1.1rem; display:block; margin-bottom:20px; text-decoration:underline; text-align: center; }
.dl-footer-note { border-top:1px dashed #ccc; padding-top:15px; color:#2b579a; font-weight:600; font-size:.95rem; text-align: center; }

.dl-err-icon { font-size:3rem; color:#e74c3c; margin-bottom:10px; text-align: center; }
.dl-err-title { color:#e74c3c; font-size:1.3rem; font-weight:700; margin-bottom:15px; text-transform:uppercase; text-align: center; }
.dl-err-desc { color:#444; font-size:1rem; margin-bottom:20px; line-height:1.6; font-weight:500; text-align: center; }
.dl-err-btn { background-color:#08c; color:#fff; padding:14px 20px; border-radius:8px; font-weight:700; text-decoration:none; display:block; width:100%; transition:opacity .2s; text-align: center;}

.reserve-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background-color:rgba(15,23,42,.85); z-index:100000; overflow-y:auto; backdrop-filter:blur(15px); -webkit-backdrop-filter:blur(15px); animation:slideInRight .4s ease; }
.reserve-close-btn { position:absolute; top:20px; right:25px; background:0 0; border:none; font-size:3rem; color:#fff; cursor:pointer; line-height:1; transition:color .2s; text-shadow:0 2px 10px rgba(0,0,0,.5); }
.reserve-loader-wrapper { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100vh; text-align:center; }
.loader-reserve { border: 5px solid rgba(255,255,255,.3); border-top: 5px solid #ff6b6b; border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite; margin: 0 auto 20px; }
.reserve-loading-text { font-size:1.2rem; color:#ff6b6b; font-weight:700; text-shadow:0 2px 5px rgba(0,0,0,.5); }
.reserve-loading-sub { color:#eee; font-size:.95rem; margin-top:10px; }

.reserve-card { background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border: 2px solid rgba(255,255,255,.2); border-radius: 20px; padding: 35px 25px; box-shadow: 0 20px 50px rgba(0,0,0,.3); max-width: 500px; margin: 10vh auto 0; text-align: center; position: relative; }
.reserve-logo { width:85px; height:85px; border-radius:18px; margin-bottom:15px; box-shadow:0 10px 25px rgba(43,87,154,.4); border:2px solid #fff; }
.reserve-title { background:linear-gradient(135deg,#2b579a,#e74c3c); -webkit-background-clip:text; -webkit-text-fill-color:transparent; font-size:1.8rem; margin-bottom:20px; font-weight:900; letter-spacing:.5px; }
.reserve-notice-box { background:#f8f9fa; border-left:4px solid #2b579a; padding:15px; border-radius:8px; margin-bottom:25px; font-size:1.05rem; color:#333; line-height:1.7; text-align:justify; font-weight:500; }
.reserve-notice-box span { color:#e74c3c; font-weight:700; }
.btn-special { background: linear-gradient(45deg,#ff6b6b,#c0392b); color: #fff; padding: 18px 20px; border: none; border-radius: 30px; font-size: 1.15rem; font-weight: 800; cursor: pointer; box-shadow: 0 6px 20px rgba(192,57,43,.4); transition: transform .2s, box-shadow .2s; animation: pulse-btn 2s infinite; width: 100%; margin-top: 20px; text-transform: uppercase; letter-spacing: .5px; }
.btn-special:hover { transform: scale(1.05); }

.reserve-success-box { margin-top:25px; }
.reserve-success-icon { font-size:3.5rem; color:#2ecc71; margin-bottom:10px; animation:popIn .5s ease; }
.reserve-success-text { color:#27ae60; font-weight:800; font-size:1.2rem; border:2px solid #2ecc71; padding:20px; border-radius:15px; background:linear-gradient(135deg,#f0fdf4,#e2fbe8); box-shadow:0 10px 25px rgba(46,204,113,.2); text-transform:uppercase; letter-spacing:.5px; }
.reserve-success-sub { color:#555; font-size:.95rem; margin-top:10px; font-weight:500; }

/* Footers Detail */
.advanced-footer { background-color: #f8f9fa; border-top: 1px solid #eaeaea; padding: 40px 20px; font-size: .9rem; color: #555; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 25px; margin-bottom: 30px; }
.footer-col h4 { color: #2b579a; font-size: 1.05rem; margin-bottom: 15px; text-transform: uppercase; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #555; transition: color .2s; }
.footer-col ul li a:hover { color: #2b579a; text-decoration: underline; }
.social-icons { display: flex; gap: 12px; flex-wrap: wrap; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: #fff; border: 1px solid #ddd; border-radius: 50%; color: #555; font-size: 1.1rem; transition: all .3s ease; }
.social-icons a:hover { background: #2b579a; color: #fff; border-color: #2b579a; transform: translateY(-3px); }
.footer-languages { border-top: 1px solid #eaeaea; padding-top: 25px; text-align: center; }
.footer-languages h4 { color: #333; margin-bottom: 15px; font-size: 1rem; }
.lang-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font-size: .85rem; line-height: 1.8; }
.lang-list a { color: #666; padding: 0 5px; }
.lang-list a:hover { color: #2b579a; }
.lang-list a.active-lang { font-weight: 700; color: #2b579a; }
.footer-copyright { margin-top: 25px; padding-top: 20px; border-top: 1px solid #eaeaea; text-align: center; }
.footer-copyright h3 { font-size: 1rem; color: #222; margin-bottom: 5px; }
.footer-copyright p { font-size: .85rem; color: #777; }

/* Fixed Buttons Bottom */
.bottom-actions { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255,255,255,.95); backdrop-filter: blur(5px); padding: 12px 20px; box-shadow: 0 -4px 15px rgba(0,0,0,.08); display: flex; justify-content: center; z-index: 100; }
.container-actions { max-width: 600px; width: 100%; display: flex; gap: 12px; }
.btn-download { flex: 1; padding: 14px 0; border-radius: 10px; text-align: center; font-weight: 600; font-size: 1rem; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .2s, transform .1s; cursor: pointer; }
.btn-download:active { transform: scale(.98); }
.btn-ios { background-color: #000; }
.btn-android { background-color: #3ddc84; color: #000; }

.zalo-chat-btn { position: fixed; bottom: 90px; left: 15px; width: 55px; height: 55px; background-color: #0068ff; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 4px 10px rgba(0,104,255,.4); z-index: 1000; transition: transform .3s ease; animation: pulse-zalo 2s infinite; }
.zalo-chat-btn:hover { transform: scale(1.1); }

/* Popup Quảng Cáo Gốc */
.popup-ad { position: fixed; bottom: 90px; right: 15px; width: 260px; background: #fff; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,.2); padding: 0; z-index: 1000; display: none; border: 1px solid #eee; overflow: hidden; }
.popup-ad.show { display: block; animation: slideInRight .5s cubic-bezier(.25,.8,.25,1) forwards; }
.popup-header { position: absolute; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 5px 10px; background: rgba(255,255,255,.7); z-index: 10; }
.popup-header span { font-size: .7rem; color: #555; text-transform: uppercase; font-weight: 700; }
.popup-close { background: rgba(0,0,0,.5); border: none; font-size: 1.2rem; color: #fff; cursor: pointer; line-height: 1; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.popup-close:hover { color: #ff4757; }
.popup-content { width: 100%; display: block; padding: 0; margin-top: 25px; }
.popup-content a { display: block; width: 100%; height: 100%; }
.popup-content img { width: 100%; height: auto; display: block; }

/* =========================================
   6. CSS TRANG APP FILE FF (UPDATE MỚI NHẤT)
========================================= */
#fileff-app-page { display: none; animation: slideInRight .3s ease; background-color: #f4f5f7; min-height: 100vh; padding-bottom: 50px;}
.fileff-header { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); color: #fff; padding: 15px 20px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 15px rgba(0,0,0,.15); }
.fileff-header img { width: 35px; height: 35px; border-radius: 8px; border: 2px solid rgba(255,255,255,0.3); }
.fileff-header h1 { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.5px; }

.ff-main-tabs { display: flex; background: #fff; padding: 15px 20px; border-bottom: 1px solid #eee; gap: 10px; }
.ff-main-tab-btn { flex: 1; padding: 12px 0; border: none; background: #f0f4f8; border-radius: 12px; font-size: 1.05rem; font-weight: 700; color: #555; cursor: pointer; transition: all 0.3s; }
.ff-main-tab-btn.active { background: #2a5298; color: #fff; box-shadow: 0 4px 10px rgba(42, 82, 152, 0.3); }

.ff-sub-tabs { display: flex; padding: 15px 20px 0; gap: 15px; justify-content: center; }
.ff-sub-tab-btn { padding: 8px 25px; border: 2px solid #ddd; background: transparent; border-radius: 20px; font-size: 0.95rem; font-weight: 600; color: #666; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 8px; }
.ff-sub-tab-btn.active { border-color: #2ecc71; color: #2ecc71; background: rgba(46, 204, 113, 0.1); }
.ff-vip-sub-tab-btn { padding: 8px 25px; border: 2px solid #ddd; background: transparent; border-radius: 20px; font-size: 0.95rem; font-weight: 600; color: #666; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 8px; }
.ff-vip-sub-tab-btn.active { border-color: #2980b9; color: #2980b9; background: rgba(41, 128, 185, 0.1); }

.ff-content-section { display: none; padding: 15px 0; animation: fadeIn 0.4s ease; }
.ff-content-section.active { display: block; }
.ff-file-list-section, .ff-vip-list-section { display: none; padding: 0 15px; }
.ff-file-list-section.active, .ff-vip-list-section.active { display: block; }

/* FIX CẤU TRÚC CARD CHIA LÀM 2 DÒNG */
.ff-file-grid { display: grid; gap: 15px; width: 100%; margin: 0; padding: 0; }
.ff-file-card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 5px 15px rgba(0,0,0,0.04); display: flex; flex-direction: column; border: 1px solid #eaeaea; transition: transform 0.2s; width: 100%; box-sizing: border-box; }
.ff-file-card:active { transform: scale(0.98); }

.ff-file-top { display: flex; align-items: center; gap: 12px; width: 100%; }
.ff-file-icon { width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.icon-ios { background: #e8f0fe; color: #2a5298; }
.icon-adr { background: #e6f4ea; color: #3ddc84; }

.ff-file-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ff-file-info h4 { font-size: 0.95rem; color: #222; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.ff-file-meta { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #777; }
.ff-stars { color: #f39c12; letter-spacing: 1px; font-size: 0.8rem; }

/* Phần dưới chứa nút bấm */
.ff-file-bottom { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 15px; padding-top: 15px; border-top: 1px dashed #eaeaea; }

/* Nút Trái Tim (Yêu Thích) */
.ff-btn-fav { background: transparent; border: 1px solid #ddd; color: #aaa; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; transition: all 0.3s; flex-shrink: 0; }
.ff-btn-fav:active { transform: scale(0.9); }
.ff-btn-fav.active { color: #e74c3c; border-color: #e74c3c; background: rgba(231, 76, 60, 0.1); }
.ff-btn-fav.active i { font-weight: 900; } /* Chuyển icon sang nét liền (Solid) */

.ff-action-group { display: flex; align-items: center; gap: 10px; }

/* Nút Lấy Free & Mua */
.ff-btn-action { border: none; padding: 10px 22px; border-radius: 25px; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: transform 0.2s; color: #fff;}
.ff-btn-action:active { transform: scale(0.92); }
.ff-btn-get { background: linear-gradient(135deg, #2ecc71, #27ae60); box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3); }

/* ==== PHÂN BIỆT RÕ RÀNG GIAO DIỆN VIP iOS VÀ ANDROID ==== */
.vip-notice-box { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.04); margin-bottom: 20px; }
.vip-notice-box p { font-size: 0.95rem; color: #555; text-align: justify; line-height: 1.6; margin-bottom: 0; }
.vip-contact-btn { display: block; text-align: center; background: linear-gradient(135deg, #9b59b6, #8e44ad); color: #fff; border: none; padding: 14px; border-radius: 12px; font-weight: 700; text-decoration: none; margin-top: 15px; font-size: 1rem;}

/* Theme iOS VIP */
.vip-notice-ios { border-left: 5px solid #e74c3c; }
.vip-notice-ios h3 { color: #e74c3c; font-size: 1.2rem; margin-bottom: 10px; }
.vip-icon-ios { background: #fde8ed; color: #e74c3c; }
.vip-price-ios { color: #e74c3c; font-weight: 800; font-size: 1rem; }
.ff-btn-buy { background: linear-gradient(135deg, #3498db, #2980b9); box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3); }

/* Theme Android VIP */
.vip-notice-adr { border-left: 5px solid #2ecc71; }
.vip-notice-adr h3 { color: #2ecc71; font-size: 1.2rem; margin-bottom: 10px; }
.vip-icon-adr { background: #e6f4ea; color: #3ddc84; }
.vip-price-adr { color: #27ae60; font-weight: 800; font-size: 1rem; }
.btn-buy-adr { background: linear-gradient(135deg, #2ecc71, #27ae60); box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3); }

/* Theme Custom Chung */
.vip-notice-custom { border-left: 5px solid #9b59b6; margin-top: 25px; }
.vip-notice-custom h3 { color: #9b59b6; font-size: 1.2rem; margin-bottom: 10px; }

/* Modal Lấy File FF */
.ff-loader-container { text-align: center; padding: 20px; }
.ff-spinner { width: 60px; height: 60px; border: 5px solid #f3f3f3; border-top: 5px solid #2a5298; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
.ff-loading-title { color: #2a5298; font-size: 1.2rem; font-weight: 700; }
.ff-loading-desc { color: #666; font-size: 0.95rem; margin-top: 10px; }

.ff-close-btn { position: absolute; top: 12px; right: 15px; background: rgba(0,0,0,0.05); border: none; width: 30px; height: 30px; border-radius: 50%; font-size: 1.2rem; color: #555; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.ff-close-btn:active { background: rgba(231,76,60,0.2); color: #e74c3c; }

.ff-result-title { color: #2b579a; margin-bottom: 15px; font-size: 1.2rem; }
.ff-result-text { color: #333; font-size: 0.95rem; font-weight: 600; text-align: justify; margin-bottom: 10px; line-height: 1.5; }
.ff-result-timer { color: #e74c3c; font-size: 0.95rem; font-weight: 700; margin-bottom: 20px; text-align: center; }
.ff-btn-fake-dl { display: block; background: linear-gradient(135deg, #2a5298, #1e3c72); color: #fff; padding: 14px; border-radius: 12px; font-weight: 700; font-size: 1.05rem; text-decoration: none; margin-bottom: 20px; transition: all 0.2s; text-align: center; box-shadow: 0 4px 15px rgba(42,82,152,0.4); }
.ff-result-footer { border-top: 1px dashed #ccc; padding-top: 15px; text-align: center; }
.ff-result-footer p { color: #666; font-size: 0.85rem; margin-bottom: 5px; }
.ff-contact-link { color: #3498db; font-size: 0.9rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }

/* Hiệu ứng rung lắc nút khi gặp lỗi lấy file */
@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}
.btn-error-shake {
    animation: shakeError 0.4s ease-in-out;
    border: 2px solid #e74c3c !important;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.8) !important;
    background: linear-gradient(135deg, #c0392b, #e74c3c) !important;
    color: white !important;
}

/* =========================================
   7. KEYFRAMES CHUNG
========================================= */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-zalo { 0% { box-shadow: 0 0 0 0 rgba(0,104,255,.6); } 70% { box-shadow: 0 0 0 15px rgba(0,104,255,0); } 100% { box-shadow: 0 0 0 0 rgba(0,104,255,0); } }
@keyframes pulse-telegram { 0% { box-shadow: 0 0 0 0 rgba(0,136,204,.6); } 70% { box-shadow: 0 0 0 15px rgba(0,136,204,0); } 100% { box-shadow: 0 0 0 0 rgba(0,136,204,0); } }
@keyframes pulse-btn { 0% { box-shadow: 0 0 0 0 rgba(231,76,60,.7); } 70% { box-shadow: 0 0 0 15px rgba(231,76,60,0); } 100% { box-shadow: 0 0 0 0 rgba(231,76,60,0); } }
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes spin { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
@keyframes slideUpFade { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-text { 0% { opacity: 0.8; } 50% { opacity: 1; text-shadow: 0 0 8px rgba(231,76,60,0.6); } 100% { opacity: 0.8; } }

/* =========================================
   8. CSS RIÊNG CHO TRANG MENU HACK FF 
========================================= */
#menu-hack-app-page .app-detail-header {
    background: linear-gradient(135deg, #111111 0%, #c0392b 100%);
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

#menu-hack-app-page .app-info p.category {
    color: #e74c3c;
    font-weight: 700;
}

#menu-hack-app-page .tab-btn.active {
    color: #e74c3c;
}

#menu-hack-app-page .tab-btn.active::after {
    background-color: #e74c3c;
}

#hack-tinh-nang ul li strong {
    color: #c0392b;
    font-size: 1.05rem;
}

#hack-tinh-nang ul li::before {
    color: #e74c3c;
}
