/*
 * trades.css — AL Builder
 * Trades page, post listing modal, DM panel,
 * and notification bell / dropdown panel.
 */


/* ============================================================
   TRADES PAGE
   ============================================================ */

#page-trades {
  overflow-y: auto;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.trd-wrap {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.trd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.trd-title {
  margin: 0;
  font-size: 20px;
  font-family: 'Rajdhani', sans-serif;
  color: #e0d8c8;
  letter-spacing: 0.04em;
  flex: 1;
}

.trd-post-btn {
  background: #2a2a5a;
  color: #ccccff;
  border: 1px solid #4444aa;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.trd-post-btn:hover { background: #3a3a7a; }

/* --- Sub-tabs --- */
.trd-tabbar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.trd-tab {
  padding: 5px 20px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: #111118;
  border: 1.5px solid #252535;
  border-radius: 6px;
  color: #666;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.trd-tab.active { background: #1a1a35; border-color: #4444aa; color: #aaaaee; }

/* --- Search bar --- */
.trd-search-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.trd-search {
  flex: 1;
  background: #111118;
  border: 1.5px solid #252535;
  border-radius: 8px;
  color: #ccc;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s;
}
.trd-search::placeholder { color: #444; }
.trd-search:focus { border-color: #4444aa; }

.trd-advsearch-btn {
  background: #111118;
  border: 1.5px solid #252535;
  border-radius: 8px;
  color: #666;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.trd-advsearch-btn:hover { border-color: #4444aa; color: #aaaaee; }
.trd-advsearch-btn.trd-advsearch-active {
  border-color: #4444aa;
  color: #aaaaee;
  background: #1a1a35;
}

/* --- Advanced search modal extras --- */
.trd-adv-row { gap: 8px; }
.trd-adv-row .trd-pick-wrap { flex: 1; }
.trd-adv-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.trd-adv-clear-btn {
  flex: 1;
  background: #1a1a1a;
  border: 1.5px solid #333;
  border-radius: 8px;
  color: #888;
  font-family: inherit;
  font-size: 14px;
  padding: 10px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.trd-adv-clear-btn:hover { border-color: #555; color: #bbb; }
.trd-adv-actions .trd-submit-btn { flex: 2; }
.trd-adv-gold-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.trd-adv-gold-row .trd-gold-label {
  font-size: 13px;
  color: #aaa;
  white-space: nowrap;
  min-width: 100px;
}
.trd-adv-gold-input {
  width: 90px;
  padding: 6px 10px;
  font-size: 13px;
}
.trd-adv-gold-sep {
  color: #666;
  font-size: 14px;
}

/* --- Listing cards grid --- */
.trd-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.trd-state {
  grid-column: 1 / -1;
  text-align: center;
  color: #666;
  font-size: 13px;
  padding: 28px 0;
  line-height: 1.6;
}

.trd-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid #2a2a3a;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: border-color 0.15s;
}
.trd-card:hover { border-color: #3a3a5a; }

.trd-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.trd-card-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.trd-card-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.trd-card-uname {
  font-weight: 600;
  font-size: 13px;
  color: #ccccff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trd-card-age {
  font-size: 11px;
  color: #555;
}

.trd-del-btn {
  background: none;
  border: none;
  color: #664444;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.trd-del-btn:hover { background: #2a1a1a; color: #ff8888; }
.trd-del-btn--admin { color: #6a3a6a; }
.trd-del-btn--admin:hover { background: #1e0f1e; color: #cc66cc; }

.trd-own-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.trd-edit-btn {
  background: none;
  border: none;
  color: #556;
  font-size: 15px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.trd-edit-btn:hover { background: #1a1a2e; color: #aab; }

.trd-card-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trd-card-item {
  font-size: 15px;
  font-weight: 600;
  color: #e0d8c8;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.03em;
}

.trd-card-qty {
  font-size: 13px;
  font-weight: 600;
  color: #aaaacc;
  font-family: inherit;
}

.trd-card-lf {
  font-size: 13px;
  color: #c8a96e;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.trd-card-lf-block {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding-top: 4px;
  border-top: 1px solid #222230;
}

.trd-card-lf-block .trd-lf-label {
  margin-top: 2px;
  flex-shrink: 0;
}

.trd-card-lf-block .trd-card-items {
  flex: 1;
}

.trd-card-lf-block .trd-card-item {
  color: #c8a96e;
  font-size: 14px;
}

.trd-card-lf-block:has(.trd-gv-label) .trd-card-item {
  color: #55cc88;
}

.trd-lf-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #1e1e10;
  color: #c8a96e;
  border: 1px solid #5a4a20;
  border-radius: 3px;
  padding: 1px 4px;
  flex-shrink: 0;
}

.trd-gv-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #0e1e14;
  color: #55cc88;
  border: 1px solid #2a7a4a;
  border-radius: 3px;
  padding: 1px 4px;
  flex-shrink: 0;
}

.trd-card-desc {
  font-size: 12px;
  color: #777;
  line-height: 1.45;
}

.trd-msg-btn {
  align-self: flex-start;
  background: none;
  border: 1px solid #333;
  color: #aaa;
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 2px;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.trd-msg-btn:hover { background: #1a1a35; color: #ccccff; border-color: #4444aa; }

/* ============================================================
   POST LISTING MODAL
   ============================================================ */

.trd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 9200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.trd-modal {
  background: #1a1a2e;
  border: 1px solid #3a3a6a;
  border-radius: 10px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.6);
  overflow: hidden;
}

.trd-modal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid #252540;
  font-weight: 700;
  font-size: 15px;
  color: #ccccff;
}

.trd-modal-x {
  background: none;
  border: none;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.trd-modal-x:hover { color: #ccc; }

.trd-modal-body {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trd-form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trd-label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.trd-req { color: #ff7777; }

.trd-type-row {
  display: flex;
  gap: 6px;
}

.trd-type-btn {
  flex: 1;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 13px;
  background: #111118;
  border: 1.5px solid #252535;
  border-radius: 5px;
  color: #555;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.trd-type-btn.active { background: #1a1a35; border-color: #4444aa; color: #aaaaee; }

.trd-input {
  background: #12121e;
  border: 1px solid #3a3a6a;
  border-radius: 5px;
  color: #ddd;
  font-family: inherit;
  font-size: 14px;
  padding: 7px 10px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.trd-input:focus { border-color: #6666cc; }

/* number inputs — shrink width to fit naturally */
input[type="number"].trd-input { width: 90px; }

.trd-textarea { resize: vertical; min-height: 68px; }

/* --- Multi-item rows in post modal --- */
#trd-items-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}

.trd-item-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.trd-pick-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}

.trd-pick-display {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #666;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trd-pick-display:hover { border-color: #555; color: #bbb; }
.trd-pick-display.trd-pick-has-value { color: #ddd; }

.trd-pick-panel {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 500;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 4px;
  overflow: hidden;
}

.trd-pick-search {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #111;
  border: none;
  border-bottom: 1px solid #2a2a2a;
  color: #ddd;
  padding: 7px 10px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
}
.trd-pick-search::placeholder { color: #444; }

.trd-pick-list {
  max-height: 180px;
  overflow-y: auto;
}

.trd-pick-group {
  padding: 6px 10px 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #555;
}

.trd-pick-item {
  padding: 5px 12px;
  font-size: 13px;
  color: #aaa;
  cursor: pointer;
}
.trd-pick-item:hover { background: #242424; color: #fff; }
.trd-pick-item.trd-pick-selected { background: #2a2a2a; color: #fff; }

.trd-item-qty {
  width: 46px;
  flex-shrink: 0;
  text-align: center;
}

.trd-item-row-del {
  background: none;
  border: 1px solid #3a2a2a;
  color: #664444;
  border-radius: 4px;
  width: 26px;
  height: 26px;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trd-item-row-del:hover { background: #2a1a1a; color: #ff8888; border-color: #664444; }

.trd-add-item-btn {
  background: none;
  border: 1px dashed #333;
  color: #666;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  transition: color 0.12s, border-color 0.12s;
}
.trd-add-item-btn:hover { color: #aaa; border-color: #555; }

.trd-gold-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}
.trd-gold-label {
  font-size: 13px;
  color: #cca84a;
  font-weight: 600;
  white-space: nowrap;
}
.trd-gold-input {
  width: 75px !important;
  text-align: right;
}
.trd-gold-hint {
  font-size: 11px;
  color: #555;
}
.trd-card-gold {
  color: #cca84a;
  font-weight: 700;
}

.trd-form-err {
  font-size: 12px;
  color: #ff8888;
  min-height: 16px;
  text-align: center;
}

.trd-submit-btn {
  width: 100%;
  padding: 9px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  background: #2a2a5a;
  color: #ccccff;
  border: 1px solid #4444aa;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.trd-submit-btn:hover:not(:disabled) { background: #3a3a7a; }
.trd-submit-btn:disabled { opacity: 0.55; cursor: default; }

/* ============================================================
   NOTIFICATION BELL (auth bar)
   ============================================================ */

.notif-bell-btn {
  position: relative;
  background: none;
  border: none;
  color: #888;
  font-size: 17px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.12s, background 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-bell-btn:hover { color: #ccccff; background: #1e1e40; }

#notif-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  background: #cc3344;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px;
  min-width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
  line-height: 1;
}

/* ============================================================
   NOTIFICATION PANEL (dropdown)
   ============================================================ */

#notif-panel {
  position: fixed;
  z-index: 9300;
  background: #1a1a2e;
  border: 1px solid #3a3a6a;
  border-radius: 10px;
  min-width: 270px;
  max-width: 320px;
  max-height: 380px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.notif-panel-hdr {
  padding: 10px 14px 8px;
  font-weight: 700;
  font-size: 13px;
  color: #ccccff;
  border-bottom: 1px solid #252540;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notif-clear-all-btn {
  background: none;
  border: none;
  color: #555;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.12s;
}
.notif-clear-all-btn:hover { color: #cc5555; }

#notif-list { overflow-y: auto; flex: 1; }

.notif-item {
  padding: 9px 14px 9px 14px;
  padding-right: 30px;
  border-bottom: 1px solid #1e1e38;
  transition: background 0.1s;
  position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255,255,255,0.03); }
.notif-del-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #444;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  border-radius: 3px;
  transition: color 0.12s;
}
.notif-del-btn:hover { color: #cc5555; }

.notif-new { background: rgba(68,68,180,0.10); border-left: 2px solid #5555cc; }

.notif-item-title { font-size: 13px; font-weight: 600; color: #ccc; }
.notif-item-body  { font-size: 12px; color: #888; margin-top: 2px; line-height: 1.4; }
.notif-item-time  { font-size: 11px; color: #555; margin-top: 4px; }
.notif-item--clickable:hover { background: rgba(68,68,180,0.15); }
.notif-item-action-hint { font-size: 11px; color: #6666cc; margin-top: 3px; }

.notif-empty {
  text-align: center;
  color: #555;
  font-size: 13px;
  padding: 22px 0;
}

/* ============================================================
   DIRECT MESSAGE PANEL
   ============================================================ */

/* Floating DM button */
.dm-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9200;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2a2a5a;
  border: 1.5px solid #4444aa;
  color: #ccccff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.55);
  transition: background 0.15s, transform 0.12s;
  line-height: 1;
}
.dm-fab:hover { background: #3a3a7a; transform: scale(1.07); }

.dm-fab #msg-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #cc2233;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
  line-height: 1;
  border: 2px solid #12121e;
}

#dm-panel {
  position: fixed;
  bottom: 84px;
  right: 20px;
  z-index: 9300;
  background: #1a1a2e;
  border: 1px solid #3a3a6a;
  border-radius: 10px;
  width: 320px;
  max-height: 520px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#dm-panel.dm-panel--popped {
  bottom: unset;
  right: unset;
  max-height: unset;
  resize: both;
  box-shadow: 0 12px 48px rgba(0,0,0,0.75);
  border-color: #5555aa;
}

.dm-panel-hdr {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 9px;
  border-bottom: 1px solid #252540;
  flex-shrink: 0;
}

#dm-panel-title {
  flex: 1;
  font-weight: 700;
  font-size: 13px;
  color: #ccccff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-back-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 13px;
  cursor: pointer;
  padding: 0 4px 0 0;
  flex-shrink: 0;
  transition: color 0.12s;
}
.dm-back-btn:hover { color: #ccccff; }


.dm-panel-close {
  background: none;
  border: none;
  color: #555;
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
}
.dm-panel-close:hover { color: #ccc; }

/* Thread context strip — "Trading with [Name]" */
.dm-thread-ctx {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: #141428;
  border-bottom: 1px solid #252540;
  flex-shrink: 0;
}

.dm-ctx-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.dm-ctx-label {
  font-size: 10px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dm-ctx-name {
  font-size: 14px;
  font-weight: 700;
  color: #ccccff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Body — conversation list or thread view */
.dm-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.dm-state {
  text-align: center;
  color: #555;
  font-size: 13px;
  padding: 24px 16px;
  line-height: 1.6;
}

/* --- Conversation list --- */
.dm-conv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #1e1e38;
  cursor: pointer;
  transition: background 0.1s;
}
.dm-conv-item:last-child { border-bottom: none; }
.dm-conv-item:hover { background: rgba(255,255,255,0.04); }

.dm-conv-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dm-conv-name {
  font-size: 13px;
  font-weight: 600;
  color: #ccccff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-conv-preview {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-conv-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.dm-conv-time {
  font-size: 11px;
  color: #555;
}

.dm-conv-unread {
  background: #5544cc;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.dm-conv-del {
  background: none;
  border: none;
  color: #444;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: none;
}
.dm-conv-del:hover { color: #cc4444; }
.dm-conv-item:hover .dm-conv-del { display: block; }

.dm-conv-party { border-left: 2px solid #4444aa; }
.dm-conv-party:hover { background: rgba(68,68,170,0.08); }
.dm-party-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2a2a5a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* --- Thread messages --- */
.dm-msg {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 4px 10px;
}

.dm-msg-mine {
  flex-direction: row-reverse;
}

.dm-bubble {
  max-width: 72%;
  padding: 7px 10px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
  position: relative;
}

.dm-msg-theirs .dm-bubble {
  background: #22223a;
  color: #ccc;
  border-bottom-left-radius: 4px;
}

.dm-msg-mine .dm-bubble {
  background: #2a2a5a;
  color: #ccccff;
  border-bottom-right-radius: 4px;
}

.dm-bubble-time {
  display: block;
  font-size: 10px;
  color: #555;
  margin-top: 3px;
  text-align: right;
}

/* --- Footer (thread input) --- */
#dm-footer {
  display: none;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid #252540;
  flex-shrink: 0;
}

#dm-input {
  flex: 1;
  background: #12121e;
  border: 1px solid #3a3a6a;
  border-radius: 5px;
  color: #ddd;
  font-family: inherit;
  font-size: 13px;
  padding: 6px 9px;
  outline: none;
  min-width: 0;
}
#dm-input:focus { border-color: #6666cc; }

.dm-send-btn {
  background: #2a2a5a;
  color: #aaaaff;
  border: 1px solid #4444aa;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s;
}
.dm-send-btn:hover { background: #3a3a7a; }
