#smw-root, #smw-root * { box-sizing: border-box; }
#smw-root { font-family: inherit; direction: rtl; }
#smw-root [hidden] { display: none !important; }
html.smw-lock { overflow: hidden; }
#smw-root .smw-overlay { position: fixed; inset: 0; z-index: 999999; background: rgba(3,8,25,.72); backdrop-filter: blur(5px); display: flex; padding: 16px; overflow-y: auto; }
#smw-root .smw-box { position: relative; margin: auto; width: 100%; max-width: 470px; padding: 22px 22px 18px; text-align: center; color: #fff; border-radius: 26px; border: 1px solid var(--smw-accent); background: radial-gradient(circle at 50% 0, var(--smw-main), var(--smw-bg) 72%); box-shadow: 0 25px 70px rgba(0,0,0,.5); }
#smw-root button { font-family: inherit; cursor: pointer; text-transform: none; letter-spacing: 0; }
#smw-root .smw-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 24px; line-height: 38px; }
#smw-root .smw-badge { display: inline-block; padding: 4px 14px; border-radius: 99px; background: rgba(255,255,255,.12); color: var(--smw-accent); font-size: 13px; font-weight: 700; }
#smw-root .smw-title { margin: 10px 0 6px; padding: 0; color: #fff; font-size: 27px; line-height: 1.35; font-weight: 800; }
#smw-root .smw-title span { color: var(--smw-accent); }
#smw-root .smw-sub { margin: 0 0 4px; color: #d5ddf5; font-size: 14px; line-height: 1.8; }
#smw-root .smw-stage { position: relative; width: min(100%, 340px, 46vh); min-width: 250px; margin: 12px auto; }
#smw-root .smw-wheel { display: block; width: 100%; height: auto; border-radius: 50%; transition: transform 5s cubic-bezier(.12,.68,.08,1); filter: drop-shadow(0 8px 20px rgba(0,0,0,.45)); }
#smw-root .smw-wheel text { font-family: inherit; font-weight: 800; }
#smw-root .smw-wheel .smw-l1 { fill: #fff; font-size: 19px; }
#smw-root .smw-wheel .smw-l2 { fill: var(--smw-accent); font-size: 27px; }
#smw-root .smw-dot { fill: #fff; animation: smw-blink 1s infinite alternate; }
#smw-root .smw-dot-b { animation-delay: -1s; }
@keyframes smw-blink { from { opacity: .35; } to { opacity: 1; } }
#smw-root .smw-pointer { position: absolute; z-index: 2; top: -8px; left: 50%; width: 32px; height: 44px; margin-left: -16px; background: var(--smw-accent); clip-path: polygon(50% 100%, 0 30%, 25% 0, 75% 0, 100% 30%); filter: brightness(1.12); }
#smw-root .smw-hub { position: absolute; top: 50%; left: 50%; width: 21%; height: 21%; padding: 0; transform: translate(-50%,-50%); border-radius: 50%; border: 4px solid #fff3c4; background: var(--smw-accent); color: var(--smw-bg); font-size: 24px; font-weight: 800; box-shadow: 0 4px 14px rgba(0,0,0,.45); }
#smw-root .smw-hub:disabled { cursor: default; }
#smw-root .smw-form { display: grid; gap: 9px; margin: 0; }
#smw-root .smw-form input { width: 100%; height: 46px; margin: 0; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: #fff; color: #111; font: inherit; font-size: 16px; text-align: right; }
#smw-root .smw-form input.smw-trap { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#smw-root .smw-btn, .smw-inline-btn { width: 100%; min-height: 50px; border: 0; border-radius: 13px; background: var(--smw-accent, #ffc20e); color: var(--smw-bg, #07123a); font-size: 18px; font-weight: 800; }
#smw-root .smw-btn:disabled { opacity: .6; cursor: wait; }
.smw-inline-btn { width: auto; padding: 0 28px; cursor: pointer; font-family: inherit; }
#smw-root .smw-msg { min-height: 20px; margin: 8px 0 0; color: #ffd7d7; font-size: 14px; }
#smw-root .smw-result { margin-bottom: 8px; }
#smw-root .smw-result h3 { margin: 0 0 6px; color: var(--smw-accent); font-size: 21px; font-weight: 800; line-height: 1.5; }
#smw-root .smw-claim { display: grid; gap: 9px; margin: 12px 0 10px; }
#smw-root .smw-claim-note { margin: 0 !important; color: #fff !important; font-weight: 700; }
#smw-root .smw-claim input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: #fff; color: #111; font: inherit; font-size: 16px; text-align: right; }
#smw-root .smw-result p { margin: 0 0 8px; color: #e3e9fb; font-size: 14px; }
#smw-root .smw-result small { display: block; margin-top: 8px; color: #c4cdea; font-size: 13px; }
#smw-root .smw-code { display: block; margin: 0 auto 10px; padding: 7px 22px; direction: ltr; border: 2px dashed var(--smw-accent); border-radius: 10px; background: rgba(255,255,255,.07); color: #fff; font-size: 20px; font-weight: 700; }
#smw-root .smw-wa { display: inline-block; padding: 12px 28px; border-radius: 13px; background: #12a150; color: #fff; font-size: 17px; font-weight: 800; text-decoration: none; }
#smw-root .smw-fab { position: fixed; z-index: 99990; bottom: 20px; display: flex; align-items: center; gap: 9px; padding: 8px 10px 8px 18px; border: 2px solid var(--smw-accent); border-radius: 99px; background: var(--smw-bg); color: #fff; font-size: 15px; font-weight: 800; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
#smw-root .smw-fab.smw-left { left: 20px; }
#smw-root .smw-fab.smw-right { right: 20px; }
#smw-root .smw-fab i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--smw-accent); background: conic-gradient(var(--smw-accent) 0 60deg, var(--smw-main) 0 120deg, var(--smw-accent) 0 180deg, var(--smw-main) 0 240deg, var(--smw-accent) 0 300deg, var(--smw-main) 0); animation: smw-rot 6s linear infinite; }
@keyframes smw-rot { to { transform: rotate(360deg); } }
#smw-root :focus-visible { outline: 3px solid #7db4ff; outline-offset: 2px; }
@media (max-width: 480px) { #smw-root .smw-overlay { padding: 8px; align-items: center; } #smw-root .smw-box { width: 100%; max-width: 380px; padding: 16px 12px 12px; border-radius: 20px; } #smw-root .smw-title { font-size: 22px; } #smw-root .smw-sub { font-size: 13px; } #smw-root .smw-stage { width: min(82vw, 300px, 42vh); min-width: 0; margin: 8px auto; } #smw-root .smw-pointer { width: 28px; height: 38px; margin-left: -14px; } #smw-root .smw-hub { font-size: 20px; } #smw-root .smw-fab { bottom: 14px; right: 12px; left: auto; } }
@media (prefers-reduced-motion: reduce) { #smw-root .smw-dot, #smw-root .smw-fab i { animation: none; } }
