/* Sokilpack Promo — Widget styles */
.spp-wrap { --spp-primary: #2563eb; --spp-secondary: #FFD200; --spp-ink: #1a1d29; }

/* =========================== BANNER =========================== */
.spp-banner {
    position: fixed;
    left: 0; right: 0;
    z-index: 99998;
    color: #fff;
    background: linear-gradient(135deg, var(--spp-primary) 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
    font-family: inherit;
    overflow: hidden;
}
.spp-banner::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(255,210,0,.35), transparent 70%);
    pointer-events: none;
}
.spp-banner--top    { top: 0; animation: spp-down .4s ease; }
.spp-banner--bottom { bottom: 0; animation: spp-up .4s ease; box-shadow: 0 -6px 20px rgba(0,0,0,.2); }
.spp-banner--floating {
    top: auto; left: auto; right: 20px; bottom: 20px; width: 360px; max-width: calc(100vw - 32px);
    border-radius: 16px; animation: spp-fadein .4s ease;
}
.spp-banner.is-closed { display: none; }
@keyframes spp-down  { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes spp-up    { from { transform: translateY(100%); }  to { transform: translateY(0); } }
@keyframes spp-fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.spp-banner__inner {
    max-width: 1200px; margin: 0 auto;
    padding: 10px 50px 10px 20px;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    position: relative;
}
.spp-banner__left { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; min-width: 0; }
.spp-banner__emoji { font-size: 32px; line-height: 1; animation: spp-bob 2.5s ease-in-out infinite; }
@keyframes spp-bob { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-4px) rotate(5deg); } }

.spp-banner__text { min-width: 0; }
.spp-banner__title { font-size: 16px; font-weight: 800; line-height: 1.25; margin-bottom: 4px; }
.spp-banner__timer { display: inline-flex; align-items: baseline; gap: 6px; }
.spp-tcell {
    display: inline-flex; flex-direction: column; align-items: center;
    background: rgba(255,255,255,.15); padding: 3px 8px; border-radius: 6px; min-width: 42px;
}
.spp-tnum { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.spp-tlbl { font-size: 9px; opacity: .85; letter-spacing: .4px; text-transform: uppercase; margin-top: 2px; }
.spp-tsep { font-size: 18px; font-weight: 800; opacity: .5; }

.spp-banner__cta {
    display: inline-block; padding: 10px 22px; border-radius: 999px;
    background: var(--spp-secondary); color: #1a1a1a; font-weight: 800; font-size: 13px;
    text-decoration: none; letter-spacing: .3px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    transition: transform .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.spp-banner__cta:hover { transform: translateY(-1px); color: #1a1a1a; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.28); }

.spp-banner__close {
    position: absolute; top: 6px; right: 12px;
    background: transparent; border: 0; color: rgba(255,255,255,.75);
    font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.spp-banner__close:hover { color: #fff; }

body.spp-has-banner-top    { padding-top: 80px !important; }
body.spp-has-banner-bottom { padding-bottom: 100px !important; }

/* Mobile banner */
@media (max-width: 767px) {
    .spp-banner--top, .spp-banner--bottom { top: auto; animation: spp-up .4s ease; box-shadow: 0 -6px 20px rgba(0,0,0,.2); bottom: 70px;}
    body.spp-has-banner-top, body.spp-has-banner-bottom { padding-top: 0 !important; padding-bottom: 130px !important; }
    .spp-banner--floating { left: 10px; right: 10px; bottom: 10px; width: auto; }
    .spp-banner__inner { padding: 10px 40px 10px 14px; gap: 10px; }
    .spp-banner__emoji { font-size: 20px; }
    .spp-banner__title { font-size: 13px; }
    .spp-tcell { min-width: 34px; padding: 2px 6px; }
    .spp-tnum { font-size: 15px; }
    .spp-tlbl { font-size: 8px; }
    .spp-tsep { font-size: 14px; }
    .spp-banner__cta { padding: 6px 10px;
    font-size: 11px; }
}

/* =========================== LAUNCHER CARD =========================== */
.spp-launcher--page {
    max-width: 720px; margin: 40px auto;
    padding: 0 16px;
    position: fixed;
    right: 0;
    top: 200px;
    z-index: 9996;
    transition: transform .22s ease, filter .22s ease;
}
.spp-launcher__card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.05);
    position: relative; overflow: hidden;
    z-index: 2;
}
.spp-launcher__toggle,
.spp-launcher__peek {
    position: absolute;
    top: 14px;
    right: 20px;
    z-index: 3;
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.spp-launcher__toggle {
    background: rgba(255,255,255,.96);
    color: var(--spp-primary);
    box-shadow: 0 10px 24px rgba(15,23,42,.12);
}
.spp-launcher__peek {
    top: 50%;
    right: -18px;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 12px 8px;
    min-height: 116px;
    background: linear-gradient(180deg, var(--spp-primary), #1e40af);
    color: #fff;
    box-shadow: 0 10px 26px rgba(37,99,235,.38), 0 0 0 0 rgba(255,210,0,.45);
    animation: spp-launcher-peek-pulse 2.2s ease-in-out infinite;
    opacity: 0;
    pointer-events: none;
}
.spp-launcher__toggle:hover,
.spp-launcher__peek:hover { transform: translateY(-1px); }
@keyframes spp-launcher-peek-pulse {
    0%, 100% { box-shadow: 0 10px 26px rgba(37,99,235,.38), 0 0 0 0 rgba(255,210,0,.35); }
    50% { box-shadow: 0 10px 26px rgba(37,99,235,.38), 0 0 0 10px rgba(255,210,0,0); }
}
.spp-launcher--page.is-collapsed {
    transform: translateX(calc(100% - 26px));
    filter: saturate(.92);
}
.spp-launcher--page.is-collapsed .spp-launcher__toggle {
    opacity: 0;
    pointer-events: none;
}
.spp-launcher--page.is-collapsed .spp-launcher__peek {
    left: 2px;
    right: auto;
    transform: translateY(-50%);
    opacity: 1;
    pointer-events: auto;
}
.spp-launcher__card::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, var(--spp-secondary), transparent 70%);
    opacity: .25;
    pointer-events: none;
}
.spp-launcher__card::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, var(--spp-primary), transparent 70%);
    opacity: .15;
    pointer-events: none;
}
.spp-launcher__icon { font-size: 56px; line-height: 1; margin-bottom: 14px; position: relative; z-index: 1; animation: spp-spin-slow 12s linear infinite; display: inline-block; }
@keyframes spp-spin-slow { to { transform: rotate(360deg); } }
.spp-launcher__title { font-size: 28px; font-weight: 800; color: var(--spp-ink); margin-bottom: 10px; position: relative; z-index: 1; }
.spp-launcher__text { font-size: 15px; color: #6b7280; max-width: 520px; margin: 0 auto 22px; line-height: 1.6; position: relative; z-index: 1; }
.spp-launcher__ig-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; margin-bottom: 18px;
    background: linear-gradient(135deg, #feda75, #d62976 40%, #962fbf 60%, #4f5bd5);
    color: #fff; border-radius: 999px; font-size: 13px; font-weight: 600;
    text-decoration: none; position: relative; z-index: 1;
    transition: transform .15s ease, box-shadow .15s ease;
}
.spp-launcher__ig-link:hover { color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.15); }

.spp-launcher__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* =========================== BUTTONS =========================== */
.spp-btn {
    display: inline-block; padding: 11px 22px; border-radius: 999px;
    font-weight: 700; font-size: 14px; text-decoration: none;
    border: 0; cursor: pointer; letter-spacing: .2px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.spp-btn--primary { background: var(--spp-primary); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.28); }
.spp-btn--primary:hover { background: #1e3a8a; color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(37,99,235,.35); }
.spp-btn--secondary { background: transparent; color: var(--spp-primary); border: 2px solid var(--spp-primary); padding: 9px 20px; }
.spp-btn--secondary:hover { background: var(--spp-primary); color: #fff; text-decoration: none; transform: translateY(-2px); }
.spp-btn--big { padding: 14px 32px; font-size: 15px; }

/* =========================== FLOATING BUTTON =========================== */
.spp-floating-button {
    position: fixed; bottom: 24px; right: 24px; z-index: 9997;
    padding: 12px 20px; border-radius: 999px; border: 0;
    background: linear-gradient(135deg, var(--spp-primary), #1e40af);
    color: #fff; font-weight: 800; font-size: 14px; cursor: pointer;
    box-shadow: 0 10px 28px rgba(37,99,235,.35);
    display: inline-flex; align-items: center; gap: 8px;
    animation: spp-pulse 2.5s ease-in-out infinite;
    transition: transform .15s ease;
}
.spp-floating-button:hover { transform: translateY(-2px) scale(1.03); }
.spp-floating-button__ico { font-size: 20px; }
@keyframes spp-pulse {
    0%, 100% { box-shadow: 0 10px 28px rgba(37,99,235,.35), 0 0 0 0 rgba(255,210,0,.6); }
    50% { box-shadow: 0 10px 28px rgba(37,99,235,.35), 0 0 0 14px rgba(255,210,0,0); }
}
@media (max-width: 600px) { .spp-floating-button { bottom: 16px; right: 16px; font-size: 13px; padding: 10px 16px; } }

/* =========================== MODAL =========================== */
.spp-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.spp-modal.is-open { display: block; animation: spp-fadein .2s ease; }
.spp-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.spp-modal__dialog {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: #fff; border-radius: 20px; padding: 36px 28px 28px;
    width: 90%; max-width: 640px; max-height: 92vh; overflow: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    animation: spp-pop .25s ease;
}
@keyframes spp-pop { from { transform: translate(-50%, -50%) scale(.92); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.spp-modal__close {
    position: absolute; top: 12px; right: 16px;
    background: transparent; border: 0; font-size: 28px; line-height: 1; cursor: pointer;
    color: #94a3b8;
}
.spp-modal__close:hover { color: var(--spp-primary); }
.spp-modal__title { text-align: center; font-size: 22px; font-weight: 800; color: var(--spp-ink); margin: 6px 0 8px; }
.spp-modal__text { text-align: center; color: #6b7280; font-size: 14px; line-height: 1.55; max-width: 480px; margin: 0 auto 16px; }
.spp-modal__intro { text-align: center; }
.spp-modal__intro .spp-launcher__icon { font-size: 48px; margin-bottom: 8px; }

html.spp-no-scroll, body.spp-no-scroll { overflow: hidden !important; }

/* =========================== START FORM =========================== */
.spp-start-form { max-width: 420px; margin: 0 auto; text-align: left; }
.spp-field { margin-bottom: 12px; }
.spp-field label { display: block; font-size: 12px; font-weight: 600; color: #6b7280; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .3px; }
.spp-input {
    display: block; width: 100%; padding: 12px 14px;
    border: 1px solid #d0d7e2; border-radius: 10px; font-size: 15px; outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.spp-input:focus { border-color: var(--spp-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

.spp-check { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; font-size: 13px; color: #4b5563; cursor: pointer; }
.spp-check input { margin-top: 3px; flex-shrink: 0; }

.spp-start-form .spp-btn--big { display: block; width: 100%; margin-top: 14px; text-align: center; }

.spp-error {
    margin-top: 12px; padding: 10px 14px; border-radius: 8px;
    background: #fee2e2; color: #991b1b; border: 1px solid #fecaca;
    font-size: 13px; text-align: center;
}

/* Wheel terms */
.spp-wheel-terms {
    max-width: 640px; margin: 30px auto 0;
    padding: 20px 24px; background: #f8fafc;
    border-left: 4px solid var(--spp-primary); border-radius: 10px;
}
.spp-wheel-terms h4 { margin: 0 0 10px; color: var(--spp-ink); font-size: 16px; font-weight: 700; }
.spp-wheel-terms > div { color: #475569; font-size: 14px; line-height: 1.65; }

.spp-wheel-page__hero { text-align: center; margin: 20px 0 30px; }
.spp-wheel-page__hero h1 { font-size: 32px; font-weight: 800; color: var(--spp-ink); margin: 0 0 10px; }
.spp-wheel-page__sub { color: #6b7280; font-size: 15px; max-width: 620px; margin: 0 auto; line-height: 1.6; }

@media (max-width: 600px) {
    .spp-launcher__card { padding: 28px 22px; }
    .spp-launcher__title { font-size: 22px; }
    .spp-launcher__icon { font-size: 42px; }
    .spp-modal__dialog { padding: 28px 18px 20px; border-radius: 14px; }
    .spp-modal__title { font-size: 18px; }
    .spp-wheel-page__hero h1 { font-size: 24px; }
    .spp-banner__right {
        position: absolute;
  right: 10px;
  bottom: 10px;
    }
}

@media (max-width: 991px) {
    .spp-launcher--page {
        transform: none !important;
    }
    .spp-launcher__toggle,
    .spp-launcher__peek {
        display: none;
    }
}

.spp-page-intro .spp-launcher__card {
    text-align: center;
    text-align: -webkit-center;
}

.spp-page-intro .spp-modal__title,
.spp-page-intro .spp-modal__text {
    text-align: center;
    text-align: -webkit-center;
    margin-left: 0;
    margin-right: 0;
}

.spp-page-intro .spp-launcher__ig-link {
    margin-bottom: 20px;
}

.spp-page-intro .spp-start-form {
    margin-left: 0;
    margin-right: 0;
}
