/* ── Reset & Variables ────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0f1117;
  --bg2:     #1a1d27;
  --bg3:     #22263a;
  --border:  #2e3250;
  --accent:  #7c6fef;
  --accent2: #a78bfa;
  --green:   #22c55e;
  --red:     #ef4444;
  --yellow:  #f59e0b;
  --text:    #e2e8f0;
  --text2:   #94a3b8;
  --r:       14px;
  --shadow:  0 4px 24px rgba(0,0,0,.4);
}

html { -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Kanit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent2); text-decoration: none; }

.material-symbols-rounded {
  font-size: 20px;
  vertical-align: middle;
  line-height: 1;
  user-select: none;
}

/* ── PIN Page ─────────────────────────────── */
body.pin-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  background: radial-gradient(ellipse at top, #1a1230 0%, #0f1117 70%);
}

.pin-wrapper { width: 100%; max-width: 360px; padding: 16px; }

.pin-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 28px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.pin-logo-icon {
  font-size: 56px !important;
  color: var(--accent2);
  display: block;
  margin-bottom: 10px;
}
.pin-title    { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.pin-subtitle { color: var(--text2); font-size: 14px; margin-bottom: 28px; }

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}
.dot {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  transition: background .15s, border-color .15s, transform .1s;
}
.dot.filled {
  background: var(--accent2);
  border-color: var(--accent2);
  transform: scale(1.15);
}

.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.num-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-family: 'Kanit', sans-serif;
  font-size: 24px;
  font-weight: 500;
  padding: 18px 0;
  cursor: pointer;
  transition: background .12s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}
.num-btn:active  { background: var(--accent); transform: scale(.92); }
.num-btn.empty   { visibility: hidden; }
.del-btn .material-symbols-rounded { font-size: 22px !important; }

/* ── Navbar ───────────────────────────────── */
.navbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.nav-brand .material-symbols-rounded { font-size: 24px !important; }

.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  transition: background .15s;
}
.hamburger:active { background: var(--bg3); }
.hamburger .material-symbols-rounded { font-size: 26px !important; }

/* Mobile: nav drawer */
.nav-links {
  position: fixed;
  top: 56px;
  right: 0;
  bottom: 0;
  width: 260px;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(110%);
  transition: transform .25s ease;
  z-index: 200;
  overflow-y: auto;
}
.nav-links.open { transform: translateX(0); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 190;
}
.nav-overlay.show { display: block; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text2);
  font-size: 15px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-link .material-symbols-rounded { font-size: 22px !important; }
.nav-link:hover, .nav-link.active { background: var(--bg3); color: var(--text); }
.nav-link.active { color: var(--accent2); }
.nav-logout { color: #f87171; }
.nav-logout:hover { background: rgba(239,68,68,.1); color: #f87171; }

/* Desktop: inline nav */
@media (min-width: 768px) {
  .hamburger { display: none; }
  .nav-overlay { display: none !important; }
  .nav-links {
    position: static;
    width: auto;
    background: none;
    border: none;
    padding: 0;
    flex-direction: row;
    transform: none !important;
    overflow: visible;
  }
  .nav-link { padding: 7px 14px; font-size: 14px; }
}

/* ── Container ────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 20px 16px; }

/* ── Alerts ───────────────────────────────── */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}
.alert .material-symbols-rounded { font-size: 20px !important; flex-shrink: 0; }
.alert-success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); color: #86efac; }
.alert-error   { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }

/* ── Page header ──────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.page-title    { font-size: 22px; font-weight: 700; }
.page-subtitle { color: var(--text2); font-size: 13px; margin-top: 1px; }

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 12px;
  font-family: 'Kanit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all .15s;
  white-space: nowrap;
  min-height: 42px;
}
.btn .material-symbols-rounded { font-size: 18px !important; }
.btn:active { transform: scale(.95); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #6c60df; color: #fff; }

.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text2); }
.btn-outline:hover { border-color: var(--accent2); color: var(--text); }

.btn-ghost  { background: transparent; color: var(--text2); }
.btn-ghost:hover { background: var(--bg3); color: var(--text); }

.btn-danger { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #f87171; }
.btn-danger:hover { background: rgba(239,68,68,.22); }

.btn-line-notify { background: rgba(6,199,85,.12); border: 1px solid rgba(6,199,85,.35); color: #4ade80; }
.btn-line-notify:hover { background: rgba(6,199,85,.22); color: #4ade80; }
.btn-line-msg { background: rgba(6,199,85,.18); border: 1px solid rgba(6,199,85,.45); color: #86efac; font-weight: 600; }
.btn-line-msg:hover { background: rgba(6,199,85,.30); color: #86efac; }

.btn-lg  { padding: 12px 24px; font-size: 16px; min-height: 50px; }
.btn-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: 'Kanit', sans-serif;
  transition: all .15s;
  min-height: 36px;
}
.btn-pay  { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); color: #86efac; }
.btn-pay:hover  { background: rgba(34,197,94,.25); }
.btn-undo { background: rgba(148,163,184,.08); border: 1px solid var(--border); color: var(--text2); }
.btn-undo:hover { background: var(--bg3); }

/* ── Stats ────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (min-width: 600px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  text-align: center;
}
.stat-card.stat-warn { border-color: rgba(239,68,68,.4); }

.stat-icon {
  display: block;
  font-size: 28px !important;
  color: var(--accent2);
  margin-bottom: 6px;
}
.stat-card.stat-warn .stat-icon { color: var(--red); }
.stat-num   { font-size: 26px; font-weight: 700; }
.stat-label { font-size: 12px; color: var(--text2); margin-top: 2px; }

/* ── Chip row ─────────────────────────────── */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.chip {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}
.chip:hover { border-color: var(--accent2); color: var(--text); }
.chip-active { background: rgba(124,111,239,.15); border-color: var(--accent); color: var(--accent2); }

/* ── Section label ────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 14px;
}
.section-label .material-symbols-rounded { color: var(--accent2); }

/* ── Filter tabs ──────────────────────────── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.filter-tab {
  padding: 7px 16px;
  border-radius: 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  transition: all .15s;
}
.filter-tab:hover { border-color: var(--accent2); color: var(--text); }
.filter-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Card grid ────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

.borrower-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 3px solid transparent;
}
.borrower-card.status-overdue   { border-left-color: var(--red); }
.borrower-card.status-ok        { border-left-color: var(--green); }
.borrower-card.status-completed { border-left-color: var(--border); opacity: .7; }

.bc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.bc-name    { display: flex; flex-direction: column; gap: 2px; }
.bc-fullname { font-size: 16px; font-weight: 600; }
.bc-nick    { font-size: 13px; color: var(--text2); }

.status-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-badge-overdue   { background: rgba(239,68,68,.15); color: #fca5a5; }
.status-badge-ok        { background: rgba(34,197,94,.1); color: #86efac; }
.status-badge-completed { background: rgba(148,163,184,.1); color: var(--text2); }

.bc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text2);
}

.bc-amounts {
  background: var(--bg3);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.bc-amt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text2);
}
.bc-amt-row strong { color: var(--text); }
.bc-amt-row.accent strong { color: var(--accent2); font-size: 15px; }

.bc-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text2);
}
.weeks-remain { color: var(--accent2); font-weight: 600; }

.progress-bar {
  background: var(--bg3);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 20px;
  transition: width .4s;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4px;
  font-size: 9px;
  color: rgba(255,255,255,.8);
}

.bc-btn { width: 100%; justify-content: center; }

/* ── Empty state ──────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text2);
}
.empty-icon {
  font-size: 56px !important;
  display: block;
  margin-bottom: 12px;
  color: var(--border);
}
.empty-state p { font-size: 16px; margin-bottom: 20px; }

/* ── Form card ────────────────────────────── */
.form-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  max-width: 800px;
}

.form-section { margin-bottom: 28px; }
.form-section:last-child { margin-bottom: 0; }

.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent2);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.form-section-title .material-symbols-rounded { font-size: 18px !important; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 500px) {
  .form-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}
.required { color: var(--red); }

.form-control {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Kanit', sans-serif;
  font-size: 15px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .15s;
  min-height: 46px;
  width: 100%;
}
.form-control:focus { border-color: var(--accent2); }
.form-control option { background: var(--bg3); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: 12px; color: var(--text2); }
.ok-hint { color: var(--green) !important; display:flex; align-items:center; gap:4px; }
.dev-badge { font-size:11px; font-weight:600; background:var(--accent); color:#fff;
             padding:2px 7px; border-radius:10px; margin-left:8px; vertical-align:middle; }

.test-result-ok,
.test-result-err {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  white-space: pre-wrap;
  line-height: 1.8;
}
.test-result-ok  { background: rgba(34,197,94,.1);  border: 1px solid rgba(34,197,94,.3);  color: #86efac; }
.test-result-err { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { display:inline-block; animation: spin .8s linear infinite; }

/* Calculation preview */
.calc-preview {
  background: rgba(124,111,239,.05);
  border: 1px solid rgba(124,111,239,.2);
  border-radius: var(--r);
  padding: 18px;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.calc-item {
  background: var(--bg2);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.calc-item.highlight { border: 1px solid var(--accent2); }
.calc-label  { font-size: 12px; color: var(--text2); }
.calc-val    { font-size: 18px; font-weight: 700; }
.calc-item.highlight .calc-val { color: var(--accent2); }

/* File upload */
.file-upload-area {
  background: var(--bg3);
  border: 2px dashed var(--border);
  border-radius: var(--r);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.file-upload-area:hover { border-color: var(--accent2); }
.file-upload-area .material-symbols-rounded { font-size: 36px !important; color: var(--text2); }
.file-upload-area p { color: var(--text2); font-size: 14px; }
.file-upload-area small { color: var(--text2); font-size: 12px; opacity: .6; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
}

/* ── Detail page ──────────────────────────── */
.detail-hero {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  flex: 1;
  min-width: 240px;
}
.di-item  { display: flex; flex-direction: column; gap: 3px; }
.di-full  { grid-column: 1 / -1; }
.di-label { font-size: 12px; color: var(--text2); }
.di-val   { font-size: 14px; font-weight: 500; }

.doc-thumb {
  width: 110px;
  height: 110px;
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.doc-preview-img { width: 100%; height: 100%; object-fit: cover; }
.doc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transition: opacity .2s;
}
.doc-thumb:hover .doc-overlay { opacity: 1; }

.amount-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 600px) {
  .amount-cards { grid-template-columns: repeat(4, 1fr); }
}

.ac-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  text-align: center;
}
.ac-principal { border-top: 3px solid #60a5fa; }
.ac-rate      { border-top: 3px solid var(--yellow); }
.ac-weekly    { border-top: 3px solid var(--accent2); }
.ac-total     { border-top: 3px solid var(--green); }
.ac-label { font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.ac-val   { font-size: 20px; font-weight: 700; }
.ac-unit  { font-size: 11px; color: var(--text2); margin-top: 3px; }

.progress-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 16px;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}
.progress-remain { color: var(--accent2); font-weight: 600; }
.progress-bar.big { height: 20px; border-radius: 20px; }
.progress-bar.big .progress-fill { font-size: 11px; padding-right: 6px; }
.progress-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text2);
}
.text-success { color: var(--green); }

/* Schedule table */
.schedule-section { margin-top: 16px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title .material-symbols-rounded { color: var(--accent2); }

.schedule-table-wrap { overflow-x: auto; border-radius: var(--r); }

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  font-size: 14px;
  min-width: 540px;
}
.schedule-table th {
  background: var(--bg3);
  color: var(--text2);
  font-weight: 600;
  font-size: 12px;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.schedule-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.schedule-table tr:last-child td { border-bottom: none; }
.row-paid    td { color: var(--text2); }
.row-overdue td { background: rgba(239,68,68,.04); }
.row-today   td { background: rgba(245,158,11,.05); }

.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
}
.badge-today   { background: rgba(245,158,11,.2); color: #fcd34d; }
.badge-overdue { background: rgba(239,68,68,.2); color: #fca5a5; }

.status-dot        { font-size: 13px; }
.status-dot.paid   { color: var(--green); }
.status-dot.overdue{ color: var(--red); }
.status-dot.today  { color: var(--yellow); }
.status-dot.pending{ color: var(--text2); }

/* ── LINE badge & misc ───────────────────── */
.line-linked-badge {
  display: inline-block;
  background: rgba(6,199,85,.15);
  border: 1px solid rgba(6,199,85,.35);
  color: #4ade80;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.badge-tag {
  font-size: 11px;
  background: rgba(167,139,250,.15);
  border: 1px solid rgba(167,139,250,.3);
  color: var(--accent2);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 400;
  margin-left: 6px;
}

.env-tag {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--accent2);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 12px;
  font-family: monospace;
}

.settings-grid { display: flex; flex-direction: column; gap: 0; }

.webhook-url-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 12px;
  word-break: break-all;
  font-size: 13px;
  color: var(--accent2);
}
.btn-sm-icon {
  padding: 6px 10px;
  flex-shrink: 0;
  min-height: auto;
}

/* Pending LINE users */
.pending-user-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pu-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; }
.pu-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pu-avatar-icon { font-size: 44px !important; color: var(--text2); flex-shrink: 0; }
.pu-name { font-size: 15px; font-weight: 600; }
.pu-uid  { font-size: 11px; color: var(--text2); font-family: monospace; }
.pu-msg  { font-size: 12px; color: var(--text2); font-style: italic; margin-top: 2px; }
.pu-link-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── Settings ─────────────────────────────── */
.info-box {
  background: rgba(124,111,239,.07);
  border: 1px solid rgba(124,111,239,.2);
  border-radius: var(--r);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
}
.info-box strong { color: var(--accent2); }
.info-box ol { padding-left: 20px; }

.notify-preview {
  background: #0a0a0f;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px;
  font-size: 14px;
  line-height: 2;
  max-width: 340px;
  white-space: pre-wrap;
}

/* ── Modal ────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-content { position: relative; }
.modal-close {
  position: absolute;
  top: -40px; right: 0;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
