/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
}

body {
    background: linear-gradient(145deg, #0a1f2a 0%, #021020 100%);
    min-height: 100vh;
    padding: 20px 12px 40px;
}

.wika-container {
    max-width: 780px;
    margin: 0 auto;
}

/* header - centered logo */
.wika-header {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f2a3a;
    border: 2px solid gold;
    border-radius: 60px;
    padding: 8px 20px;
    margin-bottom: 16px;
    box-shadow: 0 8px 0 #001830, 0 12px 25px black;
}

.logo-img {
    height: 52px;
    width: auto;
    display: block;
}

/* action button strip */
.action-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}
.action-row {
    display: flex;
    flex: 1 1 100%;
    gap: 12px;
    justify-content: center;
}
.action-row .action-btn {
    flex: 1 1 calc(50% - 6px);
    max-width: calc(50% - 6px);
}

.action-btn {
    background: radial-gradient(circle at 30% 20%, #f9c851, #b37b2e);
    border: 2px solid #fff2b5;
    border-radius: 50px;
    padding: 10px 10px;
    font-weight: 800;
    font-size: 1rem;
    color: #0f2a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.1s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.action-btn i {
    font-size: 1.3rem;
    color: #002400;
}

.action-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #6b4f1a, 0 8px 12px black;
}

/* search bar */
.wika-search-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #f7f7f7;
    padding: 6px;
    background: #1a4f9b;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 0 8px 15px black;
}

.wika-search-icon {
    width: 48px;
    height: 48px;
    background: #2a6fd1;
    border: 2px solid #FFC107;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

#searchInput {
    flex: 1;
    height: 48px;
    border-radius: 30px;
    background: #1a2f4a;
    border: 2px solid #FFD966;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff9d7;
    outline: none;
    transition: 0.2s;
}

#searchInput::placeholder {
    color: #aacfcf;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* prediksi grid */
.prediksi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 10px;
}

/* kartu togel - blue theme */
.kartu-togel {
    background: linear-gradient(145deg, #002b4a, #001830);
    border: 2px solid #e5b73b;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 0 #001830, 0 10px 25px black;
    transition: 0.1s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.gambar-togel-img {
    position: absolute;
    top: 5px;
    right: 0px;
    width: 80px;
    height: 70px;
    object-fit: contain;
    opacity: 0.7;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 0 5px gold);
}

.title-bar {
    background: linear-gradient(to bottom, #e7c45e, #b68013);
    color: black;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 2px 10px;
    width: fit-content;
    max-width: 80%;
    border-bottom-right-radius: 18px;
    border-bottom: 2px solid gold;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 #ffe18e;
    position: relative;
    z-index: 3;
    white-space: nowrap;
}

.static-time-box {
    background: #1f3a5a;
    color: #ffd966;
    font-size: 12px;
    padding: 4px 10px;
    margin: 5px 0 0 5px;
    border: 1px solid #c5a044;
    border-radius: 40px;
    width: fit-content;
    letter-spacing: 1px;
    box-shadow: inset 0 0 4px black;
}

.lottery-name-middle {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    color: rgb(0, 255, 0);
    margin: 10px 0 10px;
    word-break: break-word;
    padding: 0 8px;
}

.info-bawah {
    display: flex;
    flex-direction: column;
    padding: 8px 14px 12px;
    border-top: 2px solid #c5a044;
    margin-top: 4px;
}

.timer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aad4ff;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.timer-angka {
    background: #1f3a5a;
    padding: 4px 12px;
    border-radius: 40px;
    border: 1px solid #92b4ff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #f5e56b;
}

.btn-prediksi {
    background: #000000;
    border: 2px solid #e5b73b;
    color: gold;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    padding: 10px 0;
    text-align: center;
    border-radius: 12px;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: 0.1s;
    margin-top: 3px;
    border-top: 2px solid #ffd966;
}

.btn-prediksi:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #3f3100;
}

/* modal */
.modal-prediksi {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    z-index: 999;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: linear-gradient(45deg, #0a304a, #062030);
    border: 4px solid #f5cb5c;
    border-radius: 32px;
    padding: 28px 24px;
    max-width: 400px;
    width: 90%;
    color: #fff7d7;
    box-shadow: 0 25px 45px black;
    text-align: center;
}

.modal-content h2 {
    color: gold;
    text-transform: uppercase;
    border-bottom: 2px solid #b8860b;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.time-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 25px 0;
}

.time-option-btn {
    background: #2d4a6a;
    border: 2px solid #e5b73b;
    color: #ffdf8c;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    min-width: 90px;
    transition: 0.1s;
    box-shadow: 0 5px 0 #1f334f;
}

.time-option-btn:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #1f334f;
}

.prediksi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f426a;
    margin: 12px 0;
    padding: 12px 18px;
    border-radius: 50px;
    border: 1px solid #d4a737;
    font-size: 1.3rem;
    font-weight: bold;
}

.prediksi-label {
    color: #ffdb8e;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.prediksi-value {
    color: #f9f3b0;
    font-family: 'Courier New', monospace;
    background: #0a2b4a;
    padding: 4px 18px;
    border-radius: 40px;
    border: 1px solid gold;
}

.close-modal {
    margin-top: 24px;
    background: red;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1.2rem;
    color: #ffffff;
    cursor: pointer;
    border: 2px solid #ffd966;
}

.pesan-rahasia {
    font-size: 0.75rem;
    text-align: center;
    border: 1px solid gold;
    width: 100%;
    margin: 20px auto 0;
    padding: 12px 0;
    border-radius: 40px;
    background: #0f2a4a;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hidden-by-search { display: none; }

a {text-decoration: none;}

@media (max-width: 550px) {
    .prediksi-grid { gap: 10px; }
    .action-btn { font-size: 0.85rem; white-space: normal; }
}