/* Smbios welcome-coupon site-wide banner + modal.
   Palette matches landing / cart drawer: bg #0d0d0d, panel #151515, accent #4b80c2. */

:root {
    --wc-panel: #151515;
    --wc-panel-2: #1a1a1a;
    --wc-border: #2A2A2E;
    --wc-border-soft: rgba(255, 255, 255, 0.06);
    --wc-text: #ffffff;
    --wc-text-muted: #8A8A8D;
    --wc-accent: #4b80c2;
    --wc-accent-strong: #7ba5d8;
    --wc-green: #22C55E;
    --wc-red: #eb4034;
}

/* Floating bottom-left pill (bottom-right is claimed by the Discord widget) */
.wc-pill {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 12px 16px;
    background: linear-gradient(135deg, #151515 0%, #1a1f2e 100%);
    border: 1px solid rgba(75, 128, 194, 0.35);
    border-radius: 12px;
    color: var(--wc-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(75, 128, 194, 0.15) inset;
    cursor: pointer;
    max-width: 320px;
    transform: translateY(120%);
    opacity: 0;
    transition: transform .45s cubic-bezier(.22, .61, .36, 1), opacity .3s ease, box-shadow .18s ease;
}
.wc-pill.is-visible {
    transform: translateY(0);
    opacity: 1;
    animation: wc-pill-in .5s cubic-bezier(.34, 1.56, .64, 1) .8s backwards;
}
.wc-pill:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(75, 128, 194, 0.35) inset;
    border-color: rgba(75, 128, 194, 0.6);
}
@keyframes wc-pill-in {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.wc-pill-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(75, 128, 194, 0.18);
    color: var(--wc-accent);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.wc-pill-icon svg { width: 18px; height: 18px; }
.wc-pill-body { flex: 1; min-width: 0; line-height: 1.35; }
.wc-pill-body b { color: #7ec3ff; font-weight: 700; }
.wc-pill-arrow {
    color: var(--wc-text-muted);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform .18s ease, color .18s ease;
}
.wc-pill:hover .wc-pill-arrow {
    color: var(--wc-accent);
    transform: translateX(3px);
}
.wc-pill-arrow svg { width: 16px; height: 16px; }

.wc-pill-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: #0d0d0d;
    border: 1px solid var(--wc-border);
    border-radius: 50%;
    color: var(--wc-text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.wc-pill-close:hover {
    color: var(--wc-red);
    border-color: rgba(235, 64, 52, 0.5);
    background: #151515;
}
.wc-pill-close svg { width: 11px; height: 11px; }

@media (max-width: 520px) {
    /* Right edge stops well before the Discord widget so it never overlaps.
       180px covers the launcher + its floating "X online" label comfortably. */
    .wc-pill { left: 12px; right: 180px; bottom: 12px; max-width: none; }
}

/* Modal */
.wc-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 9998;
}
.wc-backdrop.is-open { opacity: 1; pointer-events: auto; }

.wc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 20px)) scale(0.96);
    width: calc(100% - 32px);
    max-width: 440px;
    background: var(--wc-panel);
    color: var(--wc-text);
    border-radius: 14px;
    border: 1px solid var(--wc-border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease, transform .32s cubic-bezier(.22, .61, .36, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
}
.wc-modal.is-open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.wc-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: 0;
    color: var(--wc-text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    padding: 0;
    transition: background .15s ease, color .15s ease;
    z-index: 2;
}
.wc-modal-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--wc-text); }
.wc-modal-close svg { width: 16px; height: 16px; }

/* Header */
.wc-modal-header {
    padding: 32px 32px 8px;
    text-align: center;
}
.wc-modal-eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7ec3ff;
    font-weight: 700;
    margin-bottom: 12px;
}
.wc-modal-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    line-height: 1.2;
}
.wc-modal-sub {
    font-size: 13.5px;
    color: var(--wc-text-muted);
    line-height: 1.55;
    margin: 0;
}

/* Form (initial state) */
.wc-form { padding: 20px 32px 28px; }
.wc-form-field { margin-bottom: 12px; }
.wc-form-label {
    display: block;
    font-size: 11px;
    color: var(--wc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 6px;
}
.wc-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background: var(--wc-panel-2);
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--wc-text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .15s ease, background .15s ease;
}
.wc-input:focus {
    border-color: var(--wc-accent);
    background: #1e1e1e;
}
.wc-input::placeholder { color: #5a5a5d; }

.wc-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0 4px;
    cursor: pointer;
    font-size: 12.5px;
    color: var(--wc-text-muted);
    line-height: 1.5;
    user-select: none;
}
.wc-checkbox input { margin: 2px 0 0; accent-color: var(--wc-accent); flex-shrink: 0; }

.wc-submit {
    width: 100%;
    padding: 14px 20px;
    background: var(--wc-accent);
    border: 0;
    border-radius: 10px;
    color: #0d0d0d;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    margin-top: 6px;
    transition: background .18s ease, transform .18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.wc-submit:hover:not(:disabled) { background: var(--wc-accent-strong); }
.wc-submit:active:not(:disabled) { transform: scale(0.985); }
.wc-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.wc-submit-spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(13, 13, 13, 0.25);
    border-top-color: #0d0d0d;
    border-radius: 50%;
    animation: wc-spin .8s linear infinite;
}
.wc-submit.is-loading .wc-submit-spinner { display: block; }
.wc-submit.is-loading .wc-submit-label { display: none; }
@keyframes wc-spin { to { transform: rotate(360deg); } }

.wc-form-error {
    display: none;
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(235, 64, 52, 0.1);
    border: 1px solid rgba(235, 64, 52, 0.35);
    border-radius: 8px;
    color: var(--wc-red);
    font-size: 12.5px;
    line-height: 1.5;
}
.wc-form-error.is-show { display: block; }

.wc-fine {
    text-align: center;
    padding: 4px 32px 24px;
    font-size: 11px;
    color: #5a5a5d;
    line-height: 1.5;
}

/* Success state */
.wc-success { padding: 8px 32px 32px; text-align: center; }
.wc-success-icon {
    margin: 0 auto 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.14);
    color: var(--wc-green);
    display: grid;
    place-items: center;
}
.wc-success-icon svg { width: 26px; height: 26px; }
.wc-success-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 6px;
}
.wc-success-sub {
    font-size: 13px;
    color: var(--wc-text-muted);
    margin: 0 0 22px;
    line-height: 1.55;
}

.wc-code-box {
    display: flex;
    align-items: stretch;
    background: var(--wc-panel-2);
    border: 1px dashed rgba(75, 128, 194, 0.5);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}
.wc-code-text {
    flex: 1;
    padding: 16px 18px;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--wc-text);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wc-code-copy {
    background: rgba(75, 128, 194, 0.15);
    border: 0;
    border-left: 1px solid rgba(75, 128, 194, 0.35);
    color: var(--wc-accent);
    padding: 0 20px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.wc-code-copy:hover { background: var(--wc-accent); color: #0d0d0d; }
.wc-code-copy.is-copied { background: var(--wc-green); color: #0d0d0d; }
.wc-code-copy svg { width: 13px; height: 13px; }

.wc-success-meta {
    font-size: 12px;
    color: var(--wc-text-muted);
    line-height: 1.55;
    margin-bottom: 18px;
}
.wc-success-meta strong { color: var(--wc-text); font-weight: 600; }

.wc-success-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--wc-accent);
    color: #0d0d0d;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.02em;
    transition: background .18s ease;
}
.wc-success-cta:hover { background: var(--wc-accent-strong); }
.wc-success-cta svg { width: 15px; height: 15px; transition: transform .18s ease; }
.wc-success-cta:hover svg { transform: translateX(3px); }

body.wc-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .wc-pill, .wc-modal, .wc-backdrop { transition: none; animation: none; }
}
