/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #0a0a0a;
    color: #f0f0f0;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ========== Decorative top swoosh ========== */
body::before {
    content: "";
    position: fixed;
    top: -60px;
    right: -40px;
    width: 320px;
    height: 260px;
    background: radial-gradient(ellipse at 70% 30%, rgba(30, 120, 60, 0.35) 0%, rgba(212, 168, 67, 0.12) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ========== Container ========== */
.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

/* ========== Header ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    max-width: 480px;
    margin: 0 auto;
}
.logo-wrap {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
}
.hamburger {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #f0f0f0;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== Navigation ========== */
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px 14px;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    background:
        linear-gradient(#0a0a0a, #0a0a0a) padding-box,
        linear-gradient(135deg, #1abc9c, #2ecc71) border-box;
    color: #1abc9c;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.nav-btn.active,
.nav-btn:hover {
    background: linear-gradient(135deg, #1abc9c, #2ecc71);
    color: #0a0a0a;
}

/* Hamburger dropdown overlay */
.nav-dropdown {
    display: none;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 16px;
    z-index: 99;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.nav-dropdown.open { display: flex; }
.nav-dropdown .nav-btn {
    width: 200px;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
}

/* ========== Shared: section titles ========== */
.section-heading {
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #d4a843;
    padding: 28px 0 16px;
}

/* ========== Shared: placeholder boxes ========== */
.placeholder-box {
    width: 100%;
    background:
        linear-gradient(135deg, rgba(212, 168, 67, 0.08), rgba(30, 120, 60, 0.05)),
        repeating-linear-gradient(45deg, #141414 0 10px, #111 10px 20px);
    border: 1.5px dashed rgba(212, 168, 67, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(212, 168, 67, 0.6);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ========== HOME PAGE ========== */
.hero-banner {
    aspect-ratio: 16 / 9;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}
.hero-banner .join-btn {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 28px;
    background: linear-gradient(135deg, #d4a843, #b8892e);
    color: #0a0a0a;
    font-weight: 800;
    font-size: 13px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}
.collection-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 4px 0 16px;
}
.collection-logo {
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}
.secondary-banner {
    aspect-ratio: 2 / 1;
    margin-bottom: 8px;
}
.win-record-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}
.win-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #111;
    transition: transform 0.2s, border-color 0.2s;
}
.win-card:hover { border-color: rgba(212, 168, 67, 0.35); }
.win-card:active { transform: scale(0.97); }
.win-card-image {
    width: 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
}

/* ========== PROMO PAGE ========== */
.promo-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 8px 0 32px;
}
.promo-banner {
    aspect-ratio: 2.5 / 1;
    transition: transform 0.2s;
    cursor: pointer;
}
.promo-banner:active { transform: scale(0.98); }

/* ---- Promo Modal ---- */
.promo-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.75);
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.promo-modal-overlay.open {
    display: flex;
}
.promo-modal {
    background: linear-gradient(180deg, #0d1a0d 0%, #0a140a 100%);
    color: #f0f0f0;
    border: 2px solid #d4a843;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    padding: 20px 16px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    flex-shrink: 0;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Close X */
.promo-modal-close-x {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 26px;
    color: #d4a843;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    padding: 4px;
}
.promo-modal-close-x:hover { color: #fff; }

/* Title */
.promo-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #d4a843;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-right: 30px;
}

/* Banner image */
.promo-modal-banner {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Table scroll wrapper */
.promo-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
    border-radius: 6px;
}

/* Requirements table */
.promo-modal-table {
    width: 100%;
    min-width: 340px;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 12px;
}
.promo-modal-table thead th {
    background: linear-gradient(135deg, #d4a843, #b8892e);
    color: #0a0a0a;
    font-weight: 700;
    padding: 8px 6px;
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.promo-modal-table thead th:first-child { border-radius: 6px 0 0 0; }
.promo-modal-table thead th:last-child { border-radius: 0 6px 0 0; }
.promo-modal-table tbody td {
    background: rgba(255, 255, 255, 0.06);
    color: #f0f0f0;
    padding: 8px 6px;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid rgba(212, 168, 67, 0.15);
}
.promo-modal-table tbody tr:last-child td:first-child { border-radius: 0 0 0 6px; }
.promo-modal-table tbody tr:last-child td:last-child { border-radius: 0 0 6px 0; }
.promo-modal-table .game-type-cell,
.promo-modal-table .max-bonus-cell {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

/* Extra table (Contoh) */
.promo-modal-extra {
    margin-bottom: 16px;
}
.extra-label {
    font-size: 13px;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 8px;
}
.promo-modal-extra-table {
    margin-bottom: 0;
}

/* Social image buttons */
.promo-modal-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}
.social-img-btn {
    display: block;
    max-width: 160px;
    flex: 1;
}
.social-img-btn img {
    width: 100%;
    height: auto;
    display: block;
}

/* Terms section */
.promo-modal-terms {
    margin-bottom: 16px;
}
.terms-heading {
    font-size: 13px;
    font-weight: 700;
    color: #d4a843;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.promo-modal-terms ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.promo-modal-terms li {
    font-size: 11px;
    line-height: 1.5;
    color: rgba(240, 240, 240, 0.85);
    padding-left: 14px;
    position: relative;
}
.promo-modal-terms li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: #d4a843;
}

/* Bottom banner (5 steps) */
.promo-modal-steps {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 14px;
}

/* Join Now button */
.promo-modal-joinnow {
    display: block;
    text-align: center;
}
.promo-modal-joinnow img {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* ========== DOWNLOAD PAGE ========== */
.download-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-bottom: 8px;
}
.download-col {
    text-align: center;
}
.download-col h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #d4a843;
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: 0.3px;
}
.phone-mockup {
    aspect-ratio: 9 / 16;
    margin-bottom: 12px;
    font-size: 9px;
}
.download-btn {
    display: inline-block;
    padding: 9px 20px;
    background: linear-gradient(135deg, #d4a843, #b8892e);
    color: #0a0a0a;
    font-weight: 800;
    font-size: 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tutorial-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0 32px;
}
.tutorial-gif {
    width: 100%;
    border-radius: 12px;
}

/* ========== CONTACT US PAGE ========== */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px 0 32px;
}
.contact-card {
    border: 2px solid #d4a843;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #141410 0%, #0f0f0a 100%);
}
.contact-card-image {
    width: 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(212, 168, 67, 0.2);
}
.contact-card-body {
    padding: 16px;
    text-align: center;
}
.contact-card-body .platform-label {
    font-size: 12px;
    color: rgba(240, 240, 240, 0.6);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.contact-card-body .platform-name {
    font-size: 22px;
    font-weight: 800;
}
.platform-name.whatsapp { color: #25d366; }
.platform-name.telegram { color: #26a5e4; }
.contact-card-body .contact-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 28px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.contact-btn.whatsapp { background: #25d366; }
.contact-btn.telegram { background: #26a5e4; }

/* ========== Footer ========== */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0 28px;
    text-align: center;
    color: rgba(240, 240, 240, 0.35);
    font-size: 11px;
}
.site-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 8px;
}
.site-footer .footer-links a:hover { color: #d4a843; }

/* ========== Responsive ========== */
@media (min-width: 640px) {
    .container { max-width: 600px; padding: 0 24px; }
    .header-inner { max-width: 600px; }
    .nav-bar { max-width: 600px; }
    .section-heading { font-size: 18px; }
    .nav-btn { padding: 8px 18px; font-size: 13px; }
    .collection-logo { flex: 0 0 88px; height: 88px; }
}
@media (min-width: 900px) {
    .container { max-width: 720px; }
    .header-inner { max-width: 720px; }
    .nav-bar { max-width: 720px; }
}
