@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    /* PINK THEME VARIABLES */
    --primary-pink: #ec4899;
    --pink-light: #f472b6;
    --pink-dark: #be185d;
    --bg-deep: #0B0B15;
    --bg-card: #161625;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --success-green: #10B981;
    --border-pink: rgba(236, 72, 153, 0.2);
    --shadow-glow: rgba(236, 72, 153, 0.4);
}

/* Reset & Base */
html {
    margin: 0; padding: 0; width: 100%; height: 100%;
}
body {
    margin: 0 !important; padding: 0 !important;
    background-color: var(--bg-deep) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: var(--text-primary);
    overflow-x: hidden;
    width: 100% !important;
}

#my-locker {
    width: 100% !important; max-width: 100% !important; margin: 0 !important;
    background: transparent !important; border: none !important; box-shadow: none !important;
    display: flex !important; justify-content: center !important;
}

#red-locker-wrapper {
    display: flex; flex-direction: column; height: auto;
    width: 100%; max-width: 400px;
    background: transparent;
    position: relative;
    border: none;
    padding-bottom: 5px;
    overflow: hidden;
}

/* Header & Title */
#red-header {
    flex-shrink: 0; background: transparent;
    padding: 10px 10px 0 10px;
    text-align: center;
}

.header-actions {
    display: flex; justify-content: center; margin-bottom: 5px;
}

.status-telegram-big {
    background: rgba(236, 72, 153, 0.15);
    color: var(--primary-pink) !important;
    padding: 6px 15px;
    border-radius: 50px;
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700;
    text-decoration: none !important;
    border: 1px solid var(--border-pink);
    transition: all 0.2s ease;
}

.red-meta-large { margin-bottom: 8px; width: 100%; overflow: hidden; }
.red-meta-large .lk-maintitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(16px, 5.5vw, 22px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700; margin: 0; line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary), var(--pink-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Thumbnail - SMALLER & CENTERED */
.red-thumb-large {
    width: 95%;
    height: auto;
    aspect-ratio: 2.35/1;
    border-radius: 10px;
    overflow: hidden; position: relative;
    border: 1px solid var(--border-pink);
    margin: 0 auto 8px auto;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
    animation: pulse-border-glow 3s infinite;
    cursor: pointer;
    transition: transform 0.2s ease;
}
@keyframes pulse-border-glow {
    0% { box-shadow: 0 0 15px rgba(236, 72, 153, 0.3); border-color: rgba(236, 72, 153, 0.3); }
    50% { box-shadow: 0 0 30px rgba(236, 72, 153, 0.6); border-color: rgba(236, 72, 153, 0.6); }
    100% { box-shadow: 0 0 15px rgba(236, 72, 153, 0.3); border-color: rgba(236, 72, 153, 0.3); }
}
.red-thumb-large img { width: 100%; height: 100%; object-fit: cover; }
.red-thumb-large:hover {
    transform: scale(0.98);
    opacity: 0.9;
}

/* --- INSTRUCTION TEXT (PINK THEME) --- */
.instruction-text {
    margin: 0 0 10px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.inst-line1 {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.4;
}

.inst-line2 {
    font-size: 11px;
    color: var(--primary-pink);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin-top: 2px;
    text-shadow: 0 0 8px rgba(236, 72, 153, 0.6), 0 0 15px rgba(236, 72, 153, 0.3);
    animation: text-pulse 2s infinite alternate;
}

@keyframes text-pulse {
    0% { opacity: 0.9; text-shadow: 0 0 8px rgba(236, 72, 153, 0.6); }
    100% { opacity: 1; text-shadow: 0 0 12px rgba(236, 72, 153, 0.9), 0 0 20px rgba(236, 72, 153, 0.5); }
}

/* Carousel */
#red-carousel-container {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5px; margin-bottom: 8px; gap: 8px;
    max-width: 100%; overflow: hidden;
}
.carousel-nav {
    width: 24px; height: 24px;
    background: rgba(255,255,255,0.03); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); cursor: pointer;
    border: 1px solid var(--border-pink); flex-shrink: 0;
    font-size: 10px;
}

/* --- CLICKED STATE FOR ARROWS --- */
.carousel-nav.click-highlight, .carousel-nav:active {
    background: rgba(236, 72, 153, 0.2);
    color: var(--primary-pink);
    border-color: var(--primary-pink);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
    transform: scale(0.95);
}

/* --- OFFER CARD --- */
#active-offer-card {
    flex: 1;
    width: 100%; max-width: 100%; overflow: hidden;
    background: rgba(236, 72, 153, 0.03);
    border: 1px solid var(--border-pink);
    border-radius: 12px;
    padding: 10px;
    height: auto;
    min-height: 160px;
    position: relative;
    display: flex; flex-direction: column;
    text-align: left;
    box-sizing: border-box;
}

.offer-header-row {
    display: flex; gap: 10px; margin-bottom: 10px; align-items: center;
    width: 100%; overflow: hidden;
}

.offer-img-wrapper {
    width: 50px; height: 50px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(236, 72, 153, 0.1);
    flex-shrink: 0;
    border: 1px solid var(--border-pink);
}
.offer-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.offer-text-group {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; justify-content: center;
    overflow: hidden;
}

/* --- MARQUEE TITLE --- */
.task-title {
    font-size: 13px; font-weight: 700; color: var(--text-primary);
    margin: 0 0 2px 0; line-height: 1.2;
    white-space: nowrap;
    display: block; width: 100%;
    overflow: hidden;
}

.marquee-wrapper {
    display: inline-block;
    padding-left: 0;
    animation: marquee 8s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    20% { transform: translateX(0); }
    80% { transform: translateX(-50%); }
    100% { transform: translateX(-50%); }
}

.task-desc {
    font-size: 9px; color: var(--text-secondary); margin: 0; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.instruction-box {
    background: rgba(11, 11, 21, 0.6);
    border: 1px dashed var(--border-pink);
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 10px;
    width: 100%; box-sizing: border-box;
}
.instruction-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 4px;
}
.instruction-label {
    font-size: 8px; color: var(--primary-pink); font-weight: 700;
    text-transform: uppercase; display: block;
}

/* NEW USER LABEL */
.new-user-label {
    font-size: 8px;
    color: var(--primary-pink);
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid var(--primary-pink);
    border-radius: 4px;
    padding: 1px 4px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-left: auto;
}

.instruction-steps { list-style: none; padding: 0; margin: 0; }
.instruction-steps li {
    font-size: 9px; color: var(--text-secondary); margin-bottom: 2px;
    padding-left: 0; display: flex; align-items: flex-start; gap: 4px; word-break: break-word;
}
.instruction-steps li i { color: var(--success-green); font-size: 8px; margin-top: 2px; flex-shrink: 0; }

.task-card-btn {
    background: linear-gradient(135deg, var(--primary-pink), var(--pink-dark));
    width: 100%; padding: 8px 0; border-radius: 6px;
    color: white; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.2);
    margin-top: auto;
    cursor: pointer;
}

.carousel-dots { display: flex; justify-content: center; gap: 4px; margin-bottom: 8px; }
.dot { width: 4px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 50%; }
.dot.active { background: var(--primary-pink); width: 12px; border-radius: 4px; }

/* --- 3-STEPS VISUAL (Option A: gradient fill + pulse) --- */
.steps-container { padding: 0 10px; margin-bottom: 10px; display: block; }
.steps-visual { width: 100%; display: flex; align-items: flex-start; justify-content: center; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 2; position: relative; }

.step-circle {
    width: 26px; height: 26px; border-radius: 50%;
    background: #20202f; border: 1px solid rgba(236,72,153,0.25);
    color: var(--text-muted); font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.step-circle.active { border-color: transparent; background: var(--primary-pink); color: #fff; animation: stepPulse 1.8s infinite; }
.step-circle.done { border-color: transparent; background: var(--success-green); color: #fff; }
@keyframes stepPulse {
    0%   { box-shadow: 0 0 0 0 rgba(236,72,153,0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(236,72,153,0); }
    100% { box-shadow: 0 0 0 0 rgba(236,72,153,0); }
}
.step-label { font-size: 8px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; transition: color 0.3s; }
.step-circle.active + .step-label { color: var(--pink-light); }
.step-circle.done + .step-label { color: var(--success-green); }

.step-line {
    flex: 1; max-width: 70px; height: 4px; border-radius: 2px;
    align-self: flex-start; margin-top: 11px;
    background: rgba(255,255,255,0.08);
    position: relative; overflow: hidden;
}
.step-line.done { background: linear-gradient(90deg, var(--success-green), var(--primary-pink)); }
.step-line.now { background: rgba(236,72,153,0.15); }
.step-line.now::after {
    content: ""; position: absolute; top: 0; left: 0; height: 100%; width: 100%;
    background: linear-gradient(90deg, var(--primary-pink) 0%, var(--pink-light) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: stepSweep 1.6s ease-in-out infinite;
}
@keyframes stepSweep { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(0); } }

/* --- UNLOCK BUTTON --- */
#red-footer { padding: 0 10px 10px 10px; text-align: center; }

#red-unlock-btn {
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    padding: 10px; border-radius: 8px;
    font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: 0.5px;
    display: flex; justify-content: center; align-items: center; gap: 8px;
    cursor: not-allowed; border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 5px;
}
#red-unlock-btn.active {
    background: linear-gradient(135deg, var(--success-green), #059669);
    color: white; cursor: pointer;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3); border: none;
}
.pulse { animation: pulse-green 2s infinite; }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

.red-legal { font-size: 8px; color: var(--text-muted); opacity: 0.5; }

/* Pink Spinner */
.custom-loader {
    width: 12px; height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: smooth-spin 0.8s linear infinite;
    display: inline-block;
}
@keyframes smooth-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Loading / Error states (new) */
.locker-loading, .locker-error {
    color: var(--text-secondary); font-size: 13px; text-align: center;
    padding: 40px 20px; max-width: 400px; line-height: 1.6;
    display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.locker-error b { color: var(--primary-pink); }
.locker-error a { color: var(--primary-pink); font-weight: 700; text-decoration: underline; }

/* --- WAITING / VERIFICATION PANEL (ModDrops layout, pink theme) --- */
.cl-waiting {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 26px 16px; gap: 13px; text-align: center; min-height: 175px;
}
.cl-spinner {
    width: 42px; height: 42px;
    border: 3px solid rgba(236, 72, 153, 0.15);
    border-top-color: var(--primary-pink);
    border-radius: 50%;
    animation: smooth-spin 0.8s linear infinite;
}
.cl-wait-title { font-size: 14px; font-weight: 700; color: #fff; }
.cl-wait-sub { font-size: 11px; color: rgba(255, 255, 255, 0.4); line-height: 1.6; max-width: 240px; }
.cl-recheck-btn {
    margin-top: 2px;
    background: rgba(244, 114, 182, 0.12);
    border: 1px solid rgba(244, 114, 182, 0.35);
    color: var(--pink-light);
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 12px; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: background 0.2s;
}
.cl-recheck-btn:active { background: rgba(244, 114, 182, 0.2); }
.cl-recheck-btn:disabled { opacity: 0.6; cursor: default; }
.cl-wait-hint { font-size: 10px; color: rgba(255, 255, 255, 0.35); max-width: 230px; line-height: 1.6; }

/* --- FULL-SCREEN OVERLAYS: in-app browser + ad blocker --- */
#cl-inapp, #cl-adblock {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(11, 11, 21, 0.97); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cl-inapp-card, .cl-adblock-card {
    background: var(--bg-card); border: 1px solid var(--primary-pink);
    border-radius: 18px; padding: 32px 24px; max-width: 360px; width: 100%;
    text-align: center; box-shadow: 0 0 40px rgba(236, 72, 153, 0.2);
}
.cl-inapp-ic, .cl-adblock-ic { font-size: 40px; color: var(--primary-pink); margin-bottom: 16px; }
.cl-inapp-card h2, .cl-adblock-card h2 { font-size: 18px; font-weight: 800; margin: 0 0 10px; color: #fff; }
.cl-inapp-card p, .cl-adblock-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0 0 16px; }
.cl-inapp-url {
    background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border-pink);
    border-radius: 8px; padding: 10px; font-size: 11px; color: var(--pink-light);
    word-break: break-all; margin-bottom: 14px;
}
.cl-inapp-btn, .cl-adblock-btn {
    background: var(--primary-pink); color: #fff; border: none; border-radius: 10px;
    padding: 12px 26px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.cl-inapp-btn:active, .cl-adblock-btn:active { background: var(--pink-dark); }
.cl-inapp-hint { font-size: 11px; color: var(--text-muted); margin: 14px 0 0 !important; }

/* Mobile Override */
@media screen and (max-width: 640px) {
    #red-locker-wrapper { width: 100%; }
}

/* DESKTOP ZOOM (25% Bigger) */
@media screen and (min-width: 1024px) {
    #red-locker-wrapper {
        zoom: 1.25;
        -moz-transform: scale(1.25);
        -moz-transform-origin: center center;
    }
}

/* Shake Animation for the Offer Card */
@keyframes shakeCard {
    0% { transform: translateX(0); border-color: var(--border-pink); }
    25% { transform: translateX(-5px); border-color: #fff; }
    50% { transform: translateX(5px); border-color: var(--primary-pink); }
    75% { transform: translateX(-5px); border-color: #fff; }
    100% { transform: translateX(0); border-color: var(--border-pink); }
}
.shake-attention { animation: shakeCard 0.4s ease-in-out; }

/* Pulsing Navigation Arrows */
.pulse-nav { animation: arrowPulse 2s infinite; }
@keyframes arrowPulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; background: rgba(236, 72, 153, 0.3); }
    100% { transform: scale(1); opacity: 0.7; }
}
