* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent !important;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    width: 100%;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    color: #111;
    background-color: #ffffff !important; /* Menyamakan warna asas dengan kontena chat untuk elak kelipan ketika keyboard naik */
    min-height: 100vh;
    overflow-x: hidden;
}

/* Panel WinWAP lama di bahagian atas */
.logout-wrap {
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding-top: 4px;
}

.logout-card {
    width: 72%;
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 3px solid #777;
    box-shadow: 0 2px 5px rgba(0,0,0,.45);
    position: relative;
    z-index: 2;
}

.logout-header {
    background: #07518d;
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.2;
    padding: 12px 6px;
    border-bottom: 1px solid #063d69;
}

.logout-content {
    min-height: 320px;
    padding: 55px 12px 70px;
    text-align: center;
    background: #fff;
    font-size: 16px;
    line-height: 1.45;
}

.logout-content p {
    margin: 0 0 24px;
}

.logout-content a {
    color: #000080;
    font-weight: normal;
    text-decoration: underline;
    font-size: 16px;
}

.logout-footer {
    background: #07518d;
    color: #fff;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.2;
}

.logout-thanks {
    margin-top: 18px;
    font-size: 13px;
    color: #333;
}

.logout-music {
    margin-top: 12px;
    font-size: 12px;
}

.logout-music button {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    color: #000080;
    background: transparent;
    border: 0;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 600px) {
    .logout-card {
        width: 72%;
        max-width: none;
        border-width: 2px;
    }

    .logout-header {
        font-size: 13px;
        padding: 8px 4px;
    }

    .logout-content {
        min-height: 250px;
        padding: 42px 7px 48px;
        font-size: 12px;
    }

    .logout-content p {
        margin-bottom: 18px;
    }

    .logout-content a {
        font-size: 13px;
    }

    .logout-footer {
        padding: 6px 7px;
        font-size: 10px;
    }

    .logout-thanks {
        font-size: 11px;
        margin-top: 14px;
    }

    .logout-music {
        font-size: 10px;
        margin-top: 10px;
    }

    .logout-music button {
        font-size: 11px;
    }
}

.gk-gift-overlay{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:9999;pointer-events:none;display:block;}
.gk-gift-overlay img{display:block;width:auto;height:auto;max-width:220px;max-height:220px;}

.gk-lion-gift{
 position:fixed;
 left:50%;
 top:50%;
 transform:translate(-50%,-50%);
 z-index:99999;
 pointer-events:none;
 width:280px;
 max-width:78vw;
 text-align:center;
}
.gk-lion-gift video{
 display:block;
 width:100%;
 height:auto;
 max-height:70vh;
 object-fit:contain;
 border:0;
 outline:0;
 background:transparent;
}

@keyframes screenShake {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-4px, 4px); }
    40% { transform: translate(4px, -4px); }
    60% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0, 0); }
}
.shake-effect {
    animation: screenShake 0.4s ease-in-out;
}

/* Paksa keseluruhan paparan web menggunakan fon tebal dan jelas */
body, html, div, span, p, a, td, th {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 1100 !important;
    -webkit-font-smoothing: antialiased !important;
}

b, strong {
    font-weight: 1100 !important;
}

/* BINGKAI TELEFON RETRO WINWAP (EMULATOR EMBEDDED) */
.phone-casing {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    left: auto;
    right: auto;
    transform: none;
    background: linear-gradient(135deg, #1db3b8 0%, #107287 40%, #084c5a 100%);
    border: 4px solid #33d1d6;
    border-radius: 36px 36px 45px 36px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), inset 0 2px 4px rgba(255,255,255,0.4);
    padding: 18px 16px 24px 16px;
    position: relative;
}

.phone-top-branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 8px 10px 8px;
}
.winwap-logo-text {
    font-family: Arial, sans-serif;
    font-weight: 900;
    font-size: 22px;
    font-style: italic;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: -0.5px;
}
.winwap-logo-sub {
    font-size: 10px;
    font-family: Arial, sans-serif;
    color: #aae8ed;
    font-style: normal;
    display: block;
    margin-top: -4px;
}
.phone-leds {
    display: flex;
    gap: 5px;
    align-items: center;
}
.led-green {
    width: 12px;
    height: 12px;
    background-color: #39ff14;
    border-radius: 50%;
    box-shadow: 0 0 8px #39ff14, inset 1px 1px 2px #fff;
}
.led-red {
    width: 8px;
    height: 8px;
    background-color: #b31010;
    border-radius: 50%;
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.4);
}

.screen-bevel {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    background-color: #0b1a21;
    border: 3px solid #000000;
    border-radius: 12px;
    padding: 4px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}
.container {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff;
    border: 1px solid #777777;
    box-sizing: border-box;
    border-radius: 4px;
    padding-bottom: 40px !important;
}

.header-bar {
    background-color: #003366;
    color: #ffffff;
    padding: 8px 10px;
    font-weight: normal;
    font-size: 17px;
    font-family: Georgia, serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.banner-black {
    background-color: #222222;
    color: #ffffff;
    padding: 7px 10px;
    font-size: 16px;
    font-weight: bold;
    font-style: italic;
    font-family: Georgia, serif;
}
.content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    padding: 8px 10px;
    font-family: Georgia, serif;
    font-size: 16px;
}
a {
    color: #0002cd;
    text-decoration: underline;
}
a:visited {
    color: #0002cd;
}

.msg-line {
    margin-bottom: 3px;
    line-height: 1.35;
    word-wrap: break-word;
    font-size: 17px;
    padding: 2px 0;
    font-family: Georgia, serif;
}
.msg-prefix {
    font-weight: normal !important;
    color: #000000;
}
.msg-username {
    font-weight: bold !important;
    color: #000000;
}
.msg-colon {
    font-weight: normal !important;
    color: #000000;
}
.msg-pm {
    background-color: #ffeef8;
    border-left: 3px solid #d80073;
    color: #4a0028;
    padding: 3px 6px;
    font-size: 15px;
}
.pm-badge {
    background-color: #d80073;
    color: #ffffff;
    font-size: 11px;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: bold;
    margin-right: 3px;
    font-family: Georgia, serif;
}
.error {
    background-color: #ffcccc;
    border: 1px solid #cc9999;
    padding: 6px;
    margin-bottom: 8px;
    color: #660000;
    font-size: 15px;
}
.notice {
    background-color: #ffffcc;
    border: 1px solid #cccc99;
    padding: 6px;
    margin-bottom: 8px;
    color: #333300;
    font-size: 15px;
}
.input-box {
    border: 1px solid #7f9db9;
    padding: 6px 8px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
    font-family: Georgia, serif;
    border-radius: 2px;
}
select {
    border: 1px solid #7f9db9;
    padding: 6px 8px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
    font-family: Georgia, serif;
    border-radius: 2px;
}
.btn-wap {
    background-color: #e0e0e0;
    border: 1px solid #666666;
    padding: 4px 10px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 4px;
    font-family: Georgia, serif;
}
.btn-danger {
    background-color: #ffcccc;
    border: 1px solid #cc0000;
    color: #aa0000;
}
.footer-bar {
    background-color: #003366;
    color: #ffffff;
    padding: 8px 10px;
    font-size: 13px;
    margin-top: 15px;
    font-family: Georgia, serif;
}
.warning-container {
    margin: 6px 0;
    padding: 0;
    background: transparent;
    border: none;
    font-family: Georgia, serif;
}
.warning-title {
    text-align: center;
    font-weight: bold;
    color: #ff0000;
    font-size: 16px;
    font-family: Georgia, serif;
    margin-bottom: 5px;
}
.warning-content {
    text-align: left;
    color: #000000;
    font-weight: normal;
    font-size: 15px;
    font-family: Georgia, serif;
}
.spacer {
    margin-right: 12px;
    font-size: 15px;
}

.keypad-decorative {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.85;
    user-select: none;
}
.keypad-row {
    display: flex;
    gap: 12px;
}
.key-btn {
    width: 42px;
    height: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #d8d8d8 100%);
    border: 1px solid #888888;
    border-radius: 12px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.3);
}

#gkBackToTop{display:none;position:fixed;right:12px;bottom:18px;z-index:99999;width:38px;height:38px;border:1px solid #777;border-radius:50%;background:#fff;color:#111;font-size:20px;line-height:36px;text-align:center;text-decoration:none;box-shadow:0 2px 6px rgba(0,0,0,.35);cursor:pointer}
#gkBackToTop.gk-show{display:block}

@keyframes lightningFlashBlue {
    0%, 90%, 94%, 98%, 100% { opacity: 0; }
    92%, 96% { opacity: 0.9; background-color: #00d2ff; box-shadow: inset 0 0 100px rgba(0, 210, 255, 0.8); }
}
#gk-lightning-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483647 !important;
    pointer-events: none !important;
    display: none;
}
.lightning-active {
    display: block !important;
    animation: lightningFlashBlue 0.35s ease-out forwards !important;
}

.msg-line,
.msg-line * {
    font-size: 18px !important;
}

.msg-line .msg-username,
.msg-line .username,
.msg-line b,
.msg-line strong {
    font-size: 18px !important;
    font-weight: bold !important;
}

.msg-line .msg-prefix,
.msg-line .msg-colon,
.msg-line .msg-pm {
    font-size: 18px !important;
}

/* ==========================================
   RETRO WAP SCROLLBAR (TikTok Style - Penuh, Tidak Terpotong & Boleh Tarik)
   ========================================== */
.retro-scroll-wrapper {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    height: calc(100vh - 65px) !important;
    max-height: none !important;
    overflow: hidden !important;
}

.retro-scroll-content {
    flex: 1 !important;
    height: 100% !important;
    overflow-y: scroll !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.retro-scroll-content::-webkit-scrollbar {
    display: none !important;
}

.retro-scrollbar {
    width: 18px !important;
    background: #dfdfdf !important;
    border-left: 1px solid #808080 !important;
    border-right: 1px solid #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    user-select: none !important;
    flex-shrink: 0 !important;
    height: 100% !important;
    box-sizing: border-box !important;
    z-index: 10 !important;
}

.retro-scroll-btn {
    height: 18px !important;
    background: #ececec !important;
    border: 1px solid !important;
    border-color: #ffffff #808080 #808080 #ffffff !important;
    font-size: 9px !important;
    line-height: 14px !important;
    text-align: center !important;
    cursor: pointer !important;
    color: #222 !important;
    font-weight: bold !important;
    flex-shrink: 0 !important;
}
.retro-scroll-btn:active {
    border-color: #808080 #ffffff #ffffff #808080 !important;
    background: #d4d4d4 !important;
}

.retro-scroll-track {
    flex: 1 !important;
    background: #c0c0c0 !important;
    position: relative !important;
    border-left: 1px inset #808080 !important;
    border-right: 1px inset #ffffff !important;
    cursor: pointer !important;
}

.retro-scroll-thumb {
    position: absolute !important;
    width: 100% !important;
    background: #d4d0c8 !important;
    border: 1px solid !important;
    border-color: #ffffff #808080 #808080 #ffffff !important;
    min-height: 28px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    touch-action: none !important;
}
.retro-scroll-thumb::after {
    content: "≡" !important;
    font-size: 11px !important;
    color: #444 !important;
    line-height: 1 !important;
    font-weight: bold !important;
}
.retro-scroll-thumb:active {
    background: #bdb9b1 !important;
}
