/* SpinLead Pro — Frontend Roulette Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

/* ── Base ─────────────────────────────────────────── */
.spinlead-wrap * { box-sizing: border-box; }
.spinlead-wrap, .spinlead-wrap input, .spinlead-wrap button {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

/* ── Floating Button ──────────────────────────────── */
.spinlead-float-btn {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 99998;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    animation: sl-float-pulse 2.5s ease-in-out infinite;
    transition: transform 0.2s, box-shadow 0.2s;
}
.spinlead-float-btn:hover { transform: scale(1.05); box-shadow: 0 6px 28px rgba(0,0,0,0.45); }
.spinlead-float-icon { font-size: 1.4rem; animation: sl-float-wiggle 2s ease-in-out infinite; }

@keyframes sl-float-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(124,58,237,0.4); }
    50%       { box-shadow: 0 4px 32px rgba(124,58,237,0.7); }
}
@keyframes sl-float-wiggle {
    0%,100% { transform: rotate(0deg); }
    25%      { transform: rotate(-10deg); }
    75%      { transform: rotate(10deg); }
}

/* ── Overlay ──────────────────────────────────────── */
.spinlead-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.spinlead-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

/* ── Modal ────────────────────────────────────────── */
.spinlead-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    padding: 28px;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 92vh;
    overflow-y: auto;
}
.spinlead-overlay.is-open .spinlead-modal { transform: scale(1) translateY(0); }

.spinlead-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: inherit;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    z-index: 1;
}
.spinlead-close:hover { background: rgba(255,255,255,0.2); }

/* ── Header ───────────────────────────────────────── */
.spinlead-modal__header { text-align: center; margin-bottom: 16px; }
.spinlead-modal__title { font-size: 1.4rem; font-weight: 800; margin: 0 0 6px; line-height: 1.2; }
.spinlead-modal__sub { font-size: 0.9rem; margin: 0; opacity: 0.75; }

/* ── Wheel ────────────────────────────────────────── */
.spinlead-wheel-preview { position: relative; display: flex; justify-content: center; margin-bottom: 16px; }
.spinlead-wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    z-index: 2;
}
.spinlead-wheel-pointer--spin { top: -14px; }
.spinlead-step--spinning { display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; }
.spinlead-spinning-msg { font-weight: 600; opacity: 0.8; animation: sl-blink 1s ease-in-out infinite; }
@keyframes sl-blink { 0%,100%{opacity:0.4} 50%{opacity:1} }

/* ── Form ─────────────────────────────────────────── */
.spinlead-form { display: flex; flex-direction: column; gap: 10px; }
.spinlead-input {
    padding: 11px 14px;
    border-radius: 10px;
    border: 2px solid transparent;
    font-size: 0.9rem;
    width: 100%;
    transition: border-color 0.15s, background 0.15s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.spinlead-input:focus { outline: none; }
.spinlead-gdpr { font-size: 0.75rem; opacity: 0.6; text-align: center; margin: 4px 0; }
.spinlead-error { color: #f87171; font-size: 0.82rem; text-align: center; }

/* ── Spin Button ──────────────────────────────────── */
.spinlead-spin-btn {
    padding: 13px 20px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    transition: transform 0.15s, box-shadow 0.15s;
    letter-spacing: 0.02em;
}
.spinlead-spin-btn:hover { transform: scale(1.02); }
.spinlead-spin-btn:active { transform: scale(0.98); }
.spinlead-spin-btn--secondary { margin-top: 12px; background: rgba(255,255,255,0.1); color: inherit; }

/* ── Result ───────────────────────────────────────── */
.spinlead-result { text-align: center; }
.spinlead-result__emoji { font-size: 3.5rem; animation: sl-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes sl-pop { from { transform: scale(0); } to { transform: scale(1); } }
.spinlead-result__title { font-size: 1.6rem; font-weight: 800; margin: 8px 0; }
.spinlead-result__message { font-size: 0.95rem; opacity: 0.8; margin-bottom: 16px; }
.spinlead-coupon-box { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }
.spinlead-coupon-label { font-size: 0.82rem; opacity: 0.7; }
.spinlead-coupon-code { font-size: 1.3rem; font-weight: 800; font-family: monospace; letter-spacing: 0.05em; }
.spinlead-copy-btn { background: rgba(255,255,255,0.15); border: none; border-radius: 8px; padding: 6px 12px; font-size: 0.8rem; cursor: pointer; color: inherit; transition: background 0.15s; }
.spinlead-copy-btn:hover { background: rgba(255,255,255,0.25); }

/* ═══════════════════════════════════════════════════
   THEMES
═══════════════════════════════════════════════════ */

/* DARK */
.spinlead-theme-dark .spinlead-float-btn { background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff; }
.spinlead-theme-dark .spinlead-modal { background: #1a1a2e; border: 1px solid rgba(255,255,255,0.08); color: #e2e8f0; }
.spinlead-theme-dark .spinlead-modal__title { color: #e2e8f0; }
.spinlead-theme-dark .spinlead-input { background: rgba(255,255,255,0.07); color: #e2e8f0; border-color: rgba(255,255,255,0.1); }
.spinlead-theme-dark .spinlead-input::placeholder { color: rgba(255,255,255,0.35); }
.spinlead-theme-dark .spinlead-input:focus { border-color: #7c3aed; background: rgba(124,58,237,0.08); }
.spinlead-theme-dark .spinlead-spin-btn { background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff; box-shadow: 0 4px 16px rgba(124,58,237,0.4); }
.spinlead-theme-dark .spinlead-coupon-box { background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.3); }
.spinlead-theme-dark .spinlead-coupon-code { color: #a78bfa; }

/* NEON */
.spinlead-theme-neon .spinlead-float-btn { background: #0d0d0d; color: #0ff; border: 1px solid #0ff; box-shadow: 0 0 20px rgba(0,255,255,0.4); }
.spinlead-theme-neon .spinlead-modal { background: #0d0d0d; border: 1px solid #0ff; color: #e2e8f0; box-shadow: 0 0 40px rgba(0,255,255,0.15); }
.spinlead-theme-neon .spinlead-modal__title { color: #0ff; text-shadow: 0 0 20px rgba(0,255,255,0.6); }
.spinlead-theme-neon .spinlead-input { background: rgba(0,255,255,0.04); color: #e2e8f0; border-color: rgba(0,255,255,0.2); }
.spinlead-theme-neon .spinlead-input::placeholder { color: rgba(0,255,255,0.3); }
.spinlead-theme-neon .spinlead-input:focus { border-color: #0ff; box-shadow: 0 0 10px rgba(0,255,255,0.2); }
.spinlead-theme-neon .spinlead-spin-btn { background: transparent; color: #0ff; border: 2px solid #0ff; box-shadow: 0 0 20px rgba(0,255,255,0.4); text-shadow: 0 0 10px rgba(0,255,255,0.8); }
.spinlead-theme-neon .spinlead-coupon-box { border: 1px solid rgba(0,255,255,0.3); background: rgba(0,255,255,0.05); }
.spinlead-theme-neon .spinlead-coupon-code { color: #0ff; text-shadow: 0 0 10px rgba(0,255,255,0.6); }

/* MINIMAL */
.spinlead-theme-minimal .spinlead-float-btn { background: #fff; color: #111; border: 1px solid #e5e7eb; }
.spinlead-theme-minimal .spinlead-modal { background: #fff; color: #111; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.spinlead-theme-minimal .spinlead-modal__title { color: #111; }
.spinlead-theme-minimal .spinlead-close { background: #f3f4f6; color: #111; }
.spinlead-theme-minimal .spinlead-input { background: #f9fafb; color: #111; border-color: #e5e7eb; }
.spinlead-theme-minimal .spinlead-input::placeholder { color: #9ca3af; }
.spinlead-theme-minimal .spinlead-input:focus { border-color: #111; }
.spinlead-theme-minimal .spinlead-spin-btn { background: #111; color: #fff; }
.spinlead-theme-minimal .spinlead-coupon-box { background: #f3f4f6; }
.spinlead-theme-minimal .spinlead-coupon-code { color: #111; }

/* FESTIVO */
.spinlead-theme-festivo .spinlead-float-btn { background: linear-gradient(135deg, #ff6b35, #f7c59f); color: #fff; }
.spinlead-theme-festivo .spinlead-modal { background: linear-gradient(160deg, #2d1b00 0%, #1a0a00 100%); color: #fde68a; border: 1px solid rgba(255,107,53,0.3); }
.spinlead-theme-festivo .spinlead-modal__title { color: #fbbf24; }
.spinlead-theme-festivo .spinlead-input { background: rgba(255,255,255,0.08); color: #fde68a; border-color: rgba(255,107,53,0.3); }
.spinlead-theme-festivo .spinlead-input::placeholder { color: rgba(253,230,138,0.4); }
.spinlead-theme-festivo .spinlead-input:focus { border-color: #ff6b35; }
.spinlead-theme-festivo .spinlead-spin-btn { background: linear-gradient(135deg, #ff6b35, #ef4444); color: #fff; box-shadow: 0 4px 16px rgba(255,107,53,0.4); }
.spinlead-theme-festivo .spinlead-coupon-box { background: rgba(255,107,53,0.1); border: 1px solid rgba(255,107,53,0.3); }
.spinlead-theme-festivo .spinlead-coupon-code { color: #fbbf24; }

/* CORPORATIVO */
.spinlead-theme-corporativo .spinlead-float-btn { background: #1e3a5f; color: #fff; border: 1px solid #2563eb; }
.spinlead-theme-corporativo .spinlead-modal { background: #fff; color: #1e293b; box-shadow: 0 20px 60px rgba(0,0,0,0.2); border-top: 4px solid #1e3a5f; }
.spinlead-theme-corporativo .spinlead-modal__title { color: #1e3a5f; }
.spinlead-theme-corporativo .spinlead-close { background: #f1f5f9; color: #1e3a5f; }
.spinlead-theme-corporativo .spinlead-input { background: #f8fafc; color: #1e293b; border-color: #cbd5e1; }
.spinlead-theme-corporativo .spinlead-input::placeholder { color: #94a3b8; }
.spinlead-theme-corporativo .spinlead-input:focus { border-color: #1e3a5f; }
.spinlead-theme-corporativo .spinlead-spin-btn { background: #1e3a5f; color: #fff; }
.spinlead-theme-corporativo .spinlead-coupon-box { background: #eff6ff; border: 1px solid #bfdbfe; }
.spinlead-theme-corporativo .spinlead-coupon-code { color: #1e3a5f; }

/* BLACK FRIDAY */
.spinlead-theme-blackfriday .spinlead-float-btn { background: #000; color: #fff; border: 2px solid #fff; }
.spinlead-theme-blackfriday .spinlead-modal { background: #000; color: #fff; border: 2px solid #fff; }
.spinlead-theme-blackfriday .spinlead-modal__title { color: #fff; font-size: 1.6rem; }
.spinlead-theme-blackfriday .spinlead-close { background: rgba(255,255,255,0.1); color: #fff; }
.spinlead-theme-blackfriday .spinlead-input { background: #111; color: #fff; border-color: #333; }
.spinlead-theme-blackfriday .spinlead-input::placeholder { color: #555; }
.spinlead-theme-blackfriday .spinlead-input:focus { border-color: #fff; }
.spinlead-theme-blackfriday .spinlead-spin-btn { background: #fff; color: #000; }
.spinlead-theme-blackfriday .spinlead-coupon-box { background: #111; border: 1px solid #333; }
.spinlead-theme-blackfriday .spinlead-coupon-code { color: #fff; }

/* Responsive */
@media (max-width: 480px) {
    .spinlead-modal { padding: 20px 16px; border-radius: 16px 16px 0 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: 100%; transform: translateY(100%); }
    .spinlead-overlay.is-open .spinlead-modal { transform: translateY(0); }
    .spinlead-float-btn { bottom: 16px; left: 16px; padding: 10px 16px; font-size: 0.85rem; }
}
