/* =========================================================
   JELLYNERVYS — Solicitud de comisión · "Tu photocard"
   Se carga después de holo.css. La lógica sigue en comisiones.js.
   ========================================================= */
.req-body { min-height: 100vh; display: flex; flex-direction: column; }
.mono { font-family: var(--f-mono); letter-spacing: .08em; }
.req-main { position: relative; z-index: 1; flex: 1; width: min(1240px, calc(100% - 2 * var(--pad))); margin: 0 auto; padding: 7rem 0 4rem; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.req-panel { position: relative; padding: clamp(1.6rem, 4vw, 2.8rem); border-radius: 28px; background: linear-gradient(170deg, #1f0d37, #120720); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px rgba(0, 0, 0, .4); }

/* progreso: colecciona las 4 cartas */
.req-top { margin-bottom: 2.2rem; }
.collect { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1rem; }
.collect li { display: flex; align-items: center; gap: .6rem; font-size: .76rem; font-weight: 800; color: var(--muted); transition: color .4s; }
.collect .mini { flex: 0 0 26px; height: 34px; border-radius: 6px; border: 1.5px dashed rgba(205, 180, 255, .35); transition: all .5s var(--ease); }
.collect li.now { color: var(--white); }
.collect li.now .mini { border-style: solid; border-color: var(--pink-2); box-shadow: 0 0 14px rgba(255, 111, 208, .5); animation: miniBob 1.4s ease-in-out infinite; }
@keyframes miniBob { 50% { transform: translateY(-4px) rotate(-4deg); } }
.collect li.got { color: var(--pink-2); }
.collect li.got .mini { border: 0; background: var(--holo); background-size: 200% 100%; box-shadow: 0 3px 0 #8a5ad6, 0 0 12px rgba(255, 111, 208, .4); transform: rotate(-6deg); }
.req-track { position: relative; height: 4px; border-radius: 99px; background: rgba(205, 180, 255, .12); overflow: hidden; }
#reqBar { position: absolute; left: 0; top: 0; bottom: 0; width: 25%; border-radius: inherit; background: var(--holo); transition: width .8s var(--ease); }
.req-meta { display: flex; justify-content: space-between; margin-top: .6rem; font-size: .64rem; color: var(--muted); text-transform: uppercase; }
.req-meta #reqPct { color: var(--pink-2); }

/* pasos */
.req-step, .req-result { animation: rise .6s var(--ease); }
.req-h1 { font-family: var(--f-chrome); font-weight: 400; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.05; outline: none; color: var(--white); }
.req-h1 em { font-style: normal; background: linear-gradient(180deg, #ffffff 0%, #ffe1f6 26%, #ff8fdc 45%, #b0127e 50%, #ff7fd6 62%, #ffd6f3 82%, #ffffff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #3a1766); }
.req-sub { margin: .8rem 0 1.8rem; max-width: 40rem; color: var(--muted); }

.req-opts { display: grid; gap: .7rem; }
.req-opt { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .95rem 1.1rem; border-radius: 18px; cursor: pointer; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, box-shadow .3s, transform .35s var(--ease); }
.req-opt:hover { background: rgba(205, 180, 255, .07); transform: translateY(-2px); }
.req-opt input, .req-budget input { position: absolute; opacity: 0; pointer-events: none; }
.req-opt-key { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #3a1766; background: #f3e8ff; box-shadow: 0 2px 0 #b48ae8; transform: rotate(-4deg); transition: all .4s var(--ease); }
.req-opt-body strong { display: block; }
.req-opt-body em { font-style: normal; font-size: .86rem; color: var(--muted); }
.req-opt-mark { width: 22px; height: 22px; display: grid; place-items: center; font-size: .8rem; color: transparent; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); transition: all .3s; }
.req-opt-mark::before { content: "♥"; }
.req-opt:has(input:checked) { background: linear-gradient(170deg, #2a1150, #170a29); box-shadow: inset 0 0 0 1.5px var(--pink-2), 0 0 30px rgba(255, 111, 208, .18); }
.req-opt:has(input:checked) .req-opt-key { background: var(--holo); color: #22093f; transform: rotate(4deg) scale(1.08); }
.req-opt:has(input:checked) .req-opt-mark { color: var(--pink); box-shadow: none; transform: scale(1.3); }
.req-opt:has(input:focus-visible), .req-budget:has(input:focus-visible) { outline: 2px solid var(--pink-2); outline-offset: 3px; }

.req-field { display: grid; gap: .4rem; margin-top: 1.2rem; }
.req-field label { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lav); }
.req-field input, .req-field textarea, .req-field select { width: 100%; font: inherit; color: var(--white); background: rgba(0, 0, 0, .3); border: 0; border-radius: 14px; padding: .85rem 1rem; box-shadow: inset 0 0 0 1px var(--line); outline: none; transition: box-shadow .3s, background .3s; color-scheme: dark; }
.req-field textarea { resize: vertical; min-height: 140px; }
.req-field input::placeholder, .req-field textarea::placeholder { color: rgba(205, 180, 255, .4); }
.req-field input:focus, .req-field textarea:focus, .req-field select:focus { background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1.5px var(--pink-2), 0 0 0 4px rgba(255, 111, 208, .12); }
.req-field .is-invalid { box-shadow: inset 0 0 0 1.5px var(--pink), 0 0 0 4px rgba(255, 111, 208, .15) !important; animation: wobble .4s; }
@keyframes wobble { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.req-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.6rem; }
.select-wrap select option { background: #170a29; color: var(--white); }
.select-arrow { position: absolute; right: 1rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--pink-2); pointer-events: none; }
.req-hint, .req-note { margin-top: 1rem; font-size: .84rem; color: var(--muted); }
.req-error { margin-top: 1rem; padding: .7rem 1rem; border-radius: 14px; font-size: .88rem; font-weight: 700; color: #ffd6f3; background: rgba(255, 111, 208, .12); box-shadow: inset 0 0 0 1px rgba(255, 111, 208, .45); }

.req-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.req-actions [data-back][hidden] + .req-next { margin-left: auto; }
.btn-primary { color: #22093f; background: var(--holo); background-size: 220% 100%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 8px 26px rgba(255, 111, 208, .3); padding: .9rem 1.5rem; }
.btn-primary:hover { background-position: 100% 0; transform: translateY(-2px); }
.btn-ghost, .btn-text { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(205, 180, 255, .4); padding: .9rem 1.4rem; }
.btn-ghost:hover, .btn-text:hover { background: rgba(205, 180, 255, .1); }
.req-arrow, .btn svg { width: 18px; height: 18px; flex: 0 0 18px; transition: transform .35s var(--ease); }
.btn:hover .req-arrow { transform: translateX(4px); }

/* referencias */
.req-drop { position: relative; display: grid; justify-items: center; gap: .35rem; padding: 2.6rem 1.5rem; border-radius: 22px; cursor: pointer; text-align: center; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 2px rgba(205, 180, 255, .25); background-image: radial-gradient(circle, rgba(205, 180, 255, .12) 1px, transparent 1.5px); background-size: 18px 18px; transition: box-shadow .3s, transform .3s var(--ease); }
.req-drop:hover, .req-drop.is-over { transform: scale(1.01); box-shadow: inset 0 0 0 2px var(--pink-2), 0 0 40px rgba(255, 111, 208, .2); }
.req-drop-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.8rem; color: #22093f; background: var(--holo); box-shadow: 0 3px 0 #8a5ad6; transform: rotate(-6deg); }
.req-drop strong { font-family: var(--f-chrome); font-weight: 400; font-size: 1.3rem; }
.req-drop em { font-style: normal; font-size: .84rem; color: var(--muted); }
.req-drop-count { position: absolute; top: 1rem; right: 1.1rem; font-size: .7rem; color: var(--pink-2); }
.req-previews { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.req-thumb { position: relative; width: 72px; aspect-ratio: 3 / 4; animation: rise .5s var(--ease); }
.req-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 8px 16px rgba(0, 0, 0, .4); }
.req-thumb:nth-child(odd) { transform: rotate(-3deg); } .req-thumb:nth-child(even) { transform: rotate(3deg); }
.req-thumb button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; font-size: .95rem; line-height: 1; color: #22093f; background: var(--white); box-shadow: 0 3px 8px rgba(0, 0, 0, .4); }
.req-thumb button:hover { background: var(--pink-2); }

/* presupuesto: rarezas */
.req-budgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.req-budget { position: relative; display: grid; justify-items: center; gap: .25rem; padding: 1.4rem .8rem; cursor: pointer; text-align: center; border-radius: 16px; aspect-ratio: 3 / 3.4; align-content: center; background: linear-gradient(170deg, #241042, #150826); box-shadow: inset 0 0 0 1px var(--line), 0 10px 20px rgba(0, 0, 0, .3); transition: transform .4s var(--ease), box-shadow .3s; }
.req-budget::before { font-size: 1rem; letter-spacing: .2em; color: var(--lav); }
.req-budget:nth-child(1)::before { content: "✦"; } .req-budget:nth-child(2)::before { content: "✦✦"; color: var(--pink-2); } .req-budget:nth-child(3)::before { content: "✦✦✦"; color: #ffe7a8; } .req-budget:nth-child(4)::before { content: "✦✦✦✦"; color: #8ff0ff; }
.req-budget:hover { transform: translateY(-4px) rotate(-1deg); }
.req-budget-price { font-family: var(--f-chrome); font-size: 1.6rem; letter-spacing: 0; }
.req-budget-name { font-size: .76rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.req-budget:has(input:checked) { border: 2px solid transparent; background: linear-gradient(170deg, #2e1258, #170a29) padding-box, var(--holo) border-box; transform: translateY(-8px) rotate(-2deg); box-shadow: 0 20px 40px rgba(0, 0, 0, .4), 0 0 40px rgba(255, 111, 208, .25); }
.req-budget:has(input:checked) .req-budget-name { color: var(--pink-2); }
.req-budget-note { margin-top: 1.4rem; }

/* resultado */
.req-send { display: flex; align-items: center; gap: .7rem; margin: 1rem 0; padding: .75rem 1rem; border-radius: 14px; font-size: .9rem; font-weight: 700; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.req-send-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lav); box-shadow: 0 0 10px var(--lav); animation: blink 1s infinite; flex: 0 0 9px; }
.req-send[data-state="ok"] .req-send-dot { background: #7dffbc; box-shadow: 0 0 10px #7dffbc; animation: none; }
.req-send[data-state="error"] .req-send-dot { background: var(--pink); box-shadow: 0 0 10px var(--pink); animation: none; }
.req-actions--result { justify-content: flex-start; flex-wrap: wrap; }
.req-receipt { margin-top: 1.6rem; padding: 1.3rem 1.4rem; border-radius: 18px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: .6rem; }
.req-receipt:empty { display: none; }
.r-row { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .55rem; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.r-row span, .r-block span { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.r-row b { text-align: right; }
.r-block p { margin-top: .3rem; white-space: pre-wrap; font-size: .92rem; }

/* lateral: tu photocard */
.req-side { position: sticky; top: 90px; display: grid; gap: 1rem; }
.side-k { font-size: 1.3rem; text-align: center; }
.preview-card { position: relative; aspect-ratio: 3 / 4.3; border-radius: 22px; overflow: hidden; padding: 1.1rem 1.1rem 1rem; display: grid; grid-template-rows: auto 1fr auto auto; background: radial-gradient(circle at 50% 30%, rgba(255, 111, 208, .2), transparent 55%), linear-gradient(160deg, #2c1156, #150826 65%, #22103e); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 30px 60px rgba(0, 0, 0, .5); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease), box-shadow .5s; }
.preview-card.is-tilting { transition: transform .08s linear; }
.preview-card > *:not(.pc-holo):not(.pc-glare) { position: relative; z-index: 3; }
.preview-card .pc-holo { opacity: .22; }
.preview-card:hover .pc-holo, .preview-card.is-tilting .pc-holo { opacity: .55; }
.preview-card:hover .pc-glare, .preview-card.is-tilting .pc-glare { opacity: .8; }
.pv-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.pv-no { color: var(--muted); }
.pv-rarity { padding: .25rem .55rem; border-radius: 8px; background: rgba(0, 0, 0, .35); color: var(--white); }
.pv-rarity .stars { color: var(--pink-2); letter-spacing: .15em; }
.pv-art { position: relative; display: grid; place-items: center; margin: .6rem 0; border-radius: 16px; background: repeating-linear-gradient(45deg, rgba(205, 180, 255, .05) 0 8px, transparent 8px 16px); box-shadow: inset 0 0 0 1.5px rgba(205, 180, 255, .2); min-height: 140px; }
.pv-art img { position: absolute; top: .7rem; width: 56%; opacity: .9; }
.pv-q { font-family: var(--f-chrome); font-size: 5rem; line-height: 1; margin-top: 2.2rem; background: linear-gradient(180deg, #fff, #cfaef8 45%, #6d3cab 50%, #f1e2ff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #1d0838); animation: qBob 2.4s ease-in-out infinite; }
@keyframes qBob { 50% { transform: translateY(-6px) rotate(6deg); } }
.pv-state { text-align: center; font-family: var(--f-goth); font-size: 1.15rem; color: var(--pink-2); margin-bottom: .5rem; }
.preview-card .req-sum { list-style: none; display: grid; gap: .3rem; padding: .7rem .8rem; border-radius: 12px; background: rgba(0, 0, 0, .35); }
.req-sum li { display: flex; justify-content: space-between; gap: .8rem; font-size: .8rem; }
.req-sum li span { font-size: .58rem; text-transform: uppercase; color: var(--muted); }
.req-sum li b { text-align: right; color: rgba(251, 246, 255, .35); transition: color .4s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.req-sum li b.is-set { color: var(--white); }
.req-sum li b.is-flash { animation: sumFlash .6s var(--ease); }
@keyframes sumFlash { 40% { color: var(--pink-2); transform: scale(1.08); } }
.preview-card[data-rarity="50"] { box-shadow: 0 0 0 2px var(--pink-2), 0 30px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(255, 111, 208, .3); }
.preview-card[data-rarity="70"] { box-shadow: 0 0 0 2px #ffe7a8, 0 30px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(255, 231, 168, .3); }
.preview-card[data-rarity="custom"] { box-shadow: 0 0 0 2px #8ff0ff, 0 30px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(143, 240, 255, .3); }
.preview-card.is-done { animation: cardWin 1.2s var(--ease); }
.preview-card.is-done .pc-holo { opacity: .6; animation: holoIdle2 3s ease-in-out infinite alternate; }
.preview-card.is-done .pv-q { animation: none; }
@keyframes cardWin { 0% { transform: perspective(900px) rotateY(0); } 50% { transform: perspective(900px) rotateY(180deg) scale(1.05); } 100% { transform: perspective(900px) rotateY(360deg); } }
.req-slot { display: flex; align-items: center; justify-content: center; gap: .55rem; font-size: .8rem; color: var(--muted); }
.req-help { padding: 1.2rem 1.3rem; border-radius: 18px; background: linear-gradient(170deg, #1f0d37, #120720); box-shadow: inset 0 0 0 1px var(--line); }
.req-help > p.mono { font-size: .64rem; text-transform: uppercase; color: var(--pink-2); }
.req-help p { font-size: .88rem; color: var(--muted); margin-top: .3rem; }
.req-help-discord { display: inline-flex; align-items: center; gap: .5rem; margin-top: .8rem; padding: .45rem .9rem; border-radius: 99px; font-size: .78rem; background: rgba(88, 101, 242, .22); box-shadow: inset 0 0 0 1px rgba(140, 150, 255, .4); }
.req-help-discord svg { width: 18px; height: 18px; }
.req-noscript { padding: 1rem; border-radius: 14px; background: rgba(255, 111, 208, .12); }
.req-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 1rem; width: min(1240px, calc(100% - 2 * var(--pad))); margin: 0 auto; padding: 1.4rem 0 2rem; border-top: 1px dashed var(--line); font-size: .72rem; color: var(--muted); }
.req-foot a { color: var(--pink-2); }

@media (max-width: 980px) {
  .req-main { grid-template-columns: 1fr; padding-top: 6rem; }
  .req-side { position: relative; top: 0; max-width: 360px; width: 100%; margin: 0 auto; }
  .req-budgets { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .collect span:last-child { display: none; }
  .collect { grid-template-columns: repeat(4, auto); justify-content: start; gap: 1rem; }
  .req-opt { grid-template-columns: auto 1fr; }
  .req-opt-mark { display: none; }
  .req-row { grid-template-columns: 1fr; }
  .req-actions { flex-wrap: wrap; }
  .req-actions .btn { flex: 1; }
}
