/* ============================================================
   COMPONENTS — shared UI elements used across multiple screens
   ============================================================ */

/* ---- Card ---- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg2));
  border: 1px solid var(--line-soft);
  border-radius: 18px;
}
.card__body { padding: 20px; }

/* ---- Button ---- */
.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 10px 26px -10px rgba(255,92,138,.7);
  transition: transform var(--ease), filter var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }

.btn--ghost {
  background: var(--surface2);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--cyan); filter: none; }

.btn--cyan {
  background: linear-gradient(135deg, var(--cyan), #3AB0FF);
  color: #06121A;
  box-shadow: 0 10px 26px -10px rgba(67,232,216,.6);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold), #FF9F45);
  color: #3A2400;
  box-shadow: 0 10px 26px -10px rgba(255,200,87,.6);
}

.btn--block  { width: 100%; }
.btn--sm     { padding: 9px 14px; font-size: 13.5px; }

/* ---- Tag / badge ---- */
.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(67,232,216,.1);
  border: 1px solid rgba(67,232,216,.25);
  padding: 4px 11px;
  border-radius: 20px;
  display: inline-block;
}

.tag--live {
  color: var(--red);
  background: rgba(255,107,107,.12);
  border-color: rgba(255,107,107,.3);
}

/* ---- Chip ---- */
.chip {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---- Filter tabs (itabs / itab) ---- */
.itabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.itab {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--muted);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.itab:hover { color: var(--ink); }
.itab.is-active {
  color: var(--ink);
  background: var(--surface2);
  border-color: var(--pink);
}

/* ---- Form inputs ---- */
.field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  display: block;
  margin: 14px 0 7px;
}

.inp {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--line-soft);
  border-radius: 12px;
  padding: 13px 15px;
  color: var(--ink);
  font-size: 14.5px;
  outline: none;
  transition: border-color var(--ease);
}
.inp:focus          { border-color: var(--pink); }
.inp::placeholder   { color: var(--faint); }

/* ---- Chip-pick (multi-select chips) ---- */
.chip-pick {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.chip-pick button {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line-soft);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.chip-pick button:hover { border-color: var(--cyan); color: var(--ink); }
.chip-pick button.is-selected {
  border-color: var(--pink);
  color: var(--ink);
  background: linear-gradient(90deg, rgba(255,92,138,.14), transparent);
}

/* ---- Section header ---- */
.sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 14px;
}
.sec-head h3 { font-size: 18px; font-weight: 800; margin: 0; letter-spacing: -.2px; }
.sec-head__see {
  margin-left: auto;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: 0;
}
.sec-head__see:hover { text-decoration: underline; }

.live-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s infinite;
  flex-shrink: 0;
}

/* ---- Player cards grid ---- */
.pcards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pcard {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg2);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
  cursor: pointer;
}
.pcard:hover {
  transform: translateY(-5px);
  border-color: var(--pink);
  box-shadow: 0 22px 44px -20px rgba(255,92,138,.5);
}

.pcard__header {
  height: 150px;
  position: relative;
  display: grid;
  place-items: center;
  font-size: 54px;
}

.pcard__badges {
  position: absolute;
  top: 10px; left: 10px; right: 10px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.pcard__live-badge {
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 3px 8px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pcard__live-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

.pcard__views-badge {
  margin-left: auto;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 7px;
}

.pcard__new-badge {
  background: rgba(67,232,216,.35);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 7px;
  margin-left: auto;
}

.pcard__status {
  position: absolute;
  bottom: 10px; right: 12px;
  font-size: 11px; color: #fff;
  background: rgba(0,0,0,.45);
  padding: 3px 9px;
  border-radius: 20px;
}

/* Small circular avatar overlapping card header/body */
.pcard__mini-av {
  position: absolute;
  left: 12px; bottom: -16px;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 3px solid var(--bg2);
  display: grid; place-items: center;
  font-size: 18px;
  box-shadow: 0 8px 18px -6px rgba(0,0,0,.6);
  z-index: 2;
}

.pcard__body { padding: 13px 14px; }
.pcard__body--with-av { padding-top: 22px; }

.pcard__name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
.pcard__game { color: var(--faint); font-size: 12px; margin-top: 2px; }

.pcard__footer { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.pcard__rating  { color: var(--gold); font-size: 12.5px; font-weight: 700; }
.pcard__price   { margin-left: auto; font-family: var(--font-mono); font-weight: 700; color: var(--cyan); font-size: 13.5px; }

/* ---- Info banner ---- */
.info-banner {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 16px;
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(155,107,255,.12), transparent);
  border: 1px solid var(--line-soft);
}
.info-banner__icon { font-size: 18px; flex-shrink: 0; }
.info-banner p  { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.info-banner b  { color: var(--ink); }

/* ---- KYC note banner ---- */
.kyc-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  background: rgba(255,200,87,.08);
  border: 1px solid rgba(255,200,87,.25);
  color: #F0DDB0;
}
.kyc-note--cyan {
  background: rgba(67,232,216,.07);
  border-color: rgba(67,232,216,.22);
  color: #BFEFE9;
}

/* ---- Price rows ---- */
.price-big {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
}
.price-big small { font-size: 14px; color: var(--muted); font-weight: 500; }

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.price-row b { color: var(--ink); font-weight: 700; }

/* ---- Mini avatar (for tables etc) ---- */
.mini-av {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #06121A;
  vertical-align: middle;
  margin-right: 7px;
}

/* ---- Action button (table, modals) ---- */
.abtn {
  border: 0;
  border-radius: 8px;
  padding: 6px 11px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.abtn--ok { background: rgba(61,220,139,.16); color: var(--green); }
.abtn--ok:hover { background: rgba(61,220,139,.28); }
.abtn--no { background: rgba(255,107,107,.14); color: var(--red); margin-left: 6px; }
.abtn--no:hover { background: rgba(255,107,107,.26); }

/* ---- Status badge ---- */
.badge-status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
}
.badge-status--pending  { background: rgba(255,200,87,.16);  color: var(--gold);   }
.badge-status--ok       { background: rgba(61,220,139,.16);  color: var(--green);  }
.badge-status--approved { background: rgba(61,220,139,.16);  color: var(--green);  }
.badge-status--warn     { background: rgba(255,107,107,.14); color: var(--red);    }
.badge-status--rejected { background: rgba(255,107,107,.14); color: var(--red);    }

/* ---- Toast notification ---- */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  z-index: 99;
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.6);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  white-space: nowrap;
}
.toast.is-visible { opacity: 1; }

/* ---- KBD shortcut indicator ---- */
kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--surface2);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--muted);
}

/* ---- Responsive grid adjustments ---- */
@media (max-width: 1000px) { .pcards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .pcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .pcards { grid-template-columns: 1fr; } }
