* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #0f0c29;
    background: -webkit-linear-gradient(to right, #24243e, #302b63, #0f0c29);
    background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
    color: #f0f2f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: rgba(0, 0, 0, 0.2);
    color: #ffd700;
    border-bottom: 1px solid rgba(255, 215, 0, 0.5);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

header h1 {
    margin: 0;
    font-size: 2.2em;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 0 5px #ffd700;
    text-align: center;
    flex-grow: 1;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}
.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 35px;
    background-color: #ffd700;
    color: #0f0c29;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
    animation: none;
}
@media (max-width: 768px) {
    header {
        justify-content: center;
        padding: 20px 15px;
    }
    header h1 {
        font-size: 2em;
        order: 1;
        width: 100%;
    }
    .nav-links {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .hero-section {
        min-height: 60vh;
        padding: 40px 0;
    }

    .hero-content .subtitle {
        font-size: 1.1em;
    }

}

.dashboard-container {
    max-width: 1000px;
    width: 100%;
    padding: 20px;
}

.dashboard-container h2 {
    color: #ffd700;
    margin-bottom: 10px;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.market-button {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #f0f2f5;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.market-button:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 215, 0, 0.1);
}

.market-button h3 {
    margin: 0 0 10px 0;
    color: #ffd700;
}

.prediction-page-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.prediction-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: #ffd700;
    text-decoration: none;
    background-color: transparent;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-button:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.prediction-display {
    background: linear-gradient(145deg, rgba(40, 35, 80, 0.4), rgba(15, 12, 41, 0.4));
    border-radius: 20px;
    padding: 30px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 215, 0, 0.18);
}

.prediction-display h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.8em;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    letter-spacing: 1px;
}

.prediction-display p {
    opacity: 0.8;
    font-size: 0.9em;
}

@media (max-width: 480px) {
    .prediction-display {
        padding: 25px;
    }
    .prediction-display h3 {
        font-size: 1.5em;
    }
}

.landing-page-wrapper {
    width: 100%;
}

.landing-page-wrapper section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-page-wrapper h2 {
    text-align: center;
    font-size: 2.5em;
    color: #ffd700;
    margin-bottom: 50px;
}

.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    animation: fadeIn 1s ease-in-out;
}

.hero-content h1 {
    font-size: 3.8em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.hero-content .subtitle {
    font-size: 1.3em;
    color: #e0e0e0;
    max-width: 650px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.features-section {
    background-color: rgba(0, 0, 0, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    text-align: center;
}

.feature-item h3 {
    color: #ffd700;
    margin-top: 0;
    margin-bottom: 15px;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.step-item {
    text-align: center;
    max-width: 300px;
}

.step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: #ffd700;
    color: #0f0c29;
    font-size: 1.8em;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

.step-item h3 {
    margin-bottom: 10px;
    color: #ffffff;
}

@media (max-width: 768px) {
    .landing-page-wrapper h2 {
        font-size: 2em;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }
}

.app-body main {
    justify-content: flex-start;
    padding-top: 40px;
}

.app-header {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 10;
}

.app-header-logo a {
    color: #ffd700;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

.app-nav {
    display: flex;
    gap: 30px;
}

.app-nav a {
    color: #f0f2f5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.app-nav a:hover {
    color: #ffd700;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffd700;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .app-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1e1a4e;
        padding: 20px;
        border-top: 1px solid rgba(255, 215, 0, 0.3);
        z-index: 1000;
    }

    .app-nav.active {
        display: flex;
    }

    .hamburger-menu {
        display: block;
    }
}

footer {
    background-color: transparent;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
    opacity: 0.7;
}

.app-body main, .admin-body main {
    justify-content: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1600px;
}

.admin-container {
    width: 100%;
    max-width: 1400px; /* Lebarkan sedikit untuk layar besar */
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.admin-box {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.admin-box h2 {
    color: #ffd700;
    margin-top: 0;
    font-size: 1.2em;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.table-wrapper { overflow-x: auto; }
.user-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.user-table th, .user-table td { padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); text-align: left; }
.user-table th { background-color: rgba(255, 215, 0, 0.1); }
.action-btn { color: #0f0c29; padding: 5px 10px; border-radius: 5px; text-decoration: none; font-size: 0.9em; margin-right: 5px; }
.approve-btn { background-color: #4CAF50; }
.reject-btn { background-color: #f44336; }
.renew-btn { background-color: #2196F3; }
.save-btn { background-color: #00bcd4; }
.delete-btn { background-color: #9c27b0; }

.user-table td {
    vertical-align: middle;
}

.action-form,
.other-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.expiry-input {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #1f57ac;
    padding: 4px 8px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9em;
}

.expiry-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.user-meta {
    margin-top: 10px;
    font-size: 0.85em;
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .admin-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .user-table thead {
        display: none;
    }

    .user-table tr {
        border: 1px solid rgba(255, 215, 0, 0.2);
        border-radius: 10px;
        display: block;
        margin-bottom: 15px;
        padding: 15px;
        background-color: rgba(0,0,0,0.1);
    }

    .user-table td {
        display: block;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
        padding: 12px 0;
        text-align: left;
    }

    .user-table tr td:first-child {
        padding-top: 0;
    }

    .user-table td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .user-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #ffd700;
        display: block;
        margin-bottom: 8px;
        font-size: 0.8em;
        text-transform: uppercase;
        opacity: 0.8;
    }

    .user-table td[data-label="Info Pengguna"]::before {
        display: none;
    }
    .user-table td[data-label="Info Pengguna"] {
        padding-bottom: 15px;
    }
    .user-table td[data-label="Info Pengguna"] strong {
        font-size: 1.1em;
    }

    .user-table .action-form,
    .user-table .other-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }

    .user-table .expiry-input {
        padding: 10px;
    }

    .user-table tr.inactive-row {
        opacity: 0.5;
        background-color: rgba(100, 100, 100, 0.1);
    }
}

.datetime-container {
    color: #f0f2f5;
    font-size: 1em;
    font-weight: 500;
    text-align: center;
    flex-grow: 1;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

#time-display {
    font-weight: bold;
    color: #ffd700;
}

@media (max-width: 992px) {
    .app-header {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .datetime-container {
        order: 3;
        width: 100%;
        font-size: 0.9em;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 215, 0, 0.1);
    }

    .app-header-logo {
        flex-grow: 1;
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.page-header h2 {
    margin: 0;
    color: #ffd700;
}

.back-button-alt {
    color: #ffd700;
    text-decoration: none;
    background-color: rgba(255, 215, 0, 0.1);
    padding: 8px 15px;
    border-radius: 50px;
    transition: background-color 0.3s ease;
    font-size: 0.9em;
}

.back-button-alt:hover {
    background-color: rgba(255, 215, 0, 0.2);
}

.prediction-form {
    margin-top: 20px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.prediction-form .form-group {
    flex-grow: 1;
    margin-bottom: 0;
    text-align: left;
}

.prediction-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9em;
    opacity: 0.8;
}

.prediction-form select option {
    background: #302b63;
    color: #f0f2f5;
}

.hasil-rumus-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    align-items: flex-start;
}

.hasil-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-family: monospace;
    font-size: 1.1em;
    color: #ffd700;
}
.rumus-4d-container {
    display: flex;
    gap: 5px;
}
.rumus-digit-box {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 5px;
    font-weight: bold;
}

.rumus-result {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.rumus-result-digit-box {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: normal;
    background-color: rgba(136, 136, 136, 0.1);
    color: #aaa;
    border: 1px solid rgba(136, 136, 136, 0.3);
}

.rumus-output-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.paito-table .digit-box-display {
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.row-control-form {
    display: flex;
    gap: 5px;
}

.row-control-input {
    width: 100%;
    flex-grow: 1;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f0f2f5;
    border-radius: 5px;
    text-align: center;
}

.row-control-input::-webkit-outer-spin-button,
.row-control-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.row-control-input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.prediction-menu-container {
    margin-top: 20px;
}

.prediction-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.prediction-menu-button {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 15px 20px;
    text-decoration: none;
    color: #0f0c29;
    background-color: #ffd700;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prediction-menu-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}