@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/inter-400.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/inter-500.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/inter-600.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/inter-700.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/static/fonts/inter-800.ttf") format("truetype");
}

:root {
  --bg: #0a0c11;
  --panel: #12151c;
  --panel-2: #171b24;
  --border: #232833;
  --border-soft: #1b1f28;
  --text: #eef1f6;
  --muted: #8992a3;
  --muted-2: #5c6372;
  --accent: #2f6feb;
  --accent-2: #14b8a6;
  --accent-soft: rgba(47, 111, 235, 0.13);
  --ok: #22a35d;
  --ok-soft: rgba(34, 163, 93, 0.12);
  --err: #dc4444;
  --err-soft: rgba(220, 68, 68, 0.1);
  --radius-lg: 16px;
  --radius-md: 11px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -16px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 70px -24px rgba(0, 0, 0, 0.65);
  --hairline: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

::selection {
  background: rgba(47, 111, 235, 0.35);
  color: #fff;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--panel-2);
  border: 3px solid var(--bg);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--panel-2) transparent;
}

/* ---------- background ---------- */
/* one quiet, mostly-static field glow - no drifting neon blobs, no noise texture */

.bg-accent {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-accent::before {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 560px;
  background: radial-gradient(closest-side, rgba(47, 111, 235, 0.16), transparent 72%);
  animation: fieldDrift 40s ease-in-out infinite;
}

.bg-accent::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 900px 500px at 50% 0%, black, transparent 75%);
}

@keyframes fieldDrift {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(14px); }
}

/* ---------- entrance animations ---------- */

.reveal {
  animation: revealIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--d, 0ms);
}

@keyframes revealIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.pop {
  animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- nav ---------- */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border-soft);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  transition: opacity 0.15s ease;
}

.nav-brand:hover {
  opacity: 0.85;
}

.brand-dash {
  color: var(--accent-2);
}

.logo-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tx-id-pill {
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
}

.role-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #a9c4f7;
  border: 1px solid rgba(47, 111, 235, 0.3);
}

.role-pill.buyer {
  background: rgba(20, 184, 166, 0.12);
  color: #7fd9cd;
  border-color: rgba(20, 184, 166, 0.3);
}

/* ---------- hero / landing ---------- */

.hero {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 60px 20px 80px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.eyebrow .dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0 0 36px;
  max-width: 480px;
}

.create-card {
  width: 100%;
  display: flex;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.7);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.create-card:focus-within {
  border-color: rgba(47, 111, 235, 0.45);
  box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.7), 0 0 0 3px var(--accent-soft);
}

.price-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 4px;
  padding: 6px 4px 6px 14px;
}

.price-label span {
  font-size: 0.7rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-input {
  display: flex;
  align-items: center;
  gap: 4px;
}

.currency {
  color: var(--muted);
  font-size: 1.1rem;
}

.price-input input {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  width: 100%;
  padding: 0;
}

.price-input input:focus { outline: none; }

.create-card button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #3d7cf0, var(--accent));
  color: #fff;
  border: none;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.create-card button svg {
  transition: transform 0.2s ease;
}

.create-card button:hover {
  background: #2861d1;
  box-shadow: 0 8px 20px -8px rgba(47, 111, 235, 0.5);
}

.create-card button:hover svg {
  transform: translateX(3px);
}

.create-card button:active {
  transform: scale(0.98);
}

/* trust strip */

.trust-strip {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border-soft);
  padding: 7px 13px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.trust-item:hover {
  border-color: rgba(47, 111, 235, 0.35);
  color: var(--text);
  transform: translateY(-1px);
}

.trust-item svg {
  color: var(--accent-2);
  flex-shrink: 0;
}

.hero-steps {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--muted);
}

/* ---------- transaction page ---------- */

.tx-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

.stepper {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 20px 0 36px;
  position: relative;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 11%;
  right: 11%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted-2);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.step .dot {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted-2);
  box-shadow: var(--shadow-sm);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.step .dot::before {
  content: attr(data-num);
}

.step.active {
  color: var(--text);
}

.step.active .dot {
  background: linear-gradient(180deg, #3d7cf0, var(--accent));
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 5px var(--accent-soft);
  transform: scale(1.08);
}

.step.done .dot {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
  transform: scale(1);
}

.step.done .dot::before {
  content: "✓";
  font-size: 0.8rem;
}

.step.done {
  color: var(--muted);
}

.step, .step * {
  transition: color 0.3s ease;
}

.tx-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md), var(--hairline);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.action-card:hover {
  border-color: rgba(47, 111, 235, 0.3);
}

.card h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.card-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 20px;
}

.label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  display: block;
  margin-bottom: 6px;
}

.label-inline {
  font-size: 0.78rem;
  color: var(--muted-2);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.price-display {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.inline-form input {
  width: 110px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.payout-info {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

.payout-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  margin-top: 4px;
}

.tag {
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.share-box {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

.share-row {
  display: flex;
  gap: 8px;
}

.share-row input {
  flex: 1;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

/* forms */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field span {
  font-size: 0.78rem;
  color: var(--muted);
}

.field-hint {
  font-size: 0.72rem;
  color: var(--muted-2);
}

.field input, .field select {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
}

.segmented {
  display: flex;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}

.seg {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.seg.active {
  background: var(--accent);
  color: #fff;
}

.hidden { display: none !important; }

button { font-family: inherit; }

.btn-primary {
  width: 100%;
  background: linear-gradient(180deg, #3d7cf0, var(--accent));
  color: #fff;
  border: none;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 24px -12px rgba(47, 111, 235, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #4a86f3, #2861d1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 12px 28px -10px rgba(47, 111, 235, 0.65);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.btn-ghost:active {
  transform: scale(0.97);
}

.seg, .field input, .field select, .inline-form input {
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* status / waiting cards */

.status-card {
  text-align: center;
  padding: 40px 24px;
}

.status-card h3 {
  margin: 4px 0 8px;
}

.status-card p {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 380px;
  margin: 0 auto;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* result banners */

.result-card {
  text-align: center;
  padding: 36px 24px;
}

.result-card.error {
  border-color: rgba(220, 68, 68, 0.35);
  background: var(--err-soft);
}

.result-card.success {
  border-color: rgba(34, 163, 93, 0.35);
  background: var(--ok-soft);
}

.result-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.3rem;
  animation: iconIn 0.35s ease both;
}

@keyframes iconIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

.ip-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted-2);
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--border);
}

.result-card.error .result-icon {
  background: rgba(220, 68, 68, 0.14);
  color: var(--err);
}

.result-card.success .result-icon {
  background: rgba(34, 163, 93, 0.14);
  color: var(--ok);
}

.result-card h3 { margin: 0 0 8px; }
.result-card p { color: var(--muted); font-size: 0.88rem; margin: 0 0 14px; }

.result-card a {
  color: var(--accent-2);
  text-decoration: underline;
  word-break: break-all;
}

.result-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.result-item {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.result-item img,
.result-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* footer */

.site-footer {
  text-align: center;
  padding: 28px 20px 40px;
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.6;
}

.site-footer strong {
  color: var(--muted);
}

/* toast */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  z-index: 50;
  animation: toastIn 0.25s ease both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.toast.error {
  border-color: rgba(220, 68, 68, 0.4);
  color: #ffb3ba;
}

code {
  font-family: "SF Mono", Consolas, monospace;
}

/* ---------- customer support widget ---------- */

.support-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(47, 111, 235, 0.6);
  z-index: 40;
  transition: transform 0.15s ease, background 0.15s ease;
}

.support-launcher:hover {
  transform: translateY(-2px);
  background: #2861d1;
}

.support-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-2);
  border: 2px solid var(--bg);
}

.support-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 340px;
  max-width: calc(100vw - 40px);
  height: 440px;
  max-height: calc(100vh - 130px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 41;
}

.support-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  font-weight: 600;
  font-size: 0.9rem;
}

.support-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.support-close:hover {
  color: var(--text);
}

.support-thread {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-empty {
  color: var(--muted-2);
  font-size: 0.82rem;
  text-align: center;
  margin: auto;
}

.msg {
  display: flex;
}

.msg-bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.4;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.msg-bubble:has(.msg-media):not(:has(.msg-text)) {
  padding: 4px;
}

.msg-media {
  max-width: 100%;
  max-height: 240px;
  border-radius: 10px;
  display: block;
}

.msg-visitor {
  justify-content: flex-end;
}

.msg-visitor .msg-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-admin {
  justify-content: flex-start;
}

.msg-admin .msg-bubble {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.msg-time {
  font-size: 0.65rem;
  opacity: 0.6;
  align-self: flex-end;
}

.msg-visitor .msg-time {
  color: rgba(255, 255, 255, 0.85);
}

.msg-admin .msg-time {
  color: var(--muted-2);
}

.support-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border-soft);
}

.support-attach {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.support-attach svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.support-attach:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  background: var(--accent-soft);
}

.support-attach.active {
  border-color: var(--accent);
  color: var(--accent-2);
  background: var(--accent-soft);
}

.support-attach:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.link-bar {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
}

.link-bar input {
  flex: 1;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.link-bar input:focus {
  outline: none;
  border-color: var(--accent);
}

.msg-link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 9px 11px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.msg-link-card:hover {
  border-color: var(--accent-2);
}

.msg-link-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.msg-link-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.msg-link-host {
  font-size: 0.82rem;
  font-weight: 600;
}

.msg-link-url {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-link-open {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-2);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.support-form input {
  flex: 1;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.support-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.support-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.support-form button:hover {
  background: #2861d1;
}

/* ---------- admin ---------- */

.login-error {
  color: var(--err);
  font-size: 0.82rem;
  margin: 10px 0 0;
}

.admin-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  gap: 20px;
  align-items: start;
}

.admin-sidebar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.admin-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.session-list {
  max-height: 640px;
  overflow-y: auto;
}

.session-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-soft);
  padding: 12px 16px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s ease;
}

.session-item:hover {
  background: var(--panel-2);
}

.session-item.active {
  background: var(--accent-soft);
}

.session-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--accent-2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.session-item-body {
  flex: 1;
  min-width: 0;
}

.session-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.session-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}

.session-item-msg {
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-item-meta {
  font-size: 0.72rem;
  color: var(--muted-2);
  margin-top: 3px;
  text-transform: capitalize;
}

.admin-conversation {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.convo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
}

.convo-title {
  font-weight: 600;
}

.convo-sub {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: capitalize;
}

.admin-thread {
  min-height: 380px;
  max-height: 480px;
}

#convoActive {
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (max-width: 720px) {
  .admin-main {
    grid-template-columns: 1fr;
  }
}
