/* ── DrawerChat.org — Dark + Orange ─────────────────────────────────────── */

:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #161616;
  --bg-tertiary: #1e1e1e;
  --bg-hover: #252525;
  --bg-card: #1a1a1a;
  --orange: #e87c2a;
  --orange-dim: #b5621f;
  --orange-glow: rgba(232, 124, 42, 0.15);
  --text-primary: #e0e0e0;
  --text-secondary: #888;
  --text-muted: #555;
  --border: #2a2a2a;
  --success: #4caf50;
  --danger: #e53935;
  --warning: #ff9800;
  --radius: 8px;
  --radius-sm: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
}

body:not(.page-wrapper) {
  overflow: hidden;
}

body.hiw-visible {
  overflow-y: auto;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Top Bar ─────────────────────────────────────────────────────────────── */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 50px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
  cursor: pointer;
}

.topbar-logo .icon { font-size: 24px; }

.topbar-viewers {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-tertiary);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.viewers-dot {
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.viewers-count {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 28px;
}

.viewers-label {
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-nav a, .topbar-nav button {
  color: var(--text-secondary);
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.topbar-nav a:hover, .topbar-nav button:hover {
  color: var(--orange);
  background: var(--bg-tertiary);
  text-decoration: none;
}

.topbar-nav a#nav-how {
  color: var(--orange);
  border: 1px solid var(--orange-dim);
  border-radius: 15px;
  padding: 4px 12px;
}

.topbar-nav a#nav-how:hover {
  background: var(--orange-glow);
}

.trust-badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
}

.trust-badge.starter { color: #7cb342; border-color: #7cb342; }
.trust-badge.verified { color: #ff7043; border-color: #ff7043; }
.trust-badge.elite { color: #ffd700; border-color: #ffd700; }
.trust-badge.icon { 
  color: #b9f2ff; 
  border-color: #b9f2ff; 
  background: linear-gradient(135deg, rgba(185, 242, 255, 0.15), rgba(255, 215, 0, 0.1));
  text-shadow: 0 0 8px rgba(185, 242, 255, 0.5);
}

/* ══════════════════════════════════════════════════════════════════════════
   MAIN PAGE — Single Item + Live Chat Split
   ══════════════════════════════════════════════════════════════════════════ */

.main-split {
  display: flex;
  margin-top: 50px;
  height: calc(100vh - 50px);
  min-height: calc(100vh - 50px);
}

/* ── Item Showcase (Left) ────────────────────────────────────────────────── */

.item-showcase {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  overflow-y: auto;
}

.showcase-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.showcase-empty .icon {
  font-size: 80px;
  margin-bottom: 20px;
  opacity: 0.2;
}

.showcase-empty h2 {
  font-size: 22px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 8px;
}

.showcase-empty p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.showcase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  width: 100%;
  gap: 15px;
}

/* Navigation */
.showcase-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  justify-content: center;
}

.nav-arrow {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.nav-arrow:hover:not(:disabled) {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

.nav-arrow:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.item-counter {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 60px;
  text-align: center;
}

/* Image */
.showcase-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
}

.showcase-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.img-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: default;
}

.img-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
  font-size: 28px;
  font-weight: 900;
  color: rgba(232, 124, 42, 0.06);
  text-transform: uppercase;
  letter-spacing: 8px;
  transform: rotate(-25deg);
  user-select: none;
}

/* Info */
.showcase-info {
  width: 100%;
  padding: 5px 0;
}

.showcase-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--orange);
}

.showcase-fee {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.showcase-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.5;
}

.showcase-seller {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.seller-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.seller-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.seller-stats {
  font-size: 12px;
  color: var(--success);
}

.ships-from {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Actions */
.showcase-actions {
  width: 100%;
  display: flex;
  gap: 10px;
}

.btn-buy {
  flex: 1;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-buy.preview-locked {
  background: var(--bg-tertiary);
  border-color: var(--border);
  color: var(--text-secondary);
  cursor: not-allowed;
  animation: preview-pulse 2s ease-in-out infinite;
}

.btn-buy.preview-locked .preview-icon {
  display: inline-block;
  animation: eye-blink 1.5s ease-in-out infinite;
}

@keyframes preview-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes eye-blink {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ── Live Chat (Right) ───────────────────────────────────────────────────── */

.live-chat {
  width: 400px;
  min-width: 400px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-header h3 {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.chat-item-label {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
  padding: 30px;
}

.chat-welcome .icon {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.3;
}

.chat-welcome p {
  font-size: 13px;
  line-height: 1.5;
}

.chat-welcome .sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.chat-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.4;
}

.chat-msg.other {
  background: var(--bg-tertiary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-msg.self {
  background: var(--orange-dim);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-msg .sender {
  font-size: 11px;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 3px;
}

.chat-msg.self .sender {
  color: rgba(255,255,255,0.7);
}

.chat-msg .time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
  text-align: right;
}

.chat-msg.self .time {
  color: rgba(255,255,255,0.4);
}

.chat-msg.system {
  align-self: center;
  max-width: 90%;
  background: none;
  padding: 4px 0;
}

.system-notice {
  text-align: center;
  font-size: 12px;
  color: var(--orange);
  background: var(--orange-glow);
  border: 1px dashed var(--orange-dim);
  border-radius: 20px;
  padding: 6px 16px;
  display: inline-block;
}

.chat-msg-img {
  max-width: 200px;
  max-height: 200px;
  border-radius: var(--radius-sm);
  margin: 4px 0;
  display: block;
  cursor: pointer;
}

.chat-input-area {
  padding: 10px 15px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-img-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-img-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

.chat-input {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.chat-input:focus { border-color: var(--orange-dim); }
.chat-input::placeholder { color: var(--text-muted); }

.chat-send {
  background: var(--orange);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.chat-send:hover { background: var(--orange-dim); }

/* Chat Image Preview */
.chat-img-preview {
  padding: 8px 15px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-tertiary);
  font-size: 12px;
  color: var(--text-muted);
}

.chat-img-preview img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.chat-preview-cancel {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  margin-left: auto;
}

/* ── Sell Button (FAB) ───────────────────────────────────────────────────── */

.sell-fab {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-calc(50% + 200px));
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(232, 124, 42, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sell-fab:hover {
  box-shadow: 0 6px 25px rgba(232, 124, 42, 0.5);
}

.sell-fab .plus {
  font-size: 20px;
  line-height: 1;
}

/* ══════════════════════════════════════════════════════════════════════════
   MODALS
   ══════════════════════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  width: 420px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--orange);
}

/* ── Forms ────────────────────────────────────────────────────────────────── */

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--orange-dim);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

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

.form-group .price-max {
  color: var(--orange);
}

.file-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.file-upload:hover { border-color: var(--orange-dim); }
.file-upload.has-file { border-color: var(--success); border-style: solid; }
.file-upload input { display: none; }
.file-upload .icon { font-size: 32px; margin-bottom: 8px; }

.file-upload p {
  font-size: 13px;
  color: var(--text-secondary);
}

.file-upload .preview {
  max-width: 200px;
  max-height: 200px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.btn {
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary {
  background: var(--orange);
  color: white;
}

.btn-primary:hover { background: var(--orange-dim); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--bg-hover); }

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover { opacity: 0.85; }

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

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover { opacity: 0.85; }

/* ── Toast ────────────────────────────────────────────────────────────────── */

.toast-container {
  position: fixed;
  top: 60px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  animation: slideIn 0.3s ease;
  max-width: 300px;
}

.toast.error { border-left-color: var(--danger); }
.toast.success { border-left-color: var(--success); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Demo Card Form ──────────────────────────────────────────────────────── */

.demo-card-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}

.demo-card-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-card-field label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-card-field input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-secondary);
  font-size: 14px;
  outline: none;
}

.demo-card-field input:focus {
  border-color: var(--orange-dim);
}

/* ── Nav Login Button ────────────────────────────────────────────────────── */

.nav-login-btn {
  background: var(--orange) !important;
  color: white !important;
  border-radius: 20px !important;
  padding: 5px 14px !important;
  font-weight: 600 !important;
}

.nav-login-btn:hover {
  background: var(--orange-dim) !important;
}

/* ── Scrollbar ───────────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* ══════════════════════════════════════════════════════════════════════════
   AUTH PAGE
   ══════════════════════════════════════════════════════════════════════════ */

.page-wrapper {
  overflow-y: auto;
  height: 100vh;
}

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  width: 400px;
  max-width: 100%;
}

.auth-card h1 {
  font-size: 24px;
  color: var(--orange);
  text-align: center;
  margin-bottom: 5px;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 25px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.auth-tab.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.auth-tab:hover { color: var(--text-primary); }

.auth-form { display: none; }
.auth-form.active { display: block; }

.auth-error {
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 15px;
  display: none;
}

.auth-error.show { display: block; }

.auth-success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--success);
  font-size: 13px;
  margin-bottom: 15px;
  display: none;
}

.auth-success.show { display: block; }

.auth-links {
  text-align: center;
  margin-top: 15px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════════════════
   ACCOUNT PAGE
   ══════════════════════════════════════════════════════════════════════════ */

.account-page {
  padding: 20px;
  max-width: 1000px;
  margin: 60px auto 20px;
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.account-header h1 {
  font-size: 22px;
  color: var(--orange);
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 25px;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

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

.stat-card .value {
  font-size: 28px;
  font-weight: 700;
  color: var(--orange);
  margin-top: 5px;
}

.stat-card .sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.trust-progress {
  margin-bottom: 25px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.trust-progress h3 {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.progress-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 4px;
  transition: width 0.3s;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.section-title {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.account-section {
  margin-bottom: 30px;
}

/* ── Tables ──────────────────────────────────────────────────────────────── */

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table th {
  background: var(--bg-tertiary);
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-hover); }

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.status-pending { background: rgba(255,152,0,0.15); color: var(--warning); }
.status-completed { background: rgba(76,175,80,0.15); color: var(--success); }
.status-cancelled { background: rgba(229,57,53,0.15); color: var(--danger); }
.status-available { background: rgba(76,175,80,0.15); color: var(--success); }
.status-sold { background: rgba(232,124,42,0.15); color: var(--orange); }
.status-removed { background: rgba(85,85,85,0.3); color: var(--text-muted); }

/* ── Admin Page ──────────────────────────────────────────────────────────── */

.admin-page {
  padding: 20px;
  max-width: 1200px;
  margin: 60px auto 20px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.admin-header h1 {
  font-size: 22px;
  color: var(--orange);
}

.admin-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.admin-tab {
  padding: 10px 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.admin-tab.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.admin-tab:hover { color: var(--text-primary); }

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 50px);
}

.admin-login-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  width: 350px;
}

.admin-login-card h2 {
  color: var(--orange);
  margin-bottom: 20px;
  text-align: center;
}

/* ── Item Grid (account page) ────────────────────────────────────────────── */

.mini-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.mini-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 10px;
}

.mini-item-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.mini-item-card .price {
  font-weight: 700;
  color: var(--orange);
}

.mini-item-card .desc {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-item-card .status {
  margin-top: 5px;
}

/* ── Avatar ──────────────────────────────────────────────────────────────── */

.avatar-wrap {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.avatar-wrap:hover { border-color: var(--orange); }

.avatar-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  color: var(--orange);
  font-size: 28px;
  font-weight: 700;
}

.avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 20px;
}

.avatar-wrap:hover .avatar-overlay { opacity: 1; }

.seller-avatar-tiny {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 3px;
}

/* ── Conversation List ───────────────────────────────────────────────────── */

.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s;
}

.conversation-item:hover { border-color: var(--orange-dim); }

.conv-name {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 120px;
}

.conv-item {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-meta {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── PM Header ───────────────────────────────────────────────────────────── */

.pm-header {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pm-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
}

/* ── Proof Status ────────────────────────────────────────────────────────── */

.status-uploaded { background: rgba(33,150,243,0.15); color: #2196f3; }
.status-approved { background: rgba(76,175,80,0.15); color: var(--success); }
.status-rejected { background: rgba(229,57,53,0.15); color: var(--danger); }
.status-none { background: rgba(85,85,85,0.3); color: var(--text-muted); }

/* ── Misc ────────────────────────────────────────────────────────────────── */

.no-data {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.no-data .icon {
  font-size: 40px;
  margin-bottom: 10px;
  opacity: 0.3;
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  margin-right: 4px;
}

.tag-positive { color: var(--success); }
.tag-negative { color: var(--danger); }

.chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
}

.chat-close:hover { color: var(--text-primary); }

/* ── Country Filter (kept for potential future use) ──────────────────────── */

.country-filter select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 800px) {
  .main-split {
    flex-direction: column;
  }

  .item-showcase {
    flex: none;
    padding: 15px;
    max-height: 55vh;
    overflow-y: auto;
  }

  .showcase-item {
    max-width: 100%;
  }

  .showcase-img-wrap {
    aspect-ratio: 4/3;
  }

  .showcase-price {
    font-size: 24px;
  }

  .live-chat {
    width: 100%;
    min-width: 100%;
    flex: 1;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .sell-fab {
    left: auto;
    right: 15px;
    bottom: 15px;
    transform: none;
    padding: 12px 18px;
    font-size: 13px;
  }

  .account-page, .admin-page {
    padding: 10px;
    margin-top: 55px;
  }

  .topbar-nav { gap: 5px; }

  .topbar-nav a, .topbar-nav button {
    font-size: 12px;
    padding: 4px 6px;
  }
}

@media (min-width: 801px) {
  .sell-fab {
    left: calc(50% - 200px);
    transform: translateX(-50%);
  }
}

/* ── Item Tags ──────────────────────────────────────────────────────────── */

.tags-section {
  margin-top: 5px;
}

.tag-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.tag-field {
  flex: 1;
}

.tag-field label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.tag-field select {
  width: 100%;
  padding: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
}

.tag-field select:focus {
  border-color: var(--orange);
  outline: none;
}

.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.item-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.item-tag .tag-icon {
  font-size: 12px;
}

.item-tag.tag-wear_time { border-color: #5c6bc0; color: #7986cb; }
.item-tag.tag-activity { border-color: #43a047; color: #66bb6a; }
.item-tag.tag-scent { border-color: #ab47bc; color: #ce93d8; }
.item-tag.tag-style { border-color: var(--orange-dim); color: var(--orange); }
.item-tag.tag-material { border-color: #8d6e63; color: #a1887f; }
.item-tag.tag-extra { border-color: var(--border); color: var(--text-muted); }

/* ── Album ──────────────────────────────────────────────────────────────── */

.btn-album {
  background: none;
  border: 1px solid var(--orange-dim);
  color: var(--orange);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-album:hover {
  background: var(--orange-glow);
  border-color: var(--orange);
}

.album-link {
  margin-top: 6px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 50vh;
  overflow-y: auto;
}

.album-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
}

.album-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-photo.locked img {
  filter: blur(20px) brightness(0.5);
}

.album-photo .lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: rgba(0,0,0,0.3);
}

.album-photo .photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 8px;
  background: rgba(0,0,0,0.7);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Album Management (Account Page) ────────────────────────────────────── */

.album-upload-area {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.album-add-btn {
  width: 100px;
  height: 100px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
  flex-shrink: 0;
}

.album-add-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-glow);
}

.album-manage-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.album-manage-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.album-manage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-manage-item .photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2px 6px;
  background: rgba(0,0,0,0.7);
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.85);
  color: white;
  border: none;
  font-size: 12px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.album-manage-item:hover .album-delete-btn {
  display: flex;
}

/* ── Unlocked Albums (Buyer) ────────────────────────────────────────────── */

.unlock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.unlock-row:hover {
  border-color: var(--orange);
}

.unlock-seller {
  font-weight: 600;
  flex: 1;
}

.unlock-count {
  font-size: 12px;
  color: var(--orange);
}

.unlock-arrow {
  color: var(--text-muted);
  font-size: 16px;
}

/* ══════════════════════════════════════════════════════════════════════════
   HOW IT WORKS SECTION
   ══════════════════════════════════════════════════════════════════════════ */

.how-it-works-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 20px;
  overflow-y: auto;
}

.hiw-container {
  max-width: 1100px;
  margin: 0 auto;
}

.hiw-header {
  text-align: center;
  margin-bottom: 40px;
}

.hiw-header h2 {
  font-size: 32px;
  color: var(--orange);
  margin-bottom: 10px;
}

.hiw-header p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* Toggle Tabs */
.hiw-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.hiw-toggle-btn {
  padding: 12px 28px;
  border-radius: 30px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hiw-toggle-btn:hover {
  border-color: var(--orange-dim);
  color: var(--text-primary);
}

.hiw-toggle-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

/* Steps Grid */
.hiw-content {
  display: none;
}

.hiw-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.hiw-step {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  position: relative;
  transition: all 0.3s ease;
}

.hiw-step:hover {
  border-color: var(--orange-dim);
  transform: translateY(-3px);
}

.hiw-step-number {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--orange);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.hiw-step-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.hiw-step h4 {
  color: var(--text-primary);
  font-size: 16px;
  margin-bottom: 8px;
}

.hiw-step p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

/* Safety Features */
.hiw-safety {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hiw-safety-title {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-primary);
  font-size: 20px;
  margin-bottom: 10px;
}

.hiw-safety-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: rgba(76, 175, 80, 0.05);
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-radius: var(--radius);
}

.hiw-safety-item .icon {
  font-size: 24px;
  flex-shrink: 0;
}

.hiw-safety-item h5 {
  color: var(--success);
  font-size: 14px;
  margin-bottom: 4px;
}

.hiw-safety-item p {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

/* Trust Tiers */
.hiw-trust {
  margin-top: 40px;
  padding: 30px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hiw-trust h3 {
  text-align: center;
  color: var(--text-primary);
  font-size: 20px;
  margin-bottom: 20px;
}

.trust-tiers {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.trust-tier-card {
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  min-width: 140px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  transition: all 0.3s ease;
}

.trust-tier-card:hover {
  transform: scale(1.05);
}

.trust-tier-card.starter { border-color: #7cb342; }
.trust-tier-card.verified { border-color: #ff7043; }
.trust-tier-card.elite { border-color: #ffd700; }
.trust-tier-card.icon { border-color: #b9f2ff; background: linear-gradient(135deg, var(--bg-card) 0%, rgba(185, 242, 255, 0.1) 100%); }

.trust-tier-card .tier-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.trust-tier-card .tier-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.trust-tier-card.starter .tier-name { color: #7cb342; }
.trust-tier-card.verified .tier-name { color: #ff7043; }
.trust-tier-card.elite .tier-name { color: #ffd700; }
.trust-tier-card.icon .tier-name { color: #b9f2ff; }

.trust-tier-card .tier-req {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.trust-tier-card .tier-limit {
  font-size: 13px;
  color: var(--text-secondary);
}

.trust-tier-card .tier-fee {
  font-size: 12px;
  color: var(--orange);
  font-weight: 600;
  margin-top: 6px;
}

/* ══════════════════════════════════════════════════════════════════════════
   REDESIGNED PM CHAT - MODERN MESSENGER STYLE
   ══════════════════════════════════════════════════════════════════════════ */

/* PM Panel (replaces modal) */
.pm-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 250;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -5px 0 30px rgba(0,0,0,0.5);
}

.pm-panel.active {
  right: 0;
}

.pm-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 249;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pm-panel-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

/* PM Header */
.pm-panel-header {
  padding: 15px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.pm-back-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.pm-back-btn:hover {
  color: var(--orange);
}

.pm-user-info {
  flex: 1;
  min-width: 0;
}

.pm-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pm-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
  flex-shrink: 0;
  overflow: hidden;
}

.pm-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-user-details {
  min-width: 0;
}

.pm-user-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pm-user-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
}

.pm-item-info {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-item-thumb {
  width: 45px;
  height: 45px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
  margin-right: 10px;
}

.pm-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.pm-action-btn {
  padding: 8px 12px;
  border-radius: var(--radius);
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.pm-action-btn.primary {
  background: var(--orange);
  color: white;
}

.pm-action-btn.primary:hover {
  background: var(--orange-dim);
}

.pm-action-btn.secondary {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.pm-action-btn.secondary:hover {
  border-color: var(--orange-dim);
  color: var(--text-primary);
}

/* Transaction Status Bar */
.pm-status-bar {
  padding: 12px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.pm-status-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.pm-status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 1;
}

.pm-status-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.3s ease;
}

.pm-status-step.completed .pm-status-dot {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.pm-status-step.current .pm-status-dot {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 124, 42, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(232, 124, 42, 0); }
}

.pm-status-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pm-status-step.completed .pm-status-label,
.pm-status-step.current .pm-status-label {
  color: var(--text-secondary);
}

.pm-status-line {
  position: absolute;
  top: 12px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--border);
}

.pm-status-line-fill {
  height: 100%;
  background: var(--success);
  transition: width 0.5s ease;
}

/* PM Messages Area */
.pm-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-primary);
}

/* Empty State */
.pm-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.pm-empty-icon {
  font-size: 64px;
  margin-bottom: 15px;
  opacity: 0.3;
}

.pm-empty-title {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pm-empty-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* Date Separator */
.pm-date-separator {
  text-align: center;
  margin: 15px 0;
  position: relative;
}

.pm-date-separator span {
  background: var(--bg-primary);
  padding: 4px 12px;
  font-size: 11px;
  color: var(--text-muted);
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* Message Bubbles */
.pm-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  position: relative;
  word-wrap: break-word;
}

.pm-bubble.self {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dim) 100%);
  color: white;
  border-bottom-right-radius: 4px;
}

.pm-bubble.other {
  align-self: flex-start;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.pm-bubble-sender {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--orange);
}

.pm-bubble.self .pm-bubble-sender {
  color: rgba(255,255,255,0.7);
}

.pm-bubble-text {
  white-space: pre-wrap;
}

.pm-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 4px;
  font-size: 10px;
}

.pm-bubble.self .pm-bubble-meta {
  color: rgba(255,255,255,0.5);
}

.pm-bubble.other .pm-bubble-meta {
  color: var(--text-muted);
}

.pm-bubble-status {
  font-size: 12px;
}

/* Image in bubble */
.pm-bubble-img {
  max-width: 220px;
  max-height: 220px;
  border-radius: 12px;
  margin: 6px 0;
  cursor: pointer;
  display: block;
}

/* Typing indicator */
.pm-typing {
  align-self: flex-start;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-radius: 18px;
  display: none;
}

.pm-typing.active {
  display: flex;
  gap: 4px;
  align-items: center;
}

.pm-typing-dot {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.pm-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.pm-typing-dot:nth-child(2) { animation-delay: -0.16s; }
.pm-typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* PM Input Area */
.pm-input-area {
  padding: 15px 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-shrink: 0;
}

.pm-img-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.pm-img-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

.pm-input-wrap {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 22px;
  display: flex;
  align-items: flex-end;
  padding: 8px 15px;
  transition: border-color 0.2s;
}

.pm-input-wrap:focus-within {
  border-color: var(--orange-dim);
}

.pm-textarea {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.4;
  resize: none;
  outline: none;
  max-height: 120px;
  font-family: inherit;
}

.pm-textarea::placeholder {
  color: var(--text-muted);
}

.pm-send-btn {
  background: var(--orange);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.pm-send-btn:hover {
  background: var(--orange-dim);
  transform: scale(1.05);
}

.pm-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* PM Image Preview */
.pm-img-preview {
  padding: 10px 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  display: none;
  align-items: center;
  gap: 12px;
}

.pm-img-preview.active {
  display: flex;
}

.pm-img-preview img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.pm-img-preview-info {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
}

.pm-img-preview-cancel {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
}

/* Mobile Responsive */
@media (max-width: 500px) {
  .pm-panel {
    max-width: 100%;
  }
  
  .pm-header-actions {
    flex-direction: column;
    gap: 5px;
  }
  
  .pm-action-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .pm-status-label {
    font-size: 9px;
  }
  
  .pm-bubble {
    max-width: 85%;
  }
}

/* How It Works - Mobile */
@media (max-width: 600px) {
  .hiw-header h2 {
    font-size: 24px;
  }
  
  .hiw-toggle {
    flex-direction: column;
    align-items: center;
  }
  
  .hiw-toggle-btn {
    width: 100%;
    max-width: 250px;
  }
  
  .trust-tiers {
    flex-direction: column;
    align-items: center;
  }
  
  .trust-tier-card {
    width: 100%;
    max-width: 200px;
  }
}
