/* ============================================================
   HoloPlaza Marketplace — Estilos
   Identidad: #FF8C42 naranja | #051518 fondo | #0d2327 card
   ============================================================ */

/* ---- Variables ---- */
:root {
  --hpm-brand:       #FF8C42;
  --hpm-brand-dark:  #e07535;
  --hpm-bg:          #051518;
  --hpm-card-bg:     #0d2327;
  --hpm-border:      #1a3a40;
  --hpm-text:        #d4e8ea;
  --hpm-text-muted:  #7a9ea4;
  --hpm-radius:      8px;
  --hpm-shadow:      0 2px 12px rgba(0, 0, 0, 0.4);

  --hpm-green:       #27ae60;
  --hpm-red:         #e74c3c;
  --hpm-yellow:      #f1c40f;
  --hpm-blue:        #3498db;
  --hpm-purple:      #9b59b6;

  /* Juegos */
  --hpm-pokemon:     #e63946;
  --hpm-magic:       #1d6fa4;
  --hpm-yugioh:      #d4a017;
  --hpm-onepiece:    #e8521a;
  --hpm-digimon:     #3a86ff;
  --hpm-otros:       #6c757d;
}

/* ============================================================
   WRAPPER PRINCIPAL
   ============================================================ */
.hpm-account-wrapper {
  font-family: inherit;
  color: var(--hpm-text);
  max-width: 100%;
}

/* ============================================================
   TABS
   ============================================================ */
.hpm-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--hpm-border);
  padding-bottom: 0;
  flex-wrap: wrap;
}

.hpm-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--hpm-radius) var(--hpm-radius) 0 0;
  background: var(--hpm-card-bg);
  color: var(--hpm-text-muted);
  text-decoration: none;
  border: 1px solid var(--hpm-border);
  border-bottom: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  bottom: -2px;
}

.hpm-tab:hover {
  color: var(--hpm-brand);
  background: rgba(255, 140, 66, 0.08);
}

.hpm-tab--active {
  color: var(--hpm-brand);
  background: var(--hpm-bg);
  border-color: var(--hpm-border);
  border-bottom-color: var(--hpm-bg);
}

/* ============================================================
   SECCIONES Y CARDS ADMIN-LIKE
   ============================================================ */
.hpm-section {
  background: var(--hpm-card-bg);
  border: 1px solid var(--hpm-border);
  border-radius: var(--hpm-radius);
  padding: 24px;
  margin-bottom: 20px;
}

.hpm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.hpm-section-header h3 {
  margin: 0;
  color: var(--hpm-text);
  font-size: 18px;
}

/* ============================================================
   BOTONES
   ============================================================ */
.hpm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--hpm-radius);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.4;
  background: none;
}

.hpm-btn--primary {
  background: var(--hpm-brand);
  color: #fff;
  border-color: var(--hpm-brand);
}

.hpm-btn--primary:hover {
  background: var(--hpm-brand-dark);
  border-color: var(--hpm-brand-dark);
  color: #fff;
  text-decoration: none;
}

.hpm-btn--outline {
  background: transparent;
  color: var(--hpm-text);
  border-color: var(--hpm-border);
}

.hpm-btn--outline:hover {
  border-color: var(--hpm-brand);
  color: var(--hpm-brand);
}

.hpm-btn--success {
  background: var(--hpm-green);
  color: #fff;
  border-color: var(--hpm-green);
}

.hpm-btn--success:hover {
  filter: brightness(1.1);
}

.hpm-btn--danger {
  background: var(--hpm-red);
  color: #fff;
  border-color: var(--hpm-red);
}

.hpm-btn--danger:hover {
  filter: brightness(1.1);
}

.hpm-btn--sm {
  padding: 5px 10px;
  font-size: 12px;
}

.hpm-btn--lg {
  padding: 12px 28px;
  font-size: 16px;
}

/* ============================================================
   GRID DE LISTINGS
   ============================================================ */
.hpm-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* ============================================================
   LISTING CARD
   ============================================================ */
.hpm-listing-card {
  background: var(--hpm-bg);
  border: 1px solid var(--hpm-border);
  border-radius: var(--hpm-radius);
  padding: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hpm-listing-card:hover {
  border-color: var(--hpm-brand);
  box-shadow: var(--hpm-shadow);
}

.hpm-listing-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.hpm-listing-card__title {
  margin: 0 0 10px;
  color: var(--hpm-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.hpm-listing-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hpm-meta-item {
  font-size: 12px;
  color: var(--hpm-text-muted);
  background: rgba(26, 58, 64, 0.5);
  border-radius: 4px;
  padding: 3px 8px;
}

.hpm-listing-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   GAME BADGES
   ============================================================ */
.hpm-game-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
}

.hpm-game-badge--pokemon  { background: var(--hpm-pokemon); }
.hpm-game-badge--magic    { background: var(--hpm-magic); }
.hpm-game-badge--yugioh   { background: var(--hpm-yugioh); color: #000; }
.hpm-game-badge--onepiece { background: var(--hpm-onepiece); }
.hpm-game-badge--digimon  { background: var(--hpm-digimon); }
.hpm-game-badge--otros    { background: var(--hpm-otros); }

/* ============================================================
   STATUS BADGES
   ============================================================ */
.hpm-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}

.hpm-status-badge--active       { background: rgba(39,174,96,0.15); color: var(--hpm-green); border-color: var(--hpm-green); }
.hpm-status-badge--draft        { background: rgba(108,117,125,0.15); color: #aaa; border-color: #555; }
.hpm-status-badge--reserved     { background: rgba(52,152,219,0.15); color: var(--hpm-blue); border-color: var(--hpm-blue); }
.hpm-status-badge--accepted,
.hpm-status-badge--seller-accepted { background: rgba(255,140,66,0.15); color: var(--hpm-brand); border-color: var(--hpm-brand); }
.hpm-status-badge--in-store,
.hpm-status-badge--in-verification { background: rgba(155,89,182,0.15); color: var(--hpm-purple); border-color: var(--hpm-purple); }
.hpm-status-badge--completed    { background: rgba(39,174,96,0.15); color: var(--hpm-green); border-color: var(--hpm-green); }
.hpm-status-badge--cancelled    { background: rgba(231,76,60,0.15); color: var(--hpm-red); border-color: var(--hpm-red); }
.hpm-status-badge--expired      { background: rgba(108,117,125,0.15); color: #aaa; border-color: #555; }
.hpm-status-badge--disputed     { background: rgba(241,196,15,0.15); color: var(--hpm-yellow); border-color: var(--hpm-yellow); }

/* ============================================================
   TIMELINE
   ============================================================ */
.hpm-timeline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin: 16px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.hpm-timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 70px;
  flex-shrink: 0;
}

.hpm-timeline__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  border: 2px solid var(--hpm-border);
  background: var(--hpm-card-bg);
  transition: all 0.3s ease;
}

.hpm-timeline__label {
  font-size: 10px;
  color: var(--hpm-text-muted);
  text-align: center;
  white-space: nowrap;
}

.hpm-timeline__step--done .hpm-timeline__icon {
  background: var(--hpm-brand);
  border-color: var(--hpm-brand);
}

.hpm-timeline__step--done .hpm-timeline__label {
  color: var(--hpm-brand);
}

.hpm-timeline__step--active .hpm-timeline__icon {
  background: rgba(255, 140, 66, 0.2);
  border-color: var(--hpm-brand);
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.2);
  animation: hpm-pulse 1.5s ease-in-out infinite;
}

.hpm-timeline__step--active .hpm-timeline__label {
  color: var(--hpm-brand);
  font-weight: 700;
}

.hpm-timeline__step--pending .hpm-timeline__icon {
  opacity: 0.35;
}

.hpm-timeline__connector {
  flex: 1;
  height: 2px;
  background: var(--hpm-border);
  min-width: 20px;
  max-width: 50px;
  align-self: flex-start;
  margin-top: 16px;
  transition: background 0.3s ease;
}

.hpm-timeline__connector--done {
  background: var(--hpm-brand);
}

@keyframes hpm-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(255, 140, 66, 0.1); }
}

/* ============================================================
   BUYLIST COMPONENTS
   ============================================================ */
.hpm-buylist-offer {
  background: rgba(255, 140, 66, 0.08);
  border: 1px solid rgba(255, 140, 66, 0.3);
  border-radius: var(--hpm-radius);
  padding: 12px;
  margin: 12px 0;
}

.hpm-offer-amount {
  display: inline-block;
  margin: 4px 8px 4px 0;
  font-weight: 600;
  color: var(--hpm-brand);
}

.hpm-buylist-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.hpm-buylist-pending {
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: var(--hpm-radius);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--hpm-blue);
  margin: 10px 0;
}

/* ============================================================
   TRANSACTION INFO / SELLER RESPOND
   ============================================================ */
.hpm-transaction-info {
  border-top: 1px solid var(--hpm-border);
  padding-top: 12px;
  margin-top: 12px;
}

.hpm-seller-respond-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* ============================================================
   PURCHASES LIST
   ============================================================ */
.hpm-purchases-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hpm-purchase-card {
  background: var(--hpm-bg);
  border: 1px solid var(--hpm-border);
  border-radius: var(--hpm-radius);
  padding: 16px;
  transition: border-color 0.2s;
}

.hpm-purchase-card:hover {
  border-color: var(--hpm-brand);
}

.hpm-purchase-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
  flex-wrap: wrap;
}

.hpm-purchase-card__header h4 {
  margin: 0;
  color: var(--hpm-text);
  font-size: 15px;
}

.hpm-purchase-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hpm-purchase-card__meta span {
  font-size: 12px;
  color: var(--hpm-text-muted);
}

.hpm-purchase-card__actions {
  border-top: 1px solid var(--hpm-border);
  padding-top: 12px;
  margin-top: 12px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.hpm-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--hpm-text-muted);
}

.hpm-empty-state p {
  margin-bottom: 16px;
  font-size: 15px;
}

/* ============================================================
   FORMULARIO
   ============================================================ */
.hpm-form {
  max-width: 700px;
}

.hpm-form-group {
  margin-bottom: 20px;
}

.hpm-form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hpm-form-group--half {
  flex: 1;
  min-width: 200px;
}

.hpm-form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hpm-text);
}

.hpm-form-input,
.hpm-form-select,
.hpm-form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--hpm-bg);
  border: 1px solid var(--hpm-border);
  border-radius: var(--hpm-radius);
  color: var(--hpm-text);
  font-size: 14px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.hpm-form-input:focus,
.hpm-form-select:focus,
.hpm-form-textarea:focus {
  outline: none;
  border-color: var(--hpm-brand);
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.15);
}

.hpm-form-select option {
  background: var(--hpm-bg);
  color: var(--hpm-text);
}

.hpm-form-textarea {
  resize: vertical;
  min-height: 100px;
}

.hpm-form-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--hpm-text-muted);
}

.hpm-form-submit {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.hpm-form-loading {
  font-size: 13px;
  color: var(--hpm-text-muted);
}

/* ============================================================
   RADIO CARDS (selector de tipo)
   ============================================================ */
.hpm-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hpm-radio-group--sm .hpm-radio-card {
  min-width: 120px;
  padding: 12px;
}

.hpm-radio-card {
  flex: 1;
  min-width: 200px;
  cursor: pointer;
  background: var(--hpm-bg);
  border: 2px solid var(--hpm-border);
  border-radius: var(--hpm-radius);
  padding: 16px;
  transition: all 0.2s ease;
  position: relative;
}

.hpm-radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.hpm-radio-card:hover {
  border-color: var(--hpm-brand);
}

.hpm-radio-card--selected,
.hpm-radio-card:has(input:checked) {
  border-color: var(--hpm-brand);
  background: rgba(255, 140, 66, 0.06);
}

.hpm-radio-card__icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.hpm-radio-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--hpm-text);
  margin-bottom: 4px;
}

.hpm-radio-card__desc {
  font-size: 12px;
  color: var(--hpm-text-muted);
  line-height: 1.5;
}

/* ============================================================
   PRICE PREVIEW
   ============================================================ */
.hpm-price-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.hpm-price-input {
  padding-right: 36px;
}

.hpm-price-currency {
  position: absolute;
  right: 12px;
  color: var(--hpm-text-muted);
  font-size: 14px;
  pointer-events: none;
}

.hpm-price-preview {
  background: rgba(26, 58, 64, 0.5);
  border: 1px solid var(--hpm-border);
  border-radius: var(--hpm-radius);
  padding: 12px 16px;
  margin-top: 10px;
}

.hpm-price-preview__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
  color: var(--hpm-text-muted);
}

.hpm-price-preview__row--commission {
  color: var(--hpm-red);
}

.hpm-price-preview__row--net {
  color: var(--hpm-green);
  font-size: 15px;
  border-top: 1px solid var(--hpm-border);
  padding-top: 8px;
  margin-top: 4px;
}

.hpm-buylist-info {
  background: rgba(52, 152, 219, 0.08);
  border: 1px solid rgba(52, 152, 219, 0.25);
  border-radius: var(--hpm-radius);
  padding: 14px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--hpm-text-muted);
}

.hpm-buylist-info ul {
  margin: 8px 0;
  padding-left: 20px;
}

.hpm-buylist-info li {
  margin-bottom: 4px;
}

/* ============================================================
   NOTICE EN FORMULARIO
   ============================================================ */
.hpm-form-notice {
  padding: 12px 16px;
  border-radius: var(--hpm-radius);
  font-size: 13px;
  margin-top: 10px;
}

.hpm-form-notice--success {
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid var(--hpm-green);
  color: var(--hpm-green);
}

.hpm-form-notice--error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid var(--hpm-red);
  color: var(--hpm-red);
}

/* ============================================================
   MODAL
   ============================================================ */
.hpm-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hpm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 21, 24, 0.85);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.hpm-modal__content {
  position: relative;
  background: var(--hpm-card-bg);
  border: 1px solid var(--hpm-border);
  border-radius: var(--hpm-radius);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hpm-modal__content--chat {
  max-width: 560px;
}

.hpm-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hpm-border);
}

.hpm-modal__header h4 {
  margin: 0;
  color: var(--hpm-text);
  font-size: 15px;
}

.hpm-modal__close {
  background: none;
  border: none;
  color: var(--hpm-text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}

.hpm-modal__close:hover {
  color: var(--hpm-text);
}

.hpm-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.hpm-modal__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--hpm-border);
}

/* ============================================================
   CHAT
   ============================================================ */
.hpm-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  min-height: 200px;
  max-height: 380px;
  overflow-y: auto;
}

.hpm-chat-loading {
  text-align: center;
  color: var(--hpm-text-muted);
  padding: 20px;
  font-size: 13px;
}

.hpm-chat-bubble {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.hpm-chat-bubble--mine {
  align-self: flex-end;
  align-items: flex-end;
}

.hpm-chat-bubble--theirs {
  align-self: flex-start;
  align-items: flex-start;
}

.hpm-chat-bubble--staff {
  align-self: center;
  align-items: center;
  max-width: 100%;
}

.hpm-chat-bubble__label {
  font-size: 10px;
  color: var(--hpm-text-muted);
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hpm-chat-bubble__body {
  background: var(--hpm-bg);
  border: 1px solid var(--hpm-border);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--hpm-text);
  line-height: 1.5;
  word-break: break-word;
}

.hpm-chat-bubble--mine .hpm-chat-bubble__body {
  background: rgba(255, 140, 66, 0.12);
  border-color: rgba(255, 140, 66, 0.3);
  border-radius: 12px 4px 12px 12px;
}

.hpm-chat-bubble--theirs .hpm-chat-bubble__body {
  border-radius: 4px 12px 12px 12px;
}

.hpm-chat-bubble--staff .hpm-chat-bubble__body {
  background: rgba(155, 89, 182, 0.1);
  border-color: rgba(155, 89, 182, 0.3);
  text-align: center;
  font-style: italic;
  border-radius: 8px;
}

.hpm-chat-bubble__time {
  font-size: 10px;
  color: var(--hpm-text-muted);
  margin-top: 3px;
}

.hpm-chat-input-area {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.hpm-chat-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--hpm-bg);
  border: 1px solid var(--hpm-border);
  border-radius: var(--hpm-radius);
  color: var(--hpm-text);
  font-size: 13px;
  resize: none;
  font-family: inherit;
  line-height: 1.4;
}

.hpm-chat-input:focus {
  outline: none;
  border-color: var(--hpm-brand);
}

.hpm-chat-disclaimer {
  font-size: 11px;
  color: var(--hpm-text-muted);
  margin-top: 8px;
  margin-bottom: 0;
}

/* ============================================================
   MODAL DE CONFIRMACIÓN
   ============================================================ */
.hpm-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hpm-confirm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 21, 24, 0.9);
}

.hpm-confirm-modal__content {
  position: relative;
  background: var(--hpm-card-bg);
  border: 1px solid var(--hpm-border);
  border-radius: var(--hpm-radius);
  padding: 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
  z-index: 1;
  text-align: center;
}

.hpm-confirm-modal__icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.hpm-confirm-modal__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--hpm-text);
  margin: 0 0 10px;
}

.hpm-confirm-modal__body {
  font-size: 14px;
  color: var(--hpm-text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.hpm-confirm-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ============================================================
   ADMIN STYLES
   ============================================================ */
.hpm-admin-wrap {
  max-width: 1400px;
}

.hpm-admin-title {
  color: #1d2327;
  font-size: 22px;
  margin-bottom: 20px;
}

.hpm-admin-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hpm-stat-card {
  background: var(--hpm-card-bg);
  border: 1px solid var(--hpm-border);
  border-radius: var(--hpm-radius);
  padding: 20px 24px;
  min-width: 160px;
  flex: 1;
  text-align: center;
}

.hpm-stat-card--success { border-color: var(--hpm-green); }
.hpm-stat-card--warning { border-color: var(--hpm-yellow); }

.hpm-stat-card__value {
  font-size: 28px;
  font-weight: 700;
  color: var(--hpm-brand);
  margin-bottom: 4px;
}

.hpm-stat-card--success .hpm-stat-card__value { color: var(--hpm-green); }
.hpm-stat-card--warning .hpm-stat-card__value { color: var(--hpm-yellow); }

.hpm-stat-card__label {
  font-size: 12px;
  color: var(--hpm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hpm-admin-card {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}

.hpm-admin-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f6f7f7;
  border-bottom: 1px solid #c3c4c7;
}

.hpm-admin-card__header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.hpm-admin-card__body {
  padding: 16px;
  overflow-x: auto;
}

.hpm-admin-table {
  font-size: 13px;
}

.hpm-admin-table th {
  font-size: 12px;
}

.hpm-admin-notice {
  background: #e7f3fe;
  border-left: 4px solid #2271b1;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
}

.hpm-admin-notice--result {
  margin-top: 10px;
  border-radius: 4px;
  padding: 10px 14px;
}

.hpm-admin-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
}

.hpm-admin-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hpm-admin-meta {
  color: #646970;
}

.hpm-admin-description {
  color: #646970;
  margin-top: 4px;
  font-size: 12px;
}

.hpm-no-offer {
  color: #b0b0b0;
  font-style: italic;
}

.hpm-type-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.hpm-type-badge--p2p      { background: #e8f4fd; color: #2271b1; }
.hpm-type-badge--store_buylist { background: #fef8e7; color: #a84700; }

/* Admin modals */
.hpm-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hpm-admin-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.hpm-admin-modal__content {
  position: relative;
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  padding: 24px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1;
  max-height: 85vh;
  overflow-y: auto;
}

.hpm-admin-modal__content--wide {
  max-width: 720px;
}

.hpm-admin-calculator {
  background: #f6f7f7;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  padding: 12px;
  margin: 12px 0;
  font-size: 13px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .hpm-listings-grid {
    grid-template-columns: 1fr;
  }

  .hpm-tabs {
    gap: 4px;
  }

  .hpm-tab {
    padding: 8px 12px;
    font-size: 13px;
  }

  .hpm-radio-group {
    flex-direction: column;
  }

  .hpm-radio-card {
    min-width: unset;
  }

  .hpm-form-row {
    flex-direction: column;
  }

  .hpm-stat-card {
    min-width: calc(50% - 8px);
  }

  .hpm-confirm-modal__actions {
    flex-direction: column;
  }

  .hpm-timeline__label {
    font-size: 9px;
  }
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
.hpm-chat-messages::-webkit-scrollbar,
.hpm-modal__body::-webkit-scrollbar {
  width: 6px;
}

.hpm-chat-messages::-webkit-scrollbar-track,
.hpm-modal__body::-webkit-scrollbar-track {
  background: var(--hpm-bg);
}

.hpm-chat-messages::-webkit-scrollbar-thumb,
.hpm-modal__body::-webkit-scrollbar-thumb {
  background: var(--hpm-border);
  border-radius: 3px;
}

.hpm-chat-messages::-webkit-scrollbar-thumb:hover,
.hpm-modal__body::-webkit-scrollbar-thumb:hover {
  background: var(--hpm-text-muted);
}
