
/* ===============================
   MODAL — AniGames (3-step flow)
   =============================== */

.modal-backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  display:none;
  place-items:center;
  z-index:100;
  padding:16px;
}
.modal-backdrop.show{display:grid}

.modal{
  width:min(860px, calc(100vw - 32px));
  border-radius:26px;
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(39,212,0,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 40px 100px rgba(0,0,0,.78);
  overflow:hidden;
}

.modal .head{
  padding:18px 18px 12px 18px;
  display:flex; justify-content:space-between; align-items:flex-start; gap:12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.modal .title{display:flex;flex-direction:column;gap:6px}
.modal .title strong{font-size:18px}
.modal .subtitle{color:var(--muted);font-size:13px}

.close-x{
  background:transparent;
  border:1px solid rgba(255,255,255,.18);
  color:var(--white);
  border-radius:999px;
  padding:10px 12px;
  cursor:pointer;
}

.modal .body{padding:18px}
.stepper{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
  margin-bottom:16px;
}
.step-dot{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:var(--muted);
  font-weight:850;
  font-size:13px;
}
.step-dot .num{
  width:26px;height:26px;border-radius:999px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:var(--white);
}
.step-dot.active{
  background:rgba(39,212,0,.10);
  border-color:rgba(39,212,0,.22);
  color:var(--white);
}
.step-dot.active .num{
  background:linear-gradient(135deg,var(--green),var(--green2));
  border-color:rgba(39,212,0,.25);
  color:#050505;
}

.modal-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:16px;
}
@media (max-width: 900px){
  .modal-grid{grid-template-columns:1fr}
}

.panel{
  border-radius:20px;
  background:rgba(0,0,0,.20);
  border:1px solid rgba(255,255,255,.08);
  padding:14px;
}

.form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.form .full{grid-column:1/-1}
@media (max-width: 640px){ .form{grid-template-columns:1fr} }

.label{
  display:block;
  font-size:13px;
  color:var(--muted);
  margin:0 0 8px 2px;
  font-weight:850;
}
.input, .select{
  width:100%;
  padding:14px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  color:var(--white);
  outline:none;
}
.input:focus, .select:focus{
  border-color:rgba(39,212,0,.35);
  box-shadow: 0 0 0 4px rgba(39,212,0,.12);
}
.hint{margin-top:8px;color:var(--muted);font-size:12px}

.actions{
  display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap;
  margin-top:14px;
}
.actions .btn{padding:12px 16px}
.actions .btn.wide{min-width:180px}

.summary{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.summary .line{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}
.summary .line strong{font-weight:950}
.summary .muted{font-size:13px}

.bank-list{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:10px;
}
.bank{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 12px;
  border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.bank:hover{transform:translateY(-1px);background:rgba(255,255,255,.06)}
.bank.selected{
  border-color:rgba(39,212,0,.35);
  background:rgba(39,212,0,.09);
}
.bank-left{display:flex;align-items:center;gap:12px}
.bank-logo{
  width:44px;height:44px;border-radius:16px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  font-weight:950;
}
.bank-meta{display:flex;flex-direction:column;gap:2px}
.bank-name{font-weight:950}
.bank-acct{color:var(--muted);font-size:12px}

.qty{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.qty-controls{
  display:flex; align-items:center; gap:10px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:8px 10px;
}
.qty-btn{
  width:36px;height:36px;border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:var(--white);
  cursor:pointer;
  font-weight:950;
}
.qty-num{min-width:28px;text-align:center;font-weight:950}

.filebox{
  margin-top:10px;
  padding:12px;
  border-radius:18px;
  background:rgba(255,255,255,.03);
  border:1px dashed rgba(255,255,255,.18);
}
.filebox .row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.preview{
  margin-top:12px;
  width:100%;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.3);
}
.preview img{width:100%;height:auto;display:block;max-height:260px;object-fit:cover}

.notice{
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(39,212,0,.18);
  background:linear-gradient(180deg, rgba(39,212,0,.08), rgba(255,255,255,.02));
  color:var(--white);
  font-size:13px;
}
.order-box{
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.22);
}
.order-id{
  font-size:22px;
  font-weight:1000;
  letter-spacing:.6px;
}
.order-sub{color:var(--muted);font-size:13px;margin-top:6px}


/* === Enhancements requested (dropdown, file preview by name, 10px rhythm) === */
.source-dropdown{position:relative}
.source-dropdown .dropdown-toggle{
  text-align:left;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.source-dropdown .dropdown-toggle::after{
  content:"▾";
  opacity:.85;
  font-weight:900;
}
.source-dropdown .dropdown-menu{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  width:100%;
  border-radius:18px;
  background:rgba(10,10,14,.96);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 18px 50px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  padding:6px;
  display:none;
  z-index:120;
}
.source-dropdown .dropdown-menu.show{display:block}
.source-dropdown .dropdown-item{
  padding:12px 12px;
  border-radius:14px;
  cursor:pointer;
  color:var(--white);
  font-weight:850;
}
.source-dropdown .dropdown-item:hover{
  background:rgba(255,255,255,.07);
}

.file-name{
  font-weight:850;
  color:var(--white);
  text-decoration: underline;
  cursor:pointer;
}

.imgview{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  display:grid;
  place-items:center;
  z-index:130;
  padding:16px;
}
.imgview__panel{
  width:min(860px, calc(100vw - 32px));
  border-radius:22px;
  overflow:hidden;
  background:rgba(10,10,14,.92);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 20px 70px rgba(0,0,0,.55);
  position:relative;
}
.imgview__panel img{
  width:100%;
  height:auto;
  display:block;
  max-height:80vh;
  object-fit:contain;
  background:rgba(0,0,0,.35);
}
.imgview__close{
  position:absolute;
  top:10px;
  right:10px;
  width:40px;height:40px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:var(--white);
  cursor:pointer;
  font-size:24px;
  line-height:1;
}



/* === Source dropdown portal fix (so it never clips inside modal card) === */
.dropdown-menu.portal {
  position: fixed !important;
  left: 0;
  top: 0;
  width: auto;
  z-index: 10050 !important;
  max-height: 260px;
  overflow: auto;
  display: none;
}

.dropdown-menu.portal.show {
  display: block;
}


/* === Scroll lock when modal is open === */
body.modal-open { overflow: hidden; }


/* ================================
   STEP 3 — Ticket estilo banco
   ================================ */
.step-confirm{
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 26px 0;
}

.confirm-card.confirm-card--bank{
  width:100%;
  max-width: 560px;
  border-radius: 22px;
  padding: 26px;
  text-align:center;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(10, 10, 14, .55);
  backdrop-filter: blur(12px);
}

.confirm-title{
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.confirm-sub{
  font-size: 14px;
  opacity: .82;
  margin-bottom: 18px;
}

.ticket-card{
  background: linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.55));
  border-radius: 18px;
  padding: 18px;
  margin: 18px 0 22px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 14px 40px rgba(0,0,0,.45);
}

.ticket-label{
  font-size: 12px;
  letter-spacing: .35px;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 8px;
}

.ticket-code{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  user-select: all;
  margin-bottom: 12px;
}

.ticket-copy{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor:pointer;
  transition: background .2s ease, transform .2s ease;
}

.ticket-copy:hover{
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

.confirm-actions{
  display:flex;
  justify-content:center;
}
