.account-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.account-hero {
  text-align: center;
  padding: 80px 20px;
}
.account-hero h1 { font-size: 2rem; margin-bottom: 12px; }
.account-hero p { color: #666; margin-bottom: 24px; }
.account-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.account-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700;
}
.account-header h1 { font-size: 1.4rem; margin: 0; }
.account-since { color: #888; font-size: 0.9rem; margin: 4px 0 0; }
.account-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 24px;
}
.tab-btn {
  padding: 12px 24px;
  border: none; background: none;
  font-size: 1rem;
  cursor: pointer;
  color: #666;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 600;
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.account-actions { margin-bottom: 20px; }
.listing-card { position: relative; }
.listing-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: 8px;
  font-size: 0.75rem; font-weight: 600; color: #fff; z-index: 2;
}
.listing-badge.published { background: #2e7d32; }
.listing-badge.draft { background: #f57c00; }
.listing-badge.sold { background: #c62828; }
.listing-link { margin-top: 8px; font-size: 0.85rem; }
.order-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #eee;
}
.order-row img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 8px;
}
.order-info { flex: 1; }
.order-info h3 { margin: 0 0 4px; font-size: 1rem; }
.order-info p { margin: 0; color: #888; font-size: 0.85rem; }
.order-amount { font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.order-status {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.75rem; font-weight: 600;
}
.order-status.paid { background: #e8f5e9; color: #2e7d32; }
.settings-card {
  background: #f8f8f8;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.settings-card h2 { margin: 0 0 12px; font-size: 1.1rem; }
.settings-card input {
  width: 100%; max-width: 400px;
  padding: 10px 14px;
  border: 1px solid #ddd; border-radius: 8px;
  font-size: 1rem; margin-bottom: 12px;
}
.settings-card.danger { border: 1px solid #ffcdd2; }
.settings-card.danger h2 { color: #c62828; }
.admin-page {
  max-width: 1060px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.admin-page h1 { margin-bottom: 24px; }
.admin-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.stat-card {
  flex: 1 1 200px;
  background: #f8f8f8;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
}
.stat-card .stat-label {
  font-size: 0.9rem;
  color: #888;
  margin-top: 4px;
}
.listing-meta { font-size: 0.8rem; color: #888; margin-top: 4px; }
.messages-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.conversation-list {
  list-style: none;
  padding: 0;
}
.conversation-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.15s;
}
.conversation-item:hover { background: #f8f8f8; }
.conversation-item .conv-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
  flex-shrink: 0;
}
.conversation-item .conv-info { flex: 1; }
.conversation-item .conv-name { font-weight: 600; }
.conversation-item .conv-preview { color: #888; font-size: 0.85rem; }
.conversation-item .conv-time { color: #aaa; font-size: 0.8rem; white-space: nowrap; }
.chat-box {
  display: flex;
  flex-direction: column;
  height: 500px;
  border: 1px solid #eee;
  border-radius: var(--radius);
  overflow: hidden;
}
.chat-header {
  padding: 14px 16px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-header .back-btn {
  background: none; border: none;
  color: #fff; cursor: pointer;
  font-size: 1.2rem;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-msg {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.4;
}
.chat-msg.sent {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg.received {
  align-self: flex-start;
  background: #f0f0f0;
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-msg .msg-time {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 4px;
}
.chat-input {
  display: flex;
  border-top: 1px solid #eee;
}
.chat-input input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-size: 1rem;
  outline: none;
}
.chat-input button {
  padding: 14px 20px;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
@media (max-width: 640px) {
  .messages-page { padding: 20px 12px 40px; }
  .messages-page h1 { font-size: 1.3rem; }
  .chat-box { height: calc(100vh - 220px); min-height: 400px; }
  .chat-messages { padding: 12px; }
  .chat-msg { font-size: 0.92rem; max-width: 85%; }
  .chat-input { padding: 8px; gap: 6px; }
  .chat-input input { padding: 10px 12px; }
  .chat-input button { padding: 10px 14px; font-size: 0.9rem; }
  .conversation-item { padding: 12px; }
}
.edit-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.edit-modal.open { display: flex; }
.edit-modal-content {
  background: #fff;
  width: min(640px, 100%);
  max-width: 640px;
  border-radius: 16px;
  padding: 28px 26px 22px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
  margin: 20px auto;
}
.edit-modal-content h2 {
  margin: 0 0 18px;
  font-size: 1.3rem;
  color: var(--text);
}
.edit-modal-content .close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  color: #888;
  line-height: 1;
  width: 36px;
  height: 36px;
}
.edit-modal-content .close:hover { color: #000; }
.edit-image-block {
  text-align: center;
  margin-bottom: 20px;
  padding: 16px;
  background: #f7f9fb;
  border-radius: 10px;
}
#edit-image-preview {
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e0e5ea;
  display: block;
  margin: 0 auto 8px;
  object-fit: cover;
}
.edit-hint { color: #888; font-size: 0.8rem; margin: 6px 0 0; }
.edit-form { display: flex; flex-direction: column; gap: 12px; }
.edit-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  gap: 6px;
}
.edit-form input,
.edit-form select,
.edit-form textarea {
  padding: 10px 12px;
  border: 1px solid #d7dbe0;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.edit-form input:focus,
.edit-form select:focus,
.edit-form textarea:focus {
  border-color: var(--blue);
}
.edit-form textarea { resize: vertical; min-height: 90px; }
.edit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.edit-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
  flex-wrap: wrap;
}
.edit-actions .btn,
.edit-actions .cta-btn {
  min-width: 120px;
}
@media (max-width: 600px) {
  .edit-modal { padding: 0; }
  .edit-modal-content { margin: 0; padding: 20px 16px; border-radius: 0; min-height: 100vh; }
  .edit-row { grid-template-columns: 1fr; }
  .edit-actions { flex-direction: column-reverse; }
  .edit-actions .btn,
  .edit-actions .cta-btn { width: 100%; }
}
.conversation-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  transition: background .15s;
  list-style: none;
}
.conversation-item:hover { background: #f8fafc; }
.conv-avatar, .conv-avatar-img {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #1f2a3c, #2c3b54);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; object-fit: cover; flex-shrink: 0;
}
.conv-info { flex: 1; min-width: 0; }
.conv-top-row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.conv-name { font-weight: 700; color: #0f172a; font-size: 0.98rem; }
.conv-time { font-size: 0.8rem; color: #94a3b8; flex-shrink: 0; }
.conv-preview {
  color: #64748b; font-size: 0.9rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-top: 2px;
}
.conv-badge {
  background: #dc2626; color: #fff;
  min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 11px; font-size: 0.78rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.conv-skeleton {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid #e2e8f0; list-style: none;
}
.conv-empty {
  text-align: center; padding: 60px 20px; list-style: none;
  color: #64748b;
}
.conv-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.conv-empty h3 { margin: 0 0 8px; color: #0f172a; }
.conv-empty p { margin: 0 0 20px; }
.chat-product-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  text-decoration: none; color: inherit;
  transition: background .15s;
}
.chat-product-banner:hover { background: #e2e8f0; }
.chat-product-banner img {
  width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.cpb-info { flex: 1; min-width: 0; }
.cpb-label { font-size: 0.72rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }
.cpb-title {
  font-weight: 600; color: #0f172a; font-size: 0.95rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cpb-price { font-size: 0.88rem; color: #1f2a3c; font-weight: 700; }
.chat-msg { max-width: 72%; margin: 6px 0; padding: 10px 14px; border-radius: 16px; line-height: 1.4; word-wrap: break-word; }
.chat-msg.sent { margin-left: auto; background: #1f2a3c; color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.received { margin-right: auto; background: #f1f5f9; color: #0f172a; border-bottom-left-radius: 4px; }
.chat-msg.pending { opacity: 0.6; }
.msg-text { white-space: pre-wrap; }
.msg-time { font-size: 0.72rem; opacity: 0.75; margin-top: 4px; text-align: right; }
.chat-empty, .chat-loading { text-align: center; color: #94a3b8; padding: 40px 20px; font-style: italic; }
@media (max-width: 600px) {
  .conversation-item { padding: 12px; gap: 10px; }
  .conv-avatar, .conv-avatar-img { width: 40px; height: 40px; font-size: 1rem; }
  .chat-msg { max-width: 85%; }
}
.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  margin-left: 6px;
}
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.admin-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 7px 14px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.filter-btn:hover { border-color: #1f2a3c; color: #1f2a3c; }
.filter-btn.active {
  background: #1f2a3c;
  color: #fff;
  border-color: #1f2a3c;
}
.admin-search-input {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
}
.admin-search-input:focus { outline: 2px solid #1f2a3c; border-color: #1f2a3c; }
.report-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  border-left: 4px solid #f59e0b;
}
.report-status-resolved { border-left-color: #10b981; opacity: 0.85; }
.report-status-dismissed { border-left-color: #94a3b8; opacity: 0.75; }
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.report-reason {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
}
.report-status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.report-status-badge.pending { background: #fef3c7; color: #b45309; }
.report-status-badge.resolved { background: #d1fae5; color: #065f46; }
.report-status-badge.dismissed { background: #e2e8f0; color: #475569; }
.report-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
  transition: background .15s;
}
.report-product:hover { background: #f1f5f9; }
.report-product img {
  width: 56px; height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.report-product-info { flex: 1; min-width: 0; }
.report-product-info strong {
  display: block;
  color: #0f172a;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-product-price { font-size: 0.88rem; color: #1f2a3c; font-weight: 700; }
.report-product-deleted {
  padding: 10px 14px;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 8px;
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 10px;
}
.report-desc {
  padding: 10px 12px;
  background: #f8fafc;
  border-left: 3px solid #cbd5e1;
  border-radius: 4px;
  color: #475569;
  font-style: italic;
  margin-bottom: 10px;
  font-size: 0.92rem;
}
.report-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.report-actions-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}
.report-actions-bar .btn {
  padding: 8px 14px;
  font-size: 0.88rem;
}
.btn.danger {
  background: #dc2626;
  color: #fff;
  border: 0;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn.danger:hover { background: #b91c1c; }
.admin-loading { text-align: center; color: #94a3b8; padding: 40px; font-style: italic; }
.admin-empty {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}
.admin-empty-icon {
  font-size: 3rem;
  color: #10b981;
  margin-bottom: 12px;
}
.admin-empty h3 { margin: 0 0 6px; color: #0f172a; }
.admin-empty-small { color: #94a3b8; padding: 20px; font-style: italic; }
.admin-error { color: #dc2626; padding: 20px; }
.admin-product-card { position: relative; }
.admin-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}
.admin-card-actions .btn {
  flex: 1;
  text-align: center;
  padding: 7px 10px;
  font-size: 0.82rem;
  text-decoration: none;
}
.admin-toolbar-vert {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f8fafc;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin: 16px 0 22px;
}
.filter-btn.filter-danger {
  border-color: #fecaca;
  color: #b91c1c;
}
.filter-btn.filter-danger:hover {
  background: #fef2f2;
  border-color: #dc2626;
}
.filter-btn.filter-danger.active {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.admin-sort-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-sort-row label {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 600;
}
.admin-select {
  padding: 7px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: 0.92rem;
  color: #1e293b;
  cursor: pointer;
}
.admin-select:focus { outline: 2px solid #1f2a3c; border-color: #1f2a3c; }
.admin-count {
  margin-left: auto;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
}
.admin-product-card {
  position: relative;
  transition: border-color .15s, box-shadow .15s;
}
.admin-product-card.is-suspect {
  border: 2px solid #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.admin-product-card.is-reported {
  border-color: #f59e0b !important;
}
.admin-product-card.is-suspect.is-reported {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}
.alert-badges {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0;
}
.alert-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}
.alert-reports { background: #fef3c7; color: #92400e; }
.alert-suspect { background: #fee2e2; color: #991b1b; }
.suspect-hit {
  background: #fef08a;
  color: #991b1b;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
}
#admin-products-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.admin-product-card .listing-meta {
  font-size: 0.8rem;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .admin-toolbar-vert { padding: 14px; }
  .admin-sort-row { flex-direction: column; align-items: stretch; }
  .admin-sort-row label { margin-bottom: 2px; }
  .admin-count { margin-left: 0; }
}
.admin-tab-btn {
  background: linear-gradient(135deg, #1f2a3c 0%, #2c3b54 100%);
  color: #fff !important;
  border-radius: 8px;
  padding: 8px 14px !important;
  position: relative;
}
.admin-tab-btn.active,
.admin-tab-btn:hover {
  background: linear-gradient(135deg, #2a343d 0%, #1f2a3c 100%);
  color: #fff !important;
}
.admin-tab-btn .admin-badge {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 6px;
  min-width: 20px;
  text-align: center;
}
.admin-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #1f2a3c, #2c3b54);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-left: auto;
  box-shadow: 0 2px 6px rgba(62, 74, 85, 0.3);
}
.mod-intro h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  color: #0e1a22;
}
.mod-intro p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 0.95rem;
}
.mod-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.mod-stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.mod-stat-card.mod-stat-alert {
  border-color: #fca5a5;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
}
.mod-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0e1a22;
  line-height: 1;
}
.mod-stat-card.mod-stat-alert .mod-stat-num { color: #b91c1c; }
.mod-stat-lbl {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 6px;
  font-weight: 600;
}
.mod-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.mod-search {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.mod-search:focus { border-color: #1f2a3c; box-shadow: 0 0 0 3px rgba(62, 74, 85, 0.1); }
.mod-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mod-filter-btn {
  padding: 7px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.mod-filter-btn:hover { border-color: #1f2a3c; color: #0e1a22; }
.mod-filter-btn.active {
  background: #1f2a3c;
  color: #fff;
  border-color: #1f2a3c;
}
.mod-filter-btn.mod-filter-danger {
  color: #b91c1c;
  border-color: #fca5a5;
}
.mod-filter-btn.mod-filter-danger.active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.mod-sort-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mod-sort-row label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}
.mod-select {
  padding: 7px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: 0.9rem;
  color: #0e1a22;
  cursor: pointer;
  outline: none;
}
.mod-select:focus { border-color: #1f2a3c; }
.mod-count {
  margin-left: auto;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
}
.mod-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mod-loading, .mod-empty {
  padding: 40px 20px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
}
.mod-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.mod-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.mod-card.is-suspect {
  border-color: #dc2626;
  border-width: 2px;
  background: linear-gradient(135deg, #fef2f2 0%, #fff 40%);
}
.mod-card.is-reported {
  border-color: #f59e0b;
  border-width: 2px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 40%);
}
.mod-card-img {
  width: 110px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
}
.mod-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mod-card-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.mod-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.mod-card-title {
  margin: 0;
  font-size: 1.05rem;
  color: #0e1a22;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.mod-card-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0e1a22;
  white-space: nowrap;
}
.mod-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #64748b;
}
.mod-meta-dot { color: #cbd5e1; }
.mod-status {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.mod-status-on { background: #dcfce7; color: #166534; }
.mod-status-draft { background: #fef3c7; color: #92400e; }
.mod-status-sold { background: #e2e8f0; color: #475569; }
.mod-card-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0;
}
.mod-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.mod-badge-suspect {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.mod-badge-reports {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
}
.mod-card-desc {
  margin: 0;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.mod-hit {
  background: #fef08a;
  color: #713f12;
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 700;
}
.mod-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.mod-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s, transform 0.05s;
}
.mod-btn:active { transform: translateY(1px); }
.mod-btn-view {
  background: #fff;
  border-color: #cbd5e1;
  color: #334155;
}
.mod-btn-view:hover { border-color: #1f2a3c; color: #0e1a22; }
.mod-btn-delete {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.mod-btn-delete:hover { background: #b91c1c; border-color: #b91c1c; }
.mod-btn-delete:disabled { opacity: 0.6; cursor: wait; }
.mod-badge-floutee {
  background: #fff;
  color: var(--gold-text);
  border: 1px solid rgba(201, 168, 76, 0.55);
}
.mod-btn-flou {
  background: #fff;
  border-color: rgba(31, 42, 60, 0.35);
  color: var(--blue);
}
.mod-btn-flou:hover { border-color: var(--blue); }
.mod-btn-flou.is-on { border-color: rgba(201, 168, 76, 0.8); color: var(--gold-text); }
.mod-btn-flou:disabled { opacity: 0.6; cursor: wait; }
@media (max-width: 640px) {
  .mod-stats { grid-template-columns: 1fr 1fr; }
  .mod-stats .mod-stat-card:first-child { grid-column: 1 / -1; }
  .mod-card { grid-template-columns: 80px 1fr; }
  .mod-card-img { width: 80px; height: 80px; }
  .mod-card-top { flex-direction: column; gap: 2px; }
  .mod-card-actions { flex-wrap: wrap; }
}
.account-tabs {
  position: sticky;
  top: 75px;
  background: #fff;
  z-index: 90;
  padding: 10px 0 0;
  margin: 0 0 24px;
  border-bottom: 2px solid #e5e7eb;
  box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.08);
  flex-wrap: wrap;
}
.mod-toolbar {
  position: sticky;
  top: 140px;
  z-index: 80;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 20px -8px rgba(15, 23, 42, 0.08);
  backdrop-filter: saturate(180%) blur(6px);
  -webkit-backdrop-filter: saturate(180%) blur(6px);
  background: rgba(248, 250, 252, 0.96);
}
.mod-stats {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 18px;
}
.mod-stat-card {
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.mod-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.mod-stat-card.mod-stat-alert {
  background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
  border-color: #fecaca;
}
.mod-intro {
  margin: 0 0 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #1f2a3c 0%, #2a343d 100%);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(62, 74, 85, 0.25);
}
.mod-intro h2 {
  color: #fff !important;
  font-size: 1.3rem !important;
  margin: 0 0 4px !important;
}
.mod-intro p {
  color: rgba(255, 255, 255, 0.85) !important;
  margin: 0 !important;
  font-size: 0.9rem !important;
}
.mod-filter-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  letter-spacing: 0.1px;
  transition: all .18s ease;
}
.mod-filter-btn.active {
  transform: scale(1.02);
  box-shadow: 0 3px 8px rgba(62, 74, 85, 0.25);
}
.mod-filter-btn.mod-filter-danger.active {
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.3);
}
.mod-search {
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  border: 1px solid #d1d5db;
  background: #fff;
  transition: all .2s ease;
}
.mod-search:focus {
  border-color: #1f2a3c;
  box-shadow: 0 0 0 3px rgba(62, 74, 85, 0.12);
}
.mod-card {
  grid-template-columns: 130px 1fr;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  transition: all .2s ease;
}
.mod-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}
.mod-card-img {
  width: 130px;
  height: 130px;
  border-radius: 10px;
}
.mod-btn {
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
}
.mod-btn-delete {
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}
.mod-btn-delete:hover {
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
}
.mod-back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1f2a3c;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(62, 74, 85, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mod-back-top.show { display: inline-flex; }
.mod-back-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(62, 74, 85, 0.45);
}
.mod-back-top svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 900px) {
  .account-tabs {
    top: 65px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .mod-toolbar {
    top: 120px;
  }
}
@media (max-width: 640px) {
  .account-tabs { top: 60px; padding: 8px 0 0; }
  .mod-toolbar {
    top: 110px;
    padding: 12px;
  }
  .mod-intro { padding: 14px; }
  .mod-intro h2 { font-size: 1.15rem !important; }
  .mod-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mod-stat-card { padding: 14px 10px; }
  .mod-stat-num { font-size: 1.5rem; }
}
.account-tabs {
  position: sticky;
  top: 82px;
  z-index: 50;
  display: flex;
  gap: 2px;
  margin: 0 0 28px !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02), 0 4px 14px -6px rgba(15, 23, 42, 0.06) !important;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.account-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  position: relative;
  padding: 13px 22px !important;
  font-family: inherit;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
  color: #64748b !important;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  border-bottom: none !important;
  margin: 0 !important;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease !important;
}
.tab-btn + .tab-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: #e2e8f0;
}
.tab-btn:hover {
  color: #0f172a !important;
  background: #f8fafc !important;
}
.tab-btn.active {
  color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: none !important;
  border-bottom: none !important;
  font-weight: 700 !important;
}
.tab-btn.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #1f2a3c 0%, #2c3b54 100%);
  border-radius: 2px 2px 0 0;
}
.tab-btn:first-child { border-top-left-radius: 10px !important; border-bottom-left-radius: 10px !important; }
.tab-btn:last-child  { border-top-right-radius: 10px !important; border-bottom-right-radius: 10px !important; }
.tab-btn.admin-tab-btn {
  background: linear-gradient(135deg, #1f2a3c 0%, #2c3b54 100%) !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06) !important;
  margin: 6px 6px 6px 8px !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-size: 0.78rem !important;
}
.tab-btn.admin-tab-btn::before,
.tab-btn.admin-tab-btn::after { display: none !important; }
.tab-btn.admin-tab-btn:hover {
  background: linear-gradient(135deg, #2a343d 0%, #1f2a3c 100%) !important;
  color: #fff !important;
}
.tab-btn.admin-tab-btn.active {
  background: linear-gradient(135deg, #2a343d 0%, #1f2a3c 100%) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 2px 10px rgba(42, 52, 61, 0.25) !important;
}
.tab-content {
  min-height: 400px;
}
.tab-content.active {
  display: block;
  animation: tabFadeIn .25s ease both;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.tab-content > p:only-child,
.tab-content .items-grid > p:only-child,
#my-orders-list > p:only-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  margin: 0;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  color: #64748b;
  font-size: 0.98rem;
  min-height: 320px;
}
.tab-content > p:only-child::before,
.tab-content .items-grid > p:only-child::before,
#my-orders-list > p:only-child::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='6' width='18' height='14' rx='2'/><path d='M3 10h4l2 3h6l2-3h4'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.8;
}
.tab-content > p:only-child a,
.tab-content .items-grid > p:only-child a,
#my-orders-list > p:only-child a {
  margin-top: 14px;
  display: inline-block;
  padding: 10px 22px;
  background: #1f2a3c;
  color: #fff !important;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none !important;
  font-size: 0.92rem;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 2px 8px rgba(62, 74, 85, 0.2);
}
.tab-content > p:only-child a:hover,
.tab-content .items-grid > p:only-child a:hover,
#my-orders-list > p:only-child a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(62, 74, 85, 0.3);
}
.settings-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: box-shadow .2s ease;
}
.settings-card:hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.settings-card h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: #0f172a;
  font-weight: 700;
}
.settings-card p {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 0.92rem;
}
.settings-card input {
  width: 100%;
  max-width: 420px;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-right: 10px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.settings-card input:focus {
  border-color: #1f2a3c;
  box-shadow: 0 0 0 3px rgba(62, 74, 85, 0.1);
}
.settings-card.danger {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
}
.settings-card.danger h2 { color: #b91c1c; }
.account-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px !important;
}
.account-actions .cta-btn {
  padding: 11px 22px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  box-shadow: 0 2px 8px rgba(62, 74, 85, 0.2);
}
@media (max-width: 768px) {
  .account-header {
    flex-wrap: wrap;
    padding: 18px 20px;
    gap: 14px;
  }
  .account-avatar { width: 54px !important; height: 54px !important; font-size: 1.3rem !important; }
  .account-header h1 { font-size: 1.1rem !important; }
  .admin-role-badge {
    margin-left: 0 !important;
    order: 3;
    flex-basis: 100%;
  }
  .account-tabs { padding: 5px; gap: 2px; }
  .tab-btn { padding: 8px 14px !important; font-size: 0.88rem !important; }
  .settings-card { padding: 18px; }
}
.mod-subtabs{
  display:flex;
  gap:8px;
  margin:18px 0 22px;
  border-bottom:1px solid #e5e0d4;
  padding-bottom:0;
}
.mod-subtab-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:transparent;
  border:0;
  padding:12px 18px;
  font-size:14px;
  font-weight:600;
  color:#666;
  cursor:pointer;
  border-bottom:2px solid transparent;
  margin-bottom:-1px;
  transition:color .15s, border-color .15s;
}
.mod-subtab-btn:hover{ color:#1f2933 }
.mod-subtab-btn.active{
  color:var(--blue,#1f2a3c);
  border-bottom-color:var(--blue,#1f2a3c);
}
.mod-subtab-btn .admin-badge{
  background:#c0392b;
  color:#fff;
  border-radius:10px;
  padding:2px 7px;
  font-size:11px;
  font-weight:700;
  min-width:18px;
  text-align:center;
}
.mod-subpanel{ display:none }
.mod-subpanel.active{ display:block }
.mod-user-filter-btn{
  background:#fff;
  border:1px solid #d9d4c5;
  padding:6px 14px;
  border-radius:18px;
  font-size:13px;
  font-weight:500;
  color:#555;
  cursor:pointer;
  transition:all .15s;
}
.mod-user-filter-btn:hover{ border-color:var(--blue,#1f2a3c); color:var(--blue,#1f2a3c) }
.mod-user-filter-btn.active{
  background:var(--blue,#1f2a3c);
  color:#fff;
  border-color:var(--blue,#1f2a3c);
}
.mod-user-filter-btn.mod-filter-danger.active{
  background:#c0392b;
  border-color:#c0392b;
}
.admin-users-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.admin-user-row{display:grid;grid-template-columns:48px 1fr auto auto auto;gap:14px;align-items:center;padding:14px 16px;background:#fff;border:1px solid #e5e0d4;border-radius:12px;transition:border-color .15s,box-shadow .15s}
.admin-user-row:hover{border-color:#c8bfa8;box-shadow:0 2px 8px rgba(40,30,15,.05)}
.admin-user-row.is-blocked{background:#fff5f3;border-color:#f3c8c2}
.admin-user-row.is-admin-row{background:#fff8e7;border-color:#e8d68a}
.admin-user-avatar{width:48px;height:48px;border-radius:50%;background:var(--blue,#1f2a3c);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px;text-transform:uppercase}
.admin-user-row.is-blocked .admin-user-avatar{background:#c0392b}
.admin-user-row.is-admin-row .admin-user-avatar{background:#b8860b}
.admin-user-info{min-width:0}
.admin-user-email{font-weight:600;color:#1f2933;font-size:14px;word-break:break-all;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.admin-user-meta{display:flex;gap:14px;color:#666;font-size:12px;margin-top:4px;flex-wrap:wrap}
.admin-user-stat{display:flex;flex-direction:column;align-items:center;min-width:60px}
.admin-user-stat-num{font-weight:700;font-size:18px;color:#1f2933}
.admin-user-stat-num.alert{color:#c0392b}
.admin-user-stat-lbl{font-size:11px;color:#888;text-transform:uppercase;letter-spacing:.4px}
.admin-user-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.admin-user-actions .btn{padding:6px 12px;font-size:12px;height:auto}
.admin-user-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:10px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.3px}
.admin-user-badge.active{background:#e6f4ea;color:#1e6b3a}
.admin-user-badge.blocked{background:#fbe1de;color:#a83025}
.admin-user-badge.admin-tag{background:#fff1c8;color:#7a5a00}
@media (max-width:780px){
  .admin-user-row{grid-template-columns:40px 1fr;grid-template-areas:"avatar info" "stats stats" "actions actions";gap:10px}
  .admin-user-avatar{grid-area:avatar;width:40px;height:40px;font-size:15px}
  .admin-user-info{grid-area:info}
  .admin-user-stats-wrap{grid-area:stats;display:flex;gap:18px;justify-content:flex-start;border-top:1px solid #f0ebde;padding-top:10px}
  .admin-user-actions{grid-area:actions;justify-content:flex-start;border-top:1px solid #f0ebde;padding-top:10px}
}
#chat-view .chat-box {
  background: #ffffff !important;
  border: 1px solid #e5e7ea !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: min(72vh, 640px) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04) !important;
}
#chat-view .chat-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: linear-gradient(135deg, #1f2a3c 0%, #2c3b54 100%) !important;
  color: #fff !important;
  padding: 14px 18px !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
#chat-view .chat-header #backToConvos,
#chat-view .chat-header .chat-back {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff; border: 0; cursor: pointer;
  transition: background .15s ease;
  flex-shrink: 0;
}
#chat-view .chat-header #backToConvos:hover { background: rgba(255,255,255,0.24); }
#chat-view .chat-header #chat-partner-name {
  font-weight: 600 !important;
  font-size: 1rem !important;
  color: #fff !important;
}
#chat-view .chat-product-banner {
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #eceef0 !important;
  margin: 0 !important;
  background: #f8fafc !important;
}
#chat-view .chat-messages {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 20px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  background: #fbfcfd !important;
}
#chat-view .chat-msg {
  position: relative;
  max-width: 72% !important;
  padding: 10px 14px 7px !important;
  border-radius: 14px !important;
  font-size: 0.95rem !important;
  line-height: 1.45 !important;
}
#chat-view .chat-msg.sent {
  align-self: flex-end !important;
  background: #1f2a3c !important;
  color: #fff !important;
  border-bottom-right-radius: 4px !important;
}
#chat-view .chat-msg.received {
  align-self: flex-start !important;
  background: #ffffff !important;
  color: #1f2a3c !important;
  border: 1px solid #e5e7ea !important;
  border-bottom-left-radius: 4px !important;
}
#chat-view .chat-msg.pending { opacity: .65; }
#chat-view .msg-meta {
  margin-top: 3px;
  font-size: 0.68rem;
  opacity: .75;
  text-align: right;
  display: flex; gap: 6px; justify-content: flex-end; align-items: baseline;
}
#chat-view .chat-msg.received .msg-meta { color: #8a929c; }
#chat-view .msg-status { letter-spacing: .02em; }
#chat-view .msg-status.is-read { color: #7fd1ae; }
#chat-view .msg-edited { font-style: italic; }
#chat-view .msg-edit-btn {
  position: absolute;
  top: 50%; left: -30px;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  display: none; align-items: center; justify-content: center;
  border: 1px solid #e5e7ea; border-radius: 50%;
  background: #fff; color: #64748b; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
#chat-view .chat-msg.sent:hover .msg-edit-btn { display: inline-flex; }
#chat-view .msg-edit-btn:hover { color: #1f2a3c; border-color: #cbd5e1; }
#chat-view .msg-edit-input {
  width: 100%;
  box-sizing: border-box;
  border: 0; border-radius: 6px;
  padding: 4px 8px;
  font: inherit; color: #1f2a3c;
  background: #ffffff;
  outline: 2px solid #c9a84c;
}
#chat-view .chat-input {
  display: flex !important;
  gap: 10px !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  border-top: 1px solid #eceef0 !important;
  background: #ffffff !important;
  align-items: center !important;
}
#chat-view .chat-input input[type="text"] {
  flex: 1 !important;
  height: 44px !important;
  box-sizing: border-box !important;
  padding: 0 16px !important;
  border: 1px solid #d7dbe0 !important;
  border-radius: 999px !important;
  font-size: 0.95rem !important;
  background: #f8fafc !important;
  outline: none !important;
  transition: border-color .15s ease, background .15s ease;
}
#chat-view .chat-input input[type="text"]:focus {
  border-color: #1f2a3c !important;
  background: #fff !important;
}
#chat-view .chat-input button {
  height: 44px !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #1f2a3c !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: background .15s ease;
}
#chat-view .chat-input button:hover { background: #161f2e !important; }
@media (max-width: 640px) {
  #chat-view .chat-msg { max-width: 86% !important; }
  #chat-view .msg-edit-btn { display: inline-flex; left: -28px; }
}
.settings-card .settings-row .cta-btn,
.settings-card .btn.outline {
  height: 36px !important;
  padding: 0 16px !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  font-family: var(--font-sans, 'Inter', sans-serif) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
  transition: background .15s ease, border-color .15s ease, color .15s ease !important;
}
.settings-card .settings-row .cta-btn:hover:not(:disabled),
.settings-card .btn.outline:hover {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #fff !important;
}
.settings-card .settings-row .cta-btn:disabled {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
}
.settings-card.danger .btn.outline {
  border-color: #fecaca !important;
  color: #b91c1c !important;
}
.settings-card.danger .btn.outline:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #fff !important;
}
.settings-card .settings-row input,
.settings-card .settings-row .stripe-connect-status {
  height: 36px !important;
  border-radius: 6px !important;
}
.settings-card .settings-row input {
  border-color: #e2e8f0 !important;
  font-size: 0.9rem !important;
}
.settings-card .settings-row .stripe-connect-status {
  font-size: 0.78rem !important;
}
.settings-card .settings-row input:disabled {
  background: #f8fafc !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
}
#chat-view .chat-day-sep {
  align-self: center;
  margin: 6px 0 2px;
  font-size: 0.72rem;
  color: #8a929c;
  letter-spacing: 0.02em;
}
#chat-view .chat-day-sep span {
  background: #eef1f4;
  border-radius: 999px;
  padding: 4px 12px;
}
#chat-view .msg-react-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  display: none;
  align-items: center; justify-content: center;
  border: 1px solid #e5e7ea; border-radius: 50%;
  background: #fff; color: #64748b; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
  padding: 0;
}
#chat-view .chat-msg.sent .msg-react-btn { left: -58px; }
#chat-view .chat-msg.received .msg-react-btn { right: -30px; }
#chat-view .chat-msg:hover .msg-react-btn { display: inline-flex; }
#chat-view .msg-react-btn:hover { color: #1f2a3c; border-color: #cbd5e1; }
#chat-view .reaction-picker {
  position: absolute;
  bottom: calc(100% + 6px);
  z-index: 30;
  display: flex;
  gap: 2px;
  padding: 5px 7px;
  background: #ffffff;
  border: 1px solid #e5e7ea;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14);
}
#chat-view .chat-msg.sent .reaction-picker { right: 0; }
#chat-view .chat-msg.received .reaction-picker { left: 0; }
#chat-view .reaction-choice {
  border: 0; background: transparent; cursor: pointer;
  font-size: 19px; line-height: 1;
  padding: 3px 4px; border-radius: 8px;
  transition: transform .12s ease, background .12s ease;
}
#chat-view .reaction-choice:hover { transform: scale(1.25); background: #f3f5f7; }
#chat-view .msg-reactions {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
#chat-view .reaction-chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid #e5e7ea;
  background: #ffffff;
  cursor: pointer;
  font-size: 12px; line-height: 1.5;
  color: #33404b;
  transition: border-color .15s ease, background .15s ease;
}
#chat-view .reaction-chip:hover { border-color: #cbd5e1; }
#chat-view .reaction-chip.is-mine {
  border-color: #1f2a3c;
  background: #eef1f5;
  font-weight: 600;
}
#chat-view .reaction-chip .re-emoji { font-size: 13px; }
#chat-view .chat-msg.sent .reaction-chip { background: #ffffff; }
@media (max-width: 640px) {
  #chat-view .msg-react-btn { display: inline-flex; }
  #chat-view .chat-msg.sent .msg-react-btn { left: -54px; }
}
.order-status.wait { background: #fff4e0; color: #8a5a00; }
.order-status.ship { background: #e6f0fb; color: #1c4f8f; }
.order-status.done { background: #e8f5e9; color: #1b5e20; }
.order-status.fail { background: #fbe9e7; color: #8a2018; }
.order-row { flex-wrap: wrap; }
.order-tracking { color: var(--blue-light) !important; font-weight: 600; }
.order-address { color: #7a7a7a !important; font-size: .8rem !important; margin-top: 4px !important; }
.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin-top: 10px;
}
.order-actions .btn.small {
  padding: 7px 14px;
  font-size: .82rem;
}
.order-tracking-input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #d8d3c6;
  border-radius: 10px;
  font-size: .85rem;
}
.order-tracking-input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.order-confirm {
  display: flex;
  justify-content: center;
  padding: 48px 16px 72px;
}
.order-confirm-card {
  width: 100%;
  max-width: 560px;
  background: var(--white);
  border: 1px solid #ece6da;
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(31, 42, 60, .06);
}
.order-confirm-card h1 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 16px 0 8px;
  color: var(--blue);
}
.order-confirm-card > p { color: #5d6470; line-height: 1.6; margin: 0 0 8px; }
.order-confirm-loading { color: #5d6470; }
.order-confirm-icon {
  width: 56px; height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700;
}
.order-confirm-icon--ok   { background: #e8f5e9; color: #1b5e20; }
.order-confirm-icon--wait { background: #fff4e0; color: #8a5a00; }
.order-confirm-icon--warn { background: #fbe9e7; color: #8a2018; }
.order-confirm-item {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text);
}
.order-confirm-summary {
  list-style: none;
  margin: 0 0 24px;
  padding: 16px 20px;
  background: var(--beige);
  border-radius: 12px;
  text-align: left;
}
.order-confirm-summary li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  font-size: .9rem;
}
.order-confirm-summary li + li { border-top: 1px solid rgba(31, 42, 60, .08); }
.order-confirm-summary span { color: #6b7280; }
.order-confirm-summary strong { color: var(--text); }
.order-confirm-next { text-align: left; margin-bottom: 24px; }
.order-confirm-next h3 {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold-text);
  margin: 0 0 10px;
}
.order-confirm-next ul { margin: 0; padding-left: 20px; color: #5d6470; line-height: 1.8; font-size: .9rem; }
.order-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
@media (max-width: 520px) {
  .order-confirm { padding: 24px 12px 48px; }
  .order-confirm-card { padding: 28px 20px; }
  .order-confirm-card h1 { font-size: 1.35rem; }
  .order-confirm-actions .cta-btn,
  .order-confirm-actions .btn { width: 100%; text-align: center; }
}
.order-row--flagged { background: #fffaf2; border-left: 3px solid var(--gold-dark); }
.order-flag { color: #8a5a00 !important; font-weight: 600; font-size: .8rem !important; }
.order-pi { color: #9aa0a6 !important; font-size: .72rem !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
@media (max-width: 560px) {
  .order-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "img  info"
      "amt  status"
      "act  act";
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
  }
  .order-row img { grid-area: img; width: 56px; height: 56px; }
  .order-info    { grid-area: info; min-width: 0; }
  .order-amount  { grid-area: amt; font-size: 1rem; }
  .order-status  { grid-area: status; justify-self: end; }
  .order-actions { grid-area: act; margin-top: 0; }
  .order-actions .btn.small { flex: 1 1 auto; }
}
.pay-maintenance {
  margin: 16px 0;
  padding: 12px 16px;
  background: #fff4e0;
  border-left: 3px solid var(--gold-dark);
  border-radius: 8px;
  color: #7a5300;
  font-size: .9rem;
  line-height: 1.5;
}
.pay-breakdown {
  margin: 14px 0 18px;
  padding: 14px 16px;
  background: var(--beige);
  border-radius: 12px;
  font-size: .92rem;
}
.pay-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 5px 0;
  color: #5d6470;
}
.pay-breakdown-row strong { color: var(--text); white-space: nowrap; }
.pay-breakdown-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(31, 42, 60, .14);
  font-size: 1.05rem;
}
.pay-breakdown-total span { color: var(--text); font-weight: 600; }
.pay-breakdown-total strong { color: var(--blue); font-size: 1.15rem; }
.pay-breakdown-info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-left: 4px; padding: 0;
  border: 1px solid currentColor; border-radius: 50%;
  background: none; color: var(--gold-text);
  font-size: .68rem; font-weight: 700; line-height: 1; cursor: pointer;
}
.pay-breakdown-info:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pay-breakdown-note {
  margin: 8px 0 0; padding: 10px 12px;
  background: var(--white); border-radius: 8px;
  color: #5d6470; font-size: .85rem; line-height: 1.5;
}
.pay-breakdown-seller {
  margin: 10px 0 0; color: #2e7d32; font-size: .85rem; line-height: 1.45;
}
.order-payout { margin-top: 6px !important; color: var(--text) !important; font-size: .88rem !important; }
.order-payout strong { color: #1b5e20; }
.order-payout span { color: #6b7280; }
.order-payout-free { color: #2e7d32 !important; font-size: .82rem; }
.order-payout-state { margin-top: 4px !important; color: #8a5a00 !important; font-size: .82rem !important; }
.order-window-note {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #5a6472;
}
