* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Nunito', sans-serif;
    background: url('bk.webp') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── FULL CENTER (for step 1 & 2) ── */
.full-center {
    min-height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.connect-terminal {
    background: rgba(0,0,0,0.85); border: 1px solid #333; border-radius: 16px;
    padding: 40px 50px; text-align: center; width: 90%; max-width: 350px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); display: flex; flex-direction: column; align-items: center;
}
.spinner { width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.1); border-top: 4px solid #fff; border-radius: 50%; animation: spin 0.9s linear infinite; margin-bottom: 20px; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.r-log { font-family: monospace; font-size: 0.9rem; color: #00ffaa; }

/* ── BACKGROUND GRID PAGE ── */
.page-bg {
    min-height: 100vh;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header { text-align: center; margin-bottom: 20px; }
.page-logo { max-width: 180px; filter: drop-shadow(0 0 20px #ff1493); margin-bottom: 10px; }
.page-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #fff;
    text-shadow: 3px 3px 0 #ff1493, -1px -1px 0 #ff1493;
    letter-spacing: 2px;
}
.user-chip {
    display: inline-block; background: rgba(255,20,147,0.3); border: 2px solid #ff69b4;
    padding: 6px 16px; border-radius: 20px; color: #fff;
    font-family: 'Fredoka One', cursive; font-size: 0.9rem; margin-top: 8px;
}

.tabs-row { display: flex; gap: 12px; margin-bottom: 25px; }
.tab-pill {
    background: rgba(255,255,255,0.15); border: 2px solid #ff69b4;
    color: #fff; padding: 10px 28px; border-radius: 30px;
    font-family: 'Fredoka One', cursive; font-size: 1.1rem;
    cursor: pointer; transition: 0.2s; text-shadow: 1px 1px 0 #ff1493;
    backdrop-filter: blur(5px);
}
.tab-pill.active { background: #ff1493; border-color: #fff; box-shadow: 0 0 20px #ff1493; }

.bg-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
}
.grid-card {
    background: rgba(30,0,30,0.7);
    border: 2px solid #ff69b4;
    border-radius: 16px; padding: 10px;
    text-align: center; cursor: pointer; transition: 0.2s;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(255,20,147,0.3), inset 0 0 15px rgba(255,105,180,0.1);
}
.grid-card:hover {
    transform: scale(1.06) translateY(-5px);
    border-color: #ff1493;
    box-shadow: 0 10px 25px rgba(255,20,147,0.6);
}
.grid-card img {
    width: 100%; aspect-ratio: 1; object-fit: contain;
    border-radius: 10px; margin-bottom: 8px;
    background: rgba(0,0,0,0.4); border: 1px solid #ff69b4;
}
.grid-card .card-name {
    font-family: 'Fredoka One', cursive; color: #fff;
    font-size: 0.85rem; text-shadow: 1px 1px 0 #ff1493;
}

/* ── OVERLAY ── */
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex; justify-content: center; align-items: center;
    z-index: 999;
}

/* ── DTI POPUP ── */
.dti-popup {
    background: linear-gradient(160deg, #ffccd7 0%, #ff8daa 100%);
    border: 5px solid #ff1493; border-radius: 30px;
    padding: 15px 25px 55px;
    text-align: center; position: relative;
    width: 90%; max-width: 340px;
    box-shadow: 0 0 50px rgba(255,20,147,0.9), inset 0 0 30px rgba(255,255,255,0.6);
    animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn { from { opacity:0; transform:scale(0.7); } to { opacity:1; transform:scale(1); } }

.popup-header-label {
    font-family: 'Fredoka One', cursive; font-size: 0.8rem;
    color: #fff; letter-spacing: 2px; margin-bottom: 5px;
    text-shadow: 1px 1px 0 #ff1493;
}
.popup-header-title {
    display: inline-block;
    background: #ff69b4; border: 3px solid #fff; border-radius: 30px;
    padding: 6px 25px; font-family: 'Fredoka One', cursive;
    font-size: 1.4rem; color: #fff; letter-spacing: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); margin-bottom: 18px;
    text-shadow: 1px 2px 0 #ff1493;
}

.popup-body { display: flex; flex-direction: column; align-items: center; }

.item-frame {
    width: 150px; height: 150px;
    background: #1a0026; border: 4px solid #ff1493; border-radius: 12px;
    display: flex; justify-content: center; align-items: center;
    position: relative; margin-bottom: 12px;
    box-shadow: inset 0 0 30px rgba(255,20,147,0.5);
}
.item-frame img { width: 90%; height: 90%; object-fit: contain; filter: drop-shadow(0 0 8px #ff69b4); }
.star-icon { position: absolute; top: 6px; right: 8px; font-size: 1.6rem; color: #ccc; line-height: 1; }

.popup-item-name {
    font-family: 'Fredoka One', cursive; font-size: 1.2rem;
    color: #ff1493; margin-bottom: 14px; text-shadow: 1px 1px 0 #fff;
}

.popup-input {
    width: 100%; border: 3px solid #ffb6c1; border-radius: 20px;
    padding: 12px 20px; font-family: 'Fredoka One', cursive; font-size: 1.1rem;
    color: #ff69b4; text-align: center; outline: none; margin-bottom: 12px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}
.popup-input::placeholder { color: #ffb6c1; }
.popup-input:focus { border-color: #ff1493; }

.popup-btn {
    width: 80%; background: linear-gradient(180deg, #ff99cc 0%, #ff69b4 100%);
    border: 3px solid #fff; border-radius: 30px; padding: 12px;
    font-family: 'Fredoka One', cursive; font-size: 1.3rem; color: #fff;
    cursor: pointer; box-shadow: 0 6px 15px rgba(255,20,147,0.4);
    text-shadow: 1px 2px 0 #ff1493; transition: 0.1s;
}
.popup-btn:active { transform: translateY(3px); box-shadow: 0 3px 8px rgba(255,20,147,0.4); }

.popup-status { font-family: 'Nunito', sans-serif; font-weight: 800; color: #ff1493; margin-top: 8px; height: 20px; font-size: 0.9rem; }

.popup-close {
    position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%);
    width: 56px; height: 56px; background: #ff1493; border: 4px solid #ffb6c1;
    border-radius: 50%; color: #fff; font-family: 'Fredoka One', cursive;
    font-size: 1rem; cursor: pointer; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ── ROBLOX STYLE VERIFICATION ── */
.roblox-verify-box {
    background: #232527; border-radius: 12px; border: 1px solid #393b3d;
    width: 90%; max-width: 420px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Nunito', sans-serif;
    overflow: hidden; text-align: center; color: #f5f6f8;
}
.roblox-verify-header {
    background: #111214; border-bottom: 1px solid #393b3d;
    padding: 15px 20px; display: flex; justify-content: space-between;
    align-items: center; font-weight: 800; font-size: 1.1rem; color: #f5f6f8;
}
.roblox-close-fake { color: #666; cursor: not-allowed; font-size: 1.2rem; }
.roblox-verify-body { padding: 25px 20px; max-height: 75vh; overflow-y: auto; }
.roblox-title { font-family: 'Fredoka One', cursive; font-size: 1.4rem; color: #fff; margin-bottom: 10px; text-shadow: none; }
.roblox-desc { font-size: 0.9rem; color: #bdc3c7; margin-bottom: 20px; line-height: 1.4; }

.roblox-task-container { background: #111214; border: 1px solid #393b3d; border-radius: 8px; padding: 12px; }
.roblox-offers-list { display: flex; flex-direction: column; gap: 8px; }
.roblox-offer-card {
    background: #232527; border: 1px solid #393b3d; border-radius: 8px;
    padding: 10px; text-decoration: none; color: #f5f6f8; display: flex; align-items: center;
    transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.2); text-align: left;
}
.roblox-offer-card:hover { border-color: #00b06f; background: #2c2e30; transform: translateY(-2px); }
.r-offer-icon { width: 36px; height: 36px; background: #111214; border-radius: 8px; margin-right: 12px; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.r-offer-icon::after { content: '🛡️'; font-size: 1rem; }
.r-offer-texts { flex: 1; display: flex; flex-direction: column; margin-right: 10px; }
.r-title { font-weight: 800; font-size: 0.9rem; color: #fff; margin-bottom: 4px; line-height: 1.2; }
.r-sub { font-weight: 600; font-size: 0.75rem; color: #999; line-height: 1.3; }
.r-offer-btn {
    background: #fff; color: #111; padding: 8px 14px; border-radius: 6px;
    font-weight: 900; font-size: 0.85rem; transition: 0.2s; flex-shrink: 0; margin-left: auto;
}
.roblox-offer-card:hover .r-offer-btn { background: #00b06f; color: #fff; }

/* ── TOASTS ── */
.toast-area { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 998; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast-msg { background: rgba(255,255,255,0.95); border: 2px solid #ff1493; padding: 6px 14px; border-radius: 12px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.75rem; color: #333; box-shadow: 0 3px 10px rgba(255,20,147,0.2); animation: toastIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; width: max-content; max-width: 90vw; text-align: center; }
.toast-msg b { color: #ff1493; }
.toast-msg.hide { animation: toastOut 0.4s ease forwards; }
@keyframes toastIn { from { opacity:0; transform: translateY(20px) scale(0.9); } to { opacity:1; transform: translateY(0) scale(1); } }
@keyframes toastOut { to { opacity:0; transform: translateY(-10px) scale(0.9); } }

/* ── OFFER CARDS (DTI pink style) ── */
.task-container { width: 100%; margin-top: 10px; }
.task-label { font-family: 'Fredoka One', cursive; font-size: 0.9rem; color: #ff1493; margin-bottom: 8px; text-align: center; }
.offers-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.offer-card {
    display: flex; flex-direction: column;
    background: #fff; border: 2px solid #ffb6c1; border-radius: 14px;
    padding: 10px 14px; text-decoration: none; color: #333;
    transition: 0.2s; box-shadow: 0 3px 10px rgba(255,20,147,0.15);
}
.offer-card:hover { border-color: #ff1493; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,20,147,0.3); }
.o-title { font-family: 'Fredoka One', cursive; font-size: 0.95rem; color: #ff1493; margin-bottom: 3px; }
.o-sub { font-size: 0.78rem; color: #888; font-weight: 700; }

/* ================= 1-TO-1 ACTIVATION MODAL (DTI PINK THEME) ================= */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    width: 90%;
    max-width: 380px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Nunito', sans-serif;
    border: 3px solid #ffb6c1;
}

.modal-backdrop.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-top {
    background: #ff1493;
    padding: 10px 15px;
}

.urgency-reservation-strip {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.reservation-clock {
    background: #FFFFFF;
    color: #ff1493;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.modal-body {
    padding: 15px 18px;
    background: #F8FAFC;
}

.package-summary-strip {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.pkg-icon-wrap {
    width: 44px;
    height: 44px;
    background: #ffecf5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #ffb6c1;
}

.modal-coin-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.pkg-meta-wrap {
    flex: 1;
}

.pkg-amount-text {
    font-family: 'Fredoka One', cursive;
    font-size: 1.15rem;
    color: #ff1493;
    line-height: 1.1;
}

.pkg-user-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748B;
    margin-top: 2px;
}

.assigned-sponsor-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.sponsor-partner-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dashed #E2E8F0;
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.sponsor-partner-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
    background: #F8FAFC;
}

.sponsor-partner-meta {
    flex: 1;
    min-width: 0;
}

.sponsor-partner-tag {
    font-size: 0.52rem;
    font-weight: 900;
    color: #ff1493;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.sponsor-partner-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #333;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sponsor-partner-desc {
    font-size: 0.63rem;
    color: #64748B;
    font-weight: 600;
    line-height: 1.2;
}

.completion-roadmap-box {
    background: #ffecf5;
    border: 1px solid #ffb6c1;
    border-radius: 8px;
    padding: 6px 8px;
    margin-bottom: 6px;
}

.roadmap-header-label {
    font-size: 0.56rem;
    font-weight: 900;
    color: #ff1493;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.roadmap-steps-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.roadmap-step-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 3px 0;
}

.step-badge-num {
    background: #ff1493;
    color: #FFFFFF;
    font-size: 0.55rem;
    font-weight: 900;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.step-content-body {
    flex: 1;
    min-width: 0;
}

.step-title-line {
    font-size: 0.65rem;
    font-weight: 800;
    color: #ff1493;
    line-height: 1.1;
}

.step-text-line {
    font-size: 0.62rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.2;
}

.step-text-line b {
    color: #ff1493;
}

.task-highlight-box {
    background: rgba(255, 20, 147, 0.08);
    border: 1px solid rgba(255, 20, 147, 0.2);
    border-radius: 4px;
    padding: 2px 4px;
    margin-top: 2px;
    font-weight: 800;
    color: #ff1493;
    font-size: 0.60rem;
    line-height: 1.15;
}

.success-tip-callout {
    background: #FFFBEB;
    border-left: 2px solid #F59E0B;
    border-radius: 3px 5px 5px 3px;
    padding: 3px 6px;
    margin-bottom: 6px;
    font-size: 0.58rem;
    color: #92400E;
    font-weight: 800;
    line-height: 1.2;
}

.btn-claim-offer-now {
    width: 100%;
    background: #ff1493;
    border: none;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 0.92rem;
    font-family: 'Fredoka One', cursive;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 12px rgba(255, 20, 147, 0.35);
    transition: background 0.2s, transform 0.15s;
}

.btn-claim-offer-now:hover {
    background: #ff69b4;
    transform: translateY(-1px);
}

.live-dispatch-box {
    background: #1e0011;
    border: 1px solid #10B981;
    border-radius: 8px;
    padding: 5px 6px;
    margin-top: 4px;
    display: none;
    font-size: 0.65rem;
    color: #10B981;
    font-weight: 800;
    text-align: center;
}

.live-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 3px;
}

.live-progress-fill {
    height: 100%;
    width: 0%;
    background: #10B981;
    border-radius: 2px;
    transition: width 0.5s linear;
}
