/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Background Container - Layer Terpisah */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('latarr.png') center center/cover no-repeat;
    background-color: #014d32;
    background-attachment: fixed;
    z-index: -1;
    will-change: transform;
    transform: translateZ(0);
}

/* WebP hanya untuk browser yang support */
@supports (background-image: url('data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=')) {
    body::before {
        background-image: url('latarr.webp');
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: none;
    background-color: transparent;
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
    75% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes planetRotate {
    0% {
        transform: rotate(0deg) translateY(0);
        filter: brightness(1);
    }
    25% {
        transform: rotate(90deg) translateY(-10px);
        filter: brightness(1.1);
    }
    50% {
        transform: rotate(180deg) translateY(0);
        filter: brightness(0.9);
    }
    75% {
        transform: rotate(270deg) translateY(10px);
        filter: brightness(1.1);
    }
    100% {
        transform: rotate(360deg) translateY(0);
        filter: brightness(1);
    }
}

@keyframes blueGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 170, 0.6); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 170, 0.9); }
}

@keyframes starDrift {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-300px) translateX(-50px); }
}

@keyframes goldenGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(57, 255, 20, 0.6); }
    50% { box-shadow: 0 0 30px rgba(57, 255, 20, 0.9); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 170, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 170, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 170, 0); }
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.35;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== ROCKET ANIMATIONS - FIXED VERSION ===== */
@keyframes rocketVerticalFly {
    0%   { transform: translateY(8px); }
    50%  { transform: translateY(-8px); }
    100% { transform: translateY(8px); }
}

/* ===== BACKGROUND LAYERS ===== */
.starLayer,
.nebula,
.dustStars,
.cosmicDust {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.nebula {
    background: radial-gradient(ellipse at 15% 85%, rgba(0, 255, 170, 0.15) 0%, transparent 40%),
                radial-gradient(ellipse at 85% 15%, rgba(57, 255, 20, 0.12) 0%, transparent 45%),
                radial-gradient(ellipse at 50% 50%, rgba(0, 255, 170, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 30%, rgba(57, 255, 20, 0.1) 0%, transparent 35%),
                radial-gradient(ellipse at 30% 70%, rgba(0, 40, 20, 0.12) 0%, transparent 40%);
    z-index: 0;
}

.dustStars {
    background-image: radial-gradient(1px 1px at 20% 30%, #ffffff, transparent),
                      radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.8), transparent),
                      radial-gradient(1px 1px at 90% 40%, rgba(255, 255, 255, 0.6), transparent),
                      radial-gradient(1px 1px at 6% 90%, #ffffff, transparent),
                      radial-gradient(1px 1px at 70% 10%, rgba(255, 255, 255, 0.7), transparent),
                      radial-gradient(1px 1px at 80% 60%, rgba(255, 255, 255, 0.5), transparent),
                      radial-gradient(2px 2px at 25% 50%, rgba(255, 255, 255, 0.9), transparent),
                      radial-gradient(1px 1px at 60% 80%, rgba(255, 255, 255, 0.4), transparent);
    background-repeat: repeat;
    background-size: 300px 300px, 250px 250px, 200px 200px, 350px 350px, 180px 180px, 220px 220px, 280px 280px, 160px 160px;
    animation: starDrift 120s linear infinite;

}

.cosmicDust {
    background-image: radial-gradient(0.5px 0.5px at 10% 20%, rgba(0, 255, 170, 0.3), transparent),
                      radial-gradient(0.5px 0.5px at 30% 60%, rgba(57, 255, 20, 0.2), transparent),
                      radial-gradient(0.5px 0.5px at 60% 10%, rgba(57, 255, 20, 0.25), transparent),
                      radial-gradient(0.5px 0.5px at 80% 80%, rgba(0, 255, 170, 0.2), transparent),
                      radial-gradient(0.5px 0.5px at 50% 90%, rgba(0, 40, 20, 0.15), transparent);
    background-repeat: repeat;
    background-size: 100px 100px, 120px 120px, 80px 80px, 150px 150px, 90px 90px;
}

/* ===== STARS ===== */
.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 3s infinite;
    display: none;
}

.star.tiny {
    width: 1px;
    height: 1px;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
    animation-duration: 4s;
}

.star.small {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
    animation-duration: 3s;
}

.star.medium {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 8px #ffffff;
    animation-duration: 2.5s;
}

.star.large {
    width: 4px;
    height: 4px;
    box-shadow: 0 0 12px #ffffff, 0 0 20px rgba(255, 255, 255, 0.5);
    animation-duration: 2s;
}

/* ===== PLANETS ===== */
.planet {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.planet1 {
    display: none;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 25% 25%, #00FFAA, #39FF14, #014d32);
    top: 10%;
    left: 85%;
    box-shadow: 0 0 40px rgba(0, 255, 170, 0.6), inset -20px -20px 40px rgba(0, 0, 0, 0.3);
    animation: planetRotate 30s infinite linear;
}

.planet2 {
    display: none;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #002411, #014d32, #0A0A0A);
    top: 70%;
    left: 5%;
    box-shadow: 0 0 35px rgba(0, 40, 20, 0.5), inset -15px -15px 30px rgba(0, 0, 0, 0.3);
    animation: planetRotate 40s infinite linear reverse;
}

.planet3 {
    display: none;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #39FF14, #00FFAA, #014d32);
    top: 35%;
    left: 2%;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.4), inset -12px -12px 25px rgba(0, 0, 0, 0.3);
    animation: planetRotate 25s infinite linear;
}

.planet4 {
    display: none;
    width: 45px;
    height: 45px;
    background: radial-gradient(circle at 35% 35%, #00FFAA, #39FF14, #014d32);
    top: 50%;
    right: 8%;
    box-shadow: 0 0 25px rgba(0, 255, 170, 0.4), inset -10px -10px 20px rgba(0, 0, 0, 0.3);
    animation: planetRotate 35s infinite linear reverse;
}

/* ===== METEORS ===== */
.meteor {
    position: fixed;
    width: 3px;
    height: 3px;
    background: #39FF14;
    pointer-events: none;
    z-index: 3;
    border-radius: 50%;
}

.meteor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 150px;
    background: linear-gradient(to bottom, #39FF14 0%, rgba(0, 255, 170, 0.8) 30%, rgba(57, 255, 20, 0.6) 60%, transparent 100%);
    transform: rotate(45deg);
    transform-origin: 0 0;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.8);
}

/* ===== LAYOUT ===== */
.container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    gap: 20px;
}

.mainPanel,
.activityPanel {
    background: rgba(0, 40, 20, 0.75);
    border: 3px solid #00FFAA;
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 730px;

    /* 🌟 Glow lebih lebar dan berlapis */
    box-shadow:
        0 0 20px rgba(0, 255, 170, 0.6),   /* glow kecil dekat border */
        inset 0 0 1px rgba(0, 255, 170, 0.2); /* glow dalam */
}

.activityPanel {
    padding: 20px;
}

/* ===== HEADER ===== */
.header {
    background: rgba(0, 40, 20, 0.1);
    box-shadow: 0 0 30px rgba(0, 255, 170, 0.4), inset 0 0 30px rgba(0, 255, 170, 0.1);
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    overflow: hidden;
    position: relative;
    border: 2px solid #00FFAA;
    backdrop-filter: blur(10px);
}

/* ===== ROCKET ICON ===== */
.rocketIcon {
    width: 40px;
    height: auto;
    display: inline-block;
    animation: rocketVerticalFly 2.5s ease-in-out infinite;
    cursor: pointer;
    pointer-events: none; /* klik tidak akan bereaksi sama sekali */
}

.header h1 {
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
    font-size: clamp(14px, 2vw, 22px);
    font-weight: 700;
    color: #00FFAA;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ===== FIBONACCI INFO (Welcome Box) ===== */
.fibonacciInfo {
    background: rgba(0, 40, 20, 0.1);
    border: 2px solid #00FFAA;
    box-shadow: 0 0 30px rgba(0, 255, 170, 0.4), inset 0 0 30px rgba(0, 255, 170, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    color: #00FFAA;
    padding: 10px 20px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

/* ===== FORMS ===== */
.formSection {
    margin-bottom: 25px;
}

.inputGroup {
    color: #ffffff !important;
    margin-bottom: 20px;
}

.inputGroup label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.inputGroup input {
    width: 100%;
    padding: 12px;
    border: 2px solid #00FFAA;
    border-radius: 8px;
    background: rgba(0, 40, 20, 0.8);
    color: #ffffff;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.2);
}

.inputGroup input:focus {
    outline: none;
    border-color: #00FFAA;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.4);
}

.inputGroup input:-webkit-autofill,
.inputGroup input:-webkit-autofill:hover,
.inputGroup input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px rgba(0, 40, 20, 1) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 2px solid #00FFAA !important;
}

.inputGroup input:-moz-autofill {
    background: rgba(0, 40, 20, 1) !important;
    color: #ffffff !important;
}

/* ===== BUTTONS ===== */
.button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.buttonPrimary {
    background: linear-gradient(135deg, #00FFAA, #39FF14);
    color: #0A0A0A;

}

.buttonSecondary {
    background: linear-gradient(135deg, #00FFAA, #39FF14);
    color: #0A0A0A;
}

.buttonSuccess {
    background: linear-gradient(135deg, #00FFAA, #39FF14);
    color: #0A0A0A;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.3);
}

.buttonPrimary:hover,
.buttonSuccess:hover {
    background: #00FFAA;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.5);
}

.buttonSecondary:hover {
    background: #00FFAA;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.5);
}

/* ===== INFO ELEMENTS ===== */
.infoText {
    background: rgba(0, 255, 170, 0.1);
    border: 2px solid rgba(0, 255, 170, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
}

.botStatus {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 170, 0.06);
    border: 2px solid rgba(0, 255, 170, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.statusIndicator {
    width: 10px;
    height: 10px;
    background: #00FFAA;
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
    box-shadow: 0 0 10px #00FFAA;
}

/* ===== LOADING DOTS ===== */
.loadingDots {
    display: inline-flex;
    gap: 6px;
    margin-left: 8px;
    vertical-align: middle;
}

.loadingDots .dot {
    width: 6px;
    height: 6px;
    background: #39FF14;
    border-radius: 50%;
    opacity: 0.35;
    transform: scale(0.6);
    animation: dotPulse 1.1s infinite ease-in-out;
    box-shadow: 0 0 5px #39FF14;
}

.loadingDots .dot:nth-child(1) {
    animation-delay: 0s;
}

.loadingDots .dot:nth-child(2) {
    animation-delay: 0.18s;
}

.loadingDots .dot:nth-child(3) {
    animation-delay: 0.36s;
}

/* ===== CONSOLE ===== */
.console {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 255, 170, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.2);
    border-radius: 15px;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.consoleLine {
    margin-bottom: 5px;
}

.consoleSuccess {
    color: #39FF14;
    font-family: 'Courier New', monospace;
}

.consoleInfo {
    color: #39FF14;
    font-family: 'Courier New', monospace;
}

/* ===== PREDICTION TABLE ===== */
.predictionTableContainer {
    margin: 15px 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.predictionTableHeader {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
    color: #00FFAA;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(0, 255, 170, 0.3);
}
.predictionTable {
    width: 100%;
    border-collapse: collapse;
}

.predictionTable th {
    background: rgba(0, 0, 0, 0.5);
    padding: 12px;
    text-align: center;
    color: #00FFAA;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    border-bottom: 1px solid rgba(0, 255, 170, 0.3);
}

.predictionTable th:nth-child(1),
.predictionTable td:nth-child(1) {
    width: 30%;
}

.predictionTable th:nth-child(2),
.predictionTable td:nth-child(2) {
    width: 30%;
}

.predictionTable th:nth-child(3),
.predictionTable td:nth-child(3) {
    width: 40%;
}

.predictionTable td {
    padding: 15px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.predictionTable tr:last-child td {
    border-bottom: none;
}

.predictionTable .tableCell {
    color: #ffffff;
}

.predictionTable .tableGoldCell {
    color: #ffffff;
}

.predictionTable .tableActiveCell {
    color: #ffffff;
}

/* ===== ACTIVITY PANEL ===== */
.activityHeader {
    color: #00FFAA;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recentActivityContainer {
    background: rgba(0, 40, 20, 0.2);
    border: 1px solid rgba(0, 255, 170, 0.3);
    border-radius: 10px;
    padding: 15px;
    overflow: hidden;
}

.activityContainer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    overflow: hidden;
}

.activityItem {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #00FFAA;
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    opacity: 1;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0) scale(1);
    min-height: 35px;
    height: auto;
    box-sizing: border-box;
}

.activityItem:hover {
    background: rgba(0, 255, 170, 0.1);
}

.activityItem p {
    margin: 0;
    color: #ffffff;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
    line-height: 1.3;
    width: 100%;
    flex-wrap: wrap;
}

.flagIcon {
    width: 22px;
    height: 16px;
    background: url('flag.svg') no-repeat center center;
    background-size: contain;
    border-radius: 2px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.username {
    color: #00FFAA;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 12px;
    width: 90px;
    max-width: 90px;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}

.activityText {
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    word-wrap: break-word;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none;
}

.page {
    display: block;
}

.page.hidden {
    display: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .mainPanel,
    .activityPanel {
        margin: 10px;
        padding: 20px;
        max-width: 95%;
    }

    .header h1 {
        font-size: 18px;
    }

    .container {
        gap: 15px;
    }

    .activityItem p,
    .username,
    .activityText {
        font-size: 12px;
    }

    .flagIcon {
        width: 18px;
        height: 12px;
        background: url('flag.svg') no-repeat center center;
        background-size: contain;
    }

    .rocketIcon {
        font-size: 20px;
    }
    
    .username {
        width: 90px;
        font-size: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .username {
        width: 90px;
        font-size: 12px;
        text-align: center;
    }
}

.gifContent {
    width: 60% !important;
    max-width: 200px !important;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .gifContent {
        width: 50% !important;
        max-width: 150px !important;
    }
}

@media (max-width: 480px) {
    .gifContent {
        width: 45% !important;
        max-width: 120px !important;
    }
}

/* ===== FIX UNTUK TOMBOL TERAKHIR DI SEMUA PAGE ===== */
.page .button:last-child {
    margin-bottom: 5px; /* Berlaku untuk tombol terakhir di semua page */
}

#page1 .button:last-child {
    margin-bottom: -25px; /* Override khusus untuk page 1 */
}

/* ===== DISCLAIMER HIGHLIGHT GRADIENT ===== */
.disclaimerHighlight {
    background: linear-gradient(90deg, #FF1744, #FF9100);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 23, 68, 0.6);
    font-weight: 700;
}

.disclaimerHighlightreguler {
    background: linear-gradient(90deg, #FF1744, #FF9100);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 23, 68, 0.6);
}

.statusIndicator {
    width: 10px;
    height: 10px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 255, 0, 0.8);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    body::before,
    body {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    body::before,
    body {
        background-attachment: scroll;
    }
}