/* =====================================================================
   P2P dogrudan satis (oyun sayfasi + islem ekrani)
   Marka paleti: nane #80F1B1 (birincil), indigo #343891 (ikincil),
   krem #FCF7F1 (baslik), notrler #27272D / #35353D / #484854 / #737380.
   ===================================================================== */

.p2pWrap {
  --p2p-accent: #80F1B1;
  --p2p-accent-ink: #0A2416;
  --p2p-accent-dim: rgba(128, 241, 177, .11);
  --p2p-indigo: #343891;
  --p2p-surface: #27272D;
  --p2p-surface2: #35353D;
  --p2p-border: #484854;
  --p2p-muted: #737380;
  --p2p-ink: #FCF7F1;
  --p2p-ink2: #D9D9D9;
  --p2p-warn: #E8C268;
  --p2p-crit: #de2525;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  color: var(--p2p-ink2);
}

.p2pWrap .num, .p2pPrice, .p2pLimits b { font-variant-numeric: tabular-nums; }

/* --- baslik --- */
.p2pHead {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; flex-wrap: wrap; margin-bottom: 18px;
}
.p2pTitle { font-size: 30px; font-weight: 800; color: var(--p2p-ink); letter-spacing: -.02em; margin: 0; }
.p2pSub { font-size: 13.5px; color: var(--p2p-muted); margin: 4px 0 0; }
.p2pTickers { display: flex; gap: 10px; flex-wrap: wrap; }
.p2pTicker {
  background: var(--p2p-surface); border: 1px solid var(--p2p-surface2);
  border-radius: 10px; padding: 9px 14px; min-width: 116px; display: flex; flex-direction: column;
}
.p2pTicker .tSrv { font-size: 11px; color: var(--p2p-muted); font-weight: 600; }
.p2pTicker .tPx { font-size: 17px; font-weight: 800; color: var(--p2p-ink); }
.p2pTicker .tSt { font-size: 11px; color: var(--p2p-muted); }

/* --- filtreler --- */
.p2pFilters {
  background: var(--p2p-surface); border: 1px solid var(--p2p-surface2);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
}
.p2pFilterRow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.p2pFilterRow + .p2pFilterRow { margin-top: 13px; }
.p2pGameTabs { display: flex; gap: 4px; flex-wrap: wrap; }
.p2pGameTab {
  padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--p2p-muted); text-decoration: none;
}
.p2pGameTab:hover { color: var(--p2p-ink); }
.p2pGameTab.active { background: var(--p2p-surface2); color: var(--p2p-ink); }
.p2pSellBtn {
  margin-left: auto; padding: 9px 16px; border-radius: 9px; font-size: 13px; font-weight: 700;
  background: var(--p2p-surface2); color: var(--p2p-ink); border: 1px solid var(--p2p-border);
  text-decoration: none; display: inline-block;
}
.p2pSellBtn:hover { border-color: var(--p2p-accent); color: var(--p2p-accent); }
.p2pServers { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.p2pChip {
  padding: 5px 12px; border-radius: 99px; font-size: 12px;
  border: 1px solid var(--p2p-border); color: var(--p2p-muted); text-decoration: none;
}
.p2pChip.active { background: var(--p2p-accent-dim); border-color: var(--p2p-accent); color: var(--p2p-accent); font-weight: 600; }
.p2pAmount { display: flex; gap: 8px; }
.p2pInput {
  background: var(--p2p-surface2); border: 1px solid var(--p2p-border); border-radius: 8px;
  color: var(--p2p-ink); padding: 8px 11px; font-size: 13px; width: 100%;
}
.p2pInput:focus { outline: 2px solid var(--p2p-accent); outline-offset: 1px; }
.p2pAmount .p2pInput { width: 130px; }
.p2pApply {
  padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 700;
  background: var(--p2p-surface2); color: var(--p2p-ink); border: 1px solid var(--p2p-border); cursor: pointer;
}

/* --- defter --- */
.p2pBook { background: var(--p2p-surface); border: 1px solid var(--p2p-surface2); border-radius: 12px; overflow: hidden; }
.p2pBookHead, .p2pRow {
  display: grid; grid-template-columns: 2.1fr 1.1fr 1.4fr 1.2fr auto;
  gap: 16px; padding: 13px 18px; align-items: center;
}
.p2pBookHead { background: #181820; border-bottom: 1px solid var(--p2p-surface2); }
.p2pBookHead div {
  font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--p2p-muted); font-weight: 600;
}
.p2pRow { border-bottom: 1px solid var(--p2p-surface2); }
.p2pRow:last-child { border-bottom: none; }
.p2pRow:hover { background: var(--p2p-surface2); }

.p2pSeller { display: flex; gap: 11px; align-items: flex-start; }
.p2pAvatar {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px;
  background: var(--p2p-indigo); color: #E9EAFE; display: grid; place-items: center;
  font-weight: 800; font-size: 13px;
}
.p2pSellerInfo { display: flex; flex-direction: column; min-width: 0; }
.p2pSellerName { display: flex; align-items: center; gap: 7px; color: var(--p2p-ink); font-weight: 700; font-size: 14px; }
.p2pSellerMeta { font-size: 11.5px; color: var(--p2p-muted); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.p2pSellerMeta b { color: var(--p2p-ink2); font-weight: 600; }
.p2pBadge {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap;
}
.p2pBadge.ok { background: rgba(85, 155, 119, .16); color: var(--p2p-accent); }
.p2pBadge.warn { background: rgba(232, 194, 104, .14); color: var(--p2p-warn); }
.p2pBadge.crit { background: rgba(222, 37, 37, .15); color: #FF7B7B; }
.p2pBadge.neut { background: var(--p2p-surface2); color: var(--p2p-muted); }

.p2pPrice { display: flex; flex-direction: column; }
.p2pPrice .pMain { font-size: 20px; font-weight: 800; color: var(--p2p-ink); letter-spacing: -.02em; }
.p2pPrice .pUnit { font-size: 11.5px; color: var(--p2p-muted); }
.p2pLimits { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.p2pLimits i { font-style: normal; font-size: 11px; color: var(--p2p-muted); }
.p2pLimits b { color: var(--p2p-ink); font-weight: 600; }
.p2pDeliv { display: flex; flex-direction: column; font-size: 12.5px; }
.p2pDeliv .dMain { color: var(--p2p-ink); font-weight: 600; }
.p2pDeliv .dSub { font-size: 11.5px; color: var(--p2p-muted); }
.p2pBuyBtn {
  padding: 10px 20px; border-radius: 9px; font-weight: 700; font-size: 13px;
  background: var(--p2p-accent); color: var(--p2p-accent-ink); border: none; cursor: pointer;
}
.p2pBuyBtn:hover { filter: brightness(1.06); }
.p2pEmpty { padding: 44px 20px; text-align: center; color: var(--p2p-muted); }
.p2pEmpty p { margin-bottom: 14px; }
.p2pEmpty .p2pSellBtn { margin: 0; }

/* --- nasil calisir --- */
.p2pHow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.p2pHowStep { background: var(--p2p-surface); border: 1px solid var(--p2p-surface2); border-radius: 12px; padding: 16px; }
.p2pHowStep .n {
  width: 24px; height: 24px; border-radius: 7px; background: var(--p2p-accent-dim);
  color: var(--p2p-accent); display: grid; place-items: center; font-weight: 800; font-size: 12px; margin-bottom: 9px;
}
.p2pHowStep h4 { font-size: 13.5px; color: var(--p2p-ink); margin: 0 0 5px; }
.p2pHowStep p { font-size: 12px; color: var(--p2p-muted); margin: 0; }

/* --- pencere --- */
.p2pModal {
  display: none; position: fixed; inset: 0; z-index: 1050;
  background: rgba(0, 0, 0, .68); padding: 20px; overflow-y: auto;
}
.p2pModal.open { display: flex; align-items: center; justify-content: center; }
.p2pModalBox {
  background: var(--p2p-surface, #27272D); border: 1px solid #484854; border-radius: 14px;
  width: 100%; max-width: 430px;
}
.p2pModalHead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid #35353D;
}
.p2pModalHead h3 { font-size: 16px; color: #FCF7F1; margin: 0; }
.p2pModalClose { background: none; border: none; color: #737380; font-size: 26px; line-height: 1; cursor: pointer; }
.p2pModalBody { padding: 18px; }
.p2pField { margin-bottom: 14px; }
.p2pField label { display: block; font-size: 12px; color: #D9D9D9; font-weight: 600; margin-bottom: 6px; }
.p2pInputGroup { display: flex; }
.p2pInputGroup .p2pInput { border-radius: 8px 0 0 8px; }
.p2pSuffix {
  background: #3E3E47; border: 1px solid #484854; border-left: none; border-radius: 0 8px 8px 0;
  padding: 8px 13px; font-size: 12.5px; color: #737380; display: flex; align-items: center; white-space: nowrap;
}
.p2pHint { font-size: 11.5px; color: #737380; margin-top: 6px; }
.p2pCalc { background: #181820; border: 1px dashed #484854; border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.p2pCalcRow { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; color: #737380; }
.p2pCalcRow b { color: #D9D9D9; font-weight: 600; }
.p2pCalcRow.total { border-top: 1px solid #484854; margin-top: 6px; padding-top: 11px; font-size: 15px; color: #FCF7F1; }
.p2pCalcRow.total b { color: #80F1B1; font-weight: 800; }
.p2pNotice {
  font-size: 11.5px; color: #737380; line-height: 1.6; margin-bottom: 14px;
  border-left: 2px solid #80F1B1; padding-left: 11px;
}
.p2pError {
  display: none; background: rgba(222, 37, 37, .1); color: #FF7B7B;
  border-radius: 8px; padding: 9px 12px; font-size: 12.5px; margin-bottom: 12px;
}
.p2pPrimary {
  width: 100%; padding: 12px; border-radius: 9px; border: none; cursor: pointer;
  background: #80F1B1; color: #0A2416; font-weight: 700; font-size: 14px;
}
.p2pPrimary:disabled { opacity: .6; cursor: default; }
.p2pSecondary {
  padding: 10px 16px; border-radius: 9px; cursor: pointer;
  background: #35353D; color: #FCF7F1; border: 1px solid #484854; font-weight: 700; font-size: 13px;
}
.p2pDanger {
  padding: 10px 16px; border-radius: 9px; cursor: pointer;
  background: transparent; color: #FF7B7B; border: 1px solid rgba(222, 37, 37, .45); font-weight: 700; font-size: 13px;
}

@media (max-width: 1100px) {
  .p2pHow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .p2pBookHead { display: none; }
  .p2pRow { grid-template-columns: 1fr 1fr; gap: 10px; }
  .p2pSeller { grid-column: 1 / -1; }
  .p2pRow > div:last-child { grid-column: 1 / -1; }
  .p2pBuyBtn { width: 100%; }
  .p2pHow { grid-template-columns: 1fr; }
  .p2pTitle { font-size: 24px; }
}
