/* ============================================================
   Sonic AI Support Portal — Design System
   Navy / White FinTech theme
   ============================================================ */

:root {
  /* ---- Palette ---- */
  --navy-900: #0B1E3D;
  --navy-800: #10254A;
  --navy-700: #17325F;
  --navy-600: #22437A;
  --blue-500: #2F6FED;   /* primary action */
  --blue-600: #2559C7;
  --white:    #FFFFFF;
  --bg:       #F5F7FB;
  --ink-900:  #101828;
  --ink-600:  #475467;
  --ink-400:  #98A2B3;
  --border:   #E4E7EC;

  /* ---- Status colors (always paired with text/icon, never alone) ---- */
  --status-green:  #16A34A;
  --status-green-bg: #E9F9EF;
  --status-orange: #F59E0B;
  --status-orange-bg: #FFF6E5;
  --status-red:    #DC2626;
  --status-red-bg: #FDECEC;
  --status-blue:   #2563EB;
  --status-blue-bg: #EAF1FF;

  /* ---- Layout ---- */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --shadow-pop:  0 10px 30px rgba(11,30,61,.14);
  --touch: 44px;
  --container: 480px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, .display {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  color: var(--navy-900);
  margin: 0 0 8px;
  line-height: 1.25;
}

p { color: var(--ink-600); line-height: 1.55; margin: 0 0 12px; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout shells ---- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-500));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-family: 'Poppins', sans-serif;
  flex-shrink: 0;
}
.brand-name { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--navy-900); font-size: 17px; }
.brand-sub { font-size: 12px; color: var(--ink-400); margin-top: -2px; }

.card {
  width: 100%;
  max-width: var(--container);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  border: 1px solid var(--border);
}

.card-header { margin-bottom: 22px; }
.card-header p { margin: 0; font-size: 14px; }

/* ---- Forms ---- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.field .hint { font-size: 12px; color: var(--ink-400); margin-top: 5px; }
.field .error-text { font-size: 12px; color: var(--status-red); margin-top: 5px; display: none; }
.field.has-error .error-text { display: block; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--status-red); background: var(--status-red-bg); }

input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="date"],
select, textarea {
  width: 100%;
  min-height: var(--touch);
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink-900);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(47,111,237,.12);
}
input:disabled { background: var(--bg); color: var(--ink-400); }

.input-with-icon { position: relative; }
.input-with-icon input { padding-right: 42px; }
.input-icon-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: none; background: transparent;
  color: var(--ink-400); cursor: pointer; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.input-icon-btn:hover { background: var(--bg); color: var(--navy-900); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  min-height: var(--touch);
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform .05s ease, background .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blue-500); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-primary:disabled { background: var(--ink-400); cursor: not-allowed; }
.btn-outline { background: #fff; color: var(--navy-900); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--navy-600); }
.btn-text { background: transparent; color: var(--blue-500); width: auto; min-height: auto; padding: 4px; font-weight: 600; }

.btn-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .7s linear infinite; display: none;
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- OTP input ---- */
.otp-row { display: flex; gap: 10px; justify-content: space-between; margin-bottom: 8px; }
.otp-box {
  width: 46px; height: 54px;
  text-align: center;
  font-size: 20px; font-weight: 700;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
}
.otp-box:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47,111,237,.12); }

.resend-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin-top: 14px; color: var(--ink-600); }

/* ---- Divider / footer links ---- */
.card-footer { margin-top: 20px; text-align: center; font-size: 14px; color: var(--ink-600); }

/* ---- Alert banner (inline, non-toast) ---- */
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 18px;
}
.alert-success { background: var(--status-green-bg); color: #0F7A37; }
.alert-error   { background: var(--status-red-bg);   color: #B42318; }
.alert-warning { background: var(--status-orange-bg);color: #B54708; }
.alert-info    { background: var(--status-blue-bg);  color: #1849A9; }

/* ---- Status badge (color + text, never color alone) ---- */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
}
.status-badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.status-green  .dot, .status-badge.status-green  { }
.status-badge.status-green  { background: var(--status-green-bg);  color: #0F7A37; }
.status-badge.status-orange { background: var(--status-orange-bg); color: #B54708; }
.status-badge.status-red    { background: var(--status-red-bg);    color: #B42318; }
.status-badge.status-blue   { background: var(--status-blue-bg);   color: #1849A9; }
.status-badge.status-green .dot  { background: var(--status-green); }
.status-badge.status-orange .dot { background: var(--status-orange); }
.status-badge.status-red .dot    { background: var(--status-red); }
.status-badge.status-blue .dot   { background: var(--status-blue); }

/* ---- Toasts ---- */
#toast-stack {
  position: fixed; top: 16px; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 9999; padding: 0 16px; pointer-events: none;
}
.toast {
  pointer-events: auto;
  width: 100%; max-width: 420px;
  display: flex; align-items: center; gap: 10px;
  background: var(--navy-900); color: #fff;
  padding: 13px 16px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop);
  font-size: 13.5px; font-weight: 500;
  opacity: 0; transform: translateY(-10px);
  animation: toast-in .22s ease forwards;
}
.toast.toast-success { background: #0F7A37; }
.toast.toast-error   { background: #B42318; }
.toast.toast-warning { background: #B54708; }
.toast.toast-info    { background: var(--navy-900); }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.85); flex-shrink: 0; }
@keyframes toast-in { to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px); } }

/* ---- Bottom nav (mobile, authenticated pages) ---- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  z-index: 500;
}
.bottom-nav-inner { display: flex; justify-content: space-around; }
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--ink-400); font-size: 11px; font-weight: 600;
  padding: 6px 8px; min-width: var(--touch); min-height: var(--touch);
  text-decoration: none; border-radius: 10px;
}
.bottom-nav a.active { color: var(--blue-500); background: var(--status-blue-bg); }

@media (max-width: 767px) {
  .bottom-nav { display: block; }
  body.has-bottom-nav { padding-bottom: 72px; }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-24 { margin-top: 24px; }
.small { font-size: 12.5px; color: var(--ink-400); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

/* ============================================================
   App shell — authenticated pages (dashboard, categories, tickets…)
   ============================================================ */
.app-shell {
  min-height: 100vh;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px 32px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0 16px;
}
.topbar-back {
  width: var(--touch); height: var(--touch);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--navy-900);
  flex-shrink: 0;
  margin-left: -8px;
}
.topbar-back svg { width: 20px; height: 20px; }
.topbar-back:hover { background: var(--white); }
.topbar-titles { flex: 1; min-width: 0; }
.topbar-title { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 17px; color: var(--navy-900); }
.topbar-sub { font-size: 12.5px; color: var(--ink-400); margin-top: 1px; }
.topbar-bell {
  position: relative;
  width: var(--touch); height: var(--touch);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy-900);
  flex-shrink: 0;
}
.topbar-bell svg { width: 19px; height: 19px; }
.topbar-bell .badge-dot {
  position: absolute; top: 8px; right: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--status-red);
  border: 1.5px solid var(--white);
}

/* ---- Stats grid ---- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 24px; }
.stat-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.stat-tile .stat-value { font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 700; color: var(--navy-900); line-height: 1; margin-bottom: 6px; }
.stat-tile .stat-label { font-size: 12.5px; color: var(--ink-600); font-weight: 500; }
.stat-tile.accent-blue .stat-value   { color: var(--status-blue); }
.stat-tile.accent-orange .stat-value { color: var(--status-orange); }
.stat-tile.accent-green .stat-value  { color: var(--status-green); }

/* ---- Section headings ---- */
.section-row { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 0 14px; }
.section-title { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15.5px; color: var(--navy-900); }
.section-link { font-size: 13px; font-weight: 600; }

/* ---- Category grid ---- */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 8px; }
.category-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: var(--shadow-card);
  color: var(--ink-900);
  text-decoration: none;
  transition: transform .1s ease, border-color .15s ease;
}
.category-card:hover { text-decoration: none; border-color: var(--blue-500); transform: translateY(-1px); }
.category-card .cat-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--status-blue-bg);
  color: var(--blue-500);
  display: flex; align-items: center; justify-content: center;
}
.category-card .cat-icon svg { width: 20px; height: 20px; }
.category-card .cat-name { font-size: 13.5px; font-weight: 600; color: var(--navy-900); line-height: 1.3; }
.category-card .cat-desc { font-size: 11.5px; color: var(--ink-400); line-height: 1.4; }

.view-all-link { display: block; text-align: center; font-size: 13.5px; font-weight: 600; padding: 12px; }

/* ---- Category summary banner (on the ticket form page) ---- */
.category-banner {
  display: flex; align-items: center; gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
.category-banner .cat-icon { width: 42px; height: 42px; border-radius: 12px; }
.category-banner .cat-icon svg { width: 22px; height: 22px; }
.category-banner-text .cat-name { font-size: 15px; }
.category-banner-text .cat-desc { font-size: 12.5px; margin-top: 2px; }

/* ---- File field ---- */
.file-field-control {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background: var(--bg);
  cursor: pointer;
  min-height: var(--touch);
}
.file-field-control:hover { border-color: var(--blue-500); }
.file-field-control svg { width: 18px; height: 18px; color: var(--ink-400); flex-shrink: 0; }
.file-field-control .file-field-label { font-size: 13.5px; color: var(--ink-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-field-control input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state .empty-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--status-blue-bg); color: var(--blue-500);
  display: flex; align-items: center; justify-content: center;
}
.empty-state .empty-icon svg { width: 28px; height: 28px; }
.empty-state h2 { font-size: 16px; }
.empty-state p { font-size: 13.5px; max-width: 300px; margin: 0 auto; }

/* ---- Success hero (ticket-success.php) ---- */
.success-hero { text-align: center; padding: 12px 4px 8px; }
.success-hero .success-icon {
  width: 72px; height: 72px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--status-green-bg); color: var(--status-green);
  display: flex; align-items: center; justify-content: center;
}
.success-hero .success-icon svg { width: 36px; height: 36px; }
.success-hero h1 { font-size: 19px; }
.ticket-number-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm); padding: 10px 16px; margin: 6px 0 18px;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 16px; color: var(--navy-900);
  letter-spacing: .5px;
}
.btn-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }

/* ============================================================
   Bottom nav icons (inline SVGs live in the PHP partial;
   this just sizes/colors them consistently)
   ============================================================ */
.bottom-nav a svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; }

@media (min-width: 420px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   Step 5 — My Tickets, Ticket Detail
   ============================================================ */

/* ---- Search row ---- */
.search-row { display: flex; gap: 8px; margin-bottom: 14px; }
.search-input-wrap {
  flex: 1; position: relative; display: flex; align-items: center;
}
.search-input-wrap svg {
  position: absolute; left: 13px; width: 17px; height: 17px; color: var(--ink-400); pointer-events: none;
}
.search-input-wrap input[type="search"] {
  width: 100%; min-height: var(--touch); padding: 11px 14px 11px 38px;
  font-size: 14.5px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); outline: none; -webkit-appearance: none; appearance: none;
}
.search-input-wrap input[type="search"]:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47,111,237,.12); }
.search-input-wrap input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---- Filter chips ---- */
.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; -ms-overflow-style: none; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: var(--white); border: 1.5px solid var(--border); color: var(--ink-600);
  text-decoration: none; min-height: 36px;
}
.chip:hover { text-decoration: none; border-color: var(--blue-500); }
.chip.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* ---- Ticket list ---- */
.ticket-list { display: flex; flex-direction: column; gap: 10px; }
.ticket-list-item {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  color: var(--ink-900);
  text-decoration: none;
}
.ticket-list-item:hover { text-decoration: none; border-color: var(--blue-500); }
.ticket-list-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ticket-number { font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600; color: var(--ink-400); letter-spacing: .3px; }
.ticket-list-mid { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ticket-list-cat-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 10px; background: var(--status-blue-bg); color: var(--blue-500);
  display: flex; align-items: center; justify-content: center;
}
.ticket-list-cat-icon svg { width: 18px; height: 18px; }
.ticket-subject { font-size: 14px; font-weight: 600; color: var(--navy-900); line-height: 1.3; }
.ticket-category-name { font-size: 12px; color: var(--ink-400); margin-top: 1px; }
.ticket-list-bottom { font-size: 12px; color: var(--ink-400); }

/* ---- Ticket detail top card ---- */
.ticket-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ---- Info rows (submitted info) ---- */
.info-row { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row:first-child { padding-top: 0; }
.info-label { font-size: 12px; font-weight: 600; color: var(--ink-400); text-transform: uppercase; letter-spacing: .3px; }
.info-value { font-size: 14px; color: var(--ink-900); line-height: 1.5; word-break: break-word; }

/* ---- Attachment chip ---- */
.attachment-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--status-blue-bg); color: var(--blue-500);
  border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600;
  margin: 2px 6px 2px 0;
}
.attachment-chip svg { width: 14px; height: 14px; flex-shrink: 0; }
.attachment-chip:hover { text-decoration: none; background: #dceafe; }

/* ---- Timeline ---- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: 5px; top: 16px; bottom: -2px; width: 2px; background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 12px; height: 12px; border-radius: 50%; margin-top: 3px; flex-shrink: 0;
  background: var(--status-blue); border: 2px solid var(--status-blue-bg);
}
.timeline-dot.status-green  { background: var(--status-green);  border-color: var(--status-green-bg); }
.timeline-dot.status-orange { background: var(--status-orange); border-color: var(--status-orange-bg); }
.timeline-dot.status-red    { background: var(--status-red);    border-color: var(--status-red-bg); }
.timeline-dot.status-blue   { background: var(--status-blue);   border-color: var(--status-blue-bg); }
.timeline-label { font-size: 13.5px; font-weight: 600; color: var(--navy-900); }
.timeline-note { font-size: 12.5px; color: var(--ink-600); margin-top: 2px; }
.timeline-time { margin-top: 3px; }

/* ---- Chat thread ---- */
.chat-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.chat-bubble-row { display: flex; }
.chat-bubble-row.from-user { justify-content: flex-end; }
.chat-bubble-row.from-admin { justify-content: flex-start; }
.chat-bubble {
  max-width: 85%;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-card);
}
.from-user .chat-bubble { background: var(--blue-500); color: #fff; border-bottom-right-radius: 4px; }
.from-admin .chat-bubble { background: var(--white); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-sender { font-size: 11px; font-weight: 700; opacity: .75; margin-bottom: 3px; }
.chat-text { font-size: 14px; line-height: 1.5; }
.from-user .chat-text { color: #fff; }
.from-admin .chat-text { color: var(--ink-900); }
.chat-attachments { margin-top: 6px; }
.from-user .attachment-chip { background: rgba(255,255,255,.2); color: #fff; }
.from-user .attachment-chip:hover { background: rgba(255,255,255,.3); }
.chat-time { margin-top: 5px; opacity: .8; }
.from-user .chat-time { color: rgba(255,255,255,.85); }

/* ---- Reply composer ---- */
.reply-composer { margin-bottom: 24px; }
.reply-composer textarea { min-height: 72px; margin-bottom: 10px; }
.reply-composer-row { display: flex; gap: 10px; align-items: stretch; }
.reply-composer-row .file-field-control { min-height: var(--touch); }
.reply-composer.has-error textarea { border-color: var(--status-red); background: var(--status-red-bg); }

/* ============================================================
   Step 6 — Notifications
   ============================================================ */
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--ink-900);
  text-decoration: none;
}
.notif-item:hover { text-decoration: none; border-color: var(--blue-500); }
.notif-item.unread { background: var(--status-blue-bg); border-color: #cfe0fb; }
.notif-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px; background: var(--white); color: var(--blue-500);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.notif-item.unread .notif-icon { background: #fff; }
.notif-icon svg { width: 18px; height: 18px; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 14px; font-weight: 600; color: var(--navy-900); line-height: 1.35; }
.notif-text { font-size: 13px; color: var(--ink-600); margin-top: 2px; line-height: 1.45; }
.notif-meta { margin-top: 5px; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); flex-shrink: 0; margin-top: 6px; }
