/* ================================================
   BAN_XE.CSS — AutoMart (mobile-first)
   ================================================ */

/* ── Section wrapper ── */
.sell-section { padding: 24px 16px; }
.sell-container { max-width: 1100px; }

/* ── Overlay wrapper ── */
.sell-login-overlay {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.sell-login-blur {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  opacity: 0.72;
}

/* ── Grid: mobile = 1 cột ── */
.sell-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

/* ── Form header ── */
.sell-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}
.sell-form-link {
  font-size: 13px;
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
}

/* ── Form rows — mobile: 1 cột ── */
.sell-row-3,
.sell-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

/* ── Desc group ── */
.sell-desc-group { margin-bottom: 16px; }
.sell-desc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sell-desc-group textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.6;
}
.sell-desc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
  gap: 4px;
}
.sell-desc-footer span { font-size: 11px; color: #aaa; }
.sell-ai-hint {
  font-size: 11px;
  color: var(--accent-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

/* ── Submit button ── */
.sell-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sell-policy-note {
  font-size: 11px;
  color: #888;
  margin-top: 10px;
  text-align: center;
}

/* ── AI Chatbox ── */
#ai-chat-container {
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #eaeae0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
}
.bx-chat-header {
  background: var(--accent-primary);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.bx-chat-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bx-chat-title { font-size: 14px; font-weight: 700; color: #fff; }
.bx-chat-status {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: rgba(255,255,255,.8);
}
.bx-online-dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
}
#bxChatMessages {
  height: 260px;
  overflow-y: auto;
  padding: 12px;
  background: #f8f8f6;
  flex: none;
  max-height: 260px;
}
#bxSuggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 12px;
  background: #f8f8f6;
  border-top: 1px solid #eaeae0;
}
.bx-chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #eaeae0;
  background: #fff;
  flex-shrink: 0;
}
#bxInput {
  flex: 1;
  border: 1.5px solid #e2e2da;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.bx-send-btn {
  width: 36px; height: 36px;
  background: var(--accent-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ================================================
   SELL LOGIN GATE
   ================================================ */
.sell-login-gate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 16px;
}
.sell-gate-card {
  background: #fff;
  border: 1px solid rgba(200,169,110,0.22);
  border-radius: 22px;
  padding: 32px 22px 24px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 16px 48px rgba(0,0,0,0.13);
  position: relative;
}
.sell-gate-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 2px;
  background: linear-gradient(90deg, transparent, #c8a96e, transparent);
  border-radius: 0 0 4px 4px;
}
.sell-gate-icon-wrap {
  position: relative;
  width: 66px; height: 66px;
  margin: 0 auto 20px;
}
.sell-gate-icon-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(200,169,110,0.5);
  animation: bx-spin 14s linear infinite;
}
.sell-gate-icon-ring::after {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  background: #c8a96e;
  border-radius: 50%;
}
@keyframes bx-spin { to { transform: rotate(360deg); } }
.sell-gate-icon {
  position: absolute; inset: 9px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fef8ec, #f7e8c3);
  border: 1px solid rgba(200,169,110,0.28);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(200,169,110,0.15);
}
.sell-gate-title {
  font-size: 17px; font-weight: 700;
  color: #1a1a1a; margin: 0 0 9px;
  letter-spacing: -0.25px;
}
.sell-gate-desc {
  font-size: 13.5px; color: #888;
  line-height: 1.65; margin: 0 0 24px;
}
.sell-gate-actions {
  display: flex; flex-direction: column;
  gap: 10px; margin-bottom: 16px;
}
.sell-gate-btn-login {
  width: 100%; justify-content: center;
  padding: 12px 16px; font-size: 14px;
  border-radius: 10px; gap: 7px; font-weight: 600;
}
.sell-gate-btn-register {
  width: 100%; justify-content: center;
  padding: 11px 16px; font-size: 13.5px;
  border-radius: 10px; color: #666; border-color: #ddd;
  transition: border-color 0.2s, color 0.2s;
}
.sell-gate-btn-register:hover {
  border-color: #c8a96e; color: #c8a96e;
  background: rgba(200,169,110,0.04);
}
.sell-gate-note {
  font-size: 11.5px; color: #bbb;
  display: flex; align-items: center;
  justify-content: center; gap: 5px;
  margin: 0; padding-top: 12px;
  border-top: 1px solid #f2f2f0;
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* Tablet 640px+ — form rows nở ra */
@media (min-width: 640px) {
  .sell-section { padding: 32px 24px; }
  .sell-row-3 { grid-template-columns: 1fr 1fr; }
  .sell-row-2 { grid-template-columns: 1fr 1fr; }
}

/* Desktop 900px+ — grid 2 cột */
@media (min-width: 900px) {
  .sell-section { padding: 40px 24px; }
  .sell-grid {
    grid-template-columns: 1fr 340px;
    gap: 24px;
  }
  .sell-row-3 { grid-template-columns: 1fr 1fr 1fr; }
  #ai-chat-container {
    position: sticky;
    top: 80px;
  }
  #bxChatMessages { height: 280px; }
}