/* =========================================================
   center.css — Buyer/Mercenary center, orders, withdraw
   ========================================================= */

/* ── User Hero ───────────────────────────────────────────── */
.center-hero {
  background: linear-gradient(135deg, var(--bk), var(--nv));
  padding: 16px 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.center-hero-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px 0 0; margin-bottom: 14px;
}
/* page title (center-aligned, used in orders sub-pages) */
.center-page-title {
  font-size: 14px; font-weight: 700; color: #fff;
  flex: 1; text-align: center; letter-spacing: .08em;
}

/* logout button */
.btn-logout {
  padding: 6px 14px; border-radius: 16px;
  font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.25);
  white-space: nowrap; cursor: pointer;
  transition: all .15s;
}
.btn-logout:active { background: rgba(239,68,68,.7); color: #fff; border-color: transparent; }

/* profile section inside hero */
.center-profile {
  display: flex; align-items: center; gap: 12px;
  flex: 1;
}

.center-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--gd);
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.center-avatar svg { width: 60%; height: 60%; }
.center-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-name {
  font-size: 15px; font-weight: 700; color: #fff;
  letter-spacing: .04em;
}
.profile-id { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 2px; }

/* Role badge */
.profile-role-badge {
  display: inline-block;
  background: var(--bk); color: var(--gd);
  font-size: 9px; font-weight: 700;
  padding: 2px 10px; border-radius: 8px;
  margin-top: 4px; border: 1px solid var(--gd);
}

/* ── Balance / Fund card (mercenary) ──────────────────────── */
.fund-card {
  background: linear-gradient(135deg, var(--bk) 0%, var(--nv) 100%);
  border-radius: var(--r);
  margin: 12px 14px 0;
  padding: 16px 18px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  overflow: hidden;
}

.fund-badge {
  position: absolute; top: 0; left: 18px;
  background: var(--gd); color: var(--bk);
  font-size: 10px; font-weight: 800;
  padding: 4px 14px;
  border-radius: 0 0 10px 10px;
}

.fund-body {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 26px;
}

.fund-amount {
  display: flex; align-items: baseline; gap: 2px;
}
.fund-dollar { font-size: 18px; font-weight: 700; color: rgba(255,255,255,.6); }
.fund-number { font-size: 36px; font-weight: 900; color: #fff; line-height: 1; }

.btn-withdraw {
  background: linear-gradient(135deg, var(--gd), var(--gl));
  color: var(--bk); font-size: 13px; font-weight: 800;
  padding: 10px 22px; border-radius: 10px;
  border: none; cursor: pointer;
  box-shadow: 0 3px 10px rgba(212,175,55,.3);
  transition: all .2s;
}
.btn-withdraw:active { transform: scale(.95); }

/* ── Center cards (white panels) ─────────────────────────── */
.center-card {
  background: var(--wh);
  border: 1px solid var(--bd);
  border-radius: var(--rs);
  margin: 12px 14px 0;
  overflow: hidden;
}
.center-card-title {
  font-size: 13px; font-weight: 700; color: var(--dk);
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--bd);
}

/* ── Shortcut grid ───────────────────────────────────────── */
.shortcut-grid {
  display: grid; grid-template-columns: 1fr 1fr;
}

.shortcut-item {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
  padding: 14px 12px;
  transition: background .15s; cursor: pointer;
}
.shortcut-item:active { background: var(--sf); }
.shortcut-item + .shortcut-item { border-left: 1px solid var(--bd); }

.shortcut-icon {
  width: 48px; height: 48px; border-radius: 12px;
  flex-shrink: 0; display: flex;
  align-items: center; justify-content: center;
  padding: 10px; font-size: 22px;
}
.shortcut-icon.pink-icon { background: rgba(244,114,182,.15); }
.shortcut-icon.blue-icon  { background: rgba(59,130,246,.12); }
.shortcut-icon svg { width: 100%; height: 100%; }

.shortcut-name { font-size: 12px; font-weight: 700; color: var(--dk); }
.shortcut-sub  { font-size: 10px; color: var(--t3); margin-top: 2px; }

/* Announcement card full-width link */
.ann-link { display: flex; align-items: center; gap: 10px; padding: 14px 12px; }

/* Cyber announcement icon */
.shortcut-icon.ann-icon {
  background: #0d0e12;
  border: 1px solid #1f232d;
  padding: 6px;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.shortcut-icon.ann-icon:hover {
  border-color: #4f5666;
  background-color: #13161c;
  box-shadow: 0 0 15px rgba(255,255,255,.05);
}
.shortcut-icon.ann-icon:hover .tech-frame { stroke: #ffffff; }
.shortcut-icon.ann-icon:hover .speaker-core { stroke: #cccccc; }

/* ── ORDER LIST ──────────────────────────────────────────── */
.orders-main {
  padding: 10px 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
}

.order-row {
  background: var(--wh);
  border: 1px solid var(--bd);
  border-radius: var(--rs);
  display: flex; align-items: stretch;
  overflow: hidden; min-height: 90px;
}

.order-row-img {
  width: 90px; flex-shrink: 0;
  object-fit: cover; display: block; align-self: stretch;
}

.order-row-body {
  flex: 1; padding: 10px 12px;
  display: flex; flex-direction: column;
  justify-content: space-between; min-width: 0;
}

.order-row-top {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px;
}

.order-row-game {
  font-size: 10px; font-weight: 600; color: var(--t2);
}

.order-row-preferred {
  border-color: #D4AF37;
}

.order-preferred-badge {
  font-size: 10px; font-weight: 700; color: #D4AF37;
}

.order-row-name {
  font-size: 13px; font-weight: 700; color: var(--dk);
  line-height: 1.3; flex: 1; display: flex; align-items: center;
}

.order-slot-badge {
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 20px; margin-left: 6px;
}
.order-slot-empty   { background: #f0f4ff; color: #3b5bdb; }
.order-slot-partial { background: #fff7e6; color: #d97706; }

.order-row-nicks {
  font-size: 11px; color: var(--t2); margin: 4px 0 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.order-row-boss {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin: 5px 0 2px; padding: 5px 8px;
  background: #fffbf0; border: 1px solid #f5e0a0; border-radius: 7px;
}
.boss-label {
  font-size: 10px; font-weight: 700; padding: 1px 6px;
  background: #c8a96e; color: #fff; border-radius: 20px;
  flex-shrink: 0;
}
.boss-name    { font-size: 12px; font-weight: 600; color: #5a3e00; }
.boss-contact { font-size: 11px; color: #7a6030; }

.order-row-bottom {
  display: flex; justify-content: flex-end; align-items: center;
  padding-top: 6px;
}

.btn-close-order {
  background: var(--er); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 7px 20px; border-radius: 8px; border: none; cursor: pointer;
  transition: opacity .15s;
}
.btn-close-order:active { opacity: .8; }

.btn-accept-order {
  background: var(--su); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 7px 20px; border-radius: 8px; border: none; cursor: pointer;
  transition: opacity .15s;
}
.btn-accept-order:active { opacity: .8; }

/* Status badge */
.order-status {
  font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 6px;
}
.order-status.pending { background: var(--gb); color: var(--gd); }
.order-status.done    { background: rgba(34,197,94,.12); color: var(--su); }
.order-status.active  { background: rgba(15,52,96,.1); color: var(--nv); }

.orders-empty {
  text-align: center; color: var(--t3);
  font-size: 13px; padding: 40px 20px;
}

/* ── APPROVAL BANNERS ─────────────────────────────────────── */
.approval-banner {
  margin: 12px 14px; border-radius: var(--rs);
  padding: 16px;
}
.approval-pending {
  background: rgba(15,52,96,.07);
  border: 1px solid rgba(15,52,96,.2);
}
.approval-rejected {
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.25);
}
.approval-title {
  font-size: 14px; font-weight: 700; margin-bottom: 6px;
}
.approval-pending  .approval-title { color: var(--nv); }
.approval-rejected .approval-title { color: var(--er); }
.approval-body { font-size: 12px; color: var(--t2); line-height: 1.7; }
.approval-reason {
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2);
  border-radius: 8px; padding: 10px 12px;
  margin: 10px 0; font-size: 12px; color: #991B1B;
}

/* Reapply form (inside rejected banner) */
.reapply-form { margin-top: 12px; }
.reg-field { margin-bottom: 12px; }
.reg-label { display: block; font-size: 10px; font-weight: 600; color: var(--t2); margin-bottom: 4px; }
.reg-textarea {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--bd); border-radius: 8px;
  font-size: 13px; outline: none; resize: vertical; min-height: 64px;
  background: var(--sf); color: var(--dk); font-family: inherit;
  transition: border-color .2s;
}
.reg-textarea:focus { border-color: var(--gd); }
.games-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.game-chip {
  display: flex; align-items: center;
  background: var(--sf); border: 1.5px solid var(--bd);
  border-radius: 20px; padding: 5px 13px;
  cursor: pointer; font-size: 12px; color: var(--t2);
  user-select: none; transition: all .15s;
}
.game-chip.selected { background: var(--gb); border-color: var(--gd); color: var(--dk); font-weight: 600; }
.game-chip:active { transform: scale(.94); }
.reapply-msg {
  border-radius: 8px; padding: 8px 12px;
  font-size: 12px; margin-bottom: 10px; display: none;
}
/* alias for login-input used inside reapply form */
.login-input {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--bd); border-radius: 8px;
  font-size: 13px; outline: none;
  background: var(--sf); color: var(--dk);
  transition: border-color .2s;
}
.login-input:focus { border-color: var(--gd); }
/* reapply submit button alias */
.btn-login {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, var(--gd), var(--gl));
  color: var(--bk); font-size: 13px; font-weight: 900;
  border-radius: 8px; border: none; cursor: pointer;
  letter-spacing: .06em;
  box-shadow: 0 4px 14px rgba(212,175,55,.35);
  transition: all .15s;
}
.btn-login:active { opacity: .85; transform: scale(.97); }
.btn-login:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ── WITHDRAWAL PAGE ─────────────────────────────────────── */
.withdraw-balance-card {
  background: linear-gradient(135deg, var(--bk), var(--nv));
  border-radius: var(--r); margin: 12px 14px 0;
  padding: 16px 18px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.withdraw-balance-label { font-size: 11px; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.withdraw-balance-amount { font-size: 30px; font-weight: 900; color: #fff; }

.withdraw-form-card {
  background: var(--wh); border: 1px solid var(--bd);
  border-radius: var(--rs); margin: 12px 14px 0;
  padding: 16px;
}
.withdraw-form-title {
  font-size: 13px; font-weight: 700; color: var(--dk); margin-bottom: 14px;
}

.withdraw-field {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px;
}
.withdraw-label {
  font-size: 12px; font-weight: 600; color: var(--dk);
  white-space: nowrap; flex-shrink: 0;
}
.withdraw-label.required::before { content: '* '; color: var(--er); }

.withdraw-input {
  flex: 1; border: none; border-bottom: 1.5px solid var(--bd);
  outline: none; font-family: inherit;
  font-size: 13px; color: var(--dk); background: transparent;
  padding: 10px 0; transition: border-color .2s;
}
.withdraw-input:focus { border-bottom-color: var(--gd); }

.withdraw-payment-options { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.withdraw-radio { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.withdraw-radio input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.w-radio-custom {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--bd); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s;
}
.w-radio-custom::after {
  content: ''; width: 9px; height: 9px;
  border-radius: 50%; background: var(--gd);
  opacity: 0; transition: opacity .15s;
}
.withdraw-radio input[type="radio"]:checked ~ .w-radio-custom { border-color: var(--gd); }
.withdraw-radio input[type="radio"]:checked ~ .w-radio-custom::after { opacity: 1; }
.withdraw-radio-label { font-size: 13px; font-weight: 600; color: var(--dk); }

.btn-confirm-withdraw {
  display: block; width: calc(100% - 28px);
  margin: 14px auto 0;
  padding: 13px;
  background: linear-gradient(135deg, var(--gd), var(--gl));
  color: var(--bk); font-size: 13px; font-weight: 900;
  border-radius: 10px; border: none; cursor: pointer;
  letter-spacing: .08em;
  box-shadow: 0 4px 14px rgba(212,175,55,.35);
  transition: all .15s;
}
.btn-confirm-withdraw:active { opacity: .85; transform: scale(.97); }


/* ── KYC Badge ───────────────────────────────────────────── */
.kyc-badge {
  font-size: 11px; font-weight: 700; color: #fff;
  padding: 3px 8px; border-radius: 20px; white-space: nowrap;
  background: #888;
}
.kyc-card { cursor: pointer; }
.kyc-card:active { opacity: .85; }
