/* ============================================================
   Digispex — features-extra.css
   ── Notifications, Messaging, Reviews ──
   Dark + Light theme compatible. Responsive.
============================================================ */

/* ════════════════════════════════════════════════════════════
   1. NOTIFICATIONS — Bell + Dropdown
════════════════════════════════════════════════════════════ */

.notif-bell-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.notif-bell-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  flex-shrink: 0;
  position: relative;
}
.notif-bell-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.notif-bell-btn svg { vertical-align: middle; }

/* Badge */
.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--red);
  color: #fff;
  font-size: 0.52rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  pointer-events: none;
  z-index: 10;
  animation: notifPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes notifPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Dropdown panel */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-height: 480px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 9999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  transform-origin: top right;
}
.notif-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem 0.8rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.notif-header-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  color: var(--text);
}
.notif-header-actions {
  display: flex;
  gap: 0.75rem;
}
.notif-clear-btn {
  font-size: 0.72rem;
  color: var(--text3);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
}
.notif-clear-btn:hover { color: var(--red); }
.notif-mark-all-btn {
  font-size: 0.72rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
}
.notif-mark-all-btn:hover { opacity: 0.7; }

/* List */
.notif-list {
  overflow-y: auto;
  flex: 1;
}
.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* Individual item */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255,255,255,0.025); }

.notif-unread { background: rgba(37, 99, 235,0.03); }
.notif-unread:hover { background: rgba(37, 99, 235,0.06); }

/* Icon circle */
.notif-item-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Body */
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-header-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.15rem;
}
.notif-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.notif-item-order {
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 0.2rem;
}
.notif-item-text {
  font-size: 0.76rem;
  color: var(--text2);
  line-height: 1.45;
  margin-bottom: 0.3rem;
}
.notif-item-time {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text2);
}
.notif-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Empty state */
.notif-empty {
  padding: 2.75rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.notif-empty-icon { margin-bottom: 0.25rem; }
.notif-empty-text { font-size: 0.85rem; font-weight: 600; color: var(--text2); }
.notif-empty-sub  { font-size: 0.75rem; color: var(--text3); }

/* Message badge (nav) */
.msg-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent3);
  color: #fff;
  font-size: 0.52rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  pointer-events: none;
}

/* Light theme */
[data-theme="light"] .notif-dropdown {
  background: var(--surface);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
[data-theme="light"] .notif-unread { background: rgba(0,128,204,0.05); }
[data-theme="light"] .notif-badge,
[data-theme="light"] .msg-badge  { border-color: #f0f4f8; }


/* Features - Modals, Toasts, and Tooltips */

/* Message seller button on order cards */
.btn-msg-seller {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  background: rgba(37, 99, 235,0.06);
  border: 1px solid rgba(37, 99, 235,0.2);
  border-radius: 7px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'DM Sans', sans-serif;
}
.btn-msg-seller:hover {
  background: rgba(37, 99, 235,0.14);
  border-color: var(--accent);
}

/* ── Chat modal shell ── */
.modal-chat {
  max-width: 500px;
  width: 95%;
  height: 82vh;
  max-height: 680px;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
}
.modal-chat .modal-header {
  flex-shrink: 0;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-chat .modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  min-height: 0;
}

/* Order info bar */
.chat-order-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.15rem;
  background: rgba(37, 99, 235,0.04);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-order-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(37, 99, 235,0.1);
  border: 1px solid rgba(37, 99, 235,0.2);
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.chat-order-label {
  font-size: 0.75rem;
  color: var(--text3);
}

/* Online indicator */
.chat-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: onlinePulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
  margin-left: auto;
}
@keyframes onlinePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ── Messages scroll area ── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* Date separator */
.chat-date-sep {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0;
  color: var(--text2);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.3px;
}
.chat-date-sep::before,
.chat-date-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Chat rows: layout ── */
.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.chat-row + .chat-row { margin-top: 0; }

.chat-self  { flex-direction: row-reverse; }
.chat-other { flex-direction: row; }

/* Avatar */
.chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light, #3b82f6));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 0;
}
.chat-avatar-spacer {
  width: 30px;
  flex-shrink: 0;
}
.chat-self .chat-avatar {
  background: linear-gradient(135deg, var(--accent), #0099bb);
}

/* Msg column */
.chat-msg-col {
  display: flex;
  flex-direction: column;
  max-width: calc(100% - 76px);
}
.chat-self  .chat-msg-col { align-items: flex-end; }
.chat-other .chat-msg-col { align-items: flex-start; }

.chat-sender-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text3);
  margin-bottom: 0.25rem;
  padding: 0 0.3rem;
}

/* Bubbles */
.chat-bubble {
  padding: 0.6rem 0.9rem;
  border-radius: 16px;
  max-width: 100%;
  word-break: break-word;
}
.bubble-self {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble-other {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-bubble-text {
  font-size: 0.83rem;
  line-height: 1.5;
}

/* Meta row (time + read mark) */
.chat-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text2);
  margin-top: 0.25rem;
  padding: 0 0.3rem;
}
.chat-self .chat-meta { flex-direction: row-reverse; }

/* Read checkmark */
.chat-read-mark {
  color: var(--text3);
  display: flex;
  align-items: center;
}
.chat-read-mark.read { color: var(--accent); }

/* Empty state */
.chat-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  gap: 0.5rem;
}
.chat-empty-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: var(--text3);
}
.chat-empty-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text2);
}
.chat-empty-sub {
  font-size: 0.76rem;
  color: var(--text3);
  line-height: 1.5;
}

/* ── Input bar ── */
.chat-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.chat-input-bar textarea {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.83rem;
  padding: 0.55rem 0.85rem;
  resize: none;
  min-height: 38px;
  max-height: 110px;
  line-height: 1.5;
  transition: border-color 0.15s;
  outline: none;
}
.chat-input-bar textarea::placeholder { color: var(--text3); }
.chat-input-bar textarea:focus { border-color: var(--accent); }

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: filter 0.15s, transform 0.1s;
}
.chat-send-btn:hover { filter: brightness(1.15); }
.chat-send-btn:active { transform: scale(0.93); }
.chat-send-btn svg { pointer-events: none; }

/* ── Admin chat modal (slightly wider) ── */
.modal-admin-chat {
  max-width: 860px;
  width: 96%;
  height: 85vh;
  max-height: 760px;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
}
.modal-admin-chat .modal-header {
  flex-shrink: 0;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-admin-chat .modal-body {
  flex: 1;
  display: flex;
  flex-direction: row;  /* two-column */
  padding: 0;
  overflow: hidden;
  min-height: 0;
}

/* ── Admin messages list ── */
.admin-msg-list {
  display: flex;
  flex-direction: column;
}

.admin-msg-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.admin-msg-item:hover { background: rgba(255,255,255,0.025); }
.admin-msg-item.has-unread { background: rgba(124,58,237,0.04); }
.admin-msg-item.has-unread:hover { background: rgba(124,58,237,0.08); }

.admin-msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent3), #5b21b6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-msg-content { flex: 1; min-width: 0; }
.admin-msg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}
.admin-msg-order {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
}
.admin-msg-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  flex-shrink: 0;
}
.admin-msg-preview {
  font-size: 0.76rem;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.admin-msg-sender-prefix {
  font-weight: 600;
  color: var(--text2);
  margin-right: 0.3rem;
}
.admin-msg-unread-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent3);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Unread indicator on order cards */
.order-chat-unread {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.62rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent3);
  font-weight: 700;
}

/* Admin chat btn */
.btn-admin-chat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 6px;
  color: var(--accent3);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-admin-chat:hover { background: rgba(124,58,237,0.22); }

/* Light theme */
[data-theme="light"] .chat-messages { background: var(--s3); }
[data-theme="light"] .bubble-other {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="light"] .chat-input-bar { background: var(--surface); }
[data-theme="light"] .chat-input-bar textarea {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="light"] .admin-msg-item.has-unread { background: rgba(124,58,237,0.06); }



/* ════════════════════════════════════════════════════════════
   3. PRODUCT REVIEWS
════════════════════════════════════════════════════════════ */

/* Section wrapper injected into product detail modal */
.review-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.review-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 1rem;
}

/* Summary: avg score + breakdown bars */
.rev-summary {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.rev-avg-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}
.rev-avg-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 1px;
}
.rev-avg-count {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text2);
  margin-top: 0.25rem;
  white-space: nowrap;
}
.rev-breakdown { flex: 1; min-width: 140px; }
.rev-bar-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}
.rev-bar-label {
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text3);
  width: 22px;
  text-align: right;
  flex-shrink: 0;
}
.rev-bar-track {
  flex: 1;
  height: 6px;
  background: var(--surface2);
  border-radius: 3px;
  overflow: hidden;
}
.rev-bar-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 3px;
  transition: width 0.5s ease;
}
.rev-bar-pct {
  font-size: 0.64rem;
  color: var(--text3);
  width: 26px;
  text-align: right;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}
.rev-no-reviews {
  font-size: 0.82rem;
  color: var(--text3);
  padding: 0.5rem 0;
}

/* Write review form */
.rev-write-section { margin-bottom: 1.25rem; }
.rev-form { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1rem; }
.rev-form-title { font-size: 0.78rem; font-weight: 700; color: var(--text2); margin-bottom: 0.65rem; letter-spacing: 0.3px; }
.rev-form-stars { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.65rem; }

/* Star rating input */
.star-input-row { display: flex; gap: 0.2rem; }
.star-input-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--border2);
  cursor: pointer;
  line-height: 1;
  transition: color 0.12s, transform 0.1s;
  padding: 0 0.05rem;
}
.star-input-btn.star-hover,
.star-input-btn.star-active { color: var(--yellow); transform: scale(1.12); }
.rev-star-hint { font-size: 0.7rem; color: var(--text3); }

.rev-textarea {
  width: 100%;
  resize: vertical;
  font-size: 0.82rem;
  margin-bottom: 0.65rem;
  font-family: 'DM Sans', sans-serif;
  min-height: 72px;
}
.rev-submit-btn { width: 100%; }

/* Gate messages */
.rev-gate {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text3);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
}
.rev-gate-login .rev-gate-link {
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
}

/* Review list */
.rev-list { display: flex; flex-direction: column; gap: 0.85rem; }
.rev-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.rev-item-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}
.rev-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light, #3b82f6));
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rev-author-name { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.rev-author-date { font-size: 0.82rem; font-weight: 600; color: var(--text2); }
.rev-item-text { font-size: 0.8rem; color: var(--text2); line-height: 1.6; }

/* Star display */
.stars-display { display: inline-flex; gap: 1px; line-height: 1; }
.star-filled { color: var(--yellow); }
.star-empty  { color: var(--border2); }

/* Mini rating badge on product cards */
.prod-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--yellow);
  background: rgba(234,179,8,0.08);
  border: 1px solid rgba(234,179,8,0.2);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 0.3rem;
}
.prod-rating-count { color: var(--text3); font-weight: 400; }

/* Admin panel — message button in order row */
.btn-admin-chat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 6px;
  color: var(--accent3);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-admin-chat:hover { background: rgba(124,58,237,0.22); }

/* Responsive */
@media (max-width: 500px) {
  .notif-dropdown { width: calc(100vw - 2rem); right: -0.5rem; }
  .modal-chat, .modal-admin-chat { max-width: 100%; }
  .rev-summary { flex-direction: column; }
}

/* Light theme reviews */
[data-theme="light"] .rev-form,
[data-theme="light"] .rev-item {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="light"] .rev-bar-track { background: var(--s3); }

/* ═══════════════════════════════════════════════════════════════
   v20 Additions
═══════════════════════════════════════════════════════════════ */

/* Map hint bar */
.co-map-hint {
  font-size: .78rem;
  color: var(--text3);
  padding: .55rem .9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--s2);
  margin-top: .5rem;
  line-height: 1.5;
}
.co-map-hint.hint-success { color: var(--green); border-color: rgba(34,197,94,.25); background: rgba(34,197,94,.04); }
.co-map-hint.hint-warn    { color: var(--yellow); border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.04); }

/* Fix img upload zone — constrain preview so it can't overflow card */
.img-upload-zone.has-img { padding: .75rem; }
.upload-img-wrap { text-align:center; margin-bottom:.5rem; }

/* Nav bell SVG icon sizing */
.notif-bell-btn svg { vertical-align: middle; }

/* ════════════════════════════════════════════════════════════
   ADMIN CHAT MODAL — Two-column layout  (v22)
════════════════════════════════════════════════════════════ */

.admin-chat-header {
  flex-shrink: 0;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
}

.admin-chat-avatar-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent3), #5b21b6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Two-column body */
.admin-chat-body {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  min-height: 0;
  padding: 0 !important;
}

/* LEFT — Order context sidebar */
.admin-chat-sidebar {
  width: 248px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--surface2);
  overflow-y: auto;
  padding: 0.9rem 0.9rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.admin-chat-sidebar::-webkit-scrollbar { width: 3px; }
.admin-chat-sidebar::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* Section labels */
.acs-section-label {
  font-size: 0.62rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 0.55rem;
}

/* Meta rows */
.acs-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.acs-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
}
.acs-meta-label {
  font-size: 0.68rem;
  color: var(--text3);
  flex-shrink: 0;
  padding-top: 1px;
}
.acs-meta-val {
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}
.acs-total {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-weight: 700;
}
.acs-addr {
  font-size: 0.7rem;
  color: var(--text2);
  text-align: right;
  line-height: 1.4;
}
.acs-addr-row { align-items: flex-start; }

.acs-status-chip {
  font-size: 0.62rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid transparent;
}

/* Items list */
.acs-items {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.acs-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
}
.acs-item-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.2rem;
}
.acs-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.acs-item-qty {
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text3);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
}
.acs-item-price {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-weight: 700;
}

/* Quick-reply chips */
.acs-chips {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.acs-chip {
  width: 100%;
  text-align: left;
  padding: 0.42rem 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text2);
  font-size: 0.74rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acs-chip:hover {
  border-color: var(--accent3);
  color: var(--accent3);
  background: rgba(124,58,237,0.06);
}

.acs-empty {
  font-size: 0.74rem;
  color: var(--text3);
  padding: 0.3rem 0;
}

/* RIGHT — Chat panel */
.admin-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
}
.admin-chat-main .chat-order-bar { flex-shrink: 0; }
.admin-chat-main .chat-messages  { flex: 1; min-height: 0; }
.admin-chat-main .chat-input-bar { flex-shrink: 0; }

/* Responsive — stack on narrow screens */
@media (max-width: 640px) {
  .modal-admin-chat {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  .admin-chat-body { flex-direction: column; }
  .admin-chat-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 200px;
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 0.6rem 0.8rem;
    gap: 0.5rem;
  }
  .acs-section-label { display: none; }
  .acs-meta, .acs-items { display: none; }
  .acs-chips { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 0.4rem; }
  .acs-chip { flex-shrink: 0; width: auto; }
}

/* Light theme */
[data-theme="light"] .admin-chat-sidebar { background: var(--s3); }
[data-theme="light"] .acs-item { background: var(--surface); }
[data-theme="light"] .acs-chip { background: var(--surface); }

/* Laptop Specific Additions */
.laptop-detail-desc {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.laptop-review-wrap {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border2);
}
.laptop-review-wrap .review-section-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}



