:root {
  --bg: #080b14;
  --bg-2: #0f1420;
  --surface: #131826;
  --surface-2: #1e2435;
  --border: #2a3148;
  --text: #f5f6fa;
  --muted: #626a7a;
  --accent: #e84c4c;
  --success: #4caf50;
  --gold: #d4af37;
  --gold-light: #ffe89a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Hanuman", sans-serif;
  background: linear-gradient(180deg, #0f1726 0, var(--bg) 40%, #050810 100%);
  color: var(--text);
  min-height: 100vh;
}

/* Force Khmer font for inputs/textareas (inherits don't always cascade on
   native form elements) and any element explicitly marked Khmer. */
input, textarea, select, button { font-family: inherit; }
:lang(km), .km {
  font-family: "Hanuman", -apple-system, sans-serif;
  line-height: 1.6;
}

/* ─── App layout (sidebar + content) ─── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: rgba(10, 14, 26, 0.7);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 20;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-wrap: wrap;
}
.sidenav {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.sidenav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.sidenav-item:hover { background: rgba(255, 255, 255, 0.03); color: var(--text); }
.sidenav-item.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.04));
  color: var(--gold-light);
  box-shadow: inset 2px 0 0 var(--gold);
}
.sidenav-icon { width: 20px; height: 20px; flex-shrink: 0; }
.sidenav-label { flex: 1; }
.sidenav-item .badge { margin-left: 0; }

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.user-area {
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), #b8932e);
  flex-shrink: 0;
}
.user-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.user-email {
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-btn {
  background: none; border: none; padding: 0;
  color: var(--muted); font: inherit; font-size: 11px;
  text-align: left; cursor: pointer;
}
.link-btn:hover { color: var(--accent); }

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: sticky;
  top: 0;
  background: rgba(10, 14, 26, 0.6);
  backdrop-filter: blur(14px);
  z-index: 10;
}
.icon-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.page-title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: 0.2px; }

.page { padding: 24px 28px; max-width: 1100px; }

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 15;
}

/* Mobile: sidebar becomes an off-canvas drawer */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .icon-btn { display: inline-flex; }
  .page { padding: 18px; }
  .topbar { padding: 14px 16px; }
}

.brand { display: flex; align-items: center; gap: 10px; }
.center-brand { justify-content: center; margin-bottom: 18px; }
.logo {
  font-weight: 900;
  letter-spacing: 3px;
  color: #f5e6d3;
  font-size: 20px;
}
.logo.gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), #b8932e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tag {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 6px;
}

.user-area { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--muted); }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.signin { max-width: 380px; text-align: center; }
.signin h1 { margin: 0 0 10px; font-size: 22px; }
.muted { color: var(--muted); }
.muted.small { font-size: 12px; }
.mono { font-family: ui-monospace, Menlo, monospace; }
.error {
  margin-top: 12px;
  color: var(--accent);
  font-size: 13px;
}
.hidden { display: none !important; }

.btn {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform 0.08s, filter 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { cursor: default; opacity: 0.5; }
.btn-primary {
  background: linear-gradient(135deg, #ff5e5e, #e84c4c, #b83838);
  color: #fff;
  margin-top: 12px;
  width: 100%;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-approve {
  background: linear-gradient(135deg, #4caf50, #2d7a30);
  color: #fff;
}
.btn-reject {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(232, 76, 76, 0.5);
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: var(--surface);
  padding: 4px;
  border-radius: 12px;
  width: fit-content;
}
.tab {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.tab.active {
  background: var(--surface-2);
  color: var(--text);
}
.badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Dashboard ─────────────────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.kpi-icon.kpi-blue  { background: rgba(138, 182, 255, 0.14); color: #8ab6ff; }
.kpi-icon.kpi-gold  { background: rgba(212, 175, 55, 0.14); color: var(--gold-light); }
.kpi-icon.kpi-green { background: rgba(127, 217, 154, 0.14); color: #7fd99a; }
.kpi-icon.kpi-red   { background: rgba(232, 76, 76, 0.14); color: var(--accent); }

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-top: 2px;
}
.kpi-delta { margin-top: 2px; }

.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
@media (max-width: 900px) {
  .dash-row { grid-template-columns: 1fr; }
}
.dash-card { padding: 18px 20px; margin: 0; }
.dash-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dash-card-title {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.breakdown-list { display: flex; flex-direction: column; gap: 12px; }
.breakdown-row { display: flex; flex-direction: column; gap: 5px; }
.breakdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.breakdown-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.breakdown-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}
.bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}
.bar-active   { background: linear-gradient(90deg, #7fd99a, #4caf50); }
.bar-pending  { background: linear-gradient(90deg, var(--gold-light), var(--gold)); }
.bar-expired  { background: linear-gradient(90deg, #6e6e82, #4a4a5e); }
.bar-rejected { background: linear-gradient(90deg, #ff8585, var(--accent)); }
.bar-gold     { background: linear-gradient(90deg, var(--gold-light), var(--gold)); }
.bar-green    { background: linear-gradient(90deg, #7fd99a, #4caf50); }
.bar-cat-general { background: rgba(138, 182, 255, 0.7); }
.bar-cat-movie   { background: rgba(212, 175, 55, 0.7); }
.bar-cat-payment { background: rgba(127, 217, 154, 0.7); }
.bar-cat-promo   { background: rgba(255, 158, 122, 0.7); }
.bar-cat-system  { background: rgba(176, 166, 255, 0.7); }

.status-pill.expired { background: rgba(110, 110, 130, 0.2); color: #b2b2c4; }

/* Receipts: pending-cards (left) + history-table (right) */
.receipts-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 960px) {
  .receipts-layout { grid-template-columns: 1fr; }
}
.receipts-pending, .receipts-history { min-width: 0; }
.receipts-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.receipts-title {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}
.pending-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

/* History table */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.receipts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.receipts-table thead th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.receipts-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.receipts-table tbody tr:last-child td { border-bottom: none; }
.receipts-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.thumb-cell { width: 56px; padding-right: 4px !important; }
.table-thumb {
  width: 40px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  background: #000;
  cursor: zoom-in;
  display: block;
}
.table-thumb.empty-thumb {
  background: var(--surface-2);
  cursor: default;
}
.plan-cell { font-weight: 700; white-space: nowrap; }
.user-cell .cust {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-cell .uid {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  color: var(--muted);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ts-cell { color: var(--muted); font-size: 12px; white-space: nowrap; }

.receipt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.receipt .thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #000;
  cursor: zoom-in;
  object-fit: contain;
}
.receipt .body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; justify-content: space-between; gap: 10px; }
.row.head { align-items: baseline; }
.plan {
  font-weight: 700;
  font-size: 15px;
}
.cust {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact {
  font-size: 12px;
  color: var(--text);
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uid {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ts {
  font-size: 11px;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.actions .btn { flex: 1; padding: 9px 10px; font-size: 12px; }
.status-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}
.status-pill.pending { background: rgba(212, 175, 55, 0.15); color: var(--gold); }
.status-pill.approved { background: rgba(76, 175, 80, 0.15); color: var(--success); }
.status-pill.rejected { background: rgba(232, 76, 76, 0.15); color: var(--accent); }

.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  font-size: 14px;
}


/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: center; align-items: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.85); cursor: zoom-out; }
.modal-content { position: relative; max-width: 90vw; max-height: 90vh; }
.modal-content img { max-width: 100%; max-height: 90vh; border-radius: 8px; display: block; }
.modal-close {
  position: absolute; top: -40px; right: 0;
  background: transparent; color: #fff; border: none;
  font-size: 28px; cursor: pointer;
}

/* Extra status-pill variants for notifications list */
.status-pill.sent   { background: rgba(76, 175, 80, 0.15); color: var(--success); }
.status-pill.failed { background: rgba(232, 76, 76, 0.15); color: var(--accent); }

/* Notification composer + list: two-column layout */
.notif-layout {
  display: grid;
  grid-template-columns: minmax(420px, 540px) 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1020px) {
  .notif-layout { grid-template-columns: 1fr; }
}

.composer-column { min-width: 0; }
.history-column {
  min-width: 0;
  position: sticky;
  top: 92px; /* topbar height (~74) + small gap */
  align-self: start;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  padding-right: 6px; /* breathing room for the scrollbar */
}
@media (max-width: 960px) {
  .history-column {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}
.history-header { margin: 0 0 12px; }
.history-title {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

/* Composer card */
.composer { padding: 20px; margin: 0; }
.composer-header { margin-bottom: 18px; }
.composer h2 { margin: 0 0 6px; font-size: 16px; font-weight: 800; letter-spacing: 0.2px; }
.composer-header .muted { margin: 0; line-height: 1.55; }

.field { margin-top: 16px; }
.field:first-of-type { margin-top: 0; }

.composer label {
  display: block;
  margin: 10px 0 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.field > label:first-child { margin-top: 0; }

.composer input[type="text"],
.composer textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.composer input[type="text"]:focus,
.composer textarea:focus { border-color: var(--gold); }
.composer textarea { resize: vertical; min-height: 64px; }

.btn-small { padding: 6px 10px; font-size: 12px; }

.video-picker { position: relative; }
.video-picker input[type="text"] {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.video-results {
  max-height: 260px;
  overflow-y: auto;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-2);
}
.video-results:empty { border: none; background: transparent; }
.video-result {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.video-result:last-child { border-bottom: none; }
.video-result:hover { background: var(--surface-2); }
.video-result img { width: 40px; height: 56px; object-fit: cover; border-radius: 4px; background: #000; }
.video-result-info { min-width: 0; flex: 1; }
.video-result-title {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-picked {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
}
.video-picked img { width: 42px; height: 58px; object-fit: cover; border-radius: 4px; background: #000; }
.video-picked-info { flex: 1; min-width: 0; }
.video-picked-title {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.composer-actions .btn { width: auto; margin: 0; padding: 10px 20px; }

.section-title { margin: 28px 0 12px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }

.notif-list { display: grid; gap: 10px; }
.notif-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.notif-thumb { width: 54px; height: 72px; object-fit: cover; border-radius: 6px; background: #000; }
.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.notif-title { font-weight: 700; font-size: 14px; }
.notif-msg { font-size: 13px; color: var(--text); opacity: 0.8; }
.error.small { font-size: 11px; margin-top: 4px; }

.lang-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lang-pane {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.lang-pane.km input, .lang-pane.km textarea, .lang-pane.km label {
  font-family: "Hanuman", -apple-system, sans-serif;
}
.lang-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 3px 8px;
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-light);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.lang-required {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.chip:hover { color: var(--text); }
.chip.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06));
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--gold-light);
}
.chip-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* Compact read-only chip for listing views */
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--muted);
}
.cat-chip .chip-icon { width: 12px; height: 12px; }
.cat-chip.general { color: #8ab6ff; background: rgba(138, 182, 255, 0.1); }
.cat-chip.movie   { color: var(--gold-light); background: rgba(212, 175, 55, 0.12); }
.cat-chip.payment { color: #7fd99a; background: rgba(127, 217, 154, 0.1); }
.cat-chip.promo   { color: #ff9e7a; background: rgba(255, 158, 122, 0.1); }
.cat-chip.system  { color: #b0a6ff; background: rgba(176, 166, 255, 0.1); }

.head-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.head-right { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.icon-btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--muted);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.icon-btn-small:hover {
  background: rgba(232, 76, 76, 0.12);
  color: var(--accent);
}

.notif-lang {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.notif-lang:first-of-type { border-top: none; padding-top: 4px; }
.notif-lang-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lang-chip {
  flex-shrink: 0;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 999px;
  margin-top: 2px;
  white-space: nowrap;
}
