:root {
    --bg: #1c1e35;
    --bg-2: #1c1e35;
    --card: #151a2d;
    --muted: #a9b3d4;
    --text: #f0f3ff;
    --accent: #6baaff;
    --accent-2: #9b6dff;
    --success: #3ddc97;
    --warning: #ffd166;
    --danger: #f94144;
    --badge: #1e2342;
    --border: #2a3259;
    --shadow: 0 14px 40px rgba(0, 0, 0, .45);
    --radius: 18px;
}

/*
body {
    margin: 0;
    background: radial-gradient(1200px 600px at 50% -200px,
            rgba(155, 109, 255, 0.15),
            rgba(107, 170, 255, 0.15),
            transparent),
        var(--bg);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
        Helvetica, Arial;
    color: var(--text);
}
*/

/* Overlay */
/*
.LockerOverlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
    height: 100vh;
    width: 100vw;
    overflow-y: auto;
}

.LockerCard {
    width: 100%;
    max-width: 560px;
    background: linear-gradient(180deg, #14182e, #101327);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
*/

.LockerOverlay {
    position: fixed;       /* ensure it stays above content */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: flex-start;  /* start from top */
    justify-content: center;
    padding: 8px;
    z-index: 9999;
    background: rgba(4, 8, 20, .72); /* optional backdrop */
    overflow-y: auto;       /* allow scrolling if content taller than screen */
}

/**
.OffersContainer {
    position: relative;
    max-height: 55vh;
    overflow-y: auto;
    padding: 0 12px;
}

.OffersContainer::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 12px;      
    right: 12px;     
    height: 60px;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
*/

.LockerCard {
    margin-top: 20px;      /* avoid sticking to very top */
    margin-bottom: 40px;   /* breathing space at bottom */
}

/* Header */
.Header {
    padding: 10px 10px 0;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 5px;
    border-radius: 50%;
}

.Header:hover {
    border-radius: 50%;
}

.BackLink {
    color: var(--muted);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #fff; /*var(--border);*/
    background: var(--card);
    transition: 0.25s;
}

.BackLink:hover {
    background: #f00; /*var(--accent);*/
    color: white;
    transform: scale(1.1);
    border-radius: 50%;
}

.BackLink svg {
    border-radius: 50px;
}

.BackLink svg:hover {
    border-radius: 50px;
}

.TitleWrap {
    padding: 4px 18px 16px;
}

.LockIcon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(155, 109, 255, .2), rgba(107, 170, 255, .2));
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.H1 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .2px;
}

.Sub {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

/* Progress */
.Progress {
    margin: 12px 18px 16px;
    background: #0f1630;
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
}

.ProgLeft {
    display: flex;
    align-items: center;
    gap: 10px;
}

.Spinner {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent);
    border-right-color: var(--accent-2);
    animation: spin 1.1s linear infinite;
}

.ProgText {
    font-weight: 700;
}

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

.Checkmark {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    /*background-color: var(--accent);*/
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.Checkmark::after {
    content: '';
    width: 8px;
    height: 14px;
    border-left: 3px solid var(--accent-2);
    border-bottom: 3px solid var(--accent-2);
    transform: rotate(-45deg);
    position: absolute;
}

.Offers {
    padding: 0 12px 8px;
    max-height: 55vh;
    overflow: auto;
}

.Offer {
    display: flex;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    margin: 8px 6px;
    align-items: flex-start;
    position: relative;
    transition: 0.25s;
}

.Offer:hover {
    border-color: var(--accent);
}

.Offer:active {
    transform: scale(.92);
}

.Icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #0a1430;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.OCol {
    flex: 1;
    min-width: 0;
}

.IconWrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 56px; /* same as Icon */
}

.Star {
    font-size: 12px;
    color: var(--warning);
    text-align: center;
}

.Ellipsis {
    white-space: nowrap;       /* Keep text on a single line */
    overflow: hidden;          /* Hide overflow */
    text-overflow: ellipsis;   /* Show "..." for overflow */
    max-width: 190px;
}

.OName {
    margin: 0;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 30px;
}

.ODesc {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.OMeta {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.Badge {
    background: var(--badge);
    color: #cdd9ff;
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.Arrow {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d0dbff;
    background: #141c36;
    transition: 0.25s;
}

.Arrow:hover {
    background: var(--accent);
    color: white;
}

/* How-To */
.HowTo {
    margin: 14px 18px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, #161c38, #121630);
    padding: 14px;
}

.HowH {
    text-align: center;
    margin: 2px 0 8px;
    font-size: 16px;
    letter-spacing: .3px;
    font-weight: 900;
}

.Steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.Step {
    display: flex;
    gap: 12px;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
}

.Num {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    border: none;
    box-shadow: 0 3px 8px rgba(255, 255, 255, 0.1);
}

.NumContainer {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.SBody {
    font-size: 14px;
    color: var(--text);
    text-align: center;
}

/* Footer Tiles */
.Tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 18px 18px;
}

.Tile {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.Tile .Title {
    font-size: 12px;
    font-weight: 900;
    color: var(--muted);
}

.Tile .Content {
    font-size: 11px;
    margin-top: 4px;
    color: var(--text);
}

/* Small Helpers */
.Hidden {
    display: none !important;
}

.Divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

@media (max-width: 991px) {
    .Offers {
        /*max-height: 50vh;*/
    }
}

.UnlockWrap {
    padding: 16px;
    text-align: center;
}

#UnlockBtn {
    width: 100%;
    padding: 14px 24px;
    font-size: 17px;
    font-weight: 800;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #6baaff, #9b6dff);
    color: white;
    cursor: not-allowed;
    opacity: 1;
    transition: background 0.3s, transform 0.15s, opacity 0.3s;
}

#UnlockBtn:hover {
    /*cursor: pointer;*/
    opacity: 0.6;
}

#UnlockBtn.active:hover {
    background: linear-gradient(135deg, var(--success), #28a745);
    transform: scale(1.03);
}

/* Container Overlay */
#popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.5); /* gray-900 with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

/* Card */
#popup-card {
    background-color: #fff;
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.1);
    width: 20rem; /* w-80 */
    padding: 1.5rem; /* p-6 */
    text-align: center;
}

/* Icon */
#popup-icon img {
    width: 4rem;   /* w-16 */
    height: 4rem;  /* h-16 */
    border-radius: 50%;
    margin: 0 auto;
}

/* Title */
#popup-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

/* Message */
#popup-message {
    color: #4b5563; /* text-gray-600 */
    margin-top: 0.5rem;
}

/* Button */
#popup-card button {
    width: 100%;
    border: none;
    border-radius: 0.375rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Error Variant */
.error-btn {
    background-color: #ef4444; /* red-500 */
    color: #fff;
}
.error-btn:hover {
    background-color: #fff;
    color: #ef4444;
    border: 2px solid #ef4444;
}

/* Success Variant */
.success-btn {
    background-color: #22c55e; /* green-500 */
    color: #fff;
}
.success-btn:hover {
    background-color: #fff;
    color: #22c55e;
    border: 2px solid #22c55e;
}

/* Utility: Hidden */
.hidden {
    display: none !important;
}
