
/* RECRENT EXCHANGE V1 */

dialog.recrent-exchange-dialog{
 width:min(600px,calc(100% - 24px));
 max-height:92dvh;
 box-sizing:border-box;
 padding:0!important;
 color:#f8edf5;
 background:#201820;
 border:1px solid #78425c;
 border-radius:17px;
 box-shadow:0 25px 100px #000b;
 overflow:auto;
 font:15px/1.5 Arial,sans-serif;
 animation:rxOpen .25s ease both;
}

.recrent-exchange-dialog::backdrop{
 background:#08050bd9;
 backdrop-filter:blur(8px);
}

@keyframes rxOpen{
 from{opacity:0;transform:translateY(14px) scale(.97)}
 to{opacity:1;transform:translateY(0) scale(1)}
}

.rx-header{
 display:flex;
 justify-content:space-between;
 align-items:center;
 padding:22px 26px;
 border-bottom:1px solid #553347;
}

.rx-header small{
 color:#ee83b0;
 font-size:11px;
 letter-spacing:2px;
}

.rx-header h2{
 font:800 25px Arial,sans-serif!important;
 margin:7px 0 0!important;
}

.rx-header [data-rx-close]{
 width:36px;
 height:36px;
 padding:0!important;
 font-size:25px!important;
 background:#36252f!important;
 border:1px solid #694055;
 border-radius:8px;
}

.rx-content{
 padding:22px 26px 26px;
}

.rx-preview{
 position:relative;
 display:grid;
 place-items:center;
 height:210px;
 overflow:hidden;
 border:1px solid #694057;
 border-radius:12px;
 background:
 repeating-radial-gradient(
 ellipse 800px 280px at 100% 0%,
 transparent 0 32px,
 #c35a8c30 33px 34px,
 transparent 35px
 ),
 radial-gradient(
 ellipse at center,#7a254c60,transparent 70%
 ),
 linear-gradient(135deg,#17121a,#322031);
}

.rx-preview img{
 width:85%;
 height:185px;
 object-fit:contain;
 filter:drop-shadow(0 10px 24px #0009);
 animation:rxFloat 4s ease-in-out infinite;
}

@keyframes rxFloat{
 0%,100%{transform:translateY(0)}
 50%{transform:translateY(-7px)}
}

.rx-count-badge{
 position:absolute;
 right:14px;
 bottom:12px;
 padding:6px 13px;
 background:#e91662;
 color:#fff;
 font-size:18px;
 font-weight:800;
 border-radius:7px;
}

.rx-title{
 text-align:center;
 padding:15px 0 20px;
}

.rx-title h3{
 font-size:24px!important;
 margin:0 0 5px!important;
}

.rx-title small{
 color:#c8adbe;
 font-size:14px;
}

.rx-wallet,
.rx-summary{
 background:#171319;
 border:1px solid #553347;
 border-radius:10px;
 padding:14px 16px;
}

.rx-wallet,
.rx-summary>div{
 display:flex;
 justify-content:space-between;
 align-items:center;
 gap:12px;
}

.rx-wallet strong{
 color:#f2c477;
 font-size:19px;
}

.rx-controls{
 padding:22px 0;
}

.rx-label{
 display:flex;
 justify-content:space-between;
 align-items:center;
 margin-bottom:13px;
}

.rx-label button{
 background:#51283e!important;
 border:1px solid #8e4568!important;
 border-radius:7px;
 color:#ffb0d1!important;
 padding:7px 12px!important;
 font-size:12px!important;
}

.rx-stepper{
 display:grid;
 grid-template-columns:48px minmax(0,1fr) 48px;
 gap:10px;
}

.rx-stepper button,
.rx-stepper input{
 width:100%;
 height:46px;
 box-sizing:border-box;
 border:1px solid #75415c!important;
 background:#1b151d!important;
 color:#fff!important;
 border-radius:8px!important;
 text-align:center;
}

.rx-stepper button{
 font-size:23px!important;
 padding:0!important;
}

.rx-stepper input{
 font-size:20px!important;
 font-weight:700;
 appearance:textfield;
}

.rx-stepper input::-webkit-inner-spin-button,
.rx-stepper input::-webkit-outer-spin-button{
 appearance:none;
}

.rx-controls input[type="range"]{
 appearance:none!important;
 width:100%;
 height:8px!important;
 min-height:8px!important;
 padding:0!important;
 margin:23px 0 8px;
 border:0!important;
 border-radius:20px;
 background:linear-gradient(
 to right,
 #ec1764 0 var(--rx-progress,0%),
 #493442 var(--rx-progress,0%) 100%
 )!important;
 cursor:pointer;
}

.rx-controls input[type="range"]::-webkit-slider-thumb{
 appearance:none;
 width:20px;
 height:20px;
 border-radius:50%;
 border:3px solid #fff;
 background:#eb1662;
 box-shadow:0 0 13px #ed176b88;
}

.rx-controls input[type="range"]::-moz-range-thumb{
 width:16px;
 height:16px;
 border-radius:50%;
 border:3px solid #fff;
 background:#eb1662;
}

.rx-range-labels{
 display:flex;
 justify-content:space-between;
 color:#b79cac;
 font-size:12px;
}

.rx-summary>div+div{
 margin-top:12px;
 padding-top:12px;
 border-top:1px solid #3c2b37;
}

.rx-summary span,
.rx-wallet span{
 color:#c3aebc;
}

.rx-summary [data-rx-price]{
 font-size:19px;
 color:#ff75ab;
}

.rx-summary [data-rx-remaining]{
 color:#efc27c;
}

[data-rx-status]{
 color:#e3a9c5;
 font-size:13px;
 margin:12px 0;
 text-align:center;
}

button[data-rx-confirm]{
 width:100%;
 min-height:52px;
 padding:14px!important;
 border-radius:9px!important;
 border:1px solid #f54885!important;
 background:linear-gradient(
 180deg,#f2226d,#c90b50
 )!important;
 font-size:16px!important;
 font-weight:800!important;
 color:#fff!important;
 transition:box-shadow .2s,transform .2s;
}

button[data-rx-confirm]:hover:not(:disabled){
 box-shadow:0 0 24px #ef176655;
 transform:translateY(-1px);
}

button[data-rx-confirm]:disabled{
 opacity:.45;
 cursor:not-allowed;
}

.rx-note{
 display:block;
 text-align:center;
 color:#b8a1b0;
 font-size:12px;
 margin-top:12px;
}

.recrent-exchange-button{
 background:linear-gradient(
 135deg,#e91662,#ba0e4b
 )!important;
}

.recrent-exchange-dialog [hidden]{
 display:none!important;
}

@media(max-width:600px){
 .rx-content{padding:16px}
 .rx-header{padding:17px}
 .rx-preview{height:170px}
 .rx-preview img{height:150px}
 .rx-header h2{font-size:21px!important}
}

@media(prefers-reduced-motion:reduce){
 .recrent-exchange-dialog,
 .rx-preview img{
  animation:none!important;
 }
}
