/* ========== 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: linear-gradient(160deg, #fde8d0 0%, #f8e0c8 20%, #f0d4e8 45%, #e0c8f0 65%, #d8c0f0 85%, #d0b8f0 100%);
    color: #1a1a2e;
    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; }

/* ========== 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: linear-gradient(180deg, #f5d442, #e8c231);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 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: #1a1a2e;
    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: 6px;
    padding: 0 12px 10px;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: nowrap;
}
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    padding: 7px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 999px;
    border: 1.5px solid rgba(26, 26, 46, 0.3);
    background: rgba(255, 255, 255, 0.25);
    color: #1a1a2e;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.nav-btn.active,
.nav-btn:hover {
    background: #fff;
    color: #1a1a2e;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Hamburger dropdown overlay */
.nav-dropdown {
    display: none;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: rgba(245, 212, 66, 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: #6b21a8;
    padding: 28px 0 16px;
}

/* ========== HOME PAGE ========== */
.hero-banner {
    aspect-ratio: 16 / 9;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.hero-banner .join-btn {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 28px;
    background: linear-gradient(135deg, #7c3aed, #6b21a8);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}
.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;
}

/* 5 Easy Steps Section */
.steps-section {
    background: #fff;
    border-radius: 16px;
    padding: 20px 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.steps-section h2 {
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b21a8;
    margin-bottom: 16px;
}
.steps-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}
.step-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f5d442, #e8c231);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.step-number {
    font-size: 9px;
    font-weight: 700;
    color: #6b21a8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.step-label {
    font-size: 9px;
    font-weight: 600;
    color: #444;
    text-align: center;
    line-height: 1.3;
}

.secondary-banner {
    aspect-ratio: 3 / 2;
    margin-bottom: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Win Record - Horizontal Carousel */
.win-record-carousel {
    position: relative;
    margin-bottom: 32px;
}
.win-record-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 12px;
    scrollbar-width: none;
}
.win-record-scroll::-webkit-scrollbar { display: none; }
.win-card {
    flex: 0 0 360px;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(107, 33, 168, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.win-card:hover {
    box-shadow: 0 4px 16px rgba(107, 33, 168, 0.15);
}
.win-card-image {
    width: 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #fff;
    border: 2px solid #6b21a8;
    border-radius: 50%;
    color: #6b21a8;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.carousel-btn:hover { background: #6b21a8; color: #fff; }
.carousel-btn.prev { left: -8px; }
.carousel-btn.next { right: -8px; }

/* Legacy grid (for fallback / other pages) */
.win-record-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

/* ========== 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;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.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.6);
    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(160deg, #fde8d0 0%, #f0d4e8 40%, #e0c8f0 70%, #d0b8f0 100%);
    color: #1a1a2e;
    border: 2px solid #7c3aed;
    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: #6b21a8;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    padding: 4px;
}
.promo-modal-close-x:hover { color: #7c3aed; }

/* Title */
.promo-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #6b21a8;
    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%;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 12px;
}
.promo-modal-table thead th {
    background: linear-gradient(135deg, #7c3aed, #6b21a8);
    color: #fff;
    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.5);
    color: #1a1a2e;
    padding: 8px 6px;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid rgba(107, 33, 168, 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: #1a1a2e;
    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: #6b21a8;
    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(26, 26, 46, 0.8);
    padding-left: 14px;
    position: relative;
}
.promo-modal-terms li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: #7c3aed;
}

/* 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;
    background: #fff;
    border-radius: 16px;
    padding: 16px 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.download-col h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b21a8;
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: 0.3px;
}
.phone-mockup {
    aspect-ratio: 9 / 16;
    margin-bottom: 12px;
    font-size: 9px;
    border-radius: 8px;
}
.download-btn {
    display: inline-block;
    padding: 9px 20px;
    background: linear-gradient(135deg, #7c3aed, #6b21a8);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.25);
}
.tutorial-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0 32px;
}
.tutorial-gif {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ========== CONTACT US PAGE ========== */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px 0 32px;
}
.contact-card {
    border: 2px solid #6b21a8;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.contact-card-image {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(107, 33, 168, 0.15);
}
.contact-card-body {
    padding: 16px;
    text-align: center;
}
.contact-card-body .platform-label {
    font-size: 12px;
    color: rgba(26, 26, 46, 0.5);
    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; }

/* ========== Floating WhatsApp Button ========== */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 150;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s;
}
.floating-whatsapp:hover { transform: scale(1.1); }
.floating-whatsapp svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* ========== 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 12px; font-size: 13px; }
    .collection-logo { flex: 0 0 88px; height: 88px; }
    .win-card { flex: 0 0 400px; }
}
@media (min-width: 900px) {
    .container { max-width: 720px; }
    .header-inner { max-width: 720px; }
    .nav-bar { max-width: 720px; }
}
