/* Inicio · panel «Robux» con la calculadora «Lavanda» en miniatura. Solo actúa cuando mini.js montó .ml-wrap dentro de .qm-rbx. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');
.qm-rbx.ml-on > .qm-amts, .qm-rbx.ml-on > .qm-ofs, .qm-rbx.ml-on > .qm-fine { display: none !important; }
.ml-wrap { flex: 1; display: flex; }
.ml { --g: linear-gradient(120deg, #6d3df0 0%, #a63ee8 52%, #e2489b 100%); --ln: rgba(255, 255, 255, .12); --mu: #a99fc6; --vid: rgba(20, 15, 36, .74);
  flex: 1; display: flex; flex-direction: column; gap: 14px; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; color: #f4f0ff; }
.ml button, .ml input, .ml a { font: inherit; color: inherit; }

/* método */
.ml-mets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 22px; background: var(--vid); border: 1px solid var(--ln); }
.ml-m { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 9px; align-items: center; padding: 7px 10px 7px 7px; border: 0; border-radius: 17px; background: none; text-align: left; cursor: pointer; transition: background .2s; }
.ml-m i { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; background-size: cover; background-position: center 30%; opacity: .6; transition: opacity .2s; }
.ml-m b { font-size: 14px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.ml-m small { font-size: 11.5px; font-weight: 600; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-m:hover { background: rgba(255, 255, 255, .05); }
.ml-m.on { background: var(--g); box-shadow: 0 10px 22px -12px rgba(192, 38, 211, .8); }
.ml-m.on i { opacity: 1; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.ml-m.on small { color: rgba(255, 255, 255, .85); }

/* rueda + pastillas */
.ml-orb { flex: 1; display: grid; grid-template-columns: 178px minmax(0, 1fr); gap: 18px; align-items: center; }
.ml-sol { --p: 0; position: relative; width: 178px; height: 178px; margin: 10px; justify-self: center; }
@property --mlp { syntax: '<number>'; inherits: true; initial-value: 0; }
.ml-aro, .ml-per { position: absolute; inset: -11px; border-radius: 50%; pointer-events: none; }
.ml-aro { background: conic-gradient(from -150deg, #6d3df0 0deg, #a63ee8 calc(var(--p) * 150deg), #e2489b calc(var(--p) * 300deg), rgba(255, 255, 255, .09) 0 300deg, transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); filter: drop-shadow(0 0 8px rgba(166, 62, 232, .6)); }
.ml-per { transform: rotate(calc(-150deg + var(--p) * 300deg)); }
.ml-per::after { content: ""; position: absolute; top: -5px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 4px solid #a63ee8; box-shadow: 0 0 10px rgba(226, 72, 155, .9); }
.ml-esf { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background-size: cover !important; background-position: center 26% !important; border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 -20px 34px rgba(124, 58, 237, .25), 0 26px 40px -26px rgba(0, 0, 0, .9); text-align: center; }
.ml-esf img { width: 30px; height: 30px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.ml-esf strong { margin-top: 4px; font-size: 34px; font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 3px 14px rgba(0, 0, 0, .6); }
.ml-esf span { font-size: 12px; font-weight: 700; color: #d9d2ea; }
.ml-esf b { margin-top: 7px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.ml-esf b em { font-style: normal; font-size: 11.5px; color: #d9d2ea; }

.ml-ps { display: grid; gap: 7px; min-width: 0; }
.ml-p { display: flex; align-items: center; gap: 9px; min-width: 0; height: 46px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--vid); border: 1px solid var(--ln); cursor: pointer; text-align: left; transition: background .2s, transform .2s; }
.ml-p i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 32% 24%, #3b2d63, #1d1634 82%); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .35); }
.ml-p i img { width: 19px; height: 19px; }
.ml-p b { font-size: 16px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ml-p span { margin-left: auto; padding: 4px 9px; border-radius: 999px; background: rgba(167, 139, 250, .14); font-size: 12.5px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ml-p:hover { background: rgba(255, 255, 255, .08); transform: translateX(2px); }
.ml-p.on { background: var(--g); border-color: transparent; box-shadow: 0 12px 22px -14px rgba(192, 38, 211, .9); }
.ml-p.on i { background: #fff; }
.ml-p.on span { background: rgba(255, 255, 255, .22); }
.ml-otra { height: 42px; min-width: 0; padding: 0 16px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, .22); background: transparent; font-size: 14px; font-weight: 700; outline: 0; }
.ml-otra::placeholder { color: var(--mu); font-weight: 600; }
.ml-otra:focus { border-style: solid; border-color: #a63ee8; }

/* comprar */
.ml-buy { display: flex; align-items: center; justify-content: center; gap: 9px; height: 52px; border-radius: 999px; background: var(--g); color: #fff !important; font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; box-shadow: 0 18px 30px -16px rgba(192, 38, 211, .9); transition: transform .2s, filter .2s; }
.ml-buy svg { width: 17px; height: 17px; transition: transform .2s; }
.ml-buy:hover { transform: translateY(-2px); filter: brightness(1.06); }
.ml-buy:hover svg { transform: translateX(3px); }
.ml-fine { margin: -4px 0 0; text-align: center; font-size: 12px; color: var(--mu); }

@media (max-width: 1100px) { .ml-orb { grid-template-columns: 200px minmax(0, 1fr); } .ml-sol { width: 190px; height: 190px; } }
@media (max-width: 520px) {
  .ml-orb { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ml-sol { width: 168px; height: 168px; margin: 12px auto 4px; }
  .ml-ps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ml-p { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; height: 58px; padding: 0 14px; border-radius: 20px; }
  .ml-p i { display: none; }
  .ml-p span { margin: 0; padding: 0; background: none !important; color: var(--mu); font-size: 12.5px; }
  .ml-p.on span { color: #fff; }
  .ml-otra { grid-column: 1 / -1; height: 46px; }
  .ml-m small { font-size: 11px; }
}
/* PC: el panel es alto (lo estira la columna de juegos): rueda más grande y todo repartido */
@media (min-width: 1101px) {
  .ml { gap: 18px; }
  .ml-orb { grid-template-columns: 214px minmax(0, 1fr); gap: 20px; }
  .ml-sol { width: 200px; height: 200px; margin: 12px; }
  .ml-esf img { width: 34px; height: 34px; } .ml-esf strong { font-size: 40px; } .ml-esf b { font-size: 17px; }
  .ml-ps { gap: 8px; } .ml-p { height: 50px; } .ml-otra { height: 46px; }
}
@media (max-width: 520px) { .ml-m small { white-space: normal; line-height: 1.25; } .ml-m { align-items: start; } }

/* ===== animaciones (v2): se dibuja una vez y se actualiza ===== */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
.ml-listo .ml-sol { transition: --p .75s cubic-bezier(.3, .9, .3, 1); }
/* método: un fondo con degradado que se desliza de un botón al otro */
.ml-mets { position: relative; isolation: isolate; }
.ml-ind { position: absolute; z-index: -1; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 8px); border-radius: 17px; background: var(--g); box-shadow: 0 10px 22px -12px rgba(192, 38, 211, .8); transition: transform .45s cubic-bezier(.3, 1.3, .4, 1); }
.ml[data-metodo="grupo"] .ml-ind { transform: translateX(calc(100% + 6px)); }
.ml-m.on { background: none !important; box-shadow: none !important; }
.ml-m i, .ml-m small { transition: opacity .3s, color .3s, box-shadow .3s; }
/* rueda: el arte de los dos métodos superpuesto, se funde y se acerca */
.ml-esf { overflow: hidden; isolation: isolate; background: #150f29 !important; }
.ml-art { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 26%; opacity: 0; transform: scale(1.15); transition: opacity .55s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.ml-art.on { opacity: 1; transform: scale(1); }
.ml-velo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 13, 38, .3) 0%, rgba(20, 13, 38, .8) 55%, rgba(20, 13, 38, .95) 100%); }
.ml-esf strong, .ml-esf b { font-variant-numeric: tabular-nums; }
.ml-gira { animation: ml-gira .6s cubic-bezier(.3, 1.2, .4, 1); }
@keyframes ml-gira { 0% { transform: scale(1); } 35% { transform: scale(.93) rotate(-4deg); } 100% { transform: scale(1) rotate(0); } }
.ml-salta { animation: ml-salta .55s cubic-bezier(.3, 1.6, .4, 1); }
@keyframes ml-salta { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-7px) scale(1.18) rotate(-10deg); } 100% { transform: translateY(0) scale(1); } }
/* pastillas: el degradado entra con un brillo */
.ml-p { position: relative; overflow: hidden; isolation: isolate; transition: background .3s, border-color .3s, transform .2s, box-shadow .3s; }
.ml-elegida::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); animation: ml-brillo .7s ease-out; }
@keyframes ml-brillo { to { transform: translateX(120%); } }
.ml-elegida { animation: ml-pop .35s cubic-bezier(.3, 1.6, .4, 1); }
@keyframes ml-pop { 0% { transform: scale(.97); } 100% { transform: scale(1); } }
.ml-p i { transition: background .3s; }
@media (prefers-reduced-motion: reduce) {
  .ml-listo .ml-sol, .ml-ind, .ml-art, .ml-p { transition: none !important; }
  .ml-gira, .ml-salta, .ml-elegida, .ml-elegida::after { animation: none !important; }
}

/* 13/11: la moneda al lado del precio de cada cantidad (Dario: «no se pone el COP»); las pastillas se ajustan un poco para que entre «1.489,60 MXN» */
.ml-p span em { font-style: normal; }
.ml-p span .ml-pc { margin-left: 1px; font-size: .74em; font-weight: 700; opacity: .7; letter-spacing: .02em; }
@media (min-width: 1101px) { .ml-p { gap: 7px; padding-right: 8px; } .ml-p i { width: 30px; height: 30px; } .ml-p span { padding: 4px 8px; font-size: 12px; } }

/* 13/11: 5 cantidades (Dario: «agrega 500 robux»). En celular «Otra cantidad» ocupa el lugar libre al lado de 10.000 */
@media (max-width: 520px) { .ml-otra { grid-column: auto; height: 58px; border-radius: 20px; padding: 0 14px; } }

/* 13/11: el rango permitido dentro de «Otra cantidad» (Dario: «pon ahí que es 100-100.000») */
.ml-otra-w { position: relative; display: block; min-width: 0; }
.ml-otra-w .ml-otra { display: block; width: 100%; box-sizing: border-box; padding-right: 118px; }
.ml-rango { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 11.5px; font-weight: 700; color: var(--mu); pointer-events: none; white-space: nowrap; font-variant-numeric: tabular-nums; transition: color .2s; }
.ml-rango-mal { color: #fda4af; }
@media (max-width: 520px) {
  .ml-otra-w { grid-column: auto; }
  .ml-otra-w .ml-otra { padding: 0 12px 15px 14px; }
  .ml-rango { top: auto; bottom: 10px; left: 14px; right: auto; transform: none; font-size: 11px; }
}
/* PC: la columna de cantidades es angosta → el rango va debajo del texto, como en celular */
@media (min-width: 1101px) {
  .ml-otra-w .ml-otra { height: 50px; padding: 0 14px 14px 18px; }
  .ml-rango { top: auto; bottom: 8px; left: 18px; right: auto; transform: none; font-size: 11px; }
}
