/* MEGA888 Malaysia Theme (wrapper)
 * 为了快速切换文件名且不改模板结构，先通过导入沿用现有主题内容。
 * 后续如需完全迁移，可把 lu88-theme.css 的内容拷贝到本文件内，并删除导入。
 */
@import url('./lu88-theme.css');

/* Header button icon */
.auth-button .btn-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    margin-right: 8px;
    vertical-align: -3px;
}

/* 强制统一所有页面 Header 颜色（覆盖 header.css 的绿色） */
body .header {
    background: var(--mega-deep-dark-blue) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45) !important;
}

/* Enlarge logo only (keep compact header) */
.header-top {
    padding: 8px 0 !important;
}
.logo img {
    max-height: 40px !important; /* keep layout height */
    height: 40px !important;
    display: block;
    transform: scale(1.28);            /* visually enlarge without affecting layout height */
    transform-origin: left center;
    will-change: transform;
}
/* widen logo container on desktop to gain presence */
.logo {
    flex: 0 0 260px !important; /* reserve width for brand area */
    display: flex;
    align-items: center;
}
@media (max-width: 768px) {
    .logo img {
        max-height: 30px !important; /* keep layout height */
        height: 30px !important;
        transform: scale(1.22);
    }
    .logo {
        flex: initial !important; /* mobile keeps default centering */
    }
}

/* Footer palette overrides for MEGA888 Neon theme */
.modern-footer {
    background: linear-gradient(180deg, #0A0E3A 0%, #050A1F 100%) !important;
}
.footer-card {
    background: rgba(11, 20, 59, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.card-header {
    background: linear-gradient(180deg, rgba(16, 38, 84, 0.95), rgba(10, 14, 58, 0.9)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.card-header h3 {
    color: #FFFFFF !important;
}
.card-header i,
.platform-overview .card-content i {
    color: #1CB0F6 !important; /* Neon Blue */
}

/* Links and hover states */
.support-link:hover, 
.policy-link:hover {
    background-color: rgba(28, 176, 246, 0.12) !important;
    color: #1CB0F6 !important;
}

/* Quick actions */
.contact-button.live-chat {
    background: radial-gradient(100% 100% at 50% 0%, rgba(255,0,170,0.25) 0%, rgba(22,242,209,0.25) 100%), #0f1c39 !important;
    border: 1px solid rgba(28,176,246,0.25) !important;
}
.contact-button.register {
    background: linear-gradient(135deg, #FF8A00 0%, #FF3C00 100%) !important;
}

/* Bottom bar */
.footer-bottom {
    background-color: rgba(5, 10, 31, 0.9) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Footer icons color harmonization */
.platform-hours i, 
.platform-contact i, 
.platform-fax i, 
.platform-email i, 
.platform-website i, 
.platform-main i {
    color: #1CB0F6 !important;
}

/* ============================
   APP 下载区块样式
============================ */
.app-download-section {
    background: linear-gradient(180deg, rgba(6, 20, 43, 0.85) 0%, rgba(10, 35, 79, 0.85) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 28px 0 20px;
    position: relative;
}
.app-download-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.app-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}
.app-logo {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(28,176,246,0.25), 0 0 0 1px rgba(255,255,255,0.06) inset;
    object-fit: cover;
}
.app-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.app-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(28,176,246,0.25);
}
.app-subtitle {
    margin: 0;
    color: #B0B3C0;
    font-size: 14px;
}
.app-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.download-btn i {
    font-size: 20px;
}
.download-btn .btn-text {
    font-weight: 700;
}
.download-btn .btn-meta {
    opacity: .9;
    font-size: 12px;
    margin-left: 8px;
}
.download-btn.android {
    background: linear-gradient(135deg, #1CB0F6 0%, #16F2D1 100%);
}
.download-btn.ios {
    background: linear-gradient(135deg, #FF8A00 0%, #FF3C00 100%);
}
.download-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 14px 28px rgba(0,0,0,0.45);
}
.app-benefits {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 18px;
}
.app-benefits li {
    color: #B0B3C0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.app-benefits i {
    color: #FFD047;
}
@media (max-width: 992px) {
    .app-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 576px) {
    .app-download-wrapper {
        align-items: flex-start;
        flex-direction: column;
    }
    .app-actions {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    .app-logo {
        width: 64px;
        height: 64px;
        flex: 0 0 64px;
        border-radius: 12px;
    }
    .app-title { font-size: 18px; }
    .app-subtitle { font-size: 12px; }
    .download-btn {
        width: 100%;
        justify-content: center;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 14px;
    }
    .download-btn .btn-text { font-size: 14px; }
    .download-btn i { font-size: 18px; }
    .download-btn .btn-meta { display: none; }
    .app-benefits {
        grid-template-columns: 1fr;
    }
}

/* ============================
   关键数据与优势（新设计）
============================ */
.key-metrics-section {
    background: linear-gradient(180deg, rgba(10,14,58,0.55) 0%, rgba(6,20,43,0.55) 100%);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 22px 0;
}
.metrics {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.metric {
    display: flex;
    align-items: center;
    gap: 12px;
    background: radial-gradient(100% 100% at 0% 0%, rgba(28,176,246,0.14) 0%, rgba(16,242,209,0.08) 100%), rgba(11,20,59,0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.metric i {
    color: #1CB0F6;
    font-size: 22px;
}
.metric-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.metric-text strong {
    color: #FFFFFF;
    font-size: 18px;
    letter-spacing: .3px;
}
.metric-text span {
    color: #B0B3C0;
    font-size: 13px;
}
@media (max-width: 992px) {
    .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 576px) {
    .metrics {
        grid-template-columns: 1fr;
    }
    .metric {
        padding: 12px 14px;
    }
}

/* ============================
   How to start with MEGA888
============================ */
.howto-section {
    padding: 40px 0 50px;
    background: radial-gradient(circle at top, rgba(28,176,246,0.08), transparent 55%);
}
.howto-section .section-title {
    text-align: center;
    margin-bottom: 28px;
}
.howto-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.howto-step {
    background: rgba(11,20,59,0.95);
    border-radius: 16px;
    padding: 22px 20px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
}
.howto-step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(28,176,246,0.18), transparent 55%);
    opacity: .9;
    pointer-events: none;
}
.howto-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1CB0F6, #16F2D1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}
.howto-icon i {
    color: #FFFFFF;
    font-size: 20px;
}
.howto-step h3 {
    position: relative;
    color: #FFFFFF;
    font-size: 18px;
    margin-bottom: 10px;
}
.howto-step p {
    position: relative;
    color: #B0B3C0;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 992px) {
    .howto-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 576px) {
    .howto-steps {
        grid-template-columns: 1fr;
    }
    .howto-section {
        padding: 30px 0 40px;
    }
}