:root {
    /* Warna disesuaikan dengan foto yang dilampirkan */
    --midas-deep: #060a15; 
    --midas-blue: #007bff;
    --midas-light: #0d172e;
    --midas-border: #1e2b4e;
    --modal-blue: #111a3b;
    --btn-grad: linear-gradient(to right, #007bff, #00d4ff);
    --grad-merah: linear-gradient(to right, #ff0033, #8e001d);
    --grad-kuning: linear-gradient(to right, #ffae00, #b27a00);
    --grad-biru: linear-gradient(to right, #a000ff, #5a008e);
    --grad-ungu: linear-gradient(to right, #007bff, #0056b3);
    --grad-event: linear-gradient(to right, #00ccff, #007799);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background-color: var(--midas-deep); color: white; display: flex; justify-content: center; }

.container { width: 100%; max-width: 450px; background: var(--midas-deep); min-height: 100vh; position: relative; padding-top: 48px; }

header { 
    background: #0d172e; padding: 12px; border-bottom: 1px solid var(--midas-border); 
    display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; width: 100%; max-width: 450px; z-index: 99;
}
.logo { height: 18px; }

.banner { width: 100%; padding: 12px 12px 0 12px; }
.banner img { width: 100%; border-radius: 10px; border: 1px solid var(--midas-border); }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(6, 10, 21, 0.9); z-index: 100; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-box { width: 100%; max-width: 360px; overflow: hidden; position: relative; animation: popIn 0.3s ease; border-radius: 15px; border: 1px solid var(--midas-border); }
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-head { background: #16224d; padding: 22px 15px; text-align: center; border-bottom: 1px solid var(--midas-border); }
.modal-title { font-size: 18px; font-weight: 800; color: white; text-transform: uppercase; letter-spacing: 1px; }
.modal-body { padding: 25px; background: var(--modal-blue); }

.back-to-login { position: absolute; top: 12px; right: 15px; font-size: 22px; color: #9ca3af; cursor: pointer; z-index: 10; }

.m-input { width: 100%; padding: 12px; margin-bottom: 12px; border-radius: 6px; border: 1px solid #ddd; outline: none; color: #000; }
.m-input-dark { background: #0a1126; border: 1px solid var(--midas-border); color: white; }

.btn-main { width: 100%; height: 45px; border-radius: 6px; font-weight: bold; border: none; cursor: pointer; display: flex; align-items: center; position: relative; justify-content: center; }
.btn-main i, .btn-main img { position: absolute; left: 15px; width: 18px; text-align: center; }

.btn-fb { background: #1877f2; color: white; }
.btn-gg { background: #ffffff; color: #5f6368;}
.btn-tw { background: #ffffff; color: #000000; }
.btn-email { background: #e9b143; color: #000; }

.btn-collect { padding: 8px 12px; background: var(--btn-grad); color: white; border: none; border-radius: 5px; font-size: 11px; font-weight: bold; cursor: pointer; }

.loading-container { display: none; padding: 40px 20px; text-align: center; background: #ffffff !important; }
.spinner { width: 40px; height: 40px; border: 4px solid rgba(0,0,0,0.05); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 15px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.gift-container { padding: 10px 15px; }
.gift-item { background: var(--midas-light); border: 1px solid var(--midas-border); border-radius: 10px; display: flex; align-items: center; padding: 10px; gap: 12px; margin-bottom: 8px; }
.gift-img-box { width: 65px; height: 65px; background: #081229; border: 1px solid #2d3861; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 4px; }
.gift-img { width: 50px; height: 50px; object-fit: contain; }

.gift-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.gift-info p { 
    font-size: 9px; font-weight: 800; color: white; text-shadow: 1px 1px 1px #000;
    letter-spacing: 0.5px; display: inline-block; padding: 2px 8px; border-radius: 4px;
}

.gift-img-box {
    position: relative;
    overflow: hidden;
    background: #081229;
    border: 1px solid #2d3861;
    border-radius: 4px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
}

.gift-img-box::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(
        to right, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.15) 50%, 
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    animation: softShine 3.5s infinite ease-in-out;
}

@keyframes softShine {
    0% { left: -100%; }
    40% { left: 150%; }
    100% { left: 150%; }
}

.gift-count {
    position: absolute;
    bottom: 0;
    left: 0;
    background: none;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-top-right-radius: 4px;
    z-index: 3;
    text-shadow: 1px 1px 1px #000;
}

/* Style tombol harga dengan gradasi biru baru */
.token-price-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    background: linear-gradient(#00c4de, #1b56ff); /* Gradasi sesuai permintaan */
    color: #fff; /* Teks warna putih */
    padding: 6px 12px;
    border-radius: 6px;
    min-width: 85px;
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent; 
    outline: none;
}

.token-price-box:active {
    transform: scale(0.95); /* Efek saat diklik */
    background: linear-gradient(#00c4de, #1b56ff);
}

.token-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.price-text {
    font-size: 13px;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3); /* Agar angka lebih terbaca */
}

.discount-tag {
    position: absolute;
    top: 0;
    left: 0;
    background: #ff0033; /* Warna merah */
    color: white;
    font-size: 7px;
    font-weight: bold;
    padding: 2px 6px;
    border-bottom-right-radius: 8px;
    z-index: 4;
    text-transform: uppercase;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.tag-merah {
background-image: linear-gradient(to right, #740404, #66000000);
border-left: 2px solid #BE120E;
border-radius: 0% !important;
padding-left: 2px !important;
padding-right: 10px !important;
}
.tag-biru {
background-image: linear-gradient(to right, #491D77, #66000000);
border-left: 2px solid #6A2AAC;
border-radius: 0% !important;
padding-left: 2px !important;
padding-right: 10px !important;
}
.tag-kuning {
background-image: linear-gradient(to right, #FBDA4D, #66000000);
border-left: 2px solid yellow;
border-radius: 0% !important;
padding-left: 2px !important;
padding-right: 10px !important;
}
.tag-ungu {
background-image: linear-gradient(to right, #7C1464, #66000000);
border-left: 2px solid #B12D99;
border-radius: 0% !important;
padding-left: 2px !important;
padding-right: 10px !important;
}

/* Style untuk Popup Baru mirip Gambar */
.modal-confirm-new {
    background: #111a3b;
    border-radius: 4px;
    color: white;
    text-align: left !important;
    max-width: 400px;
    overflow: hidden;
}

.confirm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #1e2b4e;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.confirm-section-label {
    color: #8a96b1;
    font-size: 11px;
    margin-bottom: 10px;
    display: block;
}

.item-detail-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.item-img-frame {
    width: 80px;
    height: 80px;
    background: linear-gradient(#1e3a8a, #111a3b);
    border: 1px solid #3b82f6;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #1e2b4e;
    border-bottom: 1px solid #1e2b4e;
}

.confirm-input-group {
    padding: 20px 0;
}

.confirm-input {
    width: 100%;
    background: #0a1126;
    border: 1px solid #1e2b4e;
    padding: 12px;
    color: white;
    border-radius: 4px;
    outline: none;
    margin-top: 0px;
}

.confirm-input::placeholder { color: #fff !important; }

.btn-confirm-ok {
    width: 100%;
    background: linear-gradient(#00c4de, #1b56ff);
    color: white;
    border: none;
    padding: 12px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}

/* Style untuk pesan error di dalam popup konfirmasi */
.error-msg-confirm {
    display: none;
    color: #ff4444;
    font-size: 11px;
    text-align: left;
    margin-top: 5px;
}

/* Animasi getar saat error (opsional) */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.shake-error { animation: shake 0.2s ease-in-out 0s 2; }
/* Style untuk Label dengan Ikon */
.input-label-new {
    display: flex;
    align-items: center;
    gap: 8px; /* Jarak antara ikon dan teks */
    text-align: left;
    font-size: 11px;
    color: #8a96b1;
    margin-bottom: 6px;
    margin-top: 15px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.input-label-new i {
    font-size: 13px;
    color: #3b82f6; /* Warna ikon biru cerah */
    width: 15px;
    text-align: center;
}

/* Mengatur jarak antar elemen agar tidak terlalu rapat */
.m-input-dark {
    margin-bottom: 5px !important; /* Jarak dikelola oleh label/error */
}

/* Cari dan ganti bagian ini */
.error-msg { 
    display: none; 
    color: #ff4444; 
    font-size: 11px; /* Ukuran sedikit diperbesar agar terbaca */
    text-align: left; 
    margin-top: 5px; /* Memberi jarak dari input di atasnya */
    margin-bottom: 10px; /* Memberi jarak ke elemen di bawahnya */
    margin-left: 2px;
}

/* Spinner kecil khusus di dalam tombol */
.btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin-btn 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin-btn {
    to { transform: rotate(360deg); }
}

footer { background: var(--midas-deep); padding: 20px 20px 30px; text-align: left; border-top: 1px solid var(--midas-border); margin-top: 5px; }
.footer-label { color: white; font-size: 14px; font-weight: bold; margin-bottom: 15px; display: block; }
.social-icons { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.social-icons i { font-size: 18px; color: #ffffff; background: #1a2a47; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.contact-box { border-top: 1px solid var(--midas-border); padding-top: 20px; }
.contact-text { font-size: 11px; color: #7d8da7; line-height: 1.6; margin: 10px 0; }
.btn-feedback { display: inline-block; background: #1a2a47; color: white; padding: 10px 22px; border-radius: 4px; font-size: 12px; font-weight: bold; text-decoration: none; }
.legal-footer { font-size: 10px; color: #4b5a75; margin-top: 35px; text-align: center; line-height: 2; }

.m-input-dark {
    color: white !important;
    background: #0a1126;
    border: 1px solid var(--midas-border);
    height: 45px !important;
    line-height: 45px;
    padding: 0 10px !important;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.m-input-dark::placeholder { color: #fff !important; }

.btn-tw-active {
    background: #000000 !important;
    color: white !important;
}
.btn-tw-disabled {
    background: #7f7f7f !important;
    color: #ccc !important;
}

.modal-email {
    background: #111a3b; 
    border: 1px solid var(--midas-border);
    width: 90%;
    max-width: 420px;
    border-radius: 2px;
    position: relative;
    color: white;
    font-family: sans-serif;
}

.email-header {
    padding: 15px;
    border-bottom: 1px solid var(--midas-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-body { padding: 25px 20px; }
.email-label { display: block; font-size: 15px; color: #cecece; margin-bottom: 8px; }

.input-group { position: relative; margin-bottom: 20px; }

.input-email-style {
    width: 100%;
    background: #0a1126;
    border: 1px solid var(--midas-border);
    padding: 12px 10px;
    color: white;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.input-email-style:focus { border-color: var(--midas-blue); }

.btn-email-ok {
    background: #f7e314; /* Tetap kuning sesuai foto untuk tombol konfirmasi utama */
    color: #000;
    width: 40%;
    margin: 10px auto 0;
    display: block;
    padding: 10px;
    border: none;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 16px;
}

.show-hide-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    text-transform: uppercase;
}

.modal-overlay { z-index: 9999 !important; }

.erormsg {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid #ff4d4d;
    padding: 8px;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.loading-wrapper {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Tambahkan atau ubah bagian ini */
    min-height: 400px; /* Menyesuaikan tinggi rata-rata form verif agar tidak menciut */
    width: 100%;
    padding: 30px 0;
}

.spinner-new {
    width: 50px; /* Sedikit diperbesar agar proporsional */
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid #3b82f6; /* Warna biru cerah */
    border-radius: 50%;
    animation: spin-anim 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin-anim {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}