/* ProChannels — Anthropic-inspired design system */

:root {
  /* Warm palette (anthropic.com / claude.ai) */
  --brand: #c96442;
  --brand-dark: #b5563a;
  --brand-light: #f5ebe4;
  --brand-muted: #ecd9cf;

  --bg: #faf9f5;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-warm: #f5f3ee;
  --border: #e8e6dc;
  --border-strong: #d4d1c4;

  --text: #141413;
  --text-secondary: #3d3d3a;
  --text-muted: #73726c;

  --sidebar-w: 252px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-xs: 0 1px 2px rgba(20, 20, 19, 0.03);
  --shadow-sm: 0 2px 8px rgba(20, 20, 19, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 20, 19, 0.06);

  --focus-ring: 0 0 0 3px rgba(201, 100, 66, 0.18);

  --success: #2f6f4e;
  --success-bg: #eef5f0;
  --warning: #9a6700;
  --warning-bg: #faf5eb;
  --danger: #c0392b;
  --danger-bg: #fdf0ee;
  --info: #3d5a80;
  --info-bg: #f0f3f8;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Newsreader', 'Georgia', 'Times New Roman', serif;
  --transition: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.6;
  font-weight: 400;
}

::selection { background: var(--brand-muted); color: var(--text); }

a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

/* ── Layout shell ── */

.app-shell { display: flex; min-height: 100vh; }

.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  align-items: center;
  justify-content: space-between;
}

.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: transform 0.25s ease;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 19, 0.25);
  backdrop-filter: blur(2px);
  z-index: 1039;
}
.sidebar-overlay.show { display: block; }

.brand {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  background: var(--text);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.brand span { color: var(--brand); font-weight: 600; }

.nav-section {
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 24px 12px 8px;
}

.sidebar .nav-link {
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  margin-bottom: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  text-decoration: none;
}
.sidebar .nav-link i { font-size: 1rem; opacity: 0.55; width: 18px; text-align: center; }
.sidebar .nav-link:hover {
  background: var(--surface-warm);
  color: var(--text);
}
.sidebar .nav-link:hover i { opacity: 0.85; }
.sidebar .nav-link.active {
  background: var(--brand-light);
  color: var(--text);
  font-weight: 600;
}
.sidebar .nav-link.active i { opacity: 1; color: var(--brand); }
.sidebar .nav-link.text-danger { color: var(--danger); }
.sidebar .nav-link.text-danger:hover { background: var(--danger-bg); }

.main-content {
  flex: 1;
  min-width: 0;
  padding: 36px 48px;
  max-width: 1320px;
}

.page-header { margin-bottom: 32px; }
.page-header h1 {
  font-size: 1.875rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.03em;
}

.pc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.pc-back-link:hover { color: var(--text); }

/* ── Public navbar ── */

.pc-public-nav {
  background: rgba(250, 249, 245, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.pc-public-nav .navbar-brand { font-weight: 600; letter-spacing: -0.02em; }
.pc-public-nav .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
}
.pc-public-nav .nav-link:hover { color: var(--text); background: var(--surface-warm); }

/* ── Cards ── */

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-xs); }
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
  font-weight: 600;
  font-family: var(--font);
}
.card-body { padding: 24px; }
.card-footer {
  background: var(--surface-warm);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}

.card-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
}
.card-stat .value {
  font-family: var(--font-serif);
  font-size: 2.125rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.03em;
}

.pc-stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  background: var(--surface);
  height: 100%;
}
.pc-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: var(--brand-light);
  color: var(--brand);
}
.pc-stat-value {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ── Buttons ── */

.btn {
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  transition: all var(--transition);
  letter-spacing: -0.01em;
  font-family: var(--font);
}
.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }
.btn-lg { padding: 13px 26px; font-size: 1rem; }

.btn-brand {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}
.btn-brand:hover, .btn-brand:focus {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.btn-outline-primary {
  color: var(--text);
  border-color: var(--border-strong);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand-dark);
}

.btn-outline-secondary {
  color: var(--text-secondary);
  border-color: var(--border);
  background: var(--surface);
}
.btn-outline-secondary:hover {
  background: var(--surface-warm);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-light {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-light:hover { background: var(--surface-warm); border-color: var(--border-strong); }

.btn-link { font-weight: 500; text-decoration: none; }
.btn-link:hover { text-decoration: none; }

/* ── Forms ── */

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.form-control,
.form-select {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: none;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
  background: var(--surface);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:disabled,
.form-select:disabled {
  background: var(--surface-warm);
  color: var(--text-muted);
  opacity: 1;
}

.form-control-lg { padding: 12px 16px; font-size: 1rem; border-radius: var(--radius-sm); }
.form-control-sm { padding: 6px 10px; font-size: 0.8125rem; }

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2373726c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-size: 14px 10px;
}

.form-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-check-input {
  width: 1.1em;
  height: 1.1em;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  transition: all var(--transition);
}
.form-check-input:checked {
  background-color: var(--text);
  border-color: var(--text);
}
.form-check-input:focus { box-shadow: var(--focus-ring); border-color: var(--brand); }
.form-check-label { font-size: 0.875rem; color: var(--text-secondary); }

.input-group .btn-outline-secondary {
  border-color: var(--border);
  color: var(--text-muted);
}
.input-group .form-control { border-right: none; }
.input-group .btn-outline-secondary:hover { background: var(--surface-warm); color: var(--text); }

textarea.form-control { min-height: 100px; resize: vertical; }

/* ── Tables ── */

.table {
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0;
}
.table > :not(caption) > * > * {
  padding: 12px 16px;
  border-bottom-color: var(--border);
  vertical-align: middle;
}
.table thead th {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--surface-warm);
  border-bottom: 1px solid var(--border);
  font-family: var(--font);
}
.table-hover > tbody > tr:hover > * { background: var(--surface-warm); }
.table-striped > tbody > tr:nth-of-type(odd) > * { background: rgba(245, 243, 238, 0.5); }

/* ── Alerts ── */

.alert {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 12px 16px;
}
.alert-success { background: var(--success-bg); border-color: #c5dcc8; color: var(--success); }
.alert-danger { background: var(--danger-bg); border-color: #f0c4be; color: var(--danger); }
.alert-warning { background: var(--warning-bg); border-color: #e8d5a8; color: var(--warning); }
.alert-info { background: var(--info-bg); border-color: #c5d0e0; color: var(--info); }
.alert-light { background: var(--surface-warm); border-color: var(--border); color: var(--text-secondary); }

/* ── Badges ── */

.badge {
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 5px;
  font-family: var(--font);
}
.badge-tg { background: #e8f0f8; color: #2d5a7b; }
.badge-vk { background: #eceef5; color: #3d4a7a; }
.badge-max { background: var(--brand-light); color: var(--brand-dark); }
.badge-ig { background: #f5e8ef; color: #8b3a5c; }

.bg-primary { background-color: var(--text) !important; }
.bg-warning-subtle { background: var(--warning-bg) !important; }
.text-warning { color: var(--warning) !important; }

/* ── Status dots ── */

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.status-dot.published { background: var(--success); }
.status-dot.draft { background: var(--text-muted); }
.status-dot.scheduled { background: var(--warning); }
.status-dot.failed { background: var(--danger); }

/* ── List groups ── */

.list-group-item {
  border-color: var(--border);
  padding: 12px 0;
  background: transparent;
}
.list-group-flush > .list-group-item { border-width: 0 0 1px; }
.list-group-flush > .list-group-item:last-child { border-bottom: 0; }

/* ── Modals ── */

.modal-content {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.modal-header { border-bottom: 1px solid var(--border); padding: 20px 24px; }
.modal-body { padding: 22px 24px; }
.modal-footer { border-top: 1px solid var(--border); padding: 16px 24px; }
.modal-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

#pcMediaModal .modal-content {
  background: #1a1918;
  color: #f5f3ee;
  border: none;
}

/* ── Pagination ── */

.pagination { gap: 4px; }
.page-link {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 6px 12px;
  margin: 0;
}
.page-link:hover { background: var(--surface-warm); border-color: var(--border-strong); color: var(--text); }
.page-item.active .page-link {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ── Nav tabs ── */

.nav-tabs {
  border-bottom: 1px solid var(--border);
  gap: 4px;
}
.nav-tabs .nav-link {
  border: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 10px 16px;
}
.nav-tabs .nav-link:hover { color: var(--text); background: var(--surface-warm); }
.nav-tabs .nav-link.active {
  color: var(--text);
  background: transparent;
  border-bottom: 2px solid var(--brand);
  font-weight: 600;
}

/* ── Dropdown ── */

.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 6px;
  font-size: 0.875rem;
}
.dropdown-item {
  border-radius: 5px;
  padding: 8px 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.dropdown-item:hover { background: var(--surface-warm); color: var(--text); }

/* ── Trial banner ── */

.trial-banner {
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.8125rem;
}
.trial-banner .btn-light {
  background: var(--bg);
  border: none;
  color: var(--text);
}

/* ── Auth pages ── */

.auth-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background: var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card .card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.auth-icon {
  width: 52px;
  height: 52px;
  background: var(--brand-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--brand);
  font-size: 1.5rem;
}
.auth-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.auth-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Landing page ── */

.landing-hero {
  padding: 112px 0 96px;
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 30%, rgba(201, 100, 66, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(201, 100, 66, 0.04) 0%, transparent 50%);
  pointer-events: none;
}
.landing-hero .container { position: relative; z-index: 1; }
.landing-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
}
.landing-hero .lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.65;
  font-weight: 400;
}
.landing-hero .highlight { color: var(--brand); font-style: italic; }

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.landing-feature-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--brand);
  margin-bottom: 16px;
}

.landing-step-num {
  width: 36px;
  height: 36px;
  background: var(--text);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  margin: 0 auto 12px;
  font-family: var(--font);
}

.landing-pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  background: var(--surface);
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.landing-pricing-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.landing-pricing-card.featured {
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--brand-light) 0%, var(--surface) 35%);
}
.landing-pricing-card .price {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.04em;
}
.landing-pricing-card .price sup { font-size: 1rem; font-weight: 450; color: var(--text-muted); font-family: var(--font); }

.landing-cta {
  background: var(--text);
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  text-align: center;
  color: var(--bg);
}
.landing-cta h2 {
  color: var(--bg);
  font-size: 2rem;
  font-weight: 400;
}
.landing-cta p { color: rgba(250, 249, 245, 0.72); }

.landing-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}

.landing-preview {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.landing-preview-bar {
  background: var(--surface-warm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.landing-preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.landing-preview-dot.red { background: #e8a598; }
.landing-preview-dot.yellow { background: #d4c48a; }
.landing-preview-dot.green { background: #8fb89a; }
.landing-preview-url {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-left: 8px;
  font-family: ui-monospace, monospace;
}
.landing-preview-body { padding: 16px; background: var(--bg); }

.landing-section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.03em;
}

/* ── Empty states ── */

.pc-empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
}
.pc-empty i { font-size: 2.5rem; opacity: 0.2; display: block; margin-bottom: 12px; }
.pc-empty p { font-size: 0.875rem; margin-bottom: 16px; }

/* ── Post editor ── */

.channel-check-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  transition: all var(--transition);
}
.channel-check-item:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-light);
}
.fmt-toolbar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.fmt-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 0.8125rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
  font-weight: 500;
}
.fmt-btn:hover {
  background: var(--brand-light);
  border-color: var(--brand-muted);
  color: var(--brand);
}
[contenteditable][data-placeholder]:empty:before {
  content: attr(data-placeholder);
  color: var(--text-muted);
}

.pc-post-emoji-panel {
  position: fixed;
  z-index: 1060;
  display: none;
  max-width: min(340px, calc(100vw - 24px));
  max-height: min(320px, 52vh);
  overflow-y: auto;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}
.pc-post-emoji-panel.is-open { display: grid; }
.pc-post-emoji-panel button {
  border: 0;
  background: transparent;
  border-radius: 5px;
  font-size: 1.35rem;
  line-height: 1.2;
  padding: 4px 2px;
  cursor: pointer;
}
.pc-post-emoji-panel button:hover { background: var(--brand-light); }

/* ── Server stats (superuser) ── */

.pc-server-shell {
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(201, 100, 66, 0.35), rgba(115, 114, 108, 0.15));
}
.pc-server-inner {
  border-radius: calc(var(--radius-lg) - 1px);
  padding: 1.35rem 1.5rem;
  background: #1a1918;
  color: #c8c6bc;
  border: 1px solid rgba(232, 230, 220, 0.08);
}
.pc-server-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8fb89a;
  box-shadow: 0 0 0 0 rgba(143, 184, 154, 0.5);
  animation: pc-server-pulse 2.2s ease-out infinite;
}
@keyframes pc-server-pulse {
  0% { box-shadow: 0 0 0 0 rgba(143, 184, 154, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(143, 184, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 184, 154, 0); }
}
.pc-metric-tile {
  background: rgba(30, 29, 27, 0.55);
  border: 1px solid rgba(232, 230, 220, 0.08);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  height: 100%;
}
.pc-metric-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #73726c;
  font-weight: 600;
}
.pc-metric-value {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 500;
  color: #faf9f5;
  line-height: 1.1;
}
.pc-progress-wrap {
  height: 5px;
  border-radius: 5px;
  background: rgba(20, 20, 19, 0.85);
  overflow: hidden;
}
.pc-progress-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.35s ease;
  max-width: 100%;
}
.pc-progress-cpu { background: linear-gradient(90deg, #c96442, #d4a574); }
.pc-progress-ram { background: linear-gradient(90deg, #8fb89a, #6a9a78); }
.pc-progress-disk { background: linear-gradient(90deg, #d4c48a, #c96442); }

/* ── Feed item card ── */

.pc-feed-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pc-feed-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-xs); }

@keyframes pc-feed-card-exit {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
    max-height: 900px;
  }
  55% {
    opacity: 0.4;
    transform: translateX(1.75rem) scale(0.985);
    filter: blur(1px);
  }
  100% {
    opacity: 0;
    transform: translateX(3.25rem) scale(0.96);
    filter: blur(3px);
    max-height: 0;
    margin-bottom: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
  }
}

.pc-feed-card-exit {
  animation: pc-feed-card-exit 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
  overflow: hidden;
  transform-origin: center right;
}

/* ── Text utilities ── */

.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-primary { color: var(--brand) !important; }
.fw-semibold { font-weight: 550 !important; }

hr { border-color: var(--border); opacity: 1; }

.border { border-color: var(--border) !important; }
.border-top { border-top-color: var(--border) !important; }
.border-bottom { border-bottom-color: var(--border) !important; }

.bg-white { background: var(--surface) !important; }
.bg-light { background: var(--surface-warm) !important; }

.btn-outline-danger {
  color: var(--danger);
  border-color: var(--border);
}
.btn-outline-danger:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}

.bg-secondary-subtle { background: var(--surface-warm) !important; }
.bg-info-subtle { background: var(--info-bg) !important; }
.text-info { color: var(--info) !important; }

.feed-parse-card { border-left: 3px solid var(--brand); }
.pc-media-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.bg-success-subtle { background: var(--success-bg) !important; }
.bg-danger-subtle { background: var(--danger-bg) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--danger);
}
.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.invalid-feedback { font-size: 0.8125rem; font-weight: 500; }

.media-preview-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.post-edit-wrap { max-width: 1100px; margin-left: auto; margin-right: auto; }

/* Bootstrap overrides for Anthropic palette */
.navbar-toggler { border-color: var(--border); }
.navbar-toggler:focus { box-shadow: var(--focus-ring); }

/* ── Responsive ── */

@media (max-width: 991.98px) {
  .mobile-topbar { display: flex; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: var(--shadow-md);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { padding: 24px 20px; }
  .page-header h1 { font-size: 1.5rem; }
  .landing-hero { padding: 80px 0 64px; }
}

@media (max-width: 575.98px) {
  .main-content { padding: 16px; }
  .btn-lg { padding: 11px 22px; font-size: 0.9375rem; }
}
