:root{
  --bg:#061015;
  --panel:#081b20;
  --panel2:#0b2529;
  --line:rgba(31,229,195,.25);
  --mint:#24edc0;
  --mint2:#0dcfa8;
  --text:#f7fbfb;
  --muted:#8da1a7;
  --purple:#7d72ff;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#020709;color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{overflow-x:hidden}
button{font:inherit}
.demo-shell{
  position:relative;min-height:100vh;max-width:520px;margin:0 auto;overflow:hidden;
  background:
    radial-gradient(circle at 100% 43%,rgba(16,224,184,.12),transparent 26%),
    linear-gradient(180deg,#07131a 0%,#051016 65%,#061116 100%);
  border-left:1px solid rgba(255,255,255,.04);border-right:1px solid rgba(255,255,255,.04)
}
.demo-header{height:92px;padding:28px 26px 18px;display:flex;align-items:center;justify-content:center;position:relative}
.demo-logo{font-size:28px;letter-spacing:-1.5px;font-weight:700}
.demo-logo strong{color:var(--mint);font-weight:700}
.demo-user-dot{position:absolute;right:28px;width:15px;height:15px;border:2px solid var(--mint);border-radius:50%;box-shadow:0 0 16px var(--mint)}
.demo-user-dot:after{content:"";position:absolute;right:-3px;top:-4px;width:5px;height:5px;border-radius:50%;background:var(--mint);box-shadow:0 0 8px var(--mint)}

.demo-content{padding:12px 26px 140px}
.balance-card{
  display:flex;align-items:center;justify-content:space-between;padding:22px 24px;
  border:1px solid var(--line);border-radius:22px;
  background:linear-gradient(120deg,rgba(12,75,71,.22),rgba(7,35,39,.65));
  box-shadow:inset 0 0 28px rgba(24,222,185,.035)
}
.balance-card div{display:flex;align-items:center;gap:25px}
.balance-card small,.section-title{color:#a6b4b8;font-weight:700;letter-spacing:.4px}
.balance-card strong{font-size:20px}
.balance-card button{border:0;color:white;background:linear-gradient(180deg,#197f73,#0d5d57);height:48px;width:48px;border-radius:50%;font-size:29px}
.section-title{margin:36px 2px 15px;font-size:15px}
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.quick-card{
  min-height:106px;display:grid;place-items:center;border:1px solid var(--line);border-radius:20px;
  background:linear-gradient(135deg,rgba(10,41,44,.8),rgba(6,26,30,.85));font-size:13px
}
.transactions{
  margin-top:34px;padding:4px 20px 28px;border:1px solid var(--line);border-radius:22px;
  background:linear-gradient(135deg,rgba(5,26,31,.65),rgba(5,21,25,.55))
}
.transactions .section-title{margin-top:20px}
.transactions article{display:flex;gap:17px;align-items:center;padding:24px 4px}
.transactions article+article{border-top:1px solid rgba(255,255,255,.04)}
.transactions article>div:last-child{display:grid;gap:4px}
.transactions article small,.transactions article span{color:#91a3a8}
.transactions article strong{font-size:21px}
.tx-badge{
  width:48px;height:48px;display:grid;place-items:center;font-weight:900;background:#0878a4;
  clip-path:polygon(50% 0,62% 16%,82% 13%,85% 34%,100% 50%,85% 66%,82% 87%,62% 84%,50% 100%,38% 84%,18% 87%,15% 66%,0 50%,15% 34%,18% 13%,38% 16%)
}
.tx-badge.diamond{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);background:#139c82}

.wheel-trigger{
  z-index:50;position:fixed;right:max(0px,calc((100vw - 520px)/2));top:50%;transform:translateY(-50%);
  width:66px;min-height:260px;border:1px solid rgba(81,255,224,.58);border-right:0;border-radius:24px 0 0 24px;
  color:#fff;background:
    linear-gradient(180deg,rgba(11,79,70,.98),rgba(5,48,47,.98) 48%,rgba(8,63,57,.99));
  box-shadow:
    0 0 0 1px rgba(21,222,184,.08),
    0 0 24px rgba(25,237,192,.5),
    0 0 60px rgba(13,207,168,.22),
    inset 0 0 23px rgba(36,237,192,.12);
  display:flex;flex-direction:column;align-items:center;padding:9px 8px 14px;cursor:pointer;
  transition:transform .2s ease,filter .2s ease
}
.wheel-trigger:hover{filter:brightness(1.08)}
.wheel-trigger:active{transform:translateY(-50%) scale(.98)}
.wheel-trigger.is-active:after{
  content:"";position:absolute;inset:-7px -3px -7px -8px;border-radius:30px 0 0 30px;border:1px solid rgba(36,237,192,.3);
  animation:pulseRing 1.8s infinite ease-out;pointer-events:none
}
.wheel-trigger__halo{
  position:absolute;top:-21px;width:100px;height:100px;border-radius:50%;
  background:radial-gradient(circle,rgba(27,244,204,.26),rgba(27,244,204,.08) 42%,transparent 70%);
  animation:halo 2.4s infinite ease-in-out
}
.wheel-trigger__icon{
  width:53px;height:53px;border-radius:50%;display:grid;place-items:center;z-index:2;
  border:3px solid #e0bf42;background:#12bba2;
  box-shadow:0 0 0 4px rgba(23,238,201,.22),0 0 22px rgba(23,238,201,.65)
}
.mini-wheel{position:relative;width:36px;height:36px;border-radius:50%;background:#42e9c5;display:block;overflow:hidden}
.mini-wheel i{position:absolute;left:50%;top:50%;width:2px;height:18px;background:white;transform-origin:0 0}
.mini-wheel i:nth-child(1){transform:rotate(0deg)}
.mini-wheel i:nth-child(2){transform:rotate(45deg)}
.mini-wheel i:nth-child(3){transform:rotate(90deg)}
.mini-wheel i:nth-child(4){transform:rotate(135deg)}
.mini-wheel i:nth-child(5){transform:rotate(180deg)}
.mini-wheel i:nth-child(6){transform:rotate(225deg)}
.mini-wheel i:nth-child(7){transform:rotate(270deg)}
.mini-wheel i:nth-child(8){transform:rotate(315deg)}
.mini-wheel b{position:absolute;inset:13px;border-radius:50%;background:#c89c24;border:2px solid #ffe169}
.wheel-trigger__label{
  writing-mode:vertical-rl;transform:rotate(180deg);font-size:22px;line-height:1;font-weight:950;
  letter-spacing:2px;margin:17px 0 14px;text-shadow:0 0 12px rgba(255,255,255,.22)
}
.wheel-trigger__rights{
  min-width:48px;padding:12px 4px 10px;border-radius:19px;
  background:linear-gradient(180deg,rgba(26,198,161,.94),rgba(11,110,94,.92));
  border:1px solid rgba(87,255,225,.35);box-shadow:inset 0 0 18px rgba(76,255,222,.14);
  display:grid;place-items:center
}
.wheel-trigger__rights strong{font-size:20px;line-height:1}
.wheel-trigger__rights small{font-weight:900;font-size:11px;color:#b8fff0;margin-top:4px}
.rights-tooltip{
  z-index:49;position:fixed;right:max(58px,calc((100vw - 520px)/2 + 58px));top:50%;transform:translateY(-3%);
  width:202px;padding:15px 17px;border-radius:16px 4px 4px 16px;
  border:1px solid rgba(61,231,201,.56);background:rgba(5,34,38,.98);
  box-shadow:0 12px 40px rgba(0,0,0,.32),0 0 28px rgba(13,207,168,.1);
  opacity:0;pointer-events:none;transition:opacity .28s ease,transform .28s ease
}
.rights-tooltip:after{
  content:"";position:absolute;right:-12px;top:50%;width:22px;height:22px;background:rgba(5,34,38,.98);
  border-top:1px solid rgba(61,231,201,.56);border-right:1px solid rgba(61,231,201,.56);
  transform:translateY(-50%) rotate(45deg)
}
.rights-tooltip strong,.rights-tooltip span{display:block;position:relative;z-index:2}
.rights-tooltip strong{font-size:13px;color:var(--mint);margin-bottom:5px}
.rights-tooltip span{font-size:13px;color:#d8e1e2}
.rights-tooltip.is-visible{opacity:1;transform:translateY(-8%) translateX(-7px)}

.wheel-overlay{
  position:fixed;inset:0;z-index:100;background:rgba(0,5,8,.72);backdrop-filter:blur(13px);
  display:grid;place-items:center;padding:18px;opacity:0;visibility:hidden;transition:.24s ease
}
.wheel-overlay.is-open{opacity:1;visibility:visible}
.wheel-modal{
  position:relative;width:min(100%,440px);padding:28px 22px 24px;text-align:center;border-radius:30px;
  background:
    radial-gradient(circle at 50% 32%,rgba(16,205,170,.16),transparent 37%),
    linear-gradient(180deg,#08191d,#061216 70%);
  border:1px solid rgba(41,235,198,.28);
  box-shadow:0 30px 90px rgba(0,0,0,.5),0 0 55px rgba(20,225,188,.1)
}
.wheel-close{
  position:absolute;right:14px;top:12px;width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04);color:#fff;font-size:24px;cursor:pointer
}
.wheel-kicker{font-size:12px;color:var(--mint);letter-spacing:3px;font-weight:900;margin-bottom:6px}
.wheel-modal h1{margin:0;font-size:29px}
.wheel-subtitle{margin:7px 0 20px;color:#a5b6ba}
.wheel-subtitle strong{color:#efd063}
.wheel-stage{position:relative;width:320px;height:320px;max-width:82vw;max-height:82vw;margin:0 auto}
.pointer{
  z-index:5;position:absolute;left:50%;top:-4px;transform:translateX(-50%);
  width:0;height:0;border-left:13px solid transparent;border-right:13px solid transparent;border-top:27px solid #f6da66;
  filter:drop-shadow(0 0 9px rgba(246,218,102,.55))
}
.big-wheel{
  width:100%;height:100%;border-radius:50%;
  background:
    conic-gradient(
      #0bbf9f 0 36deg,#0b897d 36deg 72deg,#13cba8 72deg 108deg,#087165 108deg 144deg,
      #10d5b0 144deg 180deg,#0a8d7c 180deg 216deg,#13c5a4 216deg 252deg,#08776d 252deg 288deg,
      #18dcb7 288deg 324deg,#0b8f7e 324deg 360deg
    );
  border:10px solid #d8b83d;box-shadow:0 0 0 5px rgba(20,238,198,.45),0 0 45px rgba(20,238,198,.4),inset 0 0 35px rgba(0,0,0,.4);
  position:relative
}
.big-wheel:after{
  content:"";position:absolute;inset:19px;border-radius:50%;
  background:repeating-conic-gradient(from 18deg,transparent 0 34deg,rgba(255,255,255,.7) 34deg 36deg);
  opacity:.2
}
.wheel-center{
  position:absolute;inset:50% auto auto 50%;z-index:4;transform:translate(-50%,-50%);
  width:105px;height:105px;border-radius:50%;display:grid;place-content:center;
  background:linear-gradient(180deg,#11a891,#086b62);border:5px solid #e7c74d;
  box-shadow:0 0 25px rgba(24,235,197,.55)
}
.wheel-center strong{font-size:17px}
.wheel-center span{font-size:11px;color:#b8fff1;font-weight:800;margin-top:4px}
.wheel-bottom{
  margin:22px auto 0;max-width:300px;display:flex;justify-content:space-between;padding:13px 16px;
  border:1px solid rgba(32,225,191,.2);border-radius:14px;background:rgba(9,49,49,.5);color:#aebdc0
}
.wheel-bottom strong{color:#fff}
.part-note{font-size:11px;color:#62757b;margin:13px 0 0}
@keyframes pulseRing{0%{opacity:.85;transform:scale(.96)}75%,100%{opacity:0;transform:scale(1.12)}}
@keyframes halo{0%,100%{transform:scale(.86);opacity:.68}50%{transform:scale(1.08);opacity:1}}

@media (max-width:600px){
  .wheel-trigger{right:0;width:64px;min-height:244px}
  .rights-tooltip{right:58px;width:190px}
}
@media (max-width:390px){
  .demo-content{padding-left:18px;padding-right:18px}
  .balance-card div{gap:12px}
  .transactions{padding-left:14px;padding-right:14px}
}
