/* SHARED — seller, deal, safety pages */

.seller-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* STEPS BAR */
.steps-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  align-items: center;
}

.step-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--grey-1);
  color: var(--grey-3);
  border: 1px solid var(--grey-2);
  transition: all 0.2s;
}

.step-pill.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.step-pill.done {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* FORM */
.form-section h1, .form-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.sub {
  color: var(--grey-3);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.field {
  margin-bottom: 1.2rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--black);
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  transition: border-color 0.2s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea { resize: vertical; }

.price-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-wrap span {
  padding: 0.7rem 0.8rem;
  background: var(--grey-1);
  border-right: 1px solid var(--grey-2);
  font-weight: 600;
  color: var(--grey-3);
}

.price-wrap input {
  border: none;
  border-radius: 0;
  flex: 1;
}

.price-wrap input:focus { border-color: transparent; }

.hint {
  display: block;
  font-size: 0.8rem;
  color: var(--grey-3);
  margin-top: 0.3rem;
}

.hint.warning { color: #e67e22; }

.mt { margin-top: 1.5rem; }

/* FEE CALC */
.fee-calc {
  background: var(--grey-1);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0 1.5rem;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  color: var(--grey-3);
}

.fee-row.total {
  border-top: 1px solid var(--grey-2);
  margin-top: 0.3rem;
  padding-top: 0.6rem;
  font-weight: 700;
  color: var(--black);
}

/* BUTTONS */
.btn-primary {
  display: block;
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary.inline { display: inline-block; width: auto; padding: 0.75rem 1.5rem; }

.btn-ghost {
  display: inline-block;
  padding: 0.75rem 1.2rem;
  background: none;
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--black);
  text-decoration: none;
  transition: background 0.2s;
}

.btn-ghost:hover { background: var(--grey-1); }
.btn-ghost.center { display: block; text-align: center; margin-top: 1.5rem; }

.btn-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
  align-items: center;
}

.btn-row .btn-primary { flex: 1; display: block; }

/* ID OPTIONS */
.id-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.id-card {
  border: 2px solid var(--grey-2);
  border-radius: var(--radius);
  padding: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.id-card:hover { border-color: var(--accent); }
.id-card.active { border-color: var(--accent); background: var(--grey-1); }

.id-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }

.id-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.id-card p {
  font-size: 0.82rem;
  color: var(--grey-3);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.id-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.id-badge.ghost {
  background: none;
  border: 1px solid var(--grey-2);
  color: var(--grey-3);
}

.alias-wrap {
  display: flex;
  gap: 0.5rem;
}

.alias-wrap input {
  flex: 1;
  font-family: monospace;
  font-size: 0.9rem;
  background: var(--grey-1);
}

/* WHY BOX */
.why-box {
  background: var(--grey-1);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--grey-3);
  line-height: 1.6;
}

.why-box strong {
  display: block;
  color: var(--black);
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

/* SUCCESS */
.success-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.2rem;
}

/* LINK BOX */
.link-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--grey-1);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  word-break: break-all;
}

.link-box span {
  flex: 1;
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--accent);
}

.link-box button, #copy-fb-btn {
  white-space: nowrap;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

/* FB TEMPLATE */
.fb-template {
  background: #f0f2f5;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}

.fb-template label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey-3);
  margin-bottom: 0.5rem;
}

.fb-text {
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 0.8rem;
  color: var(--black);
}

/* TX SUMMARY */
.tx-summary {
  background: var(--grey-1);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}

.tx-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--grey-2);
}

.tx-row:last-child { border-bottom: none; }
.tx-row span { color: var(--grey-3); }
.tx-row code { font-family: monospace; font-size: 0.85rem; }

/* INFO BOX */
.info-box {
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

.info-box strong {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.info-box ol, .info-box ul {
  padding-left: 1.2rem;
  color: var(--grey-3);
  line-height: 1.7;
}

/* DEAL CARD */
.deal-card {
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.deal-field {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--grey-2);
  font-size: 0.9rem;
  align-items: flex-start;
}

.deal-field:last-child { border-bottom: none; }
.deal-field.total { background: var(--grey-1); font-size: 1rem; }
.deal-field label { color: var(--grey-3); min-width: 110px; font-size: 0.82rem; padding-top: 2px; }

/* TRUST BAR */
.trust-bar {
  display: flex;
  gap: 1.5rem;
  padding: 0.6rem 0;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: var(--grey-3);
  flex-wrap: wrap;
}

/* PAYMENT STEPS */
.payment-steps { margin-bottom: 1.5rem; }

.pay-step {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  align-items: flex-start;
}

.pay-step.highlight { border-color: var(--accent); background: var(--grey-1); }

.pay-num {
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pay-step strong { display: block; margin-bottom: 0.3rem; font-size: 0.92rem; }
.pay-step p { font-size: 0.82rem; color: var(--grey-3); margin-top: 0.3rem; }

.copy-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--grey-2);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  margin: 0.5rem 0;
}

.copy-field code { flex: 1; font-size: 0.88rem; font-family: monospace; }
.copy-field button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* STATUS */
.status-pending { color: #e67e22; }

.hint.center { display: block; text-align: center; margin-top: 1rem; font-size: 0.82rem; color: var(--grey-3); }

.hidden { display: none !important; }

/* NOTIFICATIONS */
#notif-container {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 300px;
}

.tx-notif {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: white;
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease;
  font-size: 0.82rem;
  line-height: 1.4;
}

.tx-notif.show { opacity: 1; transform: translateY(0); }
.tx-notif span { color: var(--grey-3); font-size: 0.78rem; }

.notif-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .id-options { grid-template-columns: 1fr; }
  .steps-bar { gap: 0.3rem; }
  .step-pill span:last-child { display: none; }
}
