:root {
    --bg-dark: #090a0f;
    --card-bg: #12151e;
    --card-border: #1e2333;
    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.3);
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding-bottom: 40px;
    background-image: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
}

/* NAVBAR */
.navbar {
    background: rgba(18, 21, 30, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 14px 18px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--gold), #d97706);
}

.brand-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #000;
}

.brand-title {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.gold-text {
    color: var(--gold);
}

.visitor-badge {
    background: #181c2b;
    border: 1px solid #282f45;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot-online {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

/* MAIN CONTAINER */
.main-content {
    max-width: 480px;
    margin: 20px auto;
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* CARD DESIGN */
.card-box {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.glow-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
}

.highlight-card {
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

/* BANNER LAYOUT (FIX GAMBAR GAGAL LOAD) */
.banner-wrapper {
    position: relative;
    height: 140px;
    width: 100%;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(0deg, var(--card-bg) 10%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rating-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.3);
    z-index: 5;
}

.tag-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gold-bg {
    color: var(--gold);
}

.banner-overlay h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-white);
}

.sub-author {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* CARD BODY */
.card-body {
    padding: 16px;
}

.gap-8 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

/* SOSMED LINKS */
.link-item {
    background-color: #181c2b;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #232a3f;
    transition: all 0.2s;
}

.link-item:active {
    transform: scale(0.98);
}

.link-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.85rem;
}

.icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.ig-bg { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.wa-bg { background-color: #25d366; color: #fff; }
.tt-bg { background-color: #000; color: #fff; border: 1px solid #333; }
.icon-ext { color: #475569; font-size: 0.8rem; }

/* BUTTONS */
.btn-main {
    background: linear-gradient(135deg, var(--gold), #d97706);
    color: #000;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-lanjut {
    background: var(--gold);
    color: #000;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.apk-title {
    font-size: 0.9rem;
    font-weight: 800;
}

.author-label {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* REDEEM FORM */
.redeem-input-group {
    display: flex;
    gap: 8px;
}

.redeem-input-group input {
    flex: 1;
    background-color: #090a0f;
    border: 1px solid #232a3f;
    padding: 12px 14px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}

.redeem-input-group input:focus {
    border-color: var(--gold);
}

.btn-tukar {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
}

/* FOOTER CARD */
.card-footer {
    padding: 10px 16px;
    font-size: 0.72rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(0, 0, 0, 0.15);
}

.visit-num {
    color: #10b981;
    font-weight: 700;
}

footer {
    text-align: center;
    color: #475569;
    font-size: 0.75rem;
    margin-top: 25px;
}/* FIX HALAMAN DOWNLOAD */
body.download-page {
    padding: 20px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.download-page .modal-content {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.btn-back {
    color: var(--text-gray, #94a3b8);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.mod-card {
    background-color: var(--card-bg, #12151e);
    border: 1px solid var(--card-border, #1e2333);
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* MEMBATASI UKURAN LOGO SUPAYA NGGAK MELUAP */
.mod-icon-box {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 16px auto;
    position: relative;
}

.logo-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100px !important;
    max-height: 100px !important;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
    display: block;
}

.badge-vip {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.mod-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: 10px;
    color: #ffffff;
}

.mod-sub {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.mod-specs {
    display: flex;
    justify-content: space-around;
    background-color: #090a0f;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #1e2333;
    margin-bottom: 18px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-label {
    font-size: 0.7rem;
    color: #64748b;
}

.spec-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.text-green {
    color: #10b981;
}

.mod-features {
    text-align: left;
    background-color: #090a0f;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #1e2333;
    margin-bottom: 22px;
}

.mod-features h4 {
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mod-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.78rem;
    color: #cbd5e1;
}

.btn-download-apk {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000000;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

